@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 {
  --canvas: #f5f1ec;
  --surface: #ffffff;
  --surface-2: #ede9e3;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --hairline: #d3cec6;
  --accent: #7c5c3e;
  --accent-dark: #5a3f27;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TOP NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 56px;
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a.active { color: var(--ink); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.6;
  margin-top: 1px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: var(--r-md);
  transition: background 0.12s, color 0.12s;
}
.dropdown-menu a:hover { background: var(--canvas); color: var(--ink); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px 24px;
  z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); }

/* ── HERO ── */
.hero {
  padding: 80px 0 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-meta {
  font-size: 13px;
  color: var(--ink-subtle);
}
.hero-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ── SECTION SHARED ── */
.section { padding: 80px 0; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ── ARTICLE CARDS GRID ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body { padding: 24px; }
.article-card-tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-card h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--ink);
}
.article-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.article-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.article-card-link:hover { gap: 8px; }
.article-card-link::after { content: '→'; }

/* ── TOPIC STRIP ── */
.topic-strip { background: var(--surface-2); padding: 64px 0; }
.topic-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.topic-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
}
.topic-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.topic-item h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.topic-item p { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }

/* ── ARTICLE PAGE ── */
.article-header { padding: 56px 0 40px; }
.article-header-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}
.article-breadcrumb {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-breadcrumb a { color: var(--ink-subtle); }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb span { color: var(--hairline); }
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.article-intro {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.article-meta {
  font-size: 13px;
  color: var(--ink-subtle);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-meta-sep { color: var(--hairline); }

.article-hero-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.article-hero-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.article-img-caption {
  font-size: 12px;
  color: var(--ink-subtle);
  padding: 10px 14px;
  border-top: 1px solid var(--hairline);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

/* ── ARTICLE BODY ── */
.article-body h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 40px 0 14px;
  color: var(--ink);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: 28px 0 10px;
}
.article-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  margin: 0 0 18px 20px;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 6px;
}
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.info-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 28px 0;
}
.info-box p { margin-bottom: 0; font-size: 15px; color: var(--ink-muted); }

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.fact-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
}
.fact-item dt {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 6px;
}
.fact-item dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.article-inline-img {
  margin: 32px 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.article-inline-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.article-inline-img figcaption {
  font-size: 12px;
  color: var(--ink-subtle);
  padding: 10px 16px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 72px; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 14px;
}
.sidebar-toc { padding: 0; }
.sidebar-toc li {
  margin-bottom: 8px;
  font-size: 14px;
  border-bottom: 1px solid var(--canvas);
  padding-bottom: 8px;
}
.sidebar-toc li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-toc a { color: var(--ink-muted); }
.sidebar-toc a:hover { color: var(--accent); }
.sidebar-refs { padding: 0; }
.sidebar-refs li { font-size: 13px; color: var(--ink-subtle); margin-bottom: 8px; line-height: 1.4; }
.sidebar-refs a { color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }

.related-links { padding: 0; }
.related-links li { margin-bottom: 10px; }
.related-links a {
  font-size: 14px;
  color: var(--ink-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.related-links a::before { content: '→'; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.related-links a:hover { color: var(--accent); }

/* ── PAGE CONTENT (about/privacy/terms) ── */
.page-header { padding: 56px 0 32px; }
.page-header h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.page-header p { font-size: 16px; color: var(--ink-muted); }
.page-body { padding: 0 0 80px; max-width: 780px; }
.page-body h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 36px 0 12px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 16px; }
.page-body ul { margin: 0 0 16px 20px; list-style: disc; }
.page-body li { font-size: 16px; line-height: 1.65; color: var(--ink); margin-bottom: 6px; }
.page-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── CONTACT FORM ── */
.contact-section { background: var(--surface-2); padding: 72px 0; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 48px;
  max-width: 600px;
  margin: 0 auto;
}
.contact-card h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.contact-card p { font-size: 15px; color: var(--ink-muted); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 110px; resize: vertical; }
.btn-submit {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 44px;
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
}
.form-msg.success {
  background: #ecf5ee;
  border: 1px solid #b5d8bc;
  color: #1f6b2e;
  display: block;
}

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.6;
  margin-top: 10px;
  max-width: 260px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 14px;
}
.footer-col ul { padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--ink-subtle); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--ink-subtle); }
.footer-bottom a { font-size: 12px; color: var(--ink-subtle); margin-left: 16px; }
.footer-bottom a:hover { color: var(--ink); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 20px 24px;
  max-width: 520px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
#cookie-banner p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.8); flex: 1; }
#cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  font-family: inherit;
  white-space: nowrap;
  min-height: 40px;
  transition: background 0.15s;
}
.cookie-accept { background: #fff; color: var(--ink); }
.cookie-accept:hover { background: var(--canvas); }
.cookie-reject { background: transparent; color: #fff; }
.cookie-reject:hover { background: rgba(255,255,255,0.08); }

/* ── UTILITY ── */
.text-muted { color: var(--ink-muted); }
.text-subtle { color: var(--ink-subtle); }
.mt-0 { margin-top: 0; }
.updated-tag { font-size: 12px; color: var(--ink-subtle); margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { gap: 40px; }
  .hero h1 { font-size: 42px; }
  .article-header-inner { grid-template-columns: 1fr; gap: 32px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-lead { font-size: 16px; }
  .hero-image img { height: 260px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
  .topic-strip-inner { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 30px; letter-spacing: -0.8px; }
  .article-intro { font-size: 16px; }
  .fact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  #cookie-banner { flex-direction: column; align-items: flex-start; bottom: 16px; }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 32px; }
}
