/* Davis Writing Studio — charcoal literary design options (local preview)
   Shared tokens for hub-option-A / B / C. Not published. */

:root {
  --charcoal: #2c2a28;
  --charcoal-soft: #3a3734;
  --cream: #f4f1ea;
  --cream-dim: #e8e2d6;
  --terracotta: #9a5c52;
  --terracotta-soft: #c9a090;
  --ink: #2c2a28;
  --muted: #8a8378;
  --muted-on-dark: #c4bdb0;
  --line: rgba(244, 241, 234, 0.14);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body.opt {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--cream);
  background: var(--charcoal);
}

h1, h2, h3, .brand-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
}

a { color: var(--terracotta-soft); }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--terracotta);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.opt-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem clamp(1.1rem, 3vw, 2.25rem);
  background: rgba(44, 42, 40, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.opt-top .brand {
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.opt-top .brand-lockup {
  display: block;
}

.opt-top .hub-under-mark {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0;
  object-fit: contain;
  display: block;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

.opt-top .brand-lockup > span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.opt-top nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.opt-top nav a {
  text-decoration: none;
  color: var(--muted-on-dark);
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}

.opt-top nav a[aria-current="page"],
.opt-top nav a:hover {
  color: #fff;
  border-bottom-color: var(--terracotta);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  font-family: var(--font-body);
}

.opt-footer {
  margin-top: 3rem;
  padding: 1.5rem clamp(1.1rem, 3vw, 2.25rem) 2.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

.opt-footer p { margin: 0; }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(154, 92, 82, 0.22);
  color: var(--terracotta-soft);
  border: 1px solid rgba(154, 92, 82, 0.35);
}

.status-pill.soon {
  background: rgba(244, 241, 234, 0.06);
  color: var(--muted-on-dark);
  border-color: var(--line);
}

/* ——— Option A: full-bleed hero + editorial rows ——— */
.opt-a .hero-bleed {
  position: relative;
  min-height: clamp(22rem, 58vh, 34rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.opt-a .hero-bleed .hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(44, 42, 40, 0.94) 0%, rgba(44, 42, 40, 0.72) 42%, rgba(44, 42, 40, 0.35) 70%, rgba(44, 42, 40, 0.55) 100%),
    url("assets/elumen-banner.jpg") center / cover no-repeat;
}

.opt-a .hero-bleed .hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 92%);
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 3rem) clamp(2.25rem, 5vw, 3.5rem);
}

.opt-a .hero-bleed h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  color: #fff;
  max-width: 12ch;
}

.opt-a .hero-bleed .lead {
  margin: 0;
  max-width: 34rem;
  color: var(--cream-dim);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.opt-a .courses-wrap {
  width: min(980px, 94%);
  margin: -2.5rem auto 0;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}

.opt-a .section-label {
  margin: 0 0 1.25rem;
  padding: 0 0.25rem;
}

.opt-a .section-label h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--cream);
}

.opt-a .editorial-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0 1.5rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.opt-a .editorial-row:first-of-type {
  border-top: 1px solid var(--line);
}

.opt-a .editorial-row:hover {
  background: rgba(244, 241, 234, 0.03);
}

.opt-a .editorial-row .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.opt-a .editorial-row:nth-child(odd) .thumb {
  border-radius: 18px 48px 18px 48px;
}

.opt-a .editorial-row:nth-child(even) .thumb {
  border-radius: 48px 18px 48px 18px;
}

.opt-a .row-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.opt-a .row-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
}

.opt-a .row-body strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
}

.opt-a .row-body p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.95rem;
  max-width: 36rem;
}

.opt-a .row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .opt-a .editorial-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .opt-a .editorial-row .thumb {
    max-width: 280px;
    border-radius: 20px !important;
  }
}

/* ——— Option B: split / overlapping panels + soft list ——— */
.opt-b {
  background: #221f1d;
}

.opt-b .split-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: clamp(26rem, 62vh, 36rem);
  position: relative;
}

.opt-b .split-media {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 42% 0 / 0 0 18% 0;
  min-height: 18rem;
}

.opt-b .split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.85);
}

.opt-b .split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(34, 31, 29, 0.55) 100%);
}

