/* ==========================================================================
   Filament — site stylesheet
   Shared across landing (/), about (/about), and the gallery (/edition).
   Per BRAND.md: quiet confidence, restrained, the work talks.
   ========================================================================== */

:root {
  --bg: #0e0d0a;
  --surface: #18171a;
  --fg: #f5e8c8;
  --fg-soft: #d8cba8;
  --muted: #888076;
  --line: #2a2a26;
  --accent: #b38b2a;
  --accent-hover: #c79a30;
  --max-width: 1200px;
  --pad: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    "Segoe UI",
    sans-serif;
  font-feature-settings: "ss01", "tnum", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms;
}
a:hover {
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   Header / nav (shared)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 10, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  border: none;
}
.site-brand:hover {
  border: none;
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.site-nav a {
  color: var(--muted);
  border: none;
}
.site-nav a:hover {
  color: var(--fg);
}
.site-nav a.active {
  color: var(--fg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 120ms,
    border-color 120ms,
    color 120ms;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--fg);
}

/* ==========================================================================
   Hero (landing page)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--pad) 60px;
  background-color: #0e0d0a;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.hero-bg::after {
  /* Vignette so the text reads on any piece */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      transparent 30%,
      rgba(14, 13, 10, 0.65) 75%,
      rgba(14, 13, 10, 0.95) 100%
    ),
    linear-gradient(180deg, rgba(14, 13, 10, 0.35) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.hero-tagline {
  margin: 18px 0 36px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--fg-soft);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ==========================================================================
   Section wrappers
   ========================================================================== */

section {
  padding: 80px var(--pad);
}
section.tight {
  padding: 50px var(--pad);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-narrow {
  max-width: 720px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
section h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
section p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-soft);
  margin: 0 0 18px;
  max-width: 64ch;
}

/* ==========================================================================
   Preview tape (horizontal scrolling thumb row on landing)
   ========================================================================== */

.preview-tape {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--pad);
}
.preview-tape::-webkit-scrollbar {
  display: none;
}
.preview-tape > a {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  scroll-snap-align: start;
  border-bottom: 1px solid var(--line);
  transition: border-color 120ms;
}
.preview-tape > a:hover {
  border-color: var(--accent);
}
.preview-tape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Pair-concept block (the headline mechanic visualized)
   ========================================================================== */

.pair-concept {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 36px 0 24px;
  max-width: 760px;
}
.pair-tile {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.pair-tile-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.pair-tile-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 6px 0;
}
.pair-tile-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.pair-plus {
  font-size: 36px;
  color: var(--muted);
  font-weight: 300;
}
@media (max-width: 700px) {
  .pair-concept {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pair-plus {
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   CTA stripe (between sections)
   ========================================================================== */

.cta-stripe {
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    rgba(24, 23, 26, 0.4) 100%
  );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-stripe h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cta-stripe p {
  color: var(--fg-soft);
  margin: 0 auto 24px;
  max-width: 520px;
}
.cta-stripe .btn {
  margin: 0 6px;
}

/* ==========================================================================
   Footer (shared)
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--pad) 48px;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--fg-soft);
}
.site-footer a:hover {
  border-bottom-color: var(--accent);
}
.site-footer .footer-fineprint {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   About page bits
   ========================================================================== */

.about-hero {
  padding: 80px var(--pad) 24px;
}
.about-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.about-hero p.lede {
  font-size: 19px;
  color: var(--fg-soft);
  margin: 0;
  max-width: 64ch;
  line-height: 1.55;
}
.about-pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 40px 0;
}
.about-piece {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
.about-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-piece-caption {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.faq dt {
  font-weight: 700;
  font-size: 16px;
  margin-top: 26px;
  color: var(--fg);
}
.faq dd {
  margin: 6px 0 0;
  color: var(--fg-soft);
  line-height: 1.6;
}

/* ==========================================================================
   Mobile tweaks
   ========================================================================== */

@media (max-width: 700px) {
  :root {
    --pad: 18px;
  }
  section {
    padding: 60px var(--pad);
  }
  .hero {
    min-height: 78vh;
    padding: 60px var(--pad) 40px;
  }
  .preview-tape > a {
    width: 160px;
    height: 160px;
  }
}
