/* BiteClub — biteclub.alkan.dev
   A late-night food diary: warm near-black, amber glow, film grain.
   Display + section labels: Fraunces (soft optical serif, italic for labels).
   Body + small UI text: Hanken Grotesk. No monospace anywhere. */

:root {
  color-scheme: dark;

  --bg: #09090b;            /* zinc-950, same as the app */
  --bg-raise: #111113;
  --surface: #18181b;       /* zinc-900 */
  --surface-2: #1f1f23;
  --line: #27272a;          /* zinc-800 */
  --line-soft: rgba(244, 244, 245, 0.07);
  --text: #f4f4f5;          /* zinc-100 */
  --text-2: #a1a1aa;        /* zinc-400 */
  --text-3: #71717a;        /* zinc-500 */
  --amber: #fbbf24;         /* amber-400 */
  --amber-deep: #f59e0b;    /* amber-500 */
  --orange: #f97316;        /* orange-500 */
  --ember: #9a3412;         /* orange-800, "it was fine" pins */
  --violet: #a78bfa;        /* Keşfet ghost pins only */
  --grad: linear-gradient(135deg, var(--amber) 0%, var(--orange) 100%);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything, very quiet */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.9  0 0 0 0 0.75  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--amber);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 200;
}
.skip:focus { left: 12px; }

/* ───────────── Header ───────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "opsz" 48;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px -4px rgba(249, 115, 22, 0.55);
  flex: none;
}
.brand-mark svg { width: 18px; height: 18px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--line-soft); }
.nav a[aria-current="page"] { color: var(--amber); }

@media (max-width: 560px) {
  .nav a.nav-optional { display: none; }
  .nav a { padding: 8px 9px; font-size: 14px; }
}

/* ───────────── Shared bits ───────────── */

.eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--amber);
  font-variation-settings: "SOFT" 100, "opsz" 24;
}

.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  margin: 0;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}

.lede {
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 34em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-2px); border-color: #3f3f46; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.2;
}
.btn span { line-height: 1.15; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

.btn-primary {
  background: var(--grad);
  color: #1c0d02;
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.6);
}
.btn-primary small { color: rgba(28, 13, 2, 0.6); }
.btn-primary:hover { border-color: transparent; }

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  padding: clamp(48px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
  isolation: isolate;
}

.hero::before {
  /* the warm lamp over the table */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20% -10% auto auto;
  width: min(900px, 120vw);
  height: 900px;
  background:
    radial-gradient(closest-side, rgba(251, 191, 36, 0.20), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(249, 115, 22, 0.14), transparent 70%);
  filter: blur(10px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(46px, 7.2vw, 96px);
  margin: 22px 0 26px;
}

.hero .lede { margin: 0 0 34px; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Reveal on load */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.3s; }
.rise.d4 { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ───────────── The map card ───────────── */

.mapcard {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 500px;
  justify-self: center;
  border-radius: 30px;
  background:
    radial-gradient(120% 80% at 30% 20%, #17171a 0%, #0c0c0e 70%);
  border: 1px solid var(--line);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 120px -40px rgba(249, 115, 22, 0.35);
  overflow: hidden;
  transform: rotate(1.6deg);
}

.mapcard svg.streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-stats {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  z-index: 3;
}
.map-stats b { color: var(--text); font-weight: 700; margin-right: 4px; }
.map-stats i { font-style: normal; opacity: 0.5; }

.pin {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -46px 0 0 -23px;    /* anchor at the tip */
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) scale(0);
  transform-origin: 0% 100%;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.9);
  animation: drop 0.7s var(--ease) forwards;
  z-index: 2;
}
.pin > span {
  transform: rotate(45deg);
  font-size: 20px;
  line-height: 1;
}
.pin.loved { background: linear-gradient(135deg, #fde68a, var(--amber)); }
.pin.fine { background: linear-gradient(135deg, #c2410c, var(--ember)); }
.pin.ghost {
  background: rgba(23, 23, 26, 0.9);
  border: 2px dashed var(--violet);
  box-shadow: 0 0 22px -4px rgba(167, 139, 250, 0.45);
}
.pin.ghost > span { font-size: 16px; }

@keyframes drop {
  0%   { transform: rotate(-45deg) scale(0) translate(0, -18px); opacity: 0; }
  60%  { transform: rotate(-45deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(-45deg) scale(1); opacity: 1; }
}

.pin-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: rise 0.8s var(--ease) 2.1s forwards;
  z-index: 3;
}
.pin-label .thumb {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: radial-gradient(circle at 40% 35%, #7c2d12, #3a1607);
}
.pin-label b { display: block; font-size: 16px; }
.pin-label .where {
  display: block;
  font-size: 13px;
  color: var(--text-3);
}
.pin-label .stars { color: var(--amber); font-size: 13px; letter-spacing: 2px; }
.pin-label .private {
  margin-left: auto;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  white-space: nowrap;
}

.coord {
  position: absolute;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 244, 245, 0.28);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .rise, .pin, .pin-label { animation: none !important; opacity: 1; transform: none; }
  .pin { transform: rotate(-45deg); }
  html { scroll-behavior: auto; }
}

/* ───────────── Sections ───────────── */

section { position: relative; }

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { font-size: clamp(36px, 5vw, 64px); margin-top: 18px; }
.section-head p { margin: 0; color: var(--text-2); max-width: 30em; }

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Steps: snap, pin, remember */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raise) 100%);
  border: 1px solid var(--line);
  counter-increment: step;
  overflow: hidden;
}
.step::before {
  content: counter(step);
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--text-3);
  margin-bottom: 40px;
}
.step h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 12px;
  font-variation-settings: "SOFT" 100, "opsz" 72;
}
.step h3 em { font-style: italic; color: var(--amber); font-weight: 400; }
.step p { margin: 0; color: var(--text-2); font-size: 16px; }
.step .glyph {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 30px;
  opacity: 0.9;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .step::before { margin-bottom: 24px; }
}

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  grid-column: span 2;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.feature:hover { border-color: #3f3f46; transform: translateY(-3px); }
.feature.wide { grid-column: span 3; }

.feature .tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
}
.feature h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 14px 0 10px;
  font-variation-settings: "SOFT" 100, "opsz" 48;
}
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }
.feature.violet .tag { color: var(--violet); }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.wide { grid-column: span 1; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

/* "What it isn't" — the cozy contract as a menu */

.nots {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.nots h2 { font-size: clamp(38px, 5.4vw, 72px); margin-top: 18px; }

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px dashed #3f3f46;
}
.menu li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  padding: 22px 0;
  border-bottom: 1px dashed #3f3f46;
}
.menu .x {
  grid-row: span 2;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: var(--orange);
  width: 1.1em;
}
.menu b {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: line-through;
  text-decoration-color: rgba(249, 115, 22, 0.7);
  text-decoration-thickness: 2px;
}
.menu span { color: var(--text-2); font-size: 16px; }

