/* DB Attic Studios — Deep Emerald */
:root {
  --ground: #0B1A14;
  --surface: #12261D;
  --line: #1F3A2D;
  --line-strong: #2F5444;
  --text: #EAE6DA;
  --text-soft: #C9D1C8;
  --muted: #A9B5AA;
  --faint: #7F9486;
  --brass: #C9A45C;
  --sage: #7FB89A;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--brass); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brass); color: var(--ground); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 600; }

.brand-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(1px 0 0 var(--brass))
    drop-shadow(-1px 0 0 var(--brass))
    drop-shadow(0 1px 0 var(--brass))
    drop-shadow(0 -1px 0 var(--brass));
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.nav a { padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--brass); border-bottom: 1px solid var(--brass); }
.nav .nav-cta { padding: 10px 18px; border: 1px solid var(--brass); color: var(--brass); }
.nav .nav-cta:hover { background: var(--brass); color: var(--ground); }

/* Type helpers */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.eyebrow.sage { color: var(--sage); }
.eyebrow.brass { color: var(--brass); }
.lede { font-size: 19px; color: var(--text-soft); max-width: 600px; }
.muted { color: var(--muted); }
.display { font-size: clamp(42px, 6vw, 84px); line-height: 1.03; letter-spacing: -0.02em; }
.display em { color: var(--brass); }
.h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.07; }
.h3 { font-size: 26px; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; padding: 16px 28px; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--brass); }
.btn-primary { background: var(--brass); color: var(--ground); }
.btn-primary:hover { background: #D8BB7C; border-color: #D8BB7C; color: var(--ground); }
.btn-ghost { border-color: var(--line-strong); font-weight: 500; }
.btn-ghost:hover { border-color: var(--brass); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.badge { display: inline-block; padding: 4px 10px; background: var(--brass); color: var(--ground); }

/* Layout */
.section { padding-top: 104px; padding-bottom: 104px; }
.section-tight { padding-top: 64px; padding-bottom: 64px; }
.band { background: var(--surface); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.rule-top { border-top: 1px solid var(--line); }
.rule-bottom { border-bottom: 1px solid var(--line); }

/* Media frames / placeholders */
.frame { background: var(--surface); border: 1px solid var(--line); overflow: hidden; position: relative; }
.band .frame { background: var(--ground); }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-label { position: absolute; left: 20px; bottom: 16px; color: var(--faint); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.ratio-4-5 { aspect-ratio: 4 / 5; max-height: 620px; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-21-9 { aspect-ratio: 21 / 9; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 64px; }
.hero .split > :first-child { flex-basis: 520px; }
.ridge { display: block; width: 100%; height: 120px; }

/* Values */
.values { display: flex; flex-wrap: wrap; gap: 48px; }
.value { flex: 1 1 280px; min-width: 0; border-top: 2px solid var(--brass); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 32px; }
.card { flex: 1 1 480px; min-width: 0; padding: 40px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.card:hover { border-color: var(--line-strong); color: var(--text); }
.card-title { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.card-link { color: var(--brass); font-weight: 700; }
.stats { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; color: var(--muted); }
.stats strong { color: var(--text); font-size: 22px; }

/* CTA band */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.cta .wrap > div { flex: 1 1 480px; min-width: 0; }

/* Facts list */
.facts { margin: 0 auto; max-width: 680px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

.shots { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 56px; }
.shots > * { flex: 1 1 280px; min-width: 0; }

/* Journal */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.filter { min-height: 44px; padding: 10px 20px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.filter:hover { border-color: var(--brass); }
.filter[aria-pressed="true"] { background: var(--brass); color: var(--ground); border-color: var(--brass); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 40px 32px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post[hidden] { display: none; }
.post-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.post-meta .cat { color: var(--sage); }
.post-meta .date { color: var(--muted); font-weight: 500; }
.post-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.featured { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 32px; background: var(--surface); border: 1px solid var(--line); }
.featured > :first-child { flex: 1 1 480px; min-width: 0; }
.featured > :last-child { flex: 1 1 340px; min-width: 0; }
.featured .frame { background: var(--ground); }
@media (max-width: 600px) { .featured { padding: 20px; } .card { padding: 28px; } }

/* Research */
.pub-group { padding-top: 56px; }
.pub-group h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.pub { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pub-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.pub-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.pub-links a { color: var(--brass); font-weight: 700; }
.tag-award { color: var(--brass); font-weight: 700; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.stat-grid div { background: var(--ground); padding: 24px; }
.stat-grid strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 400; color: var(--text); }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose p, .prose ul { margin: 0 0 16px; color: var(--text-soft); }
.prose a { color: var(--brass); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 64px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brass); }
.site-footer nav { align-items: center; }
.site-footer .social { display: inline-flex; padding: 4px; }
.site-footer .icon { width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* Journal article */
.article { max-width: 760px; margin: 0 auto; padding-top: 88px; padding-bottom: 104px; }
.article-back { display: inline-block; margin-bottom: 40px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.article-meta .cat { color: var(--sage); }
.article-meta .date { color: var(--muted); font-weight: 500; }
.article h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.01em; margin: 20px 0 24px; }
.article .lede { margin-bottom: 40px; }
.article-figure { margin: 40px 0; }
.article-figure img { width: 100%; border: 1px solid var(--line); }
.article-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.article-body h2 { font-size: 30px; line-height: 1.15; margin: 48px 0 16px; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 20px; color: var(--text-soft); font-size: 18px; line-height: 1.75; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--brass); font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--text); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.byline strong { color: var(--text); }
