@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: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e2;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --hairline: #d3cec6;
  --hairline-soft: #e2ddd6;
  --accent: #c0392b;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVIGATION ─────────────────────────────────── */
.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.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-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
  gap: 4px;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; color: var(--ink-muted); padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.mobile-menu a:last-child { border-bottom: none; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
  margin-bottom: 16px;
  text-transform: none;
}

.hero-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: 0;
}

.hero-image-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── SECTIONS ────────────────────────────────────── */
.section {
  padding: 64px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--hairline-soft);
  margin: 0;
}

/* ── ARTICLE CARDS ───────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--ink-subtle); text-decoration: none; }

.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}

.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 24px 24px;
}

.article-card-category {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: none;
}

.article-card-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-card-meta {
  font-size: 12px;
  color: var(--ink-subtle);
}

/* ── INFO CARDS / FEATURE CARDS ─────────────────── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.info-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.info-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.info-card-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ── CLASS TABLE ─────────────────────────────────── */
.class-table-wrap {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

.class-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.class-table th {
  background: var(--surface-2);
  font-weight: 500;
  color: var(--ink);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}

.class-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--ink-muted);
}

.class-table tr:last-child td { border-bottom: none; }

.class-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.class-a { background: #1a7f37; }
.class-b { background: #57a639; }
.class-c { background: #8cc63f; }
.class-d { background: #f6d000; color: #111; }
.class-e { background: #f4a200; color: #111; }
.class-f { background: #e85d04; }
.class-g { background: #c0392b; }

/* ── CONTENT / ARTICLE PAGE ─────────────────────── */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.article-content h1 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-content .article-meta {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline-soft);
}

.article-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 36px 0 14px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 24px 0 10px;
}

.article-content ul, .article-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 6px;
}

.article-content a { color: var(--ink); text-decoration: underline; }

.article-image-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  margin: 24px 0;
}

.article-image-card img { width: 100%; }
.article-image-card figcaption {
  font-size: 12px;
  color: var(--ink-subtle);
  padding: 10px 16px;
  border-top: 1px solid var(--hairline-soft);
}

.article-sidebar {
  position: sticky;
  top: 72px;
}

.sidebar-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--hairline-soft); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  padding: 9px 0;
  transition: color 0.15s;
}
.sidebar-links a:hover { color: var(--ink); text-decoration: none; }

/* ── HIGHLIGHT BOX ──────────────────────────────── */
.highlight-box {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p { margin-bottom: 0; }

/* ── CONTACT FORM ────────────────────────────────── */
.contact-section {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  padding: 40px 48px;
  max-width: 640px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-group textarea { min-height: 100px; resize: vertical; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 40px;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  font-size: 14px;
  color: var(--ink-muted);
}

.form-message.visible { display: block; }

/* ── BREADCRUMB ──────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-subtle);
  padding: 16px 0;
}

.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: none; }
.breadcrumb-sep { color: var(--hairline); }

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.55;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-subtle);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  font-size: 12px;
  color: var(--ink-subtle);
}

/* ── COOKIE BANNER ──────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 720px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--rounded-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.cookie-banner.hidden { display: none; }

.cookie-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  flex: 1;
}

.cookie-text a { color: #fff; text-decoration: underline; }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-cookie-accept {
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  min-height: 36px;
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  min-height: 36px;
}

.btn-cookie-reject:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ── PAGE CONTENT ────────────────────────────────── */
.page-content h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin-bottom: 24px;
  color: var(--ink);
}

.page-content h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 12px;
}

.page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content li { font-size: 15px; line-height: 1.65; color: var(--ink); margin-bottom: 6px; }
.page-content a { color: var(--ink); text-decoration: underline; }

.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: 40px;
}

.page-updated {
  font-size: 12px;
  color: var(--ink-subtle);
  margin-top: 8px;
}

/* ── INDEX INTRO BLOCK ───────────────────────────── */
.intro-block {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}

.intro-block-text h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
}

.intro-block-text p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.intro-block-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.intro-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-block { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; letter-spacing: -0.7px; }

  .articles-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }

  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }

  .article-content h1 { font-size: 26px; }
  .article-content h2 { font-size: 20px; }

  .contact-section { padding: 24px 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 12px; }

  .section-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: 26px; }
}
