/* The Marriage Portfolio — site styles
   Palette derived from the TMP logo and partner flyers.
   Two bands alternate: ink (near-black) and ivory (warm cream). */

:root {
  --ink:        #0B0B0B;
  --ink-2:      #16150F;
  --gold:       #BE8F3C;
  --gold-deep:  #806128;
  --ivory:      #F7F4ED;
  --ivory-2:    #EDE8DC;
  --rule:       #D8D1BF;
  --body-dark:  #4A4741;
  --body-light: #CFC9BA;

  --t-culinary:  #2E7D6F;
  --t-adventure: #E07A2C;
  --t-coffee:    #7B5EA7;
  --t-acts:      #B23A48;

  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --heading: "Spectral", Georgia, "Times New Roman", serif;
  --sans:    "Jost", "Helvetica Neue", Arial, sans-serif;
  --script:  "Dancing Script", "Segoe Script", cursive;

  --measure: 62ch;
  --pad-x:   clamp(1.25rem, 5vw, 5rem);
  --band-y:  clamp(4rem, 10vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--body-dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.0625rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  z-index: 100;
}
.skip:focus { left: 0; }

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

/* ---------- Reusable type ---------- */

.kicker {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--gold-deep);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

.display em {
  font-style: italic;
}

.lede {
  max-width: var(--measure);
  margin: 1.5rem 0 0;
}

.script-line {
  font-family: var(--script);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

/* ---------- Bands ---------- */

.band {
  padding: var(--band-y) var(--pad-x);
}

.band--ink {
  background: var(--ink);
  color: var(--body-light);
}

.band--ink .kicker { color: var(--gold); }
.band--ink .display { color: var(--ivory); }

.band--ivory {
  background: var(--ivory);
}

.band--ivory .display { color: var(--ink); }

/* Section headlines use the text serif, not the Didone. Bodoni stays in the
   hero, the monogram, and the wordmark — sizes large enough that its hairlines
   hold up. At section-header size on a dark ground those hairlines thin out and
   the type starts to shimmer, which is what makes it tiring to read. Spectral
   has a larger x-height and far less stroke contrast, so it stays comfortable. */
.band .display,
.band .detail h2 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

/* Heading scale, largest first. These names describe SIZE, not location — a
   headline sitting inside .hero does not automatically take .h-hero. */
.h-hero { font-size: clamp(2.4rem, 8vw, 5.5rem); }
.h-page { font-size: clamp(2rem, 6vw, 3.5rem); }
.h-lg   { font-size: clamp(1.75rem, 4.2vw, 2.75rem); }
.h-md   { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }

.band__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(190, 143, 60, 0.28);
}

.masthead__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem var(--pad-x);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.masthead__mark {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
  text-decoration: none;
  white-space: nowrap;
}

.masthead__mark span { color: var(--gold); }

.masthead__nav {
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 2rem);
  flex-wrap: wrap;
}

.masthead__nav a {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body-light);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.masthead__nav a:hover,
.masthead__nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Hero: the logo device, rebuilt in live type ---------- */

.hero {
  background: var(--ink);
  color: var(--body-light);
  padding: clamp(4.5rem, 12vw, 9rem) var(--pad-x) clamp(3.5rem, 8vw, 6rem);
}

.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.lockup {
  position: relative;
  text-align: center;
  padding: clamp(1rem, 3vw, 2.25rem) 0;
}

.lockup__monogram {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5.5rem, 26vw, 17rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  color: var(--gold);
  margin: 0;
  display: block;
}

.lockup__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 46rem);
  background: var(--ink);
  border-top: 1px solid rgba(190, 143, 60, 0.5);
  border-bottom: 1px solid rgba(190, 143, 60, 0.5);
  padding: 0.7rem 0.5rem;
}

.lockup__bar span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.6rem, 2.1vw, 1.05rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap;
}

.hero__thesis {
  max-width: 46rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  text-align: center;
}

.hero__thesis .lede {
  margin-left: auto;
  margin-right: auto;
}

.hero__thesis .display {
  font-size: clamp(1.75rem, 5vw, 3.1rem);
}

.hero__thesis .display strong {
  font-weight: 400;
  color: var(--gold);
  display: block;
}

.hero__meta {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  margin: clamp(2.25rem, 5vw, 3.25rem) 0 0;
  padding: 0;
  list-style: none;
}

.hero__meta div {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
}