.opt-b .split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
  margin-left: -3.5rem;
}

.opt-b .split-panel {
  background: rgba(44, 42, 40, 0.88);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  box-shadow: -24px 28px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.opt-b .split-panel h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  color: #fff;
}

.opt-b .split-panel .lead {
  margin: 0;
  color: var(--cream-dim);
  font-size: 1.05rem;
  max-width: 28rem;
}

.opt-b .courses-wrap {
  width: min(860px, 92%);
  margin: 2.5rem auto 0;
}

.opt-b .section-label h2 {
  margin: 0.2rem 0 1.25rem;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  color: var(--cream);
}

.opt-b .soft-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.opt-b .soft-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.15rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.opt-b .soft-item:hover {
  background: rgba(244, 241, 234, 0.07);
  border-color: rgba(154, 92, 82, 0.4);
  transform: translateX(4px);
  color: inherit;
}

.opt-b .soft-item .thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 3px rgba(154, 92, 82, 0.35);
}

.opt-b .soft-item:nth-child(2) .thumb,
.opt-b .soft-item:nth-child(4) .thumb {
  border-radius: 22px;
  box-shadow: 0 0 0 3px rgba(244, 241, 234, 0.12);
}

.opt-b .soft-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
}

.opt-b .soft-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.opt-b .soft-text p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted-on-dark);
  display: none;
}

@media (min-width: 720px) {
  .opt-b .soft-text p { display: block; }
}

@media (max-width: 860px) {
  .opt-b .split-hero {
    grid-template-columns: 1fr;
  }
  .opt-b .split-media {
    min-height: 16rem;
    border-radius: 0 0 28% 28% / 0 0 12% 12%;
  }
  .opt-b .split-copy {
    margin-left: 0;
    margin-top: -3rem;
  }
}

@media (max-width: 520px) {
  .opt-b .soft-item {
    border-radius: 24px;
    grid-template-columns: auto 1fr;
  }
  .opt-b .soft-item .status-pill {
    grid-column: 2;
    justify-self: start;
  }
}

/* ——— Option C: staggered magazine collage ——— */
.opt-c {
  background: #1e1c1a;
}

/* Match sticky nav + footer to the same left/right edge as intro + tiles */
.opt-c .opt-top,
.opt-c .opt-footer {
  padding: 1rem 96px;
}

/* Full-bleed content: heading + tiles share one left edge across the viewport */
.opt-c .mag-intro,
.opt-c .masonry {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 96px;
  padding-right: 96px;
  box-sizing: border-box;
}

.opt-c .mag-intro {
  padding-top: clamp(1.5rem, 3.5vw, 2.5rem);
  padding-bottom: 0.35rem;
  /* keep left/right from the full-bleed rule above */
}

.opt-c .mag-intro h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  line-height: 1.02;
  color: #fff;
  max-width: 14ch;
}

.opt-c .mag-intro .lead {
  margin: 0;
  max-width: 38rem;
  color: var(--cream-dim);
  font-size: 1.08rem;
}

.opt-c .masonry {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(3.75rem, auto);
  gap: 1.35rem 1.4rem;
  align-items: start;
}

.opt-c .tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.opt-c .tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.opt-c .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 0.4s ease;
  filter: brightness(0.8) saturate(0.95);
}

.opt-c .tile:hover img {
  transform: scale(1.05);
  filter: brightness(0.9) saturate(1.05);
}

.opt-c .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 28, 26, 0.05) 0%, transparent 30%, rgba(30, 28, 26, 0.5) 70%, rgba(30, 28, 26, 0.92) 100%);
  z-index: 1;
}

.opt-c .tile-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.15rem 1.25rem 1.35rem;
}

.opt-c .tile-copy .status-pill {
  position: relative;
  z-index: 3;
}

.opt-c .tile-1302 .tile-copy p,
.opt-c .tile-2311 .tile-copy p {
  font-size: 0.82rem;
}

.opt-c .tile-1301 .tile-copy p {
  max-width: 34rem;
}

.opt-c .tile-copy .kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
}

.opt-c .tile-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 500;
  margin: 0.2rem 0 0.35rem;
  line-height: 1.1;
}

