/* ============================================================
   NoodleWatt LLC — site.css
   Palette: ink #0F172A · bg #FAFAF7 · amber #B45309 (#FBBF24 on dark)
   Type: Inter (self-hosted, /fonts) with system grotesque fallback
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --body: #334155;
  --soft: #475569;
  --muted: #64748B;
  --line: #E9E6DC;
  --line-soft: #EEEBE1;
  --dash: #CFC9BA;
  --amber: #B45309;
  --amber-deep: #92400E;
  --amber-bright: #FBBF24;
  --amber-tint: #F7EDDD;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: #F3E3C3; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

main { flex: 1 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 22px 0;
}
.brand:hover { color: var(--body); }
.brand-regular { font-weight: 500; }
.brand-bold { font-weight: 700; }
.brand-dot { color: var(--amber); font-weight: 700; }
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(18px, 3.5vw, 34px);
}
.nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  padding: 22px 0;
}
.nav a:hover { color: var(--amber); }
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--amber);
}

/* ---------- Type ---------- */
.display {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.page-title {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.accent-dot { color: var(--amber); }
h2.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.rule {
  width: 28px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin-bottom: 18px;
}
.lede {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--soft);
  max-width: 50ch;
}
.measure {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--body);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--amber);
  color: #FFFFFF;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { background: var(--amber-deep); }
.btn:focus-visible { outline: 3px solid rgba(180, 83, 9, 0.35); outline-offset: 2px; }

/* ---------- Home ---------- */
.hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 72px);
  padding-block: clamp(56px, 9vw, 110px) clamp(60px, 8vw, 100px);
}
.hero-copy {
  flex: 1.2 1 min(340px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
.hero-copy .btn { margin-top: 8px; }
.hero-art { flex: 1 1 min(280px, 100%); max-width: 520px; min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }

.section { padding-block: 0 clamp(64px, 9vw, 110px); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 18px;
  margin-top: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 28px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--soft);
}
.band {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.band .container { padding-block: clamp(56px, 8vw, 96px); }

/* ---------- Interior pages ---------- */
.page { padding-block: clamp(52px, 8vw, 96px) clamp(64px, 9vw, 110px); }
.prose {
  margin-top: 32px;
  max-width: 66ch;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.prose p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--body); }

.facts {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.fact dt {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact dd { margin: 8px 0 0; font-size: 17px; font-weight: 600; }

/* ---------- Ventures ---------- */
.intro {
  margin: 20px 0 0;
  max-width: 58ch;
  font-size: clamp(16.5px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--soft);
}
.venture-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.v-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 196px;
}
.v-card--placeholder { border: 1px dashed var(--dash); }
.v-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: -0.02em;
}
.v-logo--ghost {
  background: transparent;
  border: 1.5px dashed var(--dash);
}
.v-logo--ghost::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D97706;
}
.tag {
  display: inline-block;
  background: var(--amber-tint);
  color: var(--amber-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.v-name { margin: 0; font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; }
.v-desc { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--soft); }
.v-link { margin-top: auto; color: var(--amber); font-size: 15px; font-weight: 600; text-decoration: none; }
.v-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  max-width: 880px;
}
.c-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 28px 30px;
}
.c-card + .c-card-wide, .c-card-wide { margin-top: 0; }
.c-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.email-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--amber);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.email-link:hover { color: var(--amber-deep); }
.note { margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.address { margin: 14px 0 0; font-style: normal; font-size: 16px; line-height: 1.7; color: var(--body); }

/* ---------- Legal documents ---------- */
.doc {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 88px) var(--pad) clamp(64px, 9vw, 110px);
}
.doc-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.doc-date { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.doc-rule { margin: 32px 0 36px; border: none; border-top: 1px solid var(--line); }
.placeholder-panel {
  border: 1px dashed var(--dash);
  background: var(--surface);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
}
.placeholder-panel .mono {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--amber-deep);
}
.placeholder-panel .hint { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* Styles applied to the pasted document */
.doc-body { font-size: 17px; line-height: 1.75; color: var(--body); }
.doc-body h2 {
  margin: 40px 0 0;
  font-size: 23px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.doc-body h3 {
  margin: 28px 0 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}
.doc-body p, .doc-body ul, .doc-body ol { margin: 14px 0 0; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.doc-body a:hover { color: var(--amber-deep); }
.doc-body blockquote {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--amber-tint);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.doc-body blockquote p { margin: 0; }
.doc-body blockquote strong { color: var(--amber-deep); font-weight: 650; }
.specimen { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.specimen-label {
  margin: 0 0 24px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
}
.specimen .doc-body h2 { margin-top: 0; }

/* ---------- 404 ---------- */
.error-main { display: flex; align-items: center; justify-content: center; }
.error-box {
  max-width: 560px;
  padding: clamp(64px, 12vw, 140px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.mark-tile {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.mark-tile .n { color: var(--bg); }
.mark-tile .w { color: #F59E0B; }
.error-box p { margin: 0; font-size: 16.5px; color: var(--soft); }
.error-box .btn { margin-top: 8px; padding: 12px 24px; font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #CBD5E1;
  margin-top: auto;
}
.footer-inner {
  padding-block: clamp(44px, 6vw, 64px) clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px 48px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1E293B;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.footer-tile .n { color: #F8FAFC; }
.footer-tile .w { color: var(--amber-bright); }
.footer-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: #F8FAFC;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.footer-wordmark .brand-dot { color: var(--amber-bright); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-nav a { color: #E2E8F0; font-size: 14.5px; text-decoration: none; }
.footer-nav a:hover {
  color: var(--amber-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-nav a:focus-visible { outline-color: var(--amber-bright); }
.footer-legal {
  border-top: 1px solid #1E2A3F;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 32px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #94A3B8;
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .brand, .nav a { padding-block: 18px; }
  .footer-legal { flex-direction: column; }
}

/* ---------- Hero animation (pure CSS) ---------- */
@keyframes nwUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes nwFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nwDraw { to { stroke-dashoffset: 0; } }
@keyframes nwPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes nwFlow { to { stroke-dashoffset: -288; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
