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

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-base: 16px;
  --sp-md: 20px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 80px;

  --ff-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ff-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

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

body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 400; }

h1 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.045rem; }
h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.02rem; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01rem; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }

p { margin-bottom: var(--sp-base); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: var(--sp-xs); }

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

@media (max-width: 640px) {
  .container { padding: 0 var(--sp-base); }
}

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--primary); }

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  gap: var(--sp-lg);
  align-items: center;
}

.nav-menu li { margin: 0; }

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-xs);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0 var(--sp-base); }
  .nav-menu {
    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: var(--sp-base);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: var(--sp-sm) 0; font-size: 1rem; }
}

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

.hero-inner {
  max-width: 760px;
}

.hero-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055rem;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  margin-bottom: var(--sp-lg);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.135rem;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--body);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero { padding: var(--sp-xxl) 0; }
  .hero h1 { font-size: 2rem; letter-spacing: -0.06rem; }
  .hero-lead { font-size: 1rem; }
}

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

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

.section-title {
  font-size: 1.625rem;
  letter-spacing: -0.02rem;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}

.section-intro {
  font-size: 1rem;
  color: var(--body);
  max-width: 640px;
  margin-bottom: var(--sp-xl);
  line-height: 1.6;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-base);
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.card-body {
  padding: var(--sp-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055rem;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01rem;
  text-decoration: none;
}
.card-title:hover { color: var(--primary); }

.card-excerpt {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: var(--sp-sm);
}

/* ARTICLE PAGE */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-xxl);
  align-items: start;
  padding: var(--sp-section) 0;
}

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: var(--sp-xl); padding: var(--sp-xxl) 0; }
}

.article-header { margin-bottom: var(--sp-xl); }

.article-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-base);
}

.article-title {
  font-size: 2.25rem;
  color: var(--ink);
  letter-spacing: -0.045rem;
  line-height: 1.15;
  margin-bottom: var(--sp-base);
}

.article-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--sp-lg);
}

.article-lead {
  font-size: 1.125rem;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--hairline);
}

.article-body h2 { margin-top: var(--sp-xxl); margin-bottom: var(--sp-lg); }
.article-body h3 { margin-top: var(--sp-xl); margin-bottom: var(--sp-base); }
.article-body p { margin-bottom: var(--sp-base); color: var(--body); line-height: 1.65; }
.article-body ul, .article-body ol { margin-bottom: var(--sp-base); color: var(--body); }
.article-body li { line-height: 1.6; }

.article-img {
  width: 100%;
  border-radius: var(--r-lg);
  margin: var(--sp-xl) 0;
  border: 1px solid var(--hairline);
}

.article-img-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: calc(-1 * var(--sp-lg));
  margin-bottom: var(--sp-xl);
}

.infobox {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  margin: var(--sp-xl) 0;
}

.infobox-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.infobox p, .infobox li {
  font-size: 0.875rem;
  color: var(--body);
  margin-bottom: var(--sp-xs);
}

.article-sidebar {}

.sidebar-widget {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-base);
}

.sidebar-widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-base);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--hairline);
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
}

.sidebar-widget li {
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget a {
  font-size: 0.875rem;
  color: var(--body);
  text-decoration: none;
  line-height: 1.4;
}
.sidebar-widget a:hover { color: var(--primary); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-active); border-color: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover { border-color: var(--ink); }

/* FORM */
.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  max-width: 560px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

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

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--semantic-error);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--semantic-error);
  margin-top: var(--sp-xxs);
}

.form-success {
  display: none;
  background: #e8f5f0;
  border: 1px solid var(--semantic-success);
  color: var(--semantic-success);
  border-radius: var(--r-md);
  padding: var(--sp-base);
  font-size: 0.9375rem;
  margin-top: var(--sp-base);
}

.btn-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* BREADCRUMB */
.breadcrumb {
  padding: var(--sp-base) 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 var(--sp-xs); }

/* FEATURED BAND */
.featured-band {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* COOKIE BANNER */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: var(--sp-base) var(--sp-xl);
  z-index: 200;
  gap: var(--sp-xl);
  align-items: center;
  flex-wrap: wrap;
}

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

.cookie-banner p {
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
  margin: 0;
  color: var(--canvas-soft);
}

.cookie-banner a {
  color: var(--canvas);
}

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

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); padding: 0 var(--sp-base); }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: var(--sp-sm);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 0;
}

.footer-heading {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-base);
}

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

.footer-col li {
  margin-bottom: var(--sp-xs);
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--body);
  text-decoration: none;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1200px;
  margin: var(--sp-xl) auto 0;
  padding: var(--sp-lg) var(--sp-xl) 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

@media (max-width: 640px) {
  .footer-bottom { padding: var(--sp-base) var(--sp-base) 0; flex-direction: column; }
}

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

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

/* PAGE CONTENT */
.page-header {
  padding: var(--sp-xxl) 0 var(--sp-xl);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--sp-xl);
}

.page-title {
  font-size: 2.25rem;
  color: var(--ink);
  letter-spacing: -0.045rem;
}

.page-content {
  padding: var(--sp-xl) 0 var(--sp-section);
  max-width: 760px;
}

.page-content h2 { margin-top: var(--sp-xxl); margin-bottom: var(--sp-base); }
.page-content h3 { margin-top: var(--sp-xl); margin-bottom: var(--sp-sm); }
.page-content p { color: var(--body); line-height: 1.65; margin-bottom: var(--sp-base); }
.page-content ul, .page-content ol { margin-bottom: var(--sp-base); color: var(--body); }
.page-content li { line-height: 1.6; }

/* TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: var(--sp-lg) 0;
}

.data-table th, .data-table td {
  padding: var(--sp-sm) var(--sp-base);
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}

.data-table th {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  background: var(--canvas-soft);
}

.data-table tr:hover td { background: var(--canvas-soft); }

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: var(--sp-xl) 0;
}

/* EXTERNAL LINK */
.ext-links {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline-soft);
}

.ext-links-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.ext-links ul {
  list-style: none;
  padding: 0;
}

.ext-links li {
  font-size: 0.875rem;
  margin-bottom: var(--sp-xs);
}

.ext-links a {
  color: var(--body);
}

/* ARTICLES LIST PAGE */
.articles-header {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--sp-xl);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .article-title { font-size: 1.625rem; }
  .page-title { font-size: 1.625rem; }
}
