:root {
  --bg: #f8f6f2;
  --paper: #efece4;
  --ink: #1c211f;
  --muted: #5a605c;
  --subtle: #7a817c;
  --accent: #1d6b5c;
  --line: rgb(28 33 31 / 0.1);
  --display: "Fraunces", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 22px 50px -24px rgb(28 33 31 / 0.32);
}
html.lang-hi {
  --display: "Noto Serif Devanagari", "Fraunces", Palatino, Georgia, serif;
  --sans: "Noto Sans Devanagari", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); overflow-x: clip; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
button, summary { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg);
  padding: 0.6rem 0.8rem; z-index: 80;
}
.skip:focus { top: 0.5rem; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.wrap-prose { width: min(42rem, calc(100% - 2rem)); margin-inline: auto; }
.kicker { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--subtle); }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.accent { color: var(--accent); }
header.site {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgb(248 246 242 / 0.94);
  backdrop-filter: blur(8px);
}
.bar { height: 3.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-size: 1.15rem; }
.brand img { width: 1.75rem; height: 1.75rem; border-radius: 999px; }
.tools { display: flex; align-items: center; gap: 0.25rem; }
.lang { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0 0.4rem; color: var(--muted); text-decoration: none; }
details.menu { position: relative; }
details.menu > summary {
  list-style: none; min-width: 2.75rem; min-height: 2.75rem;
  display: grid; place-items: center; cursor: pointer;
}
details.menu > summary::-webkit-details-marker { display: none; }
.drawer {
  position: absolute; right: 0; top: 100%; margin-top: 0.25rem; width: 18rem;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 1rem 1.25rem; display: flex; flex-direction: column;
}
.drawer a, .drawer button.linkish {
  min-height: 2.75rem; display: flex; align-items: center;
  text-decoration: none; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.drawer a[aria-current="page"], .drawer a:hover { color: var(--ink); }
.rule { height: 1px; background: var(--line); margin: 0.5rem 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: 0.4rem 1rem; background: var(--ink); color: var(--bg); text-decoration: none; border: 1px solid var(--ink);
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn.line { background: transparent; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero, .split { display: grid; gap: 3rem; align-items: center; }
.portrait { aspect-ratio: 3/4; object-fit: cover; object-position: top; width: 100%; background: var(--paper); }
.frame { outline: 1px solid rgb(28 33 31 / 0.12); outline-offset: -1px; }
.cover-float { position: absolute; right: 0.75rem; bottom: -0.5rem; width: 7rem; transform: rotate(6deg); }
.cover { box-shadow: var(--shadow); }
.display { font-family: var(--display); }
.lead { font-family: var(--display); font-size: 1.6rem; line-height: 1.25; max-width: 34rem; }
h1.xl { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 0.95; letter-spacing: -0.02em; }
h1.lg, h2.lg { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.band { border-block: 1px solid var(--line); background: rgb(239 236 228 / 0.5); }
.pad { padding: 4rem 0; }
.grid-3 { display: grid; gap: 2.5rem; }
.card { border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; }
.card .top { background: var(--paper); padding: 2rem 1.25rem; }
.card .body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.stat { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--accent); }
.note-list { list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--line); }
.note-list a { display: block; padding: 2rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { min-height: 2.75rem; display: inline-flex; align-items: center; border: 1px solid rgb(28 33 31 / 0.15); padding: 0 0.75rem; text-decoration: none; color: var(--muted); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
form.stack { display: grid; gap: 0.75rem; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 1px solid rgb(28 33 31 / 0.2); padding: 0.7rem 0.8rem; min-height: 2.75rem;
}
label { display: block; font-size: 0.9rem; }
footer.site { margin-top: auto; border-top: 1px solid var(--line); background: rgb(239 236 228 / 0.6); }
.foot { display: grid; gap: 2.5rem; padding: 3rem 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding-bottom: 2.5rem; }
.foot-links a { min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.cookie {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  border-top: 1px solid var(--line); background: rgb(248 246 242 / 0.96);
  padding: 0.75rem 1rem;
}
.cookie .inner { display: flex; flex-direction: column; gap: 0.6rem; }
.popup {
  position: fixed; z-index: 50; inset-inline: 0; bottom: 0;
  border-top: 1px solid var(--line); background: var(--bg); padding: 1rem;
  box-shadow: 0 -12px 40px -16px rgb(28 33 31 / 0.25);
}
body { display: flex; flex-direction: column; }
main { flex: 1; }
.hp { display: none; }
@media (min-width: 800px) {
  .bar { height: 4rem; }
  .hero { grid-template-columns: 0.95fr 1.05fr; gap: 5rem; }
  .split { grid-template-columns: 15rem 1fr; gap: 4rem; }
  .split.wide { grid-template-columns: 17.5rem 1fr; }
  .grid-3, .stats { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cover-float { width: 11rem; right: 1.5rem; }
  .foot { grid-template-columns: 1fr 1fr; }
  .cookie .inner, .two { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .popup { inset: auto 1.5rem 1.5rem auto; width: 24rem; border: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
