*, *::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;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

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

body {
  background: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  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;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

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

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--ink); }

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

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

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.6875rem;
  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: 20px;
}

.hero-title {
  font-size: 2.625rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-strong);
}

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

.hero-img figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--hairline);
  background: var(--canvas-soft);
}

/* SECTION */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.section-desc {
  font-size: 1rem;
  color: var(--body);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ARTICLE CARDS */
.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(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

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

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-strong);
}

.article-card-body { padding: 20px; }

.article-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

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

.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--primary); }

.article-card-desc {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-card-date {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ARTICLE DETAIL */
.article-header { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); }

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

.article-header-title {
  font-size: 2.625rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  max-width: 800px;
  margin-bottom: 20px;
}

.article-header-meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.article-content-wrap {
  padding: 60px 0;
}

.article-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.article-body { max-width: 680px; }

.article-body h2 {
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.325px;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 6px;
}

.article-body figure {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-body figure img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.article-body figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

.article-body blockquote {
  border-left: 3px solid var(--hairline-strong);
  padding: 16px 20px;
  margin: 28px 0;
  background: var(--canvas-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
  font-size: 1.0625rem;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

.sidebar-card-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-card ul { list-style: none; }

.sidebar-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.875rem;
}

.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card a { color: var(--body); }
.sidebar-card a:hover { color: var(--ink); }

.sidebar-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 20px;
}

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

.sidebar-img figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

/* INFO BANDS */
.info-band {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.info-band h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro h2 {
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin-bottom: 16px;
}

.contact-intro p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.6;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

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

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

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  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: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  height: 40px;
  transition: background 0.15s;
  align-self: flex-start;
}

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

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: none;
}

.form-message.success {
  background: #edf7f2;
  border: 1px solid #9fd4be;
  color: var(--success);
  display: block;
}

.form-message.error-msg {
  background: #fdf0f3;
  border: 1px solid #f0b0bc;
  color: var(--error);
  display: block;
}

/* COOKIE BANNER */
#cookieBanner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 999;
  display: none;
  box-shadow: 0 8px 32px rgba(38,37,30,0.18);
}

#cookieBanner.visible { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }

#cookieBanner p {
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

#cookieBanner a { color: #ccc; text-decoration: underline; }

.cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* FOOTER */
.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: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.footer-col li {
  font-size: 0.875rem;
  color: var(--body);
  margin-bottom: 8px;
}

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

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-disclaimer { font-style: italic; }

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb li {
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--hairline-strong);
}

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

/* PAGE HEADER */
.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1rem;
  color: var(--body);
  max-width: 600px;
  line-height: 1.6;
}

.page-content {
  padding: 60px 0;
  max-width: 760px;
}

.page-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 12px;
}

.page-content p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 16px;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-content li {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 6px;
}

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

/* UPDATE DATE */
.update-date {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  width: 100%;
}

/* RELATED ARTICLES */
.related-section { padding: 80px 0; border-top: 1px solid var(--hairline); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 2rem; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-content-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--hairline-soft); }
  .site-nav a { display: block; padding: 12px 0; }
  .hero { padding: 48px 0; }
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.75rem; }
  .section { padding: 48px 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .article-header-title { font-size: 1.75rem; }
  #cookieBanner { bottom: 16px; left: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
}
