@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: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
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);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 24px; }
}

/* HERO */
.hero {
  padding: 80px 0;
  background: var(--canvas);
}

.hero-content { max-width: 720px; }

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-image {
  margin-top: 48px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  max-height: 480px;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero { padding: 48px 0; }
  .hero-image img { height: 240px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
}

/* SECTION */
.section { padding: 80px 0; }
.section--soft { background: var(--canvas-soft); }
.section--white { background: var(--surface-card); }

.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;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 48px;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--hairline-strong); }

.card-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16/9;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}

.card-link:hover { border-color: var(--ink); color: var(--ink); }

/* ARTICLE PAGE */
.article-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 48px;
}

.article-header h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 20px;
  letter-spacing: 0.08px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.article-body li { margin-bottom: 8px; }

.article-img {
  border-radius: 12px;
  overflow: hidden;
  margin: 32px 0;
  border: 1px solid var(--hairline);
}

.article-img img { width: 100%; object-fit: cover; }

.article-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* FORM */
.contact-form {
  max-width: 560px;
}

.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: 8px;
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea {
  height: auto;
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-soft);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:active { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #e8f5f0;
  color: var(--success);
  border: 1px solid #b8ddd0;
  display: block;
}

.form-message.error {
  background: #fce8ec;
  color: var(--error);
  border: 1px solid #f0c0cc;
  display: block;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--muted-soft); }

/* INFO BAND */
.info-band {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 48px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; gap: 24px; }
}

.info-item h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.11px;
}

.info-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-brand-name span { color: var(--primary); }

.footer-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  max-width: 240px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a:hover { color: var(--ink); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 20px 24px;
  z-index: 999;
  display: none;
  box-shadow: none;
}

#cookie-banner p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

#cookie-banner a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); }

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}

.btn-cookie-reject:hover { border-color: var(--ink); }

/* PAGE HERO (inner pages) */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 560px;
}

@media (max-width: 768px) {
  .page-hero h1 { font-size: 32px; }
  .article-header h1 { font-size: 32px; }
}

/* PROSE (about / policy pages) */
.prose { max-width: 720px; padding: 48px 0; }

.prose h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 12px;
  line-height: 1.25;
}

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
  line-height: 1.4;
}

.prose p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: 0.08px;
}

.prose ul, .prose ol {
  margin: 0 0 16px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.prose li { margin-bottom: 6px; }

.prose a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); }
.prose a:hover { border-color: var(--ink); }

.updated-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ARTICLES LIST */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  background: var(--hairline);
}

.article-row {
  background: var(--surface-card);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  transition: background 0.15s;
}

.article-row:hover { background: var(--canvas-soft); }

.article-row-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.article-row h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 4px;
}

.article-row p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.article-row-date {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .article-row { grid-template-columns: 1fr; }
  .article-row-date { display: none; }
}

/* ARTICLE TWO-COLUMN */
@media (max-width: 1100px) {
  [style*="grid-template-columns: 720px 1fr"] {
    display: block !important;
  }
  [style*="grid-template-columns: 720px 1fr"] aside {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
}

/* SPINNER */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--on-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