.hero__meta span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--body-light);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn--solid {
  background: var(--gold);
  color: var(--ink);
}

.btn--solid:hover {
  background: transparent;
  color: var(--gold);
}

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.hero .btn-row { justify-content: center; }

/* ---------- Mission ---------- */

.mission {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .mission { grid-template-columns: 1fr 1fr; align-items: start; }
}

.mission__body .display {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
}

.verse {
  margin: 0;
  border-left: 2px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.75rem;
}

.verse .script-line {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  color: var(--gold-deep);
}

.verse cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--body-dark);
}

/* ---------- Tracks (parallel categories, deliberately unnumbered) ---------- */

.tracks {
  display: grid;
  gap: 1px;
  background: rgba(190, 143, 60, 0.22);
  border: 1px solid rgba(190, 143, 60, 0.22);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .tracks { grid-template-columns: 1fr 1fr; }
}

.track {
  background: var(--ink);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.track__tag {
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-bottom: 1.5rem;
  background: var(--accent, var(--gold));
}

.track h3 {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ivory);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.track p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---------- Figures (photography placeholders) ---------- */

.figure {
  margin: 0;
}

.figure__slot {
  aspect-ratio: 4 / 3;
  background: var(--ivory-2);
  border: 1px dashed var(--rule);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.band--ink .figure__slot {
  background: var(--ink-2);
  border-color: rgba(190, 143, 60, 0.32);
  color: var(--gold);
}

.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

/* Framed figure — echoes the hairline gold panels on the print flyers. */
.figure--framed {
  position: relative;
  padding: 0.6rem;
  border: 1px solid rgba(190, 143, 60, 0.45);
  background: var(--ink);
}

.figure--framed img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.figure--framed figcaption {
  margin: 0.75rem 0.15rem 0.15rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--gold);
}

/* ---------- The 52-week grid: the Marathon page signature ---------- */

.weeks {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: clamp(0.25rem, 1vw, 0.6rem);
  max-width: 44rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.weeks li {
  aspect-ratio: 1;
  border: 1px solid rgba(190, 143, 60, 0.45);
}

.weeks li:nth-child(4n+1) { background: rgba(46, 125, 111, 0.9); border-color: transparent; }
.weeks li:nth-child(4n+2) { background: rgba(224, 122, 44, 0.9);  border-color: transparent; }
.weeks li:nth-child(4n+3) { background: rgba(123, 94, 167, 0.9);  border-color: transparent; }
.weeks li:nth-child(4n)   { background: rgba(178, 58, 72, 0.9);   border-color: transparent; }

.weeks__note {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  max-width: 44rem;
}

/* ---------- Track detail sections ---------- */

.detail {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 1fr;
}

.band--ink .detail { border-bottom-color: rgba(190, 143, 60, 0.22); }

.detail:last-of-type { border-bottom: 0; }

@media (min-width: 62rem) {
  .detail { grid-template-columns: 1fr 1fr; align-items: center; }
  .detail--flip .detail__body { order: 2; }
}

.detail h2 {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.7vw, 2.35rem);
  margin: 0;
  line-height: 1.12;
}

.detail__rule {
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0 0 1.5rem;
  background: var(--accent, var(--gold));
}

/* ---------- Closing call ---------- */

.closing {
  text-align: center;
}

.closing__lines {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.closing__lines li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(190, 143, 60, 0.28);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.closing__lines li:last-child { border-bottom: 0; }

.closing .script-line {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  color: var(--gold);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--body-light);
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad-x) 2rem;
  border-top: 1px solid rgba(190, 143, 60, 0.28);
}

.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li { margin-bottom: 0.6rem; }

.footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer__mark {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ivory);
  margin: 0 0 0.75rem;
}

.footer__mark span { color: var(--gold); }

.footer__tagline {
  margin: 0;
  font-size: 0.875rem;
}

.footer__legal {
  max-width: 1180px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(190, 143, 60, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

/* ---------- Load sequence: the one piece of motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .lockup__bar { animation: bar-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .lockup__monogram { animation: fade-in 1.1s ease both; }
  .hero__thesis { animation: fade-in 1s ease 0.35s both; }
  .hero__meta { animation: fade-in 1s ease 0.55s both; }

  @keyframes bar-in {
    from { clip-path: inset(0 50% 0 50%); }
    to   { clip-path: inset(0 0 0 0); }
  }
  @keyframes fade-in {
    from { opacity: 0; transform: translateY(0.6rem); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
