:root {
  --ink: #1f1b16;
  --ink-soft: #44382c;
  --sand: #f6f0e7;
  --clay: #e9dac7;
  --copper: #b0642a;
  --copper-dark: #7a3f16;
  --stone: #cbbca6;
  --card: #fbf7f1;
  --line: rgba(31, 27, 22, 0.12);
  --shadow: 0 18px 40px rgba(28, 22, 14, 0.16);
  --shadow-sm: 0 8px 20px rgba(28, 22, 14, 0.10);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--copper-dark); text-decoration: none; }
a:hover, a:focus { color: var(--copper); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; font-weight: 500; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--sand); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(246, 240, 231, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.04em;
  color: var(--ink);
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  padding: 7px 12px; border-radius: 999px; color: var(--ink-soft);
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em;
  transition: background .15s, color .15s;
}
.site-nav a:hover, .site-nav a:focus { background: var(--clay); color: var(--ink); }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(80vh, 680px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,8,0) 30%, rgba(20,14,8,0.78) 100%);
}
.hero-overlay { position: relative; z-index: 2; width: 100%; padding-block: clamp(32px, 6vw, 64px); color: #fdf8f0; }
.hero-overlay h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); margin: 6px 0 14px; color: #fff; }
.hero-overlay .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; color: #f3e7d6; margin: 0 0 26px; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; color: var(--copper); margin: 0; }
.hero-overlay .eyebrow { color: #e9b787; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  background: var(--copper); color: #fff; font-weight: 600; letter-spacing: 0.02em;
  border: 1.5px solid var(--copper); transition: transform .12s, background .15s;
}
.button:hover { background: var(--copper-dark); border-color: var(--copper-dark); color: #fff; transform: translateY(-1px); }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.button.ghost:hover { background: rgba(255,255,255,0.14); color: inherit; }

/* ---------- bands / sections ---------- */
.band { padding-block: clamp(46px, 7vw, 86px); }
.band:nth-of-type(even) { background: linear-gradient(180deg, #fbf6ee, #f1e6d4); }
.intro { max-width: 820px; }
.hook { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.25; margin: 0 0 22px; color: var(--ink); }
.prose { color: var(--ink-soft); }
.prose p { margin: 0 0 1em; }

.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 8px; }
.section-sub { color: var(--ink-soft); margin: 0; max-width: 60ch; }

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid; gap: 22px; padding-block: clamp(46px, 7vw, 80px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  display: flex; flex-direction: column; background: var(--card);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; color: var(--ink);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.feature-img { aspect-ratio: 4 / 3; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.feature-body h3 { font-size: 1.5rem; margin: 0; }
.feature-body p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.feature-cta { margin-top: 6px; font-weight: 600; color: var(--copper-dark); font-size: 0.9rem; letter-spacing: 0.04em; }

/* ---------- embeds ---------- */
.embed { margin: 22px 0; }
.embed-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: #000; max-width: 860px; }
.embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-audio iframe { width: 100%; height: 166px; border: 0; border-radius: var(--radius-sm); }

/* ---------- pills / players ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 17px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--stone); font-size: 0.92rem; color: var(--ink-soft);
}
.more-link { margin-top: 22px; font-weight: 600; }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink) !important; color: var(--sand); }
.cta-band h2 { color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-inner p { margin: 8px 0 0; color: #e6d8c4; max-width: 46ch; }

/* ---------- page hero (interior) ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 72px) 22px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 8px 0 12px; }
.page-intro { font-size: 1.15rem; color: var(--ink-soft); margin: 0; max-width: 64ch; }
.page-banner { margin: 12px 0 0; }
.page-banner img { width: 100%; max-height: 60vh; object-fit: cover; }

/* ---------- prose (interior pages) ---------- */
.post-content { max-width: 760px; margin-block: 36px; }
.post-content h2 { font-size: 1.7rem; margin: 1.6em 0 0.5em; }
.post-content h3 { font-size: 1.3rem; margin: 1.4em 0 0.4em; }
.post-content ul { padding-left: 1.1em; }
.post-content li { margin: 0.5em 0; }
.post-content a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- gallery (masonry) ---------- */
.gallery { columns: 3 280px; column-gap: 16px; padding-bottom: clamp(50px, 8vw, 90px); margin-top: 30px; }
.gallery-item { break-inside: avoid; margin: 0 0 16px; }
.gallery-link { display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-link img { display: block; width: 100%; transition: transform .3s ease; }
.gallery-link:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--copper-dark); margin-top: 8px;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #e6d8c4; padding-block: 40px; margin-top: auto; }
.footer-inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center;
}
.footer-name { font-family: var(--font-display); font-size: 1.4rem; color: #fff; display: block; }
.footer-brand .subtle { font-size: 0.9rem; color: #c9b89f; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 0.9rem; }
.footer-contact a { color: #f0c9a3; }

/* ---------- responsive nav ---------- */
@media (max-width: 860px) {
  .nav-toggle-label {
    display: block; width: 30px; height: 22px; position: relative; cursor: pointer;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s;
  }
  .nav-toggle-label span { top: 50%; transform: translateY(-50%); }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  .site-nav {
    flex-basis: 100%; flex-direction: column; gap: 2px;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 600px; padding-top: 8px; }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }
  .site-nav a { padding: 10px 12px; }
}

@media (max-width: 560px) {
  .gallery { columns: 2 150px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
