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

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-logo:hover { color: var(--primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.hero {
  padding: 80px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--body);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* SECTION TITLES */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title-md {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
}

/* ARTICLE CARDS */
.articles-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.article-card:hover {
  border-color: var(--hairline-strong);
}

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.15s, border-color 0.15s;
}

.article-card-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* FEATURED IMAGE BAND */
.img-band {
  width: 100%;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  height: 380px;
}

.img-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* INFO GRID */
.info-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.info-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.info-card-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.info-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* ARTICLE PAGE */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.article-wrap .article-eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.article-wrap .article-eyebrow span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
}

.article-wrap h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 24px;
}

.article-wrap .article-intro {
  font-size: 18px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-wrap h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-wrap h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-wrap p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-wrap ul, .article-wrap ol {
  margin: 0 0 20px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.article-wrap li { margin-bottom: 8px; }

.article-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 32px 0;
  border: 1px solid var(--hairline);
}

.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: -24px;
  margin-bottom: 32px;
}

.ref-block {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 48px;
}

.ref-block h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.ref-block ul { margin: 0; padding: 0; list-style: none; }
.ref-block li { font-size: 14px; color: var(--body); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline-soft); }
.ref-block li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ref-block a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline-strong); }
.ref-block a:hover { color: var(--primary); }

/* CONTACT FORM */
.contact-section {
  padding: 80px 24px;
  border-top: 1px solid var(--hairline);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner .section-label { margin-bottom: 8px; }

.contact-inner h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  height: 44px;
}

.form-group textarea {
  height: auto;
  min-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);
}

.field-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink);
  margin-top: 20px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 200;
  box-shadow: 0 4px 32px rgba(38,37,30,0.18);
}

.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--canvas);
}

.cookie-banner a { color: var(--canvas); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.cookie-btn:hover { opacity: 0.85; }

.cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
}

.cookie-reject {
  background: transparent;
  border: 1px solid rgba(247,247,244,0.3);
  color: var(--canvas);
}

/* PAGE CONTENT */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.page-wrap h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-wrap h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
}

.page-wrap p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-wrap ul {
  margin: 0 0 20px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.page-wrap li { margin-bottom: 8px; }

/* ABOUT */
.about-hero {
  padding: 64px 24px 48px;
  border-bottom: 1px solid var(--hairline);
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -1.8px;
  color: var(--ink);
  max-width: 620px;
  margin-bottom: 16px;
}

.about-hero p {
  font-size: 18px;
  color: var(--body);
  max-width: 540px;
  line-height: 1.7;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}

.about-main h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
}

.about-main p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-sidebar .section-label { margin-bottom: 16px; }

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
  color: var(--body);
}

.sidebar-list li:last-child { border-bottom: none; }

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 24px 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}

.footer-brand {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 280px;
}

.footer-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .hero h1 { font-size: 56px; letter-spacing: -1.5px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 767px) {
  .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: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 8px 0; }
  .nav-burger { display: flex; }
  .site-nav { position: relative; }

  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .section-title { font-size: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .article-wrap h1 { font-size: 34px; letter-spacing: -0.8px; }
  .page-wrap h1 { font-size: 34px; }
  .about-hero h1 { font-size: 36px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; }
  .img-band { height: 240px; }
}