.opt-c .tile-copy p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: var(--cream-dim);
  max-width: 28rem;
}

/* Four distinct sizes — organic magazine collage (no text-covering overlap) */
.opt-c .tile-1301 {
  grid-column: 1 / span 6;
  grid-row: 1 / span 5;
  min-height: 22rem;
  border-radius: 40px 100px 44px 72px;
  z-index: 2;
}

.opt-c .tile-1302 {
  grid-column: 7 / span 6;
  grid-row: 1 / span 5;
  min-height: 20rem;
  border-radius: 80px 32px 48px 28px;
  margin-top: 2.75rem;
  z-index: 1;
}

.opt-c .tile-2311 {
  grid-column: 1 / span 5;
  grid-row: 6 / span 5;
  min-height: 19rem;
  border-radius: 48px 28px 88px 36px;
  margin-top: 0.5rem;
  margin-left: 0;
  max-width: none;
  z-index: 1;
}

.opt-c .tile-2328 {
  grid-column: 6 / span 7;
  grid-row: 6 / span 5;
  min-height: 22.5rem;
  border-radius: 32px 64px 40px 72px;
  margin-top: 0.5rem;
  z-index: 1;
}

.opt-c .tile-2328 .tile-copy {
  padding-left: 1.6rem;
}

@media (max-width: 800px) {
  .opt-c .opt-top,
  .opt-c .opt-footer,
  .opt-c .mag-intro,
  .opt-c .masonry {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .opt-c .mag-intro,
  .opt-c .masonry {
    width: 100%;
  }
  .opt-c .masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1.1rem;
  }
  .opt-c .tile-1301,
  .opt-c .tile-1302,
  .opt-c .tile-2311,
  .opt-c .tile-2328 {
    grid-column: 1;
    grid-row: auto;
    margin: 0;
    max-width: none;
    min-height: 15rem;
  }
  .opt-c .tile-1301 { border-radius: 32px 72px 32px 32px !important; }
  .opt-c .tile-1302 { border-radius: 72px 32px 32px 48px !important; }
  .opt-c .tile-2311 { border-radius: 32px 32px 72px 32px !important; }
  .opt-c .tile-2328 { border-radius: 32px 48px 32px 72px !important; }
}

/* Charcoal ombré depth + Trail-School dragon accents on hub */
.opt-c {
  background:
    radial-gradient(100% 70% at 0% 0%, rgba(154, 92, 82, 0.1), transparent 42%),
    radial-gradient(80% 50% at 100% 10%, rgba(58, 55, 52, 0.5), transparent 50%),
    linear-gradient(180deg, #252320 0%, #1e1c1a 45%, #171513 100%);
  background-attachment: fixed;
}

.opt-c .mag-intro h1::after {
  content: none;
}

.opt-c .hub-dragon-rule {
  width: min(14rem, 60%);
  height: 1.4rem;
  margin: 0.85rem 0 0;
  background: url("assets/dragon-rule.svg") left center / contain no-repeat;
  opacity: 0.85;
}

.opt-c .tile::after {
  background:
    linear-gradient(105deg, rgba(30, 28, 26, 0.78) 0%, rgba(30, 28, 26, 0.35) 38%, rgba(30, 28, 26, 0.15) 62%, rgba(30, 28, 26, 0.55) 100%),
    linear-gradient(180deg, rgba(30, 28, 26, 0.08) 0%, transparent 28%, rgba(30, 28, 26, 0.55) 68%, rgba(20, 18, 16, 0.94) 100%);
}

.opt-c .tile-1301::before,
.opt-c .tile-1302::before,
.opt-c .tile-2311::before,
.opt-c .tile-2328::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1.15rem;
  width: 3rem;
  height: 1.55rem;
  background: url("assets/dragon-mark.svg") center / contain no-repeat;
  opacity: 0.55;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
  pointer-events: none;
}

.opt-c .tile-1302::before { opacity: 0.45; transform: scaleX(-1); left: 1.15rem; right: auto; }
.opt-c .tile-2311::before { top: auto; bottom: 5.5rem; opacity: 0.4; }
.opt-c .tile-2328::before { opacity: 0.5; width: 3.4rem; }

.opt-c .brand::after {
  content: none;
}
