@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e3;
  --hairline: #d3cec6;
  --hairline-soft: #e5e0d8;
  --inverse-canvas: #000000;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --inverse-ink: #ffffff;
  --accent: #ff5600;

  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;

  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 96px;
}

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

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* 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;
}

.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.3px;
  white-space: nowrap;
}

.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

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

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a.active { color: var(--ink); font-weight: 500; }

.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: var(--spacing-lg) var(--spacing-xl);
  flex-direction: column;
  gap: var(--spacing-md);
  z-index: 99;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 15px;
  color: var(--ink-muted);
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile a:hover { color: var(--ink); text-decoration: none; }

/* HERO */
.hero {
  padding: var(--spacing-section) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-md);
}

.hero-title {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}

.hero-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  letter-spacing: -0.1px;
}

.hero-image-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  overflow: hidden;
}

.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* SECTIONS */
.section {
  padding: var(--spacing-section) 0;
}

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

.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}

.section-desc {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 600px;
  line-height: 1.5;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xxl);
}

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

.article-card:hover { border-color: var(--ink-subtle); text-decoration: none; }

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

.article-card-body {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xs);
}

.article-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.30;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
}

.article-card-meta {
  margin-top: var(--spacing-md);
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* ARTICLE PAGE */
.article-header {
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  max-width: 800px;
}

.article-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-md);
}

.article-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}

.article-meta {
  font-size: 14px;
  color: var(--ink-muted);
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.article-hero-image {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  margin-bottom: var(--spacing-xxl);
}

.article-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--spacing-xxl);
  align-items: start;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-lg);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.30;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.article-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--spacing-xs);
}

.article-content a {
  color: var(--ink);
  text-decoration: underline;
}

.article-content a:hover { color: var(--ink-muted); }

.info-box {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.info-box h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}

.info-box p, .info-box li {
  font-size: 14px;
  color: var(--ink-muted);
}

.info-box ul { list-style: disc; padding-left: var(--spacing-lg); margin: 0; }

.article-sidebar {
  position: sticky;
  top: 72px;
}

.sidebar-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.sidebar-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sidebar-links a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
}

.sidebar-links a:hover { color: var(--ink-muted); }

.sidebar-related a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--hairline-soft);
  line-height: 1.4;
}

.sidebar-related a:last-child { border-bottom: none; }
.sidebar-related a:hover { color: var(--ink-muted); text-decoration: none; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--inverse-ink);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
  text-align: center;
}

.btn-primary:hover { opacity: 0.85; text-decoration: none; color: var(--inverse-ink); }

.btn-secondary {
  display: inline-block;
  background: var(--surface-1);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: inherit;
  text-align: center;
}

.btn-secondary:hover { border-color: var(--ink-subtle); text-decoration: none; }

/* FORM */
.contact-section {
  padding: var(--spacing-section) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: start;
}

.contact-intro h2 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}

.contact-intro p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.contact-form-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  padding: var(--spacing-xxl);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  transition: border-color 0.15s;
  outline: none;
  min-height: 44px;
}

.form-control:focus { border-color: var(--ink-subtle); }

.form-control.textarea { resize: vertical; min-height: 120px; }

.form-submit-wrap { margin-top: var(--spacing-xl); }

.form-message {
  margin-top: var(--spacing-md);
  font-size: 14px;
  color: var(--ink-muted);
  display: none;
}

.form-message.success { color: #1a7a4a; }

/* PAGE CONTENT */
.page-header {
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  max-width: 700px;
}

.page-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

.page-meta {
  font-size: 14px;
  color: var(--ink-muted);
}

.page-content {
  max-width: 720px;
  padding-bottom: var(--spacing-section);
}

.page-content h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.3px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.page-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

.page-content ul, .page-content ol {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--spacing-xs);
}

.page-content a { color: var(--ink); text-decoration: underline; }

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.5;
  max-width: 240px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-md);
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-col-links a {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.4;
}

.footer-col-links a:hover { color: var(--ink-muted); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--ink-tertiary);
  max-width: 600px;
  line-height: 1.5;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
  padding: var(--spacing-lg) var(--spacing-xl);
  z-index: 200;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  color: #cccccc;
  flex: 1;
  min-width: 240px;
}

.cookie-text a { color: #ffffff; text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--inverse-ink);
  color: var(--inverse-canvas);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-cookie-reject {
  background: transparent;
  color: #cccccc;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid #555;
  cursor: pointer;
  font-family: inherit;
}

.btn-cookie-accept:hover { opacity: 0.85; }
.btn-cookie-reject:hover { border-color: #888; color: #fff; }

/* ABOUT INTRO */
.about-intro {
  padding: var(--spacing-xxl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.about-image-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  overflow: hidden;
}

.about-image-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* BREADCRUMB */
.breadcrumb {
  padding: var(--spacing-md) 0;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}

.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: none; }
.breadcrumb-sep { color: var(--ink-tertiary); }

/* LOADING SPINNER */
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--spacing-lg); }

  .hero { padding: var(--spacing-xxl) 0; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--spacing-xl); }
  .hero-title { font-size: 36px; letter-spacing: -0.8px; }
  .hero-desc { font-size: 16px; }
  .hero-image-card img { height: 240px; }

  .section { padding: var(--spacing-xxl) 0; }
  .section-title { font-size: 28px; }

  .cards-grid { grid-template-columns: 1fr; }

  .article-title { font-size: 28px; }
  .article-hero-image img { height: 240px; }
  .article-content h2 { font-size: 22px; }

  .page-title { font-size: 28px; }
  .contact-form-card { padding: var(--spacing-xl); }
  .contact-intro h2 { font-size: 28px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .article-meta { flex-direction: column; gap: var(--spacing-xs); }
}
