:root {
  --ink: #17191C;
  --paper: #F7F7F5;
  --rule: #DADBD6;
  --slate: #575D64;
  --orange: #F25C05;
  --orange-text: #B93C00;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: var(--gutter); background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; }

/* Header */
.site-header .bar { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.wordmark { font: 700 1.5rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.site-header nav a { font: 500 1rem var(--display); margin-left: 24px; text-decoration: none; }
.site-header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* Hero */
.hero { padding-top: clamp(32px, 7vw, 88px); padding-bottom: clamp(48px, 8vw, 96px); }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 500 0.9375rem var(--display); color: var(--slate); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 700; max-width: 15ch; }
.arrow { display: block; width: 100%; height: auto; margin: clamp(24px, 4vw, 44px) 0; overflow: visible; }
.arrow path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.arrow .shaft { stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards; }
.arrow .fletch { opacity: 0; animation: show 0.3s 0.1s forwards; }
.arrow .head { fill: var(--orange); opacity: 0; animation: show 0.2s 1.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .arrow .shaft { animation: none; stroke-dashoffset: 0; }
  .arrow .fletch, .arrow .head { animation: none; opacity: 1; }
}
.lede { font-size: 1.3rem; line-height: 1.5; max-width: 38rem; margin: 0 0 28px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); font: 600 1rem var(--display); padding: 14px 22px; border-radius: 4px; text-decoration: none; }
.btn:hover { background: var(--orange-text); color: #fff; }

/* Sections */
.section { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.section h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); max-width: 22ch; }

.rows { list-style: none; margin: 32px 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 28px 0; border-top: 1px solid var(--rule); }
.rows h3 { font-size: 1.5rem; }
.rows p { margin: 0; max-width: 40rem; }
@media (min-width: 760px) { .rows li { grid-template-columns: 4fr 8fr; gap: 32px; } }

.words { display: grid; grid-template-columns: 1fr; gap: 32px; margin: 36px 0; }
@media (min-width: 760px) { .words { grid-template-columns: 1fr 1fr; } }
.deva { font: 500 clamp(3.5rem, 10vw, 6rem)/1 "Noto Serif Devanagari", serif; margin: 0; }
.gloss { margin: 10px 0 0; font-family: var(--display); }
.closing { max-width: 38rem; font-size: 1.25rem; margin: 0; }

.band { background: var(--ink); color: var(--paper); }
.band h2 { max-width: 20ch; }
.band p { max-width: 36rem; margin: 20px 0 28px; font-size: 1.15rem; }
.band a { color: var(--paper); font: 600 1.0625rem var(--display); }
.band a:hover { color: var(--orange); }

/* Post list */
.posts { list-style: none; margin: 32px 0 0; padding: 0; }
.posts li { display: grid; gap: 6px; padding: 24px 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .posts li { grid-template-columns: 4fr 8fr; gap: 32px; } }
.posts time, .meta time { font: 500 0.9375rem var(--display); color: var(--slate); }
.posts a { text-decoration: none; }
.posts .t { display: block; font: 600 1.375rem/1.2 var(--display); letter-spacing: -0.015em; }
.posts a:hover .t { color: var(--orange-text); text-decoration: underline; }
.posts .d { display: block; color: var(--slate); margin-top: 6px; }

/* Blog + article */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.page-head p { max-width: 36rem; margin: 16px 0 0; color: var(--slate); }
.post { padding-top: 48px; padding-bottom: 80px; }
.post h1 { font-size: clamp(2rem, 6vw, 3.5rem); max-width: 20ch; }
.meta { margin: 16px 0 32px; }
.prose { max-width: 38rem; line-height: 1.7; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 0.6em; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.4em 0; }
.share { max-width: 38rem; margin: 32px 0 0; color: var(--slate); font-size: 0.9375rem; }
.back { margin-top: 20px; font-family: var(--display); font-weight: 500; }
.prose h2 + ul, .prose h2 + ol { margin-top: 0; }
.prose a { overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; }
.site-footer p { margin: 0 0 8px; color: var(--slate); font-size: 0.9375rem; max-width: 44rem; }
.site-footer .social a { margin-right: 18px; font-family: var(--display); font-weight: 500; }
