/* Ayenda subpages: the homepage's look (tokens, top bar, headings, buttons, cards).
   The homepage keeps its own copy inline in index.html; change both together.
   .htaccess caches CSS for a month: bump the ?v= in each page when this file changes. */
:root {
  --bg: #0e120f;
  --panel: #172718;
  --surface-2: #1d2e1e;
  --surface-3: #243527;
  --rule: #243527;
  --line: #516655;
  --line-soft: #47594a;
  --ink: #dcdbd7;
  --ink-2: #c8cdc4;
  --soft: #b0b8ae;
  --faint: #8a9689;
  --gold: #bba318;
  --green: #1d2e1e;
  --font: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 8px;
  --pill: 999px;
  --lift: -2px;
}
@media (prefers-reduced-motion: reduce) { :root { --lift: 0px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-block: 96px; scrollbar-color: var(--line-soft) var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 200; padding: 12px 20px; border-radius: var(--pill); background: var(--gold); color: var(--bg); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; transition: top .2s; }
.skip:focus { top: 12px; color: var(--bg); }
.wrap { width: 100%; max-width: 940px; margin-inline: auto; padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right)); }

/* ---------- top bar: the homepage's pill ---------- */
.topbar { position: fixed; z-index: 60; top: 16px; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); max-width: 1180px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: var(--pill); background: rgb(23 39 24 / .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 8px 24px rgb(0 0 0 / .5); }
.topbar .brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.topbar .brand img { width: auto; height: 22px; }
.toplinks { display: flex; gap: 2px; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.toplinks::-webkit-scrollbar { display: none; }
.toplinks a { flex: none; padding: 10px 13px; border-radius: var(--pill); font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: color .4s var(--ease), background-color .4s var(--ease); }
.toplinks a:hover, .toplinks a[aria-current] { color: var(--ink); background: var(--surface-2); }
.toplinks a[aria-current] { color: var(--gold); }
.topcta { flex: none; }
@media (max-width: 759px) {
  .topbar { padding: 6px 6px 6px 16px; gap: 6px; }
  .topbar .brand img { height: 20px; }
  .toplinks { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .toplinks a { padding: 10px 10px; font-size: 13px; }
  .topbar .topcta { display: none; }
}

/* ---------- page head: the photo darkened only behind the words ---------- */
header.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(62vh, 500px); min-height: min(62svh, 500px); overflow: hidden; }
header.hero picture, header.hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
header.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: -1; background: linear-gradient(rgb(14 18 15 / .6), rgb(14 18 15 / 0)); }
header.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, var(--bg) 0%, rgb(14 18 15 / .9) 40%, rgb(14 18 15 / .84) 70%, rgb(14 18 15 / .3) 92%, rgb(14 18 15 / 0) 100%); }
header.hero .wrap { padding-top: 112px; padding-bottom: 40px; }
h1 { margin: 0 0 16px; font-size: clamp(34px, 6.4vw, 64px); font-weight: 800; line-height: .98; letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.lede { margin: 0; max-width: 52ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* ---------- reading ---------- */
main { padding: clamp(56px, 7vw, 88px) 0 0; }
h2 { margin: 64px 0 16px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
h2:first-child { margin-top: 0; }
h3 { margin: 32px 0 8px; font-size: clamp(18px, 1.7vw, 20px); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 18px; color: var(--soft); max-width: 62ch; text-wrap: pretty; }
li, dd { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 700; }
main p a:not(.btn), main dd a, main td a, main figcaption a, main li a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgb(187 163 24 / .6); }
main picture { display: block; margin: 24px 0 32px; }
main picture img { width: 100%; border-radius: var(--radius); }
figure { margin: 32px 0; }
figure img { width: 100%; border-radius: var(--radius); }
figcaption { margin-top: 9px; font-size: 14px; color: var(--faint); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--rule); font-size: 16px; }
th { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); }
td.price { color: var(--ink); font-weight: 700; white-space: nowrap; }
td.macro { font: 13px/1.4 var(--mono); color: var(--faint); white-space: nowrap; }
td.day { color: var(--ink); font-weight: 700; white-space: nowrap; }
table td:nth-child(2) { white-space: nowrap; }
.tw { overflow-x: auto; }
/* phones: each row becomes a stacked block, so no column sits off-screen */
@media (max-width: 600px) {
  .tw table, .tw tbody, .tw tr, .tw td { display: block; }
  .tw thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tw tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .tw td { padding: 0; border: 0; white-space: normal; }
  .tw td:nth-child(2) { text-align: right; white-space: nowrap; }
  .tw td:nth-child(n+3) { grid-column: 1 / -1; font-size: 15px; color: var(--soft); }
}

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; margin: 8px 0 30px; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--rule); }
.facts div { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--panel); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---------- buttons: the homepage's ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 30px; border: 1px solid transparent; border-radius: var(--pill); background: var(--gold); color: var(--bg); font-size: 14px; font-weight: 700; line-height: 1.15; text-align: center; text-transform: uppercase; letter-spacing: 1.6px; transition: transform .6s var(--ease), background-color .4s ease, border-color .4s ease, color .4s ease, box-shadow .6s ease; }
.btn.ghost { background: transparent; border-color: var(--faint); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 12px; }
@media (hover: hover) {
  .btn:hover { background: var(--ink); color: var(--bg); transform: translateY(var(--lift)); box-shadow: 0 12px 28px rgb(0 0 0 / .5); }
  .btn.ghost:hover { background: rgb(255 255 255 / .07); border-color: var(--ink); color: var(--ink); box-shadow: none; }
}
.btn:active { transform: scale(.98); }
@media (max-width: 599px) { .cta .btn { flex: 1 1 100%; } }

/* ---------- more pages ---------- */
.more { margin: 72px 0 0; padding: 28px 0 0; border-top: 1px solid var(--rule); }
.more h2 { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--soft); }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.more a { display: block; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 8px 8px rgb(0 0 0 / .3); font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; transition: background-color .4s var(--ease); }
.more a:hover { background: var(--surface-3); color: var(--ink); }
.more span { display: block; margin-top: 3px; font-weight: 400; font-size: 14px; color: var(--soft); }

/* ---------- footer: the homepage's ---------- */
.footer { margin-top: clamp(80px, 10vw, 120px); padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-end; padding-top: 40px; border-top: 1px solid var(--line-soft); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { width: auto; height: 34px; }
.footer-place { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-block; padding-block: 4px; font-size: 14px; color: var(--soft); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin: 28px 0 0; font-size: 12px; color: var(--faint); max-width: none; }

/* ---------- phone directions bar, always there on phones ---------- */
.mobile-bar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--rule); background: rgb(14 18 15 / .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.mobile-bar .btn { flex: 1; min-height: 48px; font-size: 13px; letter-spacing: 1.4px; }
@media (min-width: 760px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
