@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: optional;
  src: url(/static/fonts/SourceSerif4-Roman-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: optional;
  src: url(/static/fonts/SourceSerif4-Roman-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: optional;
  src: url(/static/fonts/SourceSerif4-Italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: optional;
  src: url(/static/fonts/SourceSerif4-Italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --bg: #F2EDE4;
  --fg: #2B2B2B;
  --deep: #1A1A1A;
  --muted: #645C55;
  --structural: #D4CFC9;
  --surface: #F2EDE4;
  --bronze: #6E5A3C;
  --sage: #5A6E5A;
  --scarlet: #8B3A3A;
  --input-bg: #F8F4ED;
  --serif: 'Source Serif 4', Georgia, 'Noto Serif', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.7;
}

/* Nav */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(242,237,228,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--structural);
  padding: 0 48px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
nav .logo {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--deep); font-weight: 700; text-decoration: none;
}
nav .nav-links { display: flex; align-items: center; gap: 36px; }
nav .nav-links a {
  font-family: var(--sans);
  font-size: 13px; color: var(--muted); text-decoration: none;
  font-weight: 500; transition: color 0.2s;
}
nav .nav-links a:hover { color: var(--bronze); }

/* Page / hero layout */
.page, .hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.page-hero {
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: 60px;
}

/* Organic decorative shape */
.organic-shape {
  position: absolute;
  width: 420px;
  height: 340px;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  background: var(--structural);
  opacity: 0.4;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Content block (simple pages) */
.content {
  text-align: center; z-index: 2; padding: 40px;
  max-width: 640px;
}
.content h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15; margin-bottom: 28px;
}
.content .lead {
  font-size: 17px; color: var(--fg);
  line-height: 1.7; margin-bottom: 48px;
}

/* Hero content (mission/legal pages) */
.hero-content {
  text-align: center; z-index: 2; padding: 80px 40px 40px;
  max-width: 680px;
}
.hero-content .eyebrow {
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 32px; font-weight: 600;
}
.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 700;
  line-height: 1.1; margin-bottom: 28px;
}
.hero-content .lead {
  font-size: 17px; color: var(--fg);
  line-height: 1.7;
}

/* Back link arrow */
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: var(--fg); text-decoration: none;
  margin-top: 48px;
  transition: gap 0.3s;
}
.back-link:hover { gap: 14px; }
.back-link .arrow-line {
  width: 24px; height: 1px; background: var(--fg);
  position: relative; transition: width 0.3s;
}
.back-link .arrow-line::after {
  content: ''; position: absolute; left: -1px; top: -4px;
  width: 8px; height: 8px;
  border-left: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg);
  transform: rotate(45deg);
}

/* Sections */
.section-divider {
  max-width: 1000px; margin: 0 auto;
  border: none; border-top: 1px solid var(--structural);
}
.section {
  max-width: 1000px; margin: 0 auto;
  padding: 100px 48px;
}
.section-label {
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2; margin-bottom: 56px;
  max-width: 600px;
  color: var(--fg);
}
.section h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2; margin-bottom: 24px;
  color: var(--fg);
}
.section p {
  font-size: 17px; color: var(--fg);
  line-height: 1.7; margin-bottom: 16px;
  max-width: 600px;
}

/* Prose */
.prose p {
  font-size: 17px; color: var(--fg);
  line-height: 1.7; margin-bottom: 20px;
  max-width: 640px;
}
.prose a {
  color: var(--bronze); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--structural);
  transition: text-decoration-color 0.2s;
}
.prose a:hover { text-decoration-color: var(--bronze); }

/* Footer */
footer {
  max-width: 1000px; margin: 0 auto;
  padding: 64px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
footer .footer-col .col-title {
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; font-weight: 600;
}
footer .footer-col a {
  display: block; font-size: 15px; color: var(--fg);
  text-decoration: none; margin-bottom: 12px;
  transition: color 0.2s; font-weight: 400;
}
footer .footer-col a:hover { color: var(--deep); }

/* Shared button base */
.signup-form button, .unsub-form button {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bg); background: var(--deep);
  border: none; cursor: pointer; transition: background 0.2s;
}
.signup-form button:hover, .unsub-form button:hover { background: var(--fg); }

