/* Generated pages (scripts/build-site.mjs). Tokens, nav, buttons, section type
   and footer are index.html's own rules, copied; keep them in step. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F4EF;
  --cream: #EDE6D6;
  --brown: #6B3F2A;
  --taupe: #A89880;
  --dark: #3a2518;
  --text: #4a3728;
  --light-text: #8a7a6a;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--brown); }

/* NAV (index.html) */
nav.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(247,244,239,0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(168,152,128,0.15);
}
@media (max-width: 480px) { nav.top { padding: 1rem; } }
.nav-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-wordmark .natural { color: var(--brown); }
.nav-wordmark .only { color: var(--taupe); }
.nav-cta {
  background: var(--brown);
  color: var(--bg);
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
.btn-primary {
  background: var(--brown);
  color: var(--bg);
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* SECTION TYPE (index.html) */
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 5vw, 38px);
  color: var(--brown);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}
.section-sub {
  text-align: center;
  color: var(--light-text);
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* PAGE HEAD */
.page-head { max-width: 760px; margin: 0 auto; padding: 3.5rem 1rem 1.5rem; text-align: center; }
.page-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--brown);
  margin-bottom: 1rem;
}
.page-lead { font-size: 17px; color: var(--text); max-width: 600px; margin: 0 auto 1rem; line-height: 1.65; }
.page-lead strong { color: var(--dark); font-weight: 500; }
.brand-blurb { font-size: 15px; color: var(--light-text); max-width: 560px; margin: 0 auto 1rem; }
.disclosure { font-size: 12px; color: var(--taupe); }

main { max-width: 1120px; margin: 0 auto; padding: 0 1rem 3rem; }

/* GRID */
.grid-section { margin-top: 1.5rem; }
.grid-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--brown);
  margin: 2rem 0 1rem;
}
.grid-title span { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--taupe); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; justify-content: center; }
.chip {
  background: var(--cream);
  color: var(--brown);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 7px 16px;
  font: 500 13px 'DM Sans', sans-serif;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--brown); color: var(--bg); }
.grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 16px; }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; } }
.card[hidden] { display: none; }
.card a { display: block; text-decoration: none; color: inherit; }
.card-img { aspect-ratio: 4 / 5; background: var(--cream); border-radius: 12px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.card a:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 10px 2px 0; }
.card-brand { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe); }
.card-name { font-size: 14px; color: var(--dark); line-height: 1.35; margin: 2px 0 4px; }
.card-meta { font-size: 13px; color: var(--text); }
.card-fiber { font-size: 12px; color: var(--light-text); }
.more { text-align: center; font-size: 14px; color: var(--light-text); margin-top: 1.5rem; }

.why { max-width: 600px; margin: 3rem auto 0; }
.why h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 24px; color: var(--brown); margin-bottom: 0.5rem; }
.why p { font-size: 15px; color: var(--text); }

.app-band { background: var(--cream); border-radius: 16px; padding: 2.5rem 1.25rem; text-align: center; margin-top: 3.5rem; }
.related { margin-top: 3rem; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.related a {
  display: inline-block;
  background: white;
  border: 1px solid var(--cream);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
}

/* FOOTER (index.html) */
footer { background: var(--cream); padding: 2rem 1rem; text-align: center; }
.footer-wordmark { font-family: 'DM Serif Display', serif; font-size: 20px; margin-bottom: 0.5rem; }
.footer-wordmark .natural { color: var(--brown); }
.footer-wordmark .only { color: var(--taupe); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--taupe); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--brown); }
.footer-note { font-size: 12px; color: var(--light-text); max-width: 560px; margin: 0 auto 0.75rem; }
.footer-copy { font-size: 12px; color: var(--taupe); opacity: 0.7; }

/* ADS LANDING (/app). Phone-first: headline, count, badge and searches fit one
   phone screen; the fiber grid (index.html's browse rules, copied) sits below. */
.ads-hero {
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.ads-headline {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(32px, 9vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--brown);
  margin-bottom: 1rem;
}
.ads-count { font-size: 17px; color: var(--text); margin-bottom: 1.75rem; }
.ads-badge { display: inline-block; line-height: 0; margin-bottom: 2rem; }
.ads-badge img { width: 180px; height: auto; }
.ads-try { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe); margin-bottom: 0.75rem; }
.ads-searches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ads-search {
  background: var(--cream);
  color: var(--brown);
  border-radius: 22px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.ads-search::before { content: "⌕ "; opacity: 0.7; }
.ads-fibers { max-width: 900px; margin: 1rem auto 0; text-align: center; }
.ads-fibers .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 2rem; }
.browse-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.browse-link {
  background: white;
  border: 1px solid var(--cream);
  color: var(--brown);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.browse-link:hover { border-color: var(--taupe); }
.browse-group { margin-bottom: 1.75rem; }
.browse-fiber { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--brown); text-align: center; margin-bottom: 0.75rem; }