@media (max-width: 800px) {
  .nots { grid-template-columns: 1fr; }
}

/* Pledge */

.pledge {
  position: relative;
  border-radius: 32px;
  padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(251, 191, 36, 0.14), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(249, 115, 22, 0.12), transparent 60%),
    var(--bg-raise);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pledge blockquote {
  margin: 20px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.pledge blockquote b { font-style: normal; font-weight: 500; color: var(--amber); }
.pledge p { color: var(--text-2); max-width: 36em; margin: 22px 0 0; }

/* Closing CTA */

.closing {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
  isolation: isolate;
}
.closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 700px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(251, 191, 36, 0.16), transparent 70%);
}
.closing h2 { font-size: clamp(40px, 6.5vw, 88px); }
.closing .lede { margin: 24px auto 36px; }
.closing .store-row { justify-content: center; }

/* ───────────── Footer ───────────── */

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 48px;
  color: var(--text-3);
  font-size: 14px;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot a { text-decoration: none; color: var(--text-2); }
.site-foot a:hover { color: var(--amber); }

/* ───────────── Document pages (privacy, terms, support) ───────────── */

.doc-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
  position: relative;
  isolation: isolate;
}
.doc-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -200px;
  left: -10%;
  width: 700px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(251, 191, 36, 0.12), transparent 70%);
}
.doc-hero h1 { font-size: clamp(42px, 6vw, 76px); margin: 18px 0 18px; }
.doc-hero .meta {
  font-size: 14px;
  color: var(--text-3);
}

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(72px, 10vw, 120px);
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 14px;
}
.toc p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  margin: 0 0 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--text-2);
  text-decoration: none;
}
.toc a:hover { color: var(--amber); border-left-color: var(--amber); }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
}

.prose { max-width: 70ch; }
.prose .summary {
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.prose .summary h2 { margin-top: 0; font-size: 22px; }
.prose .summary ul { margin-bottom: 0; }

.prose h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 56px 0 14px;
  scroll-margin-top: 88px;
  font-variation-settings: "SOFT" 100, "opsz" 72;
}
.prose h3 { font-size: 18px; margin: 30px 0 8px; }
.prose p, .prose li { color: #d4d4d8; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--amber); }
.prose a { color: var(--amber); text-underline-offset: 3px; }
.prose strong { color: var(--text); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 8px;
  font-size: 15px;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}
.prose td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 560px) {
  .prose td:first-child { white-space: normal; }
}

/* Support page */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(251, 191, 36, 0.12), transparent 60%),
    var(--bg-raise);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.contact-card b { font-family: var(--f-display); font-weight: 500; font-size: 24px; }
.contact-card p { margin: 4px 0 0; color: var(--text-2); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 0.9;
  color: var(--amber);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; }
.faq details p { margin: 0 0 10px; }

/* 404 */

.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.lost > div { min-width: 0; max-width: 100%; }
.lost h1 { font-size: clamp(44px, 8vw, 104px); margin: 18px 0; }

/* ───────────── Languages ───────────── */

.site-foot .wrap + .wrap { margin-top: 22px; }

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.langs a {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
}
.langs a:hover { border-color: #3f3f46; color: var(--text); }
.langs a[aria-current="true"] {
  border-color: rgba(251, 191, 36, 0.5);
  color: var(--amber);
}

.translation-notice {
  margin: -8px auto clamp(28px, 4vw, 44px);
  font-size: 14px;
  color: var(--text-3);
}
.translation-notice a { color: var(--amber); }

/* Devanagari: the Latin display/body fonts have no glyphs, so lead with Noto. */
:lang(hi) {
  --f-display: "Noto Serif Devanagari", "Fraunces", Georgia, serif;
  --f-body: "Noto Sans Devanagari", "Hanken Grotesk", sans-serif;
}
:lang(hi) .display { line-height: 1.25; letter-spacing: 0; }
:lang(hi) .display em,
:lang(hi) .eyebrow,
:lang(hi) .step::before,
:lang(hi) .coord { font-style: normal; }
:lang(hi) .eyebrow { font-size: 17px; }

/* Long single words must never overflow on phones. Only German gets automatic
   hyphenation (its compounds are wider than a phone); elsewhere it would split
   ordinary words like "re-membering". */
.display { overflow-wrap: break-word; }
:lang(de) .display {
  -webkit-hyphens: auto;
  hyphens: auto;
}
