:root {
  --color-primary: #2563eb;
  --color-secondary: #475569;
  --color-accent: #f59e0b;
  --color-bg-main: #f8fafc;
  --color-bg-card-primary: #ffffff;
  --color-bg-card-secondary: #e2e8f0;
  --color-bg-header: #ffffff;
  --color-bg-footer: #0f172a;
  --color-text-main: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-on-primary: #ffffff;
  --color-border: #cbd5e1;
  --color-link: #1d4ed8;
  --color-link-hover: #1e40af;
  --color-focus: #2563eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-heading: "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --content-width: 1120px;
  --article-width: 760px;
  --section-spacing: clamp(48px, 7vw, 96px);
  --ink: var(--color-text-main);
  --muted: var(--color-text-muted);
  --paper: var(--color-bg-main);
  --cream: var(--color-bg-card-primary);
  --wine: var(--color-primary);
  --wine-dark: var(--color-link-hover);
  --olive: var(--color-secondary);
  --apricot: var(--color-accent);
  --line: var(--color-border);
  --shadow: var(--shadow-soft);
  --serif: var(--font-heading);
  --sans: var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
p { margin: 0 0 1.15rem; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 100; transform: translateY(-150%); padding: .8rem 1rem; background: var(--cream); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(247, 241, 231, .94); backdrop-filter: blur(18px); }
.header-inner { width: min(1440px, calc(100% - 3rem)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; max-width: 340px; text-decoration: none; font-size: .82rem; font-weight: 650; line-height: 1.25; }
.brand-logo { width: 126px; height: 42px; flex: 0 0 auto; object-fit: contain; object-position: left center; }
nav { display: flex; gap: 1.5rem; font-size: .88rem; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--wine); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: .6rem .8rem; }
.home-hero { position: relative; min-height: min(780px, calc(100svh - 78px)); display: grid; align-items: end; overflow: hidden; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 18, 13, .72), rgba(25, 18, 13, .08) 70%), linear-gradient(0deg, rgba(25, 18, 13, .46), transparent 60%); }
.hero-copy { position: relative; z-index: 1; width: min(900px, calc(100% - 3rem)); margin: 0 auto 7vw 7vw; color: #fff; }
.hero-copy h1 { max-width: 850px; }
.hero-copy > p:not(.kicker) { max-width: 650px; margin-top: 1.4rem; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.kicker { margin: 0 0 .8rem; color: var(--apricot); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; min-height: 50px; padding: .7rem 1.25rem; border: 0; border-radius: 999px; background: var(--wine); color: #fff; font: inherit; font-weight: 750; text-decoration: none; }
.button:hover, .button:focus-visible { background: var(--wine-dark); }
.button.secondary { background: var(--olive); }
.button[disabled] { opacity: .58; cursor: not-allowed; }
.text-link { font-weight: 750; text-underline-offset: .25em; }
.manifesto { padding: clamp(4rem, 9vw, 9rem) max(1.5rem, 8vw); background: var(--wine); color: #fff; }
.manifesto p { max-width: 1200px; margin: auto; font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 5rem); line-height: 1.08; text-align: center; text-wrap: balance; }
.section { width: min(1280px, calc(100% - 3rem)); margin: auto; padding: clamp(4rem, 8vw, 8rem) 0; }
.section.soft { margin-block: 4rem; padding-inline: clamp(1.5rem, 5vw, 5rem); border-radius: 32px; background: var(--cream); }
.section-head { max-width: 770px; margin-bottom: 2.5rem; }
.section-head > p:last-child { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.category-card { position: relative; min-height: 480px; overflow: hidden; border-radius: 28px; background: #1c1815; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .68; transition: transform .5s ease; }
.category-card:hover img { transform: scale(1.025); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 15, 13, .88), transparent 75%); }
.category-card div { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: clamp(1.4rem, 4vw, 3rem); }
.category-card span { color: #f4b38f; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.category-card h3 { margin: .45rem 0 .8rem; font-size: clamp(2rem, 4vw, 4rem); }
.category-card p { max-width: 550px; margin: 0; }
.latest { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--cream); }
.card-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.card-image img { width: 100%; height: 100%; transition: transform .45s ease; }
.card:hover .card-image img { transform: scale(1.025); }
.card-body { padding: clamp(1.35rem, 3vw, 2.25rem); }
.card h3 a { text-decoration: none; }
.card h3 + p { margin-top: 1rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .83rem; }
.split-callout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split-callout img { min-height: 470px; border-radius: 30px; box-shadow: var(--shadow); }
.split-callout h2 + p { margin-top: 1.2rem; font-size: 1.08rem; }
.page-hero { width: min(1400px, calc(100% - 3rem)); margin: 3rem auto 0; }
.page-hero.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 620px; overflow: hidden; border-radius: 34px; background: var(--cream); }
.page-hero.split > div { padding: clamp(2rem, 5vw, 5rem); }
.page-hero.split > img { width: 100%; height: 100%; min-height: 620px; }
.page-hero.compact { max-width: 1050px; margin-top: clamp(4rem, 8vw, 8rem); margin-bottom: clamp(2rem, 5vw, 5rem); text-align: center; }
.lead { margin-top: 1.35rem; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.prose { max-width: 790px; margin: auto; font-size: 1.08rem; }
.prose h2, .article-body h2 { margin: 3.2rem 0 1.2rem; }
.prose li, .article-body li { margin-bottom: .8rem; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.feature-list div { padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.feature-list span { display: block; margin-top: .45rem; color: var(--muted); font-size: .92rem; }
.notice { margin: 2rem 0; padding: 1.4rem; border-left: 5px solid var(--apricot); background: #fff5e8; }
.notice p { margin: .4rem 0 0; }
.article { padding-bottom: 6rem; }
.article-header { width: min(1050px, calc(100% - 3rem)); margin: clamp(4rem, 8vw, 8rem) auto 3rem; text-align: center; }
.article-header h1 { font-size: clamp(2.8rem, 6vw, 6rem); }
.article-cover { width: min(1400px, calc(100% - 3rem)); aspect-ratio: 16 / 9; margin: 0 auto 4rem; overflow: hidden; border-radius: 32px; }
.article-cover img { width: 100%; height: 100%; }
.article-grid { width: min(1080px, calc(100% - 3rem)); margin: auto; display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 4rem; }
.article-body { font-size: 1.12rem; }
.article-body > p:first-child { font-size: 1.28rem; }
.article-aside { position: sticky; top: 110px; align-self: start; padding: 1.3rem; border-top: 4px solid var(--wine); background: var(--cream); font-size: .9rem; }
.table-wrap { overflow-x: auto; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--cream); }
th, td { padding: 1rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.process div { padding: 1.4rem; border-top: 4px solid var(--wine); background: var(--cream); }
.process span { color: var(--apricot); font-weight: 800; }
.process h2 { margin: 1rem 0; font-size: 1.7rem; }
.contact-form { max-width: 760px; margin: auto; display: grid; gap: 1.2rem; }
.contact-form label { display: grid; gap: .45rem; font-weight: 750; }
input, select, textarea { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); font: inherit; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }
.site-footer { padding: 4rem max(1.5rem, 6vw) 1.5rem; background: var(--ink); color: #f7f1e7; }
.footer-grid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.footer-links { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.footer-grid p { max-width: 470px; color: #cfc7ba; }
.footer-grid a:not(.brand) { color: #e7dfd3; text-decoration: none; }
.footer-grid a:not(.brand):hover, .footer-grid a:not(.brand):focus-visible { color: var(--apricot); }
.copyright { max-width: 1280px; margin: 4rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); color: #aaa195; font-size: .8rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav { position: absolute; top: 78px; right: 0; left: 0; display: none; flex-direction: column; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  nav[data-open="true"] { display: flex; }
  .home-hero { min-height: 690px; }
  .hero-copy { margin: 0 1.5rem 4rem; }
  .category-grid, .cards, .split-callout, .page-hero.split, .article-grid { grid-template-columns: 1fr; }
  .page-hero.split > img { min-height: 380px; }
  .split-callout img { width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .article-aside { position: static; }
  .feature-list, .process { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .header-inner, .section, .page-hero, .article-header, .article-cover, .article-grid { width: min(100% - 2rem, 1280px); }
  .brand > span:last-child { display: none; }
  .category-grid, .feature-list, .process, .footer-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 360px; }
  .page-hero.split { border-radius: 22px; }
  .page-hero.split > img { min-height: 290px; }
  .article-cover { aspect-ratio: 4 / 3; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
