@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0a0a0a;
  --primary-active: #1f1f1f;
  --primary-disabled: #e5e5e5;
  --ink: #0a0a0a;
  --body: #3a3a3a;
  --body-strong: #1a1a1a;
  --muted: #6a6a6a;
  --muted-soft: #9a9a9a;
  --hairline: #e5e5e5;
  --hairline-soft: #f0f0f0;
  --canvas: #fffaf0;
  --surface-soft: #faf5e8;
  --surface-card: #f5f0e0;
  --surface-strong: #ebe6d6;
  --surface-dark: #0a1a1a;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --brand-pink: #ff4d8b;
  --brand-teal: #1a3a3a;
  --brand-lavender: #b8a4ed;
  --brand-peach: #ffb084;
  --brand-ochre: #e8b94a;
  --brand-mint: #a4d4c5;
  --brand-coral: #ff6b5a;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --rounded-xs: 6px;
  --rounded-sm: 8px;
  --rounded-md: 12px;
  --rounded-lg: 16px;
  --rounded-xl: 24px;
  --rounded-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
  background-color: var(--canvas);
}

a { color: var(--ink); text-decoration: underline; }
a:hover { color: var(--primary-active); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* TOP NAV */
.top-nav {
  background: var(--canvas);
  height: 64px;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--brand-teal); }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--rounded-pill);
  transition: background 0.15s, color 0.15s;
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--surface-card);
  color: var(--ink);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.hero-band {
  background: var(--canvas);
  padding: 96px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}
.hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-img-card {
  background: var(--surface-soft);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  height: 44px;
  border-radius: var(--rounded-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  height: 44px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* BADGES */
.badge {
  display: inline-block;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
}

/* SECTION */
.section { padding: 96px 0; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 48px;
}

/* FEATURE CARDS GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  border-radius: var(--rounded-xl);
  padding: 32px;
}
.feature-card-pink { background: var(--brand-pink); color: var(--on-primary); }
.feature-card-teal { background: var(--brand-teal); color: var(--on-dark); }
.feature-card-lavender { background: var(--brand-lavender); color: var(--ink); }
.feature-card-peach { background: var(--brand-peach); color: var(--ink); }
.feature-card-ochre { background: var(--brand-ochre); color: var(--ink); }
.feature-card-cream { background: var(--surface-card); color: var(--ink); }
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.85;
}
.feature-card .card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

/* ARTICLES GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--ink); color: inherit; }
.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-soft);
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-card:hover .article-card-img img { transform: scale(1.03); }
.article-card-body { padding: 24px; }
.article-card-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

/* CONTACT FORM */
.contact-band {
  background: var(--surface-soft);
  padding: 96px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--body-strong);
}
.form-group input, .form-group textarea {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); }
.form-group input.error, .form-group textarea.error { border-color: var(--error); }
.form-error-msg { font-size: 13px; color: var(--error); display: none; }
.form-success {
  display: none;
  background: var(--surface-card);
  border-radius: var(--rounded-md);
  padding: 16px;
  font-size: 14px;
  color: var(--body-strong);
}

/* FOOTER */
.footer {
  background: var(--surface-soft);
  padding: 80px 0 40px;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}
.footer-col ul a:hover { color: var(--ink); }
.footer-contact p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}
.footer-contact a { color: var(--body); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p, .footer-bottom a {
  font-size: 13px;
  color: var(--muted-soft);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ARTICLE PAGE */
.article-header {
  background: var(--canvas);
  padding: 96px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.article-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-breadcrumb a { color: var(--muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--ink); }
.article-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-title {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 800px;
}
.article-lead {
  font-size: 20px;
  font-weight: 400;
  color: var(--body-strong);
  line-height: 1.5;
  max-width: 700px;
}
.article-hero-img {
  margin: 48px 0 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  padding: 64px 0 96px;
  align-items: start;
}
.article-content h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 48px 0 16px;
}
.article-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 8px;
}
.article-content a { color: var(--ink); }
.article-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--surface-card);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-card ul a {
  font-size: 14px;
  color: var(--body-strong);
  text-decoration: none;
}
.sidebar-card ul a:hover { color: var(--ink); text-decoration: underline; }
.sidebar-updated {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
}

/* PAGE (about, privacy, terms) */
.page-header {
  background: var(--canvas);
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.page-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-sub { font-size: 16px; color: var(--body); }
.page-content {
  max-width: 760px;
  padding: 64px 0 96px;
}
.page-content h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 12px;
}
.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
.page-content p, .page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 16px;
}
.page-content ul, .page-content ol { padding-left: 24px; }
.page-content a { color: var(--ink); }
.disclaimer-box {
  background: var(--surface-card);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 720px;
  background: var(--surface-dark);
  color: var(--on-dark);
  border-radius: var(--rounded-xl);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
#cookie-banner p { font-size: 14px; color: var(--on-dark); line-height: 1.5; }
#cookie-banner a { color: var(--on-dark); }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--on-primary);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-body { grid-template-columns: 1fr; gap: 48px; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 36px; letter-spacing: -1px; }
  .section-title { font-size: 28px; }
  .article-title { font-size: 32px; letter-spacing: -0.5px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-band { padding: 64px 0; }
  .hero-img-card { display: none; }
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 24px; }
  .page-title { font-size: 28px; }
}
