/* ── site.css — shared across all HUGE pages ───────────────────────── */
/* Type is the brand's Inter system (see huge_demo/typographybible + 
   assets/huge-typography.js): run light and tight, with ACTIVE kerning on
   everywhere. Values below mirror HugeType.SCALE (base 16px):
     display 3.25em w200 lh1.02 ls-3.5 · title 2.25em w300 lh1.10 ls-2.0
     header 1.40em w400 lh1.25 ls-0.5 · body 16px w300 lh1.55 ls-0.2
     small 14px w300 lh1.50 ls-0.1 · micro 12px w400 lh1.40 ls+1.0 upper
   The big logo stays Host Grotesk (its outline glyphs are drawn for it). */
:root {
  --bg: #f5f0e8;
  --ink: #1a1814;
  --border: rgba(26,24,20,0.12);
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Google Sans Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Shared gutter insets for the left (menu) and right (scroll) arrow columns */
  --gutter-inset: 24px;   /* horizontal distance from viewport edge */
  --gutter-vpad: 18px;    /* vertical padding top/bottom */
  /* Arrow glyph size: grows with left-right space, clamped min..max */
  --arrow-size: clamp(18px, 2.4vw, 34px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; min-height: 100%;
  background: var(--bg);
  color: #000;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-y: auto;
}

@media (max-width: 600px) {
  html, body { font-size: 24px; }
}

/* ── Layout: content centered in full viewport, nav floats over it ── */
.page-layout {
  position: fixed; inset: 0;
}
.page-main {
  position: absolute; inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.page-main::-webkit-scrollbar { display: none; }

/* ── Collapsible nav: a ↘ arrow in the top-right corner opens the menu.
     Desktop: hover the arrow (or the menu) to reveal. Mobile: tap to toggle. ── */
.nav-zone {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  /* Invisible hit area covering the corner + the whole menu panel, so
     hovering anywhere over the open menu keeps it revealed. */
  width: 320px;
  min-height: 420px;
  padding: var(--gutter-vpad) var(--gutter-inset);
}

/* The ↘ toggle (Inter south-east arrow glyph) */
.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #000;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.nav-toggle svg { width: var(--arrow-size); height: var(--arrow-size); display: block; }
.nav-toggle:hover { opacity: 1; }
.nav-zone.open .nav-toggle { opacity: 1; }

/* The menu — a corner-anchored panel that blurs what's behind it.
   Extends from the upper-left corner (no floating rectangle). */
.nav {
  position: fixed;
  top: 0; left: 0;
  min-width: 240px;
  padding: calc(var(--gutter-vpad) + var(--arrow-size)) calc(var(--gutter-inset) + 8px) 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: transparent;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}
/* Desktop: reveal on hovering the zone (arrow OR menu) */
@media (hover: hover) and (pointer: fine) {
  .nav-zone:hover .nav { opacity: 1; visibility: visible; transform: translateY(0); }
}
/* Mobile / explicit open state */
.nav-zone.open .nav { opacity: 1; visibility: visible; transform: translateY(0); }

/* Nav emoji (hidden in wide mode, shown in medium) */
.nav-emoji { display: none; }

/* ── Nav links ────────────────────────────────────────────────────── */
.nav-link {
  font-family: var(--sans);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #000;
  opacity: 0.5;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.nav-link:hover { text-decoration-thickness: 2px; }
/* the current page: full opacity, drift animation */
.nav-link.active { opacity: 1; font-weight: 300; }
.nav-link.active .nav-chip {
  display: inline-block;
  will-change: transform;
  color: #000;
}

/* ── Responsive nav tweaks ─────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Narrow: both gutters hug the edges a bit tighter */
  :root { --gutter-inset: 12px; --gutter-vpad: 12px; }
  .nav { left: var(--gutter-inset); }
}

/* ── Text content (ethos / employment / signup / contact) ─────────── */
.page-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100%;
}
.text-content, .page-content {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Mobile: tighten padding so there's more room for reading */
@media (max-width: 600px) {
  .text-content {
    padding: 28px 20px;
  }
}
.text-content h1 {
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #000;
  margin-bottom: 32px;
}
/* Main body text */
.text-content p {
  font-family: var(--sans);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #000;
  margin-bottom: 22px;
}
.text-content ul { list-style: none; padding: 0; }
.text-content li {
  font-family: var(--sans);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #000;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.text-content li:last-child { border-bottom: none; }
.text-content li strong { font-weight: 600; opacity: 1; }

/* Ethos reads as a letter */
#ethos-content a { color: rgba(26,24,20,0.85); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#ethos-content a:hover { color: #1a1814; }
#ethos-content .sig { margin-top: 22px; font-weight: 600; color: rgba(26,24,20,0.9); }
#ethos-content .sig-cred { font-weight: 400; font-size: 13px; color: rgba(26,24,20,0.55); }

/* ── Articles page ─────────────────────────────────────────────── */
.text-content .lede {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.7;
  margin-bottom: 24px;
}
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-list .empty-state {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.5;
}
.article-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.article-card:last-child { border-bottom: none; }
.article-card h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.article-card .article-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  opacity: 0.5;
  margin-bottom: 8px;
}
.article-card p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.8;
}

/* ── Signup / contact form ────────────────────────────────────────── */
.text-content form { max-width: 560px; width: 100%; margin-top: 8px; }
.text-content form h2 {
  font-family: var(--sans);
  font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; /* micro scale */
  margin: 26px 0 10px; color: rgba(26,24,20,0.5);
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.text-content form h2:first-child { margin-top: 4px; }
.text-content form label { display:block; font-family: var(--sans); font-size: 13.5px; color: rgba(26,24,20,0.72); margin: 12px 0 5px; }
.text-content form .req { color: #ff4d2e; }
.text-content form input[type=text], .text-content form input[type=email],
.text-content form input[type=url], .text-content form textarea {
  width: 100%; box-sizing: border-box; font-family: var(--sans); font-size: 14px;
  padding: 9px 11px; border: 1px solid rgba(26,24,20,0.22); border-radius: 8px;
  background: rgba(255,255,255,0.55); color: var(--ink); transition: border-color .15s ease, background .15s ease;
}
.text-content form input:focus, .text-content form textarea:focus {
  outline: none; border-color: rgba(26,24,20,0.5); background: #fff;
}
.text-content form textarea { resize: vertical; min-height: 64px; }
.text-content form .optgroup { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0; }
.text-content form .optgroup.cols { gap: 6px 16px; }
.text-content form .opt { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: rgba(26,24,20,0.8); cursor: pointer; margin: 0; }
.text-content form .opt input { accent-color: #2f7cf6; width: 15px; height: 15px; }
.text-content form .hint { font-size: 12px; color: rgba(26,24,20,0.45); margin: 2px 0 8px; font-style: italic; }
.text-content form .cond { padding-left: 4px; border-left: 2px solid rgba(26,24,20,0.1); margin-left: 2px; }
.text-content form button[type=submit] {
  margin-top: 36px; font: inherit; padding: 0; border: none;
  background: none; color: #000; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: opacity 0.15s;
}
.text-content form button[type=submit]:hover { text-decoration-thickness: 2px; }
.text-content form .form-status { margin-top: 14px; font-size: 13.5px; min-height: 18px; }
.text-content form .form-status.ok { color: #1fbf7f; }
.text-content form .form-status.err { color: #ff4d2e; }

/* ── Corner logo (small drifting HUGE in upper-left of inner pages) ─── */
.corner-logo {
  position: fixed;
  top: 18px; left: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: baseline;
  font-family: 'Host Grotesk', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: #1a1814;
  pointer-events: none;   /* decorative, doesn't block clicks */
}
.corner-logo .cl {
  display: inline-block;
  will-change: transform;
  transform: translateZ(0);
}
.corner-logo .lt-g { transform-origin: 50% 55%; }

/* ── Coming Soon nav link (hover swaps label, unclickable) ─────────── */
.nav-link.coming-soon {
  opacity: 0.5;
  cursor: not-allowed;
}
.nav-link.coming-soon .cs-tooltip { display: none; }
.nav-link.coming-soon:hover .nav-label { display: none; }
.nav-link.coming-soon:hover .cs-tooltip { display: inline; }
