/* ============================================================
   august.gobo.media — Restless Heart
   Same design language as gobo.media (matte editorial)
   ============================================================ */

:root {
  --ink: #0e0d0b;
  --ink-2: #1c1a17;
  --bone: #efeae0;
  --bone-2: #e6e0d3;
  --paper: #f6f2e9;
  --muted: #6b6258;
  --rule: #d8d1c1;
  --ember: #b54a2a;
  --ember-soft: #c96a47;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --t-mono: 0.78rem;
  --t-body: 1.0625rem;
  --t-display: clamp(3.75rem, 11vw, 11rem);

  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --max: 1440px;
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bone); }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(14,13,11,1) 1px, transparent 1px),
    radial-gradient(rgba(14,13,11,1) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

main { position: relative; z-index: 2; }

/* ------------------------------------ Nav -------------------------------------- */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.brand-dot { color: var(--ember); }
.nav-meta {
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------ Hero ------------------------------------- */
.hero {
  padding: clamp(2.5rem, 7vw, 6rem) var(--pad-x) clamp(3rem, 7vw, 6rem);
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.display .line { display: block; }
.display .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  max-width: 32rem;
  font-variation-settings: "opsz" 36;
  font-weight: 400;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
}

/* ------------------------------------ Prose ------------------------------------ */
.prose {
  padding: clamp(3.5rem, 8vw, 7rem) var(--pad-x);
  max-width: calc(var(--measure) + var(--pad-x) * 2 + 6rem);
  margin: 0 auto;
}
.prose-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose-meta .num { color: var(--ember); font-weight: 500; }

.prose p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 1.4em;
  font-variation-settings: "opsz" 36;
}
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; color: var(--ink-2); }

.lede {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem) !important;
  line-height: 1.32 !important;
  letter-spacing: -0.015em !important;
  margin-bottom: 1.6em !important;
}

.prose-pull .pull {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.02em !important;
  font-weight: 300 !important;
  font-style: italic;
  color: var(--ink);
}
.prose-pull .pull-attr {
  font-family: var(--sans) !important;
  font-size: var(--t-mono) !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  font-style: normal !important;
  margin-top: 1.5rem !important;
}

/* ------------------------------------ Plate ------------------------------------ */
.plate { padding: clamp(1.5rem, 4vw, 3rem) var(--pad-x); }
.plate-wide figure { max-width: var(--max); margin: 0 auto; }
.plate-wide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.9);
}

/* ------------------------------------ Close ------------------------------------ */
.close {
  padding: clamp(5rem, 10vw, 9rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.close-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ember);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(181, 74, 42, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(181, 74, 42, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(181, 74, 42, 0.05); }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}