/* Landing page: hero */
.hero .content { text-align: center; z-index: 2; padding: 40px; }
.hero .eyebrow {
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 56px; font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.1; margin-bottom: 36px;
  color: var(--fg);
}
.hero .sub {
  font-size: 17px; color: var(--fg);
  max-width: 480px; margin: 0 auto 48px;
  line-height: 1.7; font-weight: 400;
}
.hero h1 em { font-style: italic; }
.signup-wrap { max-width: 460px; margin: 0 auto; }
.signup-form { display: flex; gap: 12px; }
.signup-form input[type="email"] {
  flex: 1; padding: 16px 20px;
  font-family: var(--sans); font-size: 15px;
  color: var(--fg); background: var(--input-bg);
  border: 1px solid var(--structural);
  outline: none; transition: border-color 0.2s;
}
.signup-form input::placeholder { color: var(--muted); }
.signup-form input:focus { border-color: var(--fg); }
.signup-form button { padding: 16px 40px; white-space: nowrap; }
.signup-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.status-msg { text-align: center; margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.status-msg.success { color: var(--sage); }
.status-msg.error { color: var(--scarlet); }
.signup-note {
  text-align: center; margin-top: 16px;
  font-size: 14px; color: var(--muted);
  line-height: 1.6;
}
.signup-done {
  display: none;
  font-family: var(--serif);
  font-size: 17px; color: var(--sage);
  line-height: 1.7;
}
.signed-up .signup-form,
.signed-up .status-msg,
.signed-up .signup-note { display: none; }
.signed-up .signup-done { display: block; }

/* Learn more link */
.learn-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  margin-top: 20px; transition: color 0.2s, gap 0.2s;
}
.learn-more:hover { color: var(--bronze); gap: 12px; }
.learn-more .arr {
  width: 12px; height: 1px; background: currentColor;
  position: relative; transition: width 0.2s;
}
.learn-more .arr::after {
  content: ''; position: absolute; right: -1px; top: -3px;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* Landing page: feature cards */
.feature-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--structural);
  border: 1px solid var(--structural);
}
.feature-card {
  background: var(--surface); padding: 44px;
}
.feature-card h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  margin-bottom: 14px;
  color: var(--fg);
}
.feature-card p {
  font-size: 17px; color: var(--fg);
  line-height: 1.7;
}
@media (min-width: 700px) {
  .feature-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .feature-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

/* Landing page: device section */
.device-section {
  max-width: 1000px; margin: 0 auto;
  padding: 100px 48px;
  display: flex; align-items: center; gap: 80px;
}
.device-text { flex: 1; }
.device-text .section-label { margin-bottom: 20px; }
.device-text h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2; margin-bottom: 24px;
  color: var(--fg);
}
.device-text p {
  font-size: 17px; color: var(--fg);
  line-height: 1.7; margin-bottom: 16px;
  max-width: 440px;
}
.device-shape {
  flex: 0 0 240px;
  height: 280px;
  border-radius: 47% 53% 42% 58% / 52% 44% 56% 48%;
  background: var(--structural);
  opacity: 0.35;
  filter: blur(40px);
}

/* Landing page: intel items */
.intel-items {
  display: grid; grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 700px) {
  .intel-items { grid-template-columns: 1fr 1fr 1fr; }
}
.intel-item .item-title {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  margin-bottom: 12px; color: var(--fg);
}
.intel-item p {
  font-size: 17px; color: var(--fg);
  line-height: 1.7;
}

