*, *::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;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; letter-spacing: -0.05em; }
h2 { font-size: 2rem; letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.5rem;
}

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.hero-band {
  padding: 80px 0;
  background: var(--canvas);
}

.hero-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {}

.hero-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.6;
  max-width: 480px;
}

.hero-image-wrap {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 80px 0;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-head {
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover {
  border-color: var(--hairline-strong);
}

.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.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: 20px;
}

.article-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}

.article-card-body p {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.article-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.info-band {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
}

.info-item {
  background: var(--canvas-soft);
  padding: 32px 24px;
}

.info-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.info-item p {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.55;
}

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: 2.25rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: var(--body);
  max-width: 600px;
}

.page-updated {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 16px;
}

.content-body {
  padding: 48px 0 80px;
  max-width: 720px;
}

.content-body h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
}

.content-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.5rem 0 0.75rem;
}

.content-body p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.content-body ul, .content-body ol {
  margin-bottom: 1.25rem;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.content-body li {
  margin-bottom: 0.4rem;
}

.content-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callout {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-sm);
  padding: 16px 20px;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.6;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.data-table th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--hairline);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.article-full-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: 2rem 0;
}

.article-full-img img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
}

.img-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 8px;
  padding: 0 4px;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 6px;
}

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
  max-width: 560px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-soft);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--primary-active);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status.success {
  background: #e6f4f0;
  color: var(--semantic-success);
  border: 1px solid #b8e0d4;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

.cookie-banner p {
  font-size: 0.9375rem;
  color: #d0cfc8;
  margin-bottom: 16px;
  line-height: 1.55;
}

.cookie-banner p a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 18px;
  height: 36px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cookie-accept:hover {
  background: var(--primary-active);
}

.btn-cookie-reject {
  background: transparent;
  color: #a09c92;
  border: 1px solid #4a4940;
  border-radius: var(--rounded-md);
  padding: 8px 18px;
  height: 36px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-cookie-reject:hover {
  border-color: #807d72;
  color: #d0cfc8;
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-wordmark {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--body);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--muted-soft);
  margin-top: 8px;
}

.articles-index {
  padding: 48px 0 80px;
}

.articles-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.article-full-hero {
  padding: 64px 0 0;
}

.article-full-hero h1 {
  font-size: 2.5rem;
  color: var(--ink);
  letter-spacing: -0.045em;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 16px;
}

.article-intro {
  font-size: 1.0625rem;
  color: var(--body);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  .hero-band .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-content h1 { font-size: 2.5rem; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .articles-index-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .site-header { position: relative; }
  .hero-band { padding: 48px 0; }
  .hero-content h1 { font-size: 1.875rem; }
  .section { padding: 48px 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .articles-index-grid { grid-template-columns: 1fr; }
  .article-full-hero h1 { font-size: 1.75rem; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .contact-form { padding: 20px; }
}
