@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&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;
  --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;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif; background: var(--canvas); color: var(--body); font-size: 16px; line-height: 1.5; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

code, pre { font-family: 'JetBrains Mono', monospace; font-size: 13px; }

.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; }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.nav-brand span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 28px; 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, .nav-links a.active { color: var(--ink); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }

/* HERO */
.hero { padding: 80px 0; background: var(--canvas); border-bottom: 1px solid var(--hairline-soft); }
.hero-label { display: inline-block; background: var(--surface-strong); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; border-radius: var(--rounded-pill); padding: 4px 10px; margin-bottom: 20px; }
.hero h1 { font-size: 56px; font-weight: 400; line-height: 1.1; letter-spacing: -1.5px; color: var(--ink); max-width: 780px; margin-bottom: 20px; }
.hero p { font-size: 18px; font-weight: 400; color: var(--body); max-width: 580px; line-height: 1.5; margin-bottom: 0; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--body); max-width: 560px; line-height: 1.5; margin-bottom: 48px; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; transition: border-color 0.15s; }
.card:hover { border-color: var(--hairline-strong); }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--rounded-md); margin-bottom: 16px; }
.card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 8px; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary); }
.card-body { font-size: 14px; color: var(--body); line-height: 1.5; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ARTICLE CARD (horizontal) */
.article-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); display: grid; grid-template-columns: 280px 1fr; 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; }
.article-card-body { padding: 28px; }
.article-card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.article-card-title { font-size: 22px; font-weight: 400; color: var(--ink); letter-spacing: -0.11px; line-height: 1.3; margin-bottom: 10px; }
.article-card-title a { color: inherit; }
.article-card-title a:hover { color: var(--primary); }
.article-card-excerpt { font-size: 15px; color: var(--body); line-height: 1.5; margin-bottom: 16px; }
.article-card-meta { font-size: 13px; color: var(--muted); }
.article-stack { display: flex; flex-direction: column; gap: 16px; }

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

/* TYPOGRAPHY IN CONTENT */
.prose h1 { font-size: 42px; font-weight: 400; letter-spacing: -1px; color: var(--ink); line-height: 1.1; margin-bottom: 20px; }
.prose h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); line-height: 1.25; margin-top: 48px; margin-bottom: 16px; }
.prose h3 { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-top: 32px; margin-bottom: 12px; }
.prose p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 16px; }
.prose li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary); }
.prose strong { font-weight: 600; color: var(--body-strong); }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: var(--rounded-md); width: 100%; object-fit: cover; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.prose th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hairline); padding: 8px 12px; }
.prose td { font-size: 14px; color: var(--body); border-bottom: 1px solid var(--hairline-soft); padding: 10px 12px; vertical-align: top; }
.prose blockquote { border-left: 3px solid var(--hairline-strong); padding-left: 20px; margin: 24px 0; color: var(--muted); font-size: 16px; font-style: italic; line-height: 1.6; }

/* ARTICLE LAYOUT */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.article-hero-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--rounded-lg); margin-bottom: 40px; }
.article-meta-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.article-category { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; background: var(--surface-strong); color: var(--ink); border-radius: var(--rounded-pill); padding: 4px 10px; }
.article-date { font-size: 13px; color: var(--muted); }
.article-updated { font-size: 13px; color: var(--muted); }

/* SIDEBAR */
.sidebar .sidebar-block { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; margin-bottom: 20px; }
.sidebar-title { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--hairline-soft); padding: 10px 0; }
.sidebar-links li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-links a { font-size: 14px; color: var(--body); line-height: 1.4; }
.sidebar-links a:hover { color: var(--ink); }

/* FACT BOX */
.fact-box { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 20px 24px; margin: 24px 0; }
.fact-box-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fact-box p { font-size: 14px; color: var(--body); line-height: 1.5; margin: 0; }

/* ROCK TYPE GRID */
.rock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.rock-item { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); overflow: hidden; }
.rock-item img { width: 100%; height: 160px; object-fit: cover; }
.rock-item-body { padding: 16px; }
.rock-item-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.rock-item-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* FORM */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-control { width: 100%; background: var(--surface-card); color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: var(--rounded-md); padding: 12px 16px; height: 44px; font-size: 16px; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
.form-control:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(38,37,30,0.08); }
textarea.form-control { height: auto; min-height: 120px; resize: vertical; }
.btn-primary { background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--rounded-md); padding: 10px 18px; height: 40px; font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer; transition: background 0.15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--primary-active); }
.btn-secondary { background: var(--surface-card); color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: var(--rounded-md); padding: 10px 18px; height: 40px; font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer; transition: border-color 0.15s; display: inline-flex; align-items: center; }
.btn-secondary:hover { border-color: var(--ink); }
.form-message { padding: 12px 16px; border-radius: var(--rounded-md); font-size: 14px; font-weight: 500; margin-top: 16px; display: none; }
.form-message.success { background: rgba(31,138,101,0.1); color: var(--success); border: 1px solid rgba(31,138,101,0.2); }
.form-message.error { background: rgba(207,45,86,0.1); color: var(--error); border: 1px solid rgba(207,45,86,0.2); }
.form-loading { display: none; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 12px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--hairline); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--hairline-strong); }

/* 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 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-name { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-brand-name span { color: var(--primary); }
.footer-brand-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; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--body); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--hairline-soft); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 13px; color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }

/* COOKIE BANNER */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--canvas); padding: 20px 24px; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
#cookie-banner p { font-size: 14px; line-height: 1.5; color: var(--canvas); max-width: 720px; }
#cookie-banner a { color: #f7f7f4; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept { background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--rounded-md); padding: 10px 18px; height: 40px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }
.cookie-accept:hover { background: var(--primary-active); }
.cookie-reject { background: transparent; color: var(--canvas); border: 1px solid rgba(247,247,244,0.3); border-radius: var(--rounded-md); padding: 10px 18px; height: 40px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }
.cookie-reject:hover { border-color: rgba(247,247,244,0.6); }

/* DISCLAIMER */
.disclaimer { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--rounded-md); padding: 12px 16px; font-size: 13px; color: var(--muted); line-height: 1.5; margin: 32px 0; }

/* CONTACT SECTION */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-info-value { font-size: 14px; color: var(--body); line-height: 1.5; }

/* PAGE HERO */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline-soft); }
.page-hero h1 { font-size: 42px; font-weight: 400; letter-spacing: -1px; color: var(--ink); line-height: 1.1; margin-bottom: 16px; }
.page-hero p { font-size: 16px; color: var(--body); max-width: 560px; line-height: 1.5; }

/* MOBILE NAV */
.mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); z-index: 99; padding: 16px 24px 24px; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li { border-bottom: 1px solid var(--hairline-soft); }
.mobile-nav ul li:last-child { border-bottom: none; }
.mobile-nav ul a { display: block; font-size: 16px; font-weight: 500; color: var(--ink); padding: 12px 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-layout .sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .article-card-img { height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rock-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .rock-grid { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
