/* =============================================================
   THE LAWTON — FOUNDER'S LETTER
   Editorial article page in black & gold
   ============================================================= */

:root {
  /* Brand palette */
  --black:      #0A0A0A;
  --ink:       #14120E;
  --ink-soft:  #2A2620;
  --cream:     #F5EEDD;
  --cream-alt: #FAF5EA;
  --parch:     #ECE3CF;
  --gold:      #C8A14B;
  --gold-deep: #A38032;
  --gold-pale: #E6CE8E;
  --muted:     #7A6F58;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", "Playfair Display", Georgia, serif;
  --sans:  "Inter", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --measure: 36rem;            /* max body text width ~ 65ch in serif */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga", "calt", "onum";
}

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

::selection { background: var(--gold); color: var(--black); }

/* -------------------------------------------------------------
   MASTHEAD
   ------------------------------------------------------------- */
.masthead {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: clamp(44px, 5.5vw, 64px);
  width: auto;
  filter: brightness(1.05);
}

.masthead__nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.masthead__nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-pale);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, color 0.35s ease;
}
.masthead__nav a:hover { border-color: var(--gold); color: #fff; }

@media (max-width: 640px) {
  .masthead__nav { display: none; }
}

/* -------------------------------------------------------------
   HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  background: var(--black);
  overflow: hidden;
  color: var(--cream);
}

.hero__image {
  position: absolute; inset: 0;
  background: url("assets/hero-coast.png") center / cover no-repeat;
  filter: brightness(0.78) saturate(1.05);
  transform: scale(1.05);
  z-index: 1;
}

.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.85) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 30%, rgba(10,10,10,0.25) 70%, rgba(10,10,10,0.7) 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 60rem;
  text-align: center;
  padding: 0 1rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
.eyebrow--center { text-align: center; }
.eyebrow--gold { color: var(--gold-deep); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.6vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 auto;
  color: #FFFBEF;
  max-width: 22ch;
}
.hero__italic {
  font-style: italic;
  color: var(--gold-pale);
}

.hero__sub {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gold-pale);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  opacity: 0.85;
}

.hero__rule {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 1.6rem auto 0;
  opacity: 0.7;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  opacity: 0.7;
}
.hero__scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.75); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* -------------------------------------------------------------
   INTRO
   ------------------------------------------------------------- */
.intro {
  background: var(--cream);
  padding: clamp(5rem, 12vw, 9rem) 1.5rem clamp(3rem, 8vw, 5rem);
  display: flex;
  justify-content: center;
}
.intro__inner {
  max-width: 44rem;
  text-align: center;
}
.dropcap {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}
.dropcap__letter {
  font-style: normal;
  font-weight: 500;
  font-size: 1.35em;
  color: var(--gold-deep);
  display: inline-block;
  margin-right: 0.05em;
  line-height: 1;
}
.intro__highlight {
  font-style: normal;
  color: var(--gold-deep);
  font-weight: 500;
}

/* -------------------------------------------------------------
   LETTER
   ------------------------------------------------------------- */
.letter {
  background: var(--cream);
  padding: clamp(4rem, 8vw, 7rem) 1.5rem clamp(4rem, 8vw, 6rem);
}
.letter__header {
  max-width: var(--measure);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.letter__title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.letter__title em {
  font-style: italic;
  color: var(--gold-deep);
}
.letter__rule {
  width: 60px; height: 1px;
  background: var(--gold-deep);
  margin: 1.5rem auto 0;
}

.letter__body {
  max-width: var(--measure);
  margin: 0 auto;
}
.letter__body--narrow {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.letter__body p {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 1.5em;
  font-weight: 400;
}

.lead {
  font-size: 1.4rem !important;
  font-weight: 500;
  color: var(--ink) !important;
  text-align: center;
  margin: 2em 0 1.5em !important;
  font-style: normal;
}
.lead--italic {
  font-style: italic;
  color: var(--gold-deep) !important;
  font-weight: 400;
  font-size: 1.55rem !important;
  letter-spacing: 0.005em;
}

/* Pull quote */
.pullquote {
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--cream-alt);
  border-top: 1px solid var(--parch);
  border-bottom: 1px solid var(--parch);
  position: relative;
  text-align: center;
}
.pullquote__mark {
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: -1rem;
  font-style: italic;
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  max-width: 32ch;
  margin: 0 auto;
}

/* Full-bleed image */
.letter__bleed {
  margin: clamp(3rem, 7vw, 5.5rem) calc(50% - 50vw) 0;
  width: 100vw;
  position: relative;
}
.letter__bleed img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  display: block;
}
.letter__bleed figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  margin-top: 1.25rem;
  padding: 0 1.5rem;
}

/* Values list */
.values {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  max-width: 38rem;
}
.values li {
  position: relative;
  padding: 0;
}
.values li + li::before {
  content: "·";
  color: var(--gold);
  position: absolute;
  left: -1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
}
.values__word {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-deep);
  font-weight: 500;
}
@media (max-width: 520px) {
  .values { gap: 0.6rem 0; flex-direction: column; align-items: center; }
  .values li + li::before { display: none; }
}

/* -------------------------------------------------------------
   DEDICATION
   ------------------------------------------------------------- */
.dedication {
  background: var(--black);
  color: var(--cream);
  padding: clamp(5rem, 10vw, 8rem) 1.5rem clamp(5rem, 10vw, 7rem);
  text-align: center;
  position: relative;
}
.dedication::before,
.dedication::after {
  content: "";
  position: absolute;
  left: clamp(1rem, 5vw, 3rem);
  right: clamp(1rem, 5vw, 3rem);
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}
.dedication::before { top: 2.5rem; }
.dedication::after  { bottom: 2.5rem; }

.dedication__inner {
  max-width: 44rem;
  margin: 0 auto;
}
.dedication .eyebrow { color: var(--gold); }

.dedication__lines {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  line-height: 1.55;
  margin: 0;
  color: #FFFBEF;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}
.dedication__lines span:nth-child(2) {
  font-style: italic;
  color: var(--gold-pale);
}
.dedication__lines span:nth-child(3) {
  font-size: 0.78em;
  color: var(--gold-pale);
  font-style: italic;
  opacity: 0.95;
}

.signature {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.signature__rule {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}
.signature__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 400;
  color: #FFFBEF;
  margin: 0 0 0.4rem;
}
.signature__title {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  font-weight: 500;
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.footer {
  background: var(--black);
  color: var(--gold-pale);
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  border-top: 1px solid rgba(200, 161, 75, 0.18);
}
.footer__inner { max-width: 30rem; margin: 0 auto; }
.footer__logo {
  height: 56px;
  width: auto;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}
.footer__tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
  font-weight: 500;
}
.footer__small {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

/* -------------------------------------------------------------
   ENTRANCE ANIMATIONS
   ------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}
