/* Tenfold — shared foundation
   Tokens, fonts, reset, layout, type, buttons, header/nav, footer, shared components.
   Page-specific styles live in css/<page>.css. */

@font-face {
  font-family: "Departure Mono";
  src: url("../fonts/DepartureMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Skip "©" (U+00A9): Departure Mono's glyph renders broken, so it falls back to the next font */
  unicode-range: U+0000-00A8, U+00AA-FFFF;
}

:root {
  /* Brand colours (Tenfold brand sheet v1.0) */
  --color-ink: #0E0F12;
  --color-graphite: #55575E;
  --color-muted: #8A8C92;
  --color-faint: #A3A4A8;
  --color-line: #DCDCD8;
  --color-concrete-2: #E8E8E5;
  --color-concrete: #F2F2F0;
  --color-white: #FFFFFF;
  --color-orange: #FF5A1F;
  --color-orange-hover: #F04E14;

  /* Dark surfaces */
  --color-ink-2: #16171B;
  --color-ink-3: #1C1D22;
  --color-ink-line: #2A2B31;
  --color-on-ink: #FFFFFF;
  --color-on-ink-muted: rgba(255, 255, 255, 0.64);
  --color-on-ink-faint: rgba(255, 255, 255, 0.44);

  /* Type */
  --font-display: "Funnel Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Departure Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii */
  --radius-xs: 6px;
  --radius-btn: 8px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Elevation (soft, used on floating UI cards over photos/panels) */
  --shadow-card: 0 1px 2px rgba(14, 15, 18, 0.04), 0 8px 24px rgba(14, 15, 18, 0.08);
  --shadow-float: 0 2px 4px rgba(14, 15, 18, 0.05), 0 16px 40px rgba(14, 15, 18, 0.12);

  /* Layout */
  --container: 1280px;
  --gutter: 80px;
  --section-y: 120px;
}

@media (max-width: 1024px) {
  :root { --gutter: 40px; --section-y: 96px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section-y: 72px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--color-ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-btn);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

/* ---------- Type ---------- */
.display {
  font-weight: 500;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.h1 {
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.h2 {
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.035em;
}
.h3 {
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--color-graphite);
}
.body { font-size: 17px; line-height: 1.55; color: var(--color-graphite); }
.small { font-size: 15px; line-height: 1.45; }
.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mono--sm { font-size: 12px; }
.kicker { color: var(--color-graphite); }
.muted { color: var(--color-graphite); }
.text-center { text-align: center; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 22px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 20px;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--color-orange); color: #fff; }
.btn--primary:hover { background: var(--color-orange-hover); }
.btn--ink { background: var(--color-ink); color: #fff; }
.btn--ink:hover { background: #26282E; }
.btn--ghost { background: #fff; color: var(--color-ink); border-color: var(--color-line); }
.btn--ghost:hover { border-color: var(--color-ink); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: var(--color-ink-line); }
.btn--ghost-dark:hover { border-color: rgba(255,255,255,.5); }
.btn--text { background: transparent; color: var(--color-ink); font-weight: 500; }
.btn--text:hover { color: var(--color-graphite); }
.btn--lg { height: 52px; padding-inline: 26px; font-size: 17px; }
.btn--sm { height: 36px; padding-inline: 16px; font-size: 15px; border-radius: var(--radius-btn); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; line-height: 20px; color: var(--color-ink);
}
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--muted { color: var(--color-graphite); }
.link-arrow--muted:hover { color: var(--color-ink); }

/* Pill capture field (Ramp-style) — a link styled as an input, leads to booking */
.pill-field {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 520px; height: 56px;
  padding: 6px 6px 6px 24px;
  background: var(--color-concrete); border: 1px solid var(--color-concrete-2); border-radius: var(--radius-pill);
}
.pill-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 17px; line-height: 24px; color: var(--color-ink);
}
.pill-field input::placeholder { color: var(--color-muted); }
.pill-field .btn { flex-shrink: 0; }
.pill-field:focus-within { border-color: var(--color-line); background: #fff; }
.pill-field--dark { background: var(--color-ink-3); border-color: var(--color-ink-line); }
@media (max-width: 480px) {
  .pill-field { flex-direction: column; align-items: stretch; height: auto; padding: 6px; border-radius: 20px; }
  .pill-field input { padding: 12px 14px; }
  .pill-field .btn { width: 100%; }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 5px; }
.logo svg { width: 24px; height: 24px; flex-shrink: 0; }
.logo__word {
  font-size: 22px; font-weight: 700; line-height: 24px; letter-spacing: -0.045em; color: var(--color-ink);
}
.logo--light .logo__word { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 63px; /* + 1px border = 64px, as designed */
}
.site-header .logo { padding-block: 10px; } /* 44px tap target */
.site-header__left { display: flex; align-items: center; gap: 44px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; line-height: 20px; color: var(--color-ink); }
.nav a:hover { color: var(--color-graphite); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__meta { color: var(--color-graphite); display: inline-flex; align-items: center; gap: 8px; }

/* Mobile nav: CSS-only disclosure */
.nav-toggle { display: none; }
.nav-toggle summary {
  list-style: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-btn); border: 1px solid var(--color-line); cursor: pointer;
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle__panel {
  position: absolute; left: 0; right: 0; top: 64px;
  background: #fff; border-bottom: 1px solid var(--color-line);
  padding: 12px var(--gutter) 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-toggle__panel a { padding: 12px 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--color-concrete-2); }
.nav-toggle__panel .btn { margin-top: 16px; }

@media (max-width: 960px) {
  .nav, .site-header__actions .btn--text { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .site-header__actions .btn--primary { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: #fff; padding-block: 80px 40px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__tagline { color: #A3A5AB; font-size: 16px; line-height: 24px; }
.site-footer__cols { display: flex; gap: 96px; flex-wrap: wrap; }
.site-footer__col { display: flex; flex-direction: column; gap: 14px; min-width: 120px; }
.site-footer__col h3 { color: var(--color-muted); padding-bottom: 6px; font-weight: 400; }
.site-footer__col a { font-size: 15px; line-height: 20px; color: #fff; }
.site-footer__col a:hover { color: rgba(255,255,255,.7); }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 96px; padding-top: 24px; border-top: 1px solid #2A2B30; color: var(--color-muted);
}
.site-footer--compact { padding-block: 40px; }
.site-footer--compact .site-footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; align-items: center; }
@media (max-width: 640px) {
  .site-footer__cols { gap: 40px; }
  .site-footer__bottom { margin-top: 56px; }
}

/* ---------- Shared components ---------- */

/* Concrete panel with faint dot grid (Ramp-style product panel) */
.panel {
  position: relative;
  background-color: var(--color-concrete);
  background-image: radial-gradient(rgba(14, 15, 18, 0.13) 1px, transparent 1.2px);
  background-size: 20px 20px;
  background-position: 10px 10px;
  border-radius: var(--radius-md);
}
.panel--plain { background-image: none; }
.panel--dark {
  background-color: var(--color-ink-2);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.2px);
  border: 1px solid var(--color-ink-line);
}

/* Figure caption row under/inside panels */
.fig-caption {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--color-graphite);
}

/* White floating card with hairline */
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

/* Mono tag / chip */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding-inline: 8px;
  border: 1px solid var(--color-line); border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-ink); background: #fff; white-space: nowrap;
}
.tag--ink { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.tag--concrete { background: var(--color-concrete); border-color: var(--color-concrete); color: var(--color-graphite); }

/* Avatar */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--color-concrete-2);
}
.avatar--initials {
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--color-graphite);
}

/* Photo frame */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--color-concrete-2);
}
.photo > img { width: 100%; height: 100%; object-fit: cover; }

/* Hairline list rows */
.rule { border: 0; border-top: 1px solid var(--color-line); margin: 0; }

/* FAQ (native disclosure) */
.faq { border-top: 1px solid var(--color-line); }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-size: 19px; font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--color-line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%230E0F12' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 56px 24px 0; color: var(--color-graphite); max-width: 720px; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
