@font-face { font-family: Baskervville; src: url(fonts/baskervville.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Baskervville; src: url(fonts/baskervville-italic.ttf) format("truetype"); font-style: italic; font-weight: 500; font-display: swap; }
@font-face { font-family: Lato; src: url(fonts/lato-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Lato; src: url(fonts/lato-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #faf8f2;
  --ink: #292921;
  --muted: #625e54;
  --rule: #d9d3c5;
  --rust: #954326;
  --serif: Baskervville, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Lato, system-ui, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
code, pre { font-family: var(--mono); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .brand, .footer-brand { font-family: var(--serif); font-weight: 500; }
h1, h2, h3 { line-height: 1.1; }
:focus-visible { outline: 3px solid #bd7136; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 89%); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1rem; transform: translateY(-160%); z-index: 2; padding: .5rem 1rem; background: white; }
.skip:focus { transform: translateY(0); }
.masthead { border-bottom: 1px solid var(--rule); }
.nav-row, .nav-row nav, .brand, .hero-actions, .primary, .footer-row, .footer-row nav { display: flex; align-items: center; }
.nav-row, .footer-row { justify-content: space-between; gap: 1.5rem; }
.nav-row { min-height: 75px; }
nav a, .brand, .footer-brand, .primary, .text-link, .endpoint, .back { text-decoration: none; }
.brand { gap: .55rem; font-size: 25px; letter-spacing: -.04em; white-space: nowrap; }
.wheel { font: 39px/1 Georgia, serif; color: var(--rust); }
.nav-row nav { gap: clamp(16px, 2.45vw, 36px); font-size: 14px; }
nav a:hover, .text-link:hover, .back:hover { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }
.nav-search { display: grid; place-items: center; width: 30px; height: 40px; }
.magnify { position: relative; width: 14px; height: 14px; border: 1.7px solid currentColor; border-radius: 50%; }
.magnify::after { content: ""; height: 1.8px; width: 7px; background: currentColor; position: absolute; right: -5px; bottom: -2px; transform: rotate(48deg); }
.github { border-left: 1px solid var(--rule); padding-left: 23px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 4.2vw, 65px); padding-block: 52px 45px; }
.sanskrit { display: flex; align-items: center; gap: 12px; color: var(--rust); font: 500 21px/1.5 "Kohinoor Devanagari", "Nirmala UI", serif; }
.sanskrit::before { content: ""; width: 35px; height: 1px; background: var(--rust); }
.hero h1 { margin: 15px 0 19px; font-size: clamp(57px, 5.45vw, 81px); line-height: 1.02; letter-spacing: -.061em; }
.hero h1 em { color: var(--rust); font-weight: inherit; white-space: nowrap; }
.intro { font-size: clamp(17px, 1.37vw, 20px); color: var(--muted); max-width: 49ch; line-height: 1.6; }
.hero-actions { flex-wrap: wrap; gap: 25px; margin-top: 28px; }
.primary { display: inline-flex; justify-content: center; gap: 16px; padding: 11px 20px; border: 1px solid var(--rust); border-radius: 5px; background: var(--rust); color: white; font-weight: 700; font-size: 15px; }
.primary:hover { background: #79361e; border-color: #79361e; }
.primary:disabled { opacity: .65; cursor: wait; }
.text-link { font-size: 15px; font-weight: 700; }
.text-link span { color: var(--rust); margin-left: 3px; }
.art-frame { padding: 5px; border: 1px solid #c4b79d; background: #f8f2de; box-shadow: 3px 3px 0 #e8e0cf; }
.art img { display: block; width: 100%; height: auto; aspect-ratio: 1.93; object-fit: cover; object-position: 50% 54%; }
.art figcaption { color: var(--muted); text-align: right; font: italic 500 13px/1.5 var(--serif); margin-top: 7px; }
.reference { padding-block: 36px 40px; border-block: 1px solid var(--rule); background: #f3efe5; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
h2 { font-size: clamp(33px, 3vw, 43px); letter-spacing: -.045em; }
.section-head p, .params label code { color: var(--muted); font-size: 12px; }
.section-head p { display: flex; align-items: center; gap: 10px; }
.section-head code { font-size: 12px; }
.endpoint-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.endpoint { display: block; padding: 21px 23px 22px; border: 1px solid var(--rule); border-radius: 5px; background: #fffcf6; transition: border-color .15s, background-color .15s; }
.endpoint:hover, .endpoint:focus-visible { border-color: var(--rust); background: #fffaf0; }
.route { display: flex; gap: 10px; align-items: center; }
.route code { font-size: 13px; color: #48463f; }
.method, .terminal-method { font: 700 10px/1.4 var(--mono); letter-spacing: .05em; padding: 2px 6px; border-radius: 3px; }
.method { background: #e7ebde; color: #3c5535; }
.arrow { margin-left: auto; color: var(--rust); font-size: 18px; line-height: 1; }
.endpoint h3 { margin-top: 18px; font-size: 27px; letter-spacing: -.035em; }
.endpoint p, .play-controls > p { color: var(--muted); margin-top: 7px; font-size: 15px; line-height: 1.5; }
.playground { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 92px); padding-block: 45px 55px; align-items: start; }
.play-controls > p { max-width: 39ch; margin-block: 12px 19px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
select, input { min-width: 0; background: #fffdf8; border: 1px solid #bdb5a5; border-radius: 3px; padding: 8px 10px; color: var(--ink); }
select { width: 100%; }
.params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 14px 0; }
.params:empty { display: none; }
.params > div:only-child { grid-column: 1 / -1; }
.console { border-radius: 6px; background: #242d28; color: #f4efdf; overflow: hidden; min-width: 0; }
.request-line, .console-bar { display: flex; align-items: center; padding: 12px 19px; gap: 12px; border-bottom: 1px solid #465149; }
.request-line a { font: 13px/1.5 var(--mono); overflow-wrap: anywhere; text-decoration: none; }
.request-line a:hover { text-decoration: underline; }
.terminal-method { background: #455647; color: #ddedc8; }
.console-bar { justify-content: space-between; padding-block: 0; background: #2c362f; }
.console button { padding: 8px 0; border: none; color: #c2c9bf; background: none; font-size: 13px; }
.console button:hover { color: white; }
.views { display: flex; gap: 18px; }
.views button { border-bottom: 2px solid transparent; }
.views [aria-pressed="true"] { color: #fff7e5; border-color: #e5b68b; }
.console pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 18px 21px; height: 222px; overflow: auto; font-size: 13px; line-height: 1.6; color: #f1e1bf; tab-size: 2; }
#request-status { min-height: 31px; margin: 0; padding: 6px 19px; border-top: 1px solid #465149; color: #c6d0bf; font: 11px/1.5 var(--mono); }
footer { border-top: 1px solid var(--rule); }
.footer-row { min-height: 84px; }
.footer-brand { font-size: 20px; }
.footer-row nav { gap: 18px; font-size: 13px; color: var(--muted); }
.document { max-width: 780px; padding-block: 48px 70px; min-height: 65vh; }
.document h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.045em; margin: 20px 0 26px; }
.document h2 { margin: 30px 0 15px; font-size: 30px; }
.document h3 { font-size: 23px; margin: 24px 0 10px; }
.document p { margin-block: 12px; }
.document .back, .document p a, .kicker { color: var(--rust); }
.document .primary { margin-top: 16px; }
.search-form > div { display: flex; gap: 8px; }
.search-form input { flex: 1; }
.search-form .primary { margin: 0; }
#results { padding: 0; list-style: none; }
#results li { padding-block: 14px; border-bottom: 1px solid var(--rule); }
#results a { color: var(--rust); font-weight: 700; }
#results p { margin: 4px 0; color: var(--muted); }

@media (max-width: 860px) {
  .hero { gap: 24px; padding-block: 38px; }
  .hero h1 { font-size: 56px; }
  .art img { aspect-ratio: 1.4; }
  .endpoint { padding: 17px; }
  .playground { gap: 28px; }
}
@media (max-width: 670px) {
  .wrap { width: min(91%, 520px); }
  .nav-row { min-height: 60px; gap: 8px; }
  .nav-row nav { gap: 12px; }
  .nav-section { display: none; }
  .brand { font-size: 21px; gap: 5px; }
  .wheel { font-size: 32px; }
  .github { padding-left: 12px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 32px 25px; }
  .hero h1 { font-size: clamp(48px, 10vw, 62px); margin-block: 10px 13px; }
  .sanskrit { font-size: 18px; }
  .hero-actions { margin-top: 18px; }
  .art img { aspect-ratio: 2; }
  .section-head { display: block; margin-bottom: 17px; }
  .section-head p { margin-top: 7px; flex-wrap: wrap; gap: 5px 8px; }
  .endpoint-grid, .playground { grid-template-columns: 1fr; }
  .endpoint-grid { gap: 9px; }
  .endpoint h3 { margin-top: 10px; }
  .reference { padding-block: 26px; }
  .playground { padding-block: 30px; }
  .footer-row { align-items: flex-start; flex-direction: column; padding-block: 22px; gap: 10px; }
  .footer-row nav { flex-wrap: wrap; gap: 8px 17px; }
}
