*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #181d26;
  --primary-active: #0d1218;
  --canvas: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e0e2e6;
  --surface-dark: #181d26;
  --surface-dark-elevated: #1d1f25;
  --hairline: #dddddd;
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --on-primary: #ffffff;
  --link: #1b61c9;
  --link-active: #1a3866;
  --sig-coral: #aa2d00;
  --sig-forest: #0a2e0e;
  --sig-cream: #f5e9d4;
  --sig-peach: #fcab79;
  --sig-mint: #a8d8c4;
  --sig-yellow: #f4d35e;
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-lg: 12px;
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 96px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--body);
  background: var(--canvas);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-active); }

img { display: block; max-width: 100%; height: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-xxl); }

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-logo span { color: var(--sig-coral); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover { color: var(--link); }

.nav-cta {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--rounded-lg);
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--primary-active); color: var(--on-primary); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-xs);
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: opacity 0.2s;
}

/* HERO */
.hero {
  padding: var(--sp-section) 0;
  background: var(--canvas);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-lg);
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  max-width: 560px;
}

.hero-actions { display: flex; gap: var(--sp-md); align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-active); }

.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 15px 23px;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--muted); color: var(--ink); }

/* SECTION RHYTHM */
.section { padding: var(--sp-section) 0; }
.section--soft { background: var(--surface-soft); }
.section--strong { background: var(--surface-strong); }
.section--coral { background: var(--sig-coral); color: var(--on-primary); }
.section--forest { background: var(--sig-forest); color: var(--on-primary); }
.section--dark { background: var(--surface-dark); color: var(--on-primary); }
.section--cream { background: var(--sig-cream); }

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-md);
}

.section--coral .section-label,
.section--forest .section-label,
.section--dark .section-label { color: rgba(255,255,255,0.6); }

.section-title {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}

.section--coral .section-title,
.section--forest .section-title,
.section--dark .section-title { color: var(--on-primary); }

.section-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
  max-width: 640px;
}

.section--coral .section-body,
.section--forest .section-body,
.section--dark .section-body { color: rgba(255,255,255,0.82); }

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.card {
  background: var(--canvas);
  border-radius: var(--rounded-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}

.card--peach { background: var(--sig-peach); border-color: transparent; }
.card--mint { background: var(--sig-mint); border-color: transparent; }
.card--yellow { background: var(--sig-yellow); border-color: transparent; }
.card--cream { background: var(--sig-cream); border-color: transparent; }

.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.card-body { padding: var(--sp-md); flex: 1; display: flex; flex-direction: column; gap: var(--sp-xs); }

.card-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--link); }

.card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  flex: 1;
  margin-top: var(--sp-xxs);
}

.card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--sp-xs);
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
  margin-top: var(--sp-xs);
  display: inline-block;
}

/* SIGNATURE CARD (full-bleed band) */
.sig-card { border-radius: var(--rounded-lg); padding: var(--sp-xxl); margin-top: var(--sp-xl); }
.sig-card-title { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--on-primary); margin-bottom: var(--sp-md); }
.sig-card-body { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: var(--sp-xl); }

.btn-on-dark {
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 15px 23px;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  text-decoration: none;
  display: inline-block;
}

.btn-on-dark:hover { background: var(--surface-soft); color: var(--ink); }

/* CTA BAND */
.cta-band {
  background: var(--surface-strong);
  border-radius: var(--rounded-lg);
  padding: var(--sp-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}

.cta-band-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  max-width: 480px;
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  max-width: 480px;
}

.form-row { display: flex; gap: var(--sp-md); }
.form-row .form-group { flex: 1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 16px;
  border-radius: var(--rounded-sm);
  border: 1px solid var(--hairline);
  height: 44px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: #458fff; }

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--sp-section) 0 var(--sp-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xxl);
  border-bottom: 1px solid var(--hairline);
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.footer-brand-name span { color: var(--sig-coral); }

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 260px;
  margin-bottom: var(--sp-md);
}

.footer-contact {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--link); }

.footer-col-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--link); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-xl);
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a { color: var(--muted); text-decoration: none; margin-left: var(--sp-md); }
.footer-legal a:hover { color: var(--link); }

/* ARTICLE PAGE */
.article-hero { padding: var(--sp-section) 0 var(--sp-xl); }

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--sp-lg);
  display: flex;
  gap: var(--sp-md);
  align-items: center;
  flex-wrap: wrap;
}

.article-category {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sig-coral);
}

.article-title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  max-width: 780px;
  margin-bottom: var(--sp-md);
}

.article-intro {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  max-width: 680px;
  margin-bottom: var(--sp-lg);
}

.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: var(--sp-section);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-xxl);
  align-items: flex-start;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--sp-xxl) 0 var(--sp-md);
  line-height: 1.35;
  letter-spacing: 0.01px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: var(--sp-xl) 0 var(--sp-sm);
  line-height: 1.4;
}

.article-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: var(--sp-md);
}

.article-content ul, .article-content ol {
  margin: var(--sp-sm) 0 var(--sp-md) var(--sp-xl);
}

.article-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: var(--sp-xs);
}

.article-content a { color: var(--link); }
.article-content a:hover { color: var(--link-active); }

.article-content .article-img {
  border-radius: var(--rounded-md);
  margin: var(--sp-xl) 0;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.article-content .callout {
  background: var(--sig-cream);
  border-radius: var(--rounded-md);
  padding: var(--sp-lg);
  margin: var(--sp-xl) 0;
}

.article-content .callout p {
  font-size: 15px;
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.article-sidebar { position: sticky; top: 80px; }

.sidebar-box {
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.sidebar-box-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: var(--sp-xs); }
.sidebar-links a { font-size: 14px; color: var(--body); text-decoration: none; }
.sidebar-links a:hover { color: var(--link); }

/* PAGE (about/privacy/terms) */
.page-hero { padding: var(--sp-section) 0 var(--sp-xxl); }

.page-title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.page-content { padding-bottom: var(--sp-section); max-width: 760px; }

.page-content h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--sp-xxl) 0 var(--sp-md);
  line-height: 1.35;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: var(--sp-xl) 0 var(--sp-sm);
}

.page-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: var(--sp-md);
}

.page-content ul {
  margin: var(--sp-sm) 0 var(--sp-md) var(--sp-xl);
}

.page-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: var(--sp-xs);
}

.page-content a { color: var(--link); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: var(--sp-md) var(--sp-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  z-index: 999;
  flex-wrap: wrap;
}

#cookie-banner p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
}

#cookie-banner a { color: rgba(255,255,255,0.7); text-decoration: underline; }

.cookie-actions { display: flex; gap: var(--sp-xs); flex-shrink: 0; }

.btn-legal {
  background: var(--link);
  color: var(--on-primary);
  font-size: 13.12px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--rounded-xs);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-legal-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 13.12px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--rounded-xs);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  white-space: nowrap;
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: var(--sp-xs);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--sp-md) 0;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb span { color: var(--muted); }

/* DISCLAIMER */
.disclaimer {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  padding: var(--sp-md) var(--sp-xxl);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-md); }
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .article-title { font-size: 28px; }
  .page-title { font-size: 28px; }
  .sig-card-title { font-size: 24px; }
  .cta-band-title { font-size: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: var(--sp-md); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: var(--sp-md); gap: var(--sp-md); }
  .nav-links.open { display: flex; }
  .nav-cta-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-inner { position: relative; }
}
