/*
Theme Name: Becoming a Lambert
Theme URI: https://becomingalambert.com
Author: Becoming a Lambert
Description: A warm, editorial one-page announcement theme with a two-stage engagement-to-wedding countdown.
Version: 1.0.4
Text Domain: becoming-a-lambert
*/

:root {
  --ink: #24302a;
  --muted: #6c756d;
  --ivory: #fbf8f1;
  --paper: #f3ecdf;
  --sage: #9cae9c;
  --moss: #405548;
  --clay: #b8735c;
  --line: rgba(36, 48, 42, .15);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { position: fixed; width: auto; height: auto; top: 1rem; left: 1rem; z-index: 99; padding: .75rem 1rem; clip: auto; background: #fff; }

.bal-page { max-width: 100%; overflow-x: hidden; }
.bal-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 2rem clamp(1.25rem, 5vw, 5.5rem);
  isolation: isolate;
  background: linear-gradient(130deg, #f8f3e8 0%, #edf0e6 48%, #dce7dc 100%);
}
.bal-hero::before, .bal-hero::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; filter: blur(1px); }
.bal-hero::before { width: 40vw; height: 40vw; min-width: 360px; min-height: 360px; top: -17vw; right: 0; background: rgba(184,115,92,.17); }
.bal-hero::after { width: 34vw; height: 34vw; min-width: 310px; min-height: 310px; bottom: -19vw; left: 0; background: rgba(64,85,72,.13); }
.bal-nav { position: absolute; top: 1.5rem; left: clamp(1.25rem, 5vw, 5.5rem); right: clamp(1.25rem, 5vw, 5.5rem); display: flex; justify-content: space-between; align-items: center; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.bal-nav__brand { text-decoration: none; font-weight: 700; }
.bal-nav__link { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.bal-nav__link:hover { border-color: currentColor; }
.bal-hero__grid { width: min(1160px, 100%); margin: 4rem auto 2rem; display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.bal-kicker { margin: 0 0 1rem; color: var(--clay); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.bal-title { max-width: 700px; margin: 0; font-family: var(--serif); font-size: clamp(3.5rem, 9vw, 8.25rem); font-weight: 400; letter-spacing: -.065em; line-height: .88; }
.bal-title em { display: block; color: var(--moss); font-style: italic; }
.bal-intro { max-width: 38rem; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.bal-scroll { display: inline-flex; gap: .7rem; align-items: center; margin-top: 2rem; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; }
.bal-scroll::after { content: '↓'; font-size: 1rem; }

.bal-portrait { position: relative; width: min(100%, 430px); margin-inline: auto; }
.bal-portrait__frame { aspect-ratio: 4 / 5; overflow: hidden; background: #d6ddcf; box-shadow: 1.1rem 1.1rem 0 rgba(64,85,72,.12); }
.bal-portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.bal-portrait__placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 2rem; color: rgba(36,48,42,.6); text-align: center; font-family: var(--serif); font-size: 1.35rem; font-style: italic; background: linear-gradient(160deg, #c6d1bf, #e5ddcf); }
.bal-portrait__note { position: absolute; right: -1rem; bottom: 1.75rem; max-width: 12rem; padding: 1rem 1.15rem; color: var(--moss); background: #fffdf8; box-shadow: 0 10px 24px rgba(36,48,42,.1); font-family: var(--serif); font-size: 1rem; font-style: italic; transform: rotate(3deg); }

.bal-section { padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 5.5rem); }
.bal-section__inner { width: min(1050px, 100%); margin: auto; }
.bal-section--countdown { background: var(--moss); color: #fffdf8; text-align: center; }
.bal-section__eyebrow { margin: 0 0 .8rem; color: var(--clay); font-size: .7rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.bal-section__heading { margin: 0; font-family: var(--serif); font-size: clamp(2.7rem, 6vw, 5.25rem); font-weight: 400; letter-spacing: -.05em; line-height: .98; }
.bal-countdown__copy { max-width: 36rem; margin: 1.25rem auto 2.4rem; color: rgba(255,253,248,.72); }
.bal-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 720px; margin: auto; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.bal-clock__unit { min-height: 130px; display: grid; place-content: center; padding: 1.25rem .75rem; background: rgba(17,33,24,.35); }
.bal-clock__number { display: block; font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 4.3rem); line-height: 1; }
.bal-clock__label { display: block; margin-top: .55rem; color: rgba(255,253,248,.65); font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bal-countdown__status { min-height: 1.5rem; margin: 1.5rem 0 0; color: rgba(255,253,248,.72); font-size: .9rem; }

.bal-story { background: var(--paper); }
.bal-story__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.bal-story__title { margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.bal-story__copy { max-width: 37rem; margin: 0; color: var(--muted); font-size: 1.08rem; }
.bal-gallery { margin-top: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.bal-gallery__image { overflow: hidden; background: #d8dfd2; }
.bal-gallery__image:first-child { aspect-ratio: 1.15 / 1; }
.bal-gallery__image:last-child { aspect-ratio: .84 / 1; transform: translateY(12%); }
.bal-gallery__image img { width: 100%; height: 100%; object-fit: cover; }
.bal-gallery__placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 2rem; color: rgba(36,48,42,.58); background: linear-gradient(145deg, #e0d5c5, #b9cbb7); font-family: var(--serif); font-style: italic; text-align: center; }

.bal-footer { padding: 2.4rem clamp(1.25rem, 5vw, 5.5rem); background: var(--ink); color: rgba(255,253,248,.68); text-align: center; }
.bal-footer__mark { margin: 0; color: #fffdf8; font-family: var(--serif); font-size: 1.4rem; font-style: italic; }
.bal-footer__note { margin: .4rem 0 0; font-size: .75rem; }
.bal-footer__credit { margin: 1.25rem 0 0; font-size: .68rem; letter-spacing: .04em; }
.bal-footer__credit a { color: #fffdf8; text-decoration-color: rgba(255,253,248,.45); text-underline-offset: .2em; }
.bal-footer__credit a:hover { text-decoration-color: currentColor; }

@media (max-width: 760px) {
  .bal-hero__grid, .bal-story__grid { grid-template-columns: 1fr; }
  .bal-hero__copy { order: 2; text-align: center; }
  .bal-intro { margin-inline: auto; }
  .bal-portrait { max-width: 330px; }
  .bal-scroll { justify-content: center; }
  .bal-story__grid { text-align: center; }
  .bal-story__copy { margin-inline: auto; }
  .bal-clock__unit { min-height: 102px; }
  .bal-gallery { grid-template-columns: 1fr 1fr; }
  .bal-gallery__image:last-child { transform: translateY(8%); }
}