/* Mission page */
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--structural);
  border: 1px solid var(--structural);
  margin-top: 40px;
}
.value-card {
  background: var(--surface); padding: 40px;
}
.value-card h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  margin-bottom: 12px; color: var(--fg);
}
.value-card p {
  font-size: 17px; color: var(--fg);
  line-height: 1.7; margin-bottom: 0;
}
.cta-links {
  display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap;
}
.cta-links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: var(--fg); text-decoration: none;
  transition: gap 0.2s;
}
.cta-links a:hover { gap: 12px; }
.cta-links a .arr {
  width: 16px; height: 1px; background: var(--fg);
  position: relative;
}
.cta-links a .arr::after {
  content: ''; position: absolute; right: -1px; top: -3px;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--fg); border-top: 1.5px solid var(--fg);
  transform: rotate(45deg);
}
.contact-grid {
  display: flex; gap: 32px; flex-wrap: wrap; margin-top: 24px;
}
.contact-grid a {
  font-size: 15px; color: var(--fg);
  text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}
.contact-grid a:hover { color: var(--deep); }

/* Legal page */
.section h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  margin-top: 32px; margin-bottom: 12px;
  color: var(--fg);
}
.section ul {
  list-style: none; padding: 0; margin-bottom: 16px;
  max-width: 700px;
}
.section ul li {
  font-size: 17px; color: var(--fg);
  line-height: 1.7; padding-left: 20px;
  position: relative; margin-bottom: 8px;
}
.section ul li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 6px; height: 1px;
  background: var(--muted);
}
.section a {
  color: var(--bronze); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--structural);
  transition: text-decoration-color 0.2s;
}
.section a:hover { text-decoration-color: var(--bronze); }

/* Thank you page */
.oss-section {
  text-align: left;
  border-top: 1px solid var(--structural);
  padding-top: 40px;
}
.oss-section .label {
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.oss-section p {
  font-size: 17px; color: var(--fg);
  line-height: 1.7; margin-bottom: 24px;
}
.oss-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
}
.oss-grid a {
  font-family: var(--sans);
  font-size: 13px; color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.oss-grid a:hover { color: var(--fg); }
.oss-grid .role {
  font-family: var(--sans);
  font-size: 12px; color: var(--structural);
  margin-left: 4px;
}

/* Unsubscribe page */
.unsub-form button { padding: 16px 48px; }

/* Mobile */
@media (max-width: 768px) {
  .content { padding: 40px 28px; }
  .section { padding: 72px 28px; }
  .hero-content { padding: 60px 20px 32px; }
  .organic-shape { width: 280px; height: 220px; }
  nav { padding: 0 24px; }
  nav .nav-links { gap: 20px; }
  footer { padding: 48px 28px 64px; grid-template-columns: 1fr; }
  .signup-form { flex-direction: column; }
  .device-section { flex-direction: column; padding: 72px 28px; gap: 48px; text-align: center; }
  .device-text p { max-width: 100%; }
  .device-shape { flex: none; width: 200px; height: 200px; }
  .oss-grid { grid-template-columns: 1fr; }
}

/* Mission/legal mobile overrides */
@media (max-width: 768px) {
  .page-hero ~ .section { padding: 48px 20px; }
  .page-hero ~ .section h2 { font-size: 22px; }
  .page-hero ~ .section h3 { font-size: 20px; }
  .page-hero ~ footer { padding: 40px 20px 56px; grid-template-columns: 1fr; gap: 32px; }
  .value-card { padding: 28px 20px; }
  .values-grid { grid-template-columns: 1fr; }
  .cta-links { gap: 24px; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1E1E;
    --fg: #F2EDE4;
    --deep: #F2EDE4;
    --muted: #9B9590;
    --structural: #3D3D3D;
    --surface: #2D2D2D;
    --bronze: #A8906A;
    --sage: #7F9B7F;
    --scarlet: #C47272;
    --input-bg: #262626;
  }
  nav { background: rgba(30,30,30,0.92); }
  .signup-form input[type="email"] { background: var(--input-bg); border-color: var(--structural); color: var(--fg); }
  .signup-form input::placeholder { color: var(--muted); }
  .signup-form button, .unsub-form button { color: #1E1E1E; background: #F2EDE4; }
  .signup-form button:hover, .unsub-form button:hover { background: #D4CFC9; }
}
