/* home.css — landing page composition.

   Layout families used, one appearance each: manifesto hero (atmospheric,
   left-aligned), asymmetric work panels (the one deliberate mirrored pair),
   devlog list, signup band. The two work panels are the only image+text
   splits on the page, inside the zigzag cap. */

/* ── hero: editorial manifesto over a crimson atmosphere ──────────────── */

.hero {
  position: relative;
  padding-block: clamp(5rem, 14vh, 9rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
.hero::before {
  /* the atmosphere: two warm radial washes, plus Perpetūra's star dust
     as a repeating tile of faint specks in the three house tones */
  content: "";
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(42% 55% at 18% 8%, rgba(110, 40, 48, 0.42), transparent 70%),
    radial-gradient(50% 60% at 88% 92%, rgba(166, 61, 71, 0.16), transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23e8ddd0'%3E%3Ccircle cx='23' cy='41' r='1' opacity='.5'/%3E%3Ccircle cx='187' cy='19' r='1.3' opacity='.35'/%3E%3Ccircle cx='104' cy='128' r='.8' opacity='.45'/%3E%3Ccircle cx='219' cy='203' r='1' opacity='.3'/%3E%3C/g%3E%3Cg fill='%23c9a96e'%3E%3Ccircle cx='61' cy='176' r='1.2' opacity='.4'/%3E%3Ccircle cx='152' cy='84' r='.9' opacity='.5'/%3E%3C/g%3E%3Cg fill='%23d98f95'%3E%3Ccircle cx='36' cy='222' r='1' opacity='.35'/%3E%3Ccircle cx='203' cy='117' r='.8' opacity='.4'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero__orrery {
  position: absolute;
  right: clamp(-10rem, -4vw, -2rem);
  top: 50%;
  translate: 0 -50%;
  width: min(52vw, 700px);
  aspect-ratio: 1;
  pointer-events: none;
}

/* the hero composition: manifesto left, the ledger floating over the
   orrery right, its rings emerging around the frame */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__media {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.hero__media img { border-radius: var(--radius); }
.hero__media::before,
.hero__media::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 0 solid var(--crimson-bright);
  opacity: 0.9;
}
.hero__media::before { top: -5px; left: -5px; border-top-width: 2px; border-left-width: 2px; }
.hero__media::after { bottom: -5px; right: -5px; border-bottom-width: 2px; border-right-width: 2px; }

@media (max-width: 767px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__orrery-orbs {
    transform-origin: 300px 300px;
    animation: orrery-turn 150s linear infinite;
  }
  @keyframes orrery-turn { to { transform: rotate(360deg); } }
}
@media (max-width: 767px) {
  .hero__orrery { width: 88vw; right: -30vw; opacity: 0.55; }
}
.hero__inner { position: relative; max-width: 21em; }
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 470;
  font-variation-settings: "opsz" 90;
}
.hero h1 em {
  font-style: italic;
  color: var(--rose-300);
  line-height: 1.1;                 /* italic descender clearance */
  padding-bottom: 0.05em;
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: 1.3125rem;
  color: var(--text-dim);
  max-width: 34ch;
}
.hero__cta { margin-top: 2.25rem; }

/* ── works: two asymmetric panels, each wearing its own metal ─────────── */

.works { padding-block: clamp(3rem, 8vw, 5rem) 0; }

/* Pantheon's kicker hairline, quoted: every section heading trails a 1px
   line that fades from the accent to nothing (theme-classified.css's
   signature move), here in the house crimson. */
.rule-fade {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.rule-fade::after {
  content: "";
  flex: 1;
  height: 1px;
  align-self: center;
  background: linear-gradient(to right,
    color-mix(in srgb, var(--crimson) 55%, transparent),
    transparent);
}

.works > .wrap > h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-bottom: 1rem;
}

.work {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.work + .work { border-top: 1px solid var(--divider); }
.work--flip .work__media { order: 2; }

.work__media {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--metal-border);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  transition: border-color 250ms ease-out, transform 250ms ease-out;
}
.work__media img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: var(--radius);
}
.work:hover .work__media { border-color: var(--metal); }

/* Corner ticks on the frame, quoting Perpetūra's dialogs: two opposite
   corners only, worn in each panel's own metal. */
.work__media::before,
.work__media::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 0 solid var(--metal);
  opacity: 0.9;
}
.work__media::before {
  top: -5px; left: -5px;
  border-top-width: 2px; border-left-width: 2px;
}
.work__media::after {
  bottom: -5px; right: -5px;
  border-bottom-width: 2px; border-right-width: 2px;
}

/* each panel declares its metal once; everything inside reads the tokens */
.work--perpetura { --metal: var(--gold);  --metal-border: var(--gold-border); }
.work--pantheon  { --metal: var(--brass); --metal-border: var(--brass-border); }

.work__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 520;
  color: var(--metal);
}
.work__tagline {
  font-style: italic;
  font-size: 1.3125rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}
.work__body { margin-top: 1.25rem; color: var(--text); }
.work__meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-top: 1.5rem;
}
.work__links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.25rem; }

/* ── devlog teaser ────────────────────────────────────────────────────── */

.devlog { padding-block: clamp(4rem, 9vw, 6.5rem) 0; }
.devlog__head {
  display: flex; align-items: baseline;
  gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1rem;
}
.devlog__head::after {
  /* the same fading hairline, sitting between the heading and the link */
  content: "";
  flex: 1;
  order: 1;
  height: 1px;
  align-self: center;
  background: linear-gradient(to right,
    color-mix(in srgb, var(--crimson) 55%, transparent),
    transparent);
}
.devlog__head .textlink { order: 2; }
.devlog__head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }

.devlog__list { list-style: none; }
.devlog__list li { border-bottom: 1px solid var(--divider); }
.devlog__list a {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem 2rem;
  align-items: baseline;
  padding-block: 1.5rem;
  text-decoration: none;
  color: inherit;
}
.devlog__date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.devlog__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 520;
  color: var(--text);
  transition: color 180ms ease-out;
}
.devlog__list a:hover .devlog__title { color: var(--rose-200); }
.devlog__summary { color: var(--text-dim); margin-top: 0.35rem; font-size: 1.0625rem; }

/* ── signup band ──────────────────────────────────────────────────────── */

.signup {
  margin-top: clamp(4rem, 10vw, 7rem);
  border-block: 1px solid var(--border);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(110, 40, 48, 0.18), transparent 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23e8ddd0'%3E%3Ccircle cx='23' cy='41' r='1' opacity='.3'/%3E%3Ccircle cx='187' cy='19' r='1.2' opacity='.22'/%3E%3Ccircle cx='104' cy='128' r='.8' opacity='.28'/%3E%3C/g%3E%3Cg fill='%23d98f95'%3E%3Ccircle cx='61' cy='176' r='1' opacity='.24'/%3E%3Ccircle cx='203' cy='117' r='.8' opacity='.26'/%3E%3C/g%3E%3C/svg%3E") repeat,
    var(--surface);
}
.signup__inner { padding-block: clamp(3rem, 7vw, 4.5rem); max-width: 620px; }
.signup h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.signup__body { color: var(--text-dim); margin-top: 0.75rem; }

/* ── mobile collapse ──────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .work { grid-template-columns: 1fr; gap: 1.75rem; }
  .work--flip .work__media { order: 0; }
  .work__media { max-width: 420px; }
  .devlog__list a { grid-template-columns: 1fr; gap: 0.25rem; }
  .nav__links { gap: 0.85rem; }
}
