/* Liberty BayBridge — misty mountains, navy and gold */
:root {
  --cream: #F8F4ED;
  --mist: #F1EEEA;
  --navy: #17364A;
  --navy-deep: #101F30;
  --slate: #8195A3;
  --gold: #A37A36;
  --gold-soft: #C4A26A;
  --text: #24313F;
  --muted: #55606C;

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 76rem;
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1.1em; max-width: var(--measure); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1;
  padding: .85rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff;
  box-shadow: 0 6px 18px -10px rgba(23, 54, 74, .7);
  transition: background .2s, color .2s, border-color .2s;
}
.button:hover { background: var(--navy-deep); color: #fff; }
.button.ghost { background: rgba(255,255,255,.55); color: var(--navy); box-shadow: none; }
.button.ghost:hover { background: #fff; color: var(--navy); }
.button.gold { background: transparent; color: var(--navy); border-color: var(--gold); box-shadow: none; }
.button.gold:hover { background: var(--gold); color: #fff; }
.button.light { background: #fff; color: var(--navy); border-color: #fff; }
.button.light:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-deep); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; padding: 1.1rem 0; }
.site-header .wrap { max-width: 96rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--navy); }
.logo .mark { width: 9rem; height: auto; margin-bottom: .3rem; }
.logo .name { width: 13rem; height: auto; }
.home .logo .name { filter: drop-shadow(0 1px 8px rgba(0,0,0,.35)); }
.hero-wordmark { width: min(38rem, 92%); height: auto; margin: 0 auto .35rem; }
.logo span { font-family: var(--serif); font-size: 2rem; letter-spacing: .02em; line-height: 1; }
.logo:hover { color: var(--navy); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.nav a:not(.button) {
  font-family: var(--serif); font-size: 1.15rem; color: var(--navy); text-decoration: none;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:not(.button):hover { border-bottom-color: var(--gold-soft); color: var(--navy); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .button { font-size: 1.15rem; padding: .7rem 1.4rem; }

.menu-toggle { display: none; }

/* Header sitting over the hero photo */
.home .site-header { position: absolute; inset: 0 0 auto 0; }
.home .logo { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.home .logo .mark { filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(40rem, 100vh, 56rem);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 38% 1fr;
}
.hero > picture, .page-hero > picture { display: contents; }
.hero-wash {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 69% 42%, rgba(248,244,237,.7) 0%, rgba(248,244,237,.4) 50%, rgba(248,244,237,0) 100%);
}
.page-hero .hero-wash { background: rgba(248,244,237,.72); }
.hero-scene { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.hero-photo {
  position: absolute; top: 0; bottom: 0; left: 0; width: 38%; margin: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 40% 35%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(160deg, #6E8A5E 0%, #3F5A45 55%, #2B4033 100%);
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%);
          mask-image: linear-gradient(to right, #000 72%, transparent 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-photo .placeholder {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-style: italic; color: rgba(255,255,255,.8); font-size: 1.2rem; text-align: center;
}
.hero-photo picture { display: contents; }

.hero-copy {
  grid-column: 2; grid-row: 1;
  align-self: center;
  text-align: center;
  padding: 9rem 1.5rem 13rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -.01em;
  margin: 0;
}
.tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--navy-deep);
  margin: .2em auto 0; max-width: none;
}
.tagline .dot { font-style: normal; color: var(--navy); margin: 0 .35em; }
.swoosh { display: block; width: min(17rem, 60%); height: auto; margin: .4rem auto 1.4rem; }
.roles { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.45rem); color: var(--navy-deep); margin: 0 auto 2.2rem; max-width: none; line-height: 1.45; }
.roles .sep { color: var(--gold); margin: 0 .55em; }
.hero-actions { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; overflow: visible; height: clamp(5rem, 11vw, 10rem); z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1s ease-out both; }
  .hero-copy > :nth-child(2) { animation-delay: .15s; }
  .hero-copy > :nth-child(3) { animation-delay: .3s; }
  .hero-copy > :nth-child(4) { animation-delay: .45s; }
  .hero-copy > :nth-child(5) { animation-delay: .6s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .sun { animation: glow 6s ease-in-out infinite alternate; }
  @keyframes glow { from { opacity: .85; } to { opacity: 1; } }
}

/* ---------- Pillars ---------- */
.pillars { position: relative; background: var(--cream); padding: 1rem 0 0; }
.pillar-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 0 2rem;
}
.pillar { text-align: center; padding: 0 2rem; }
.pillar + .pillar { border-left: 1px solid var(--gold-soft); }
.pillar svg { width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem; color: var(--gold); }
.pillar h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--navy-deep); margin-bottom: .4rem; }
.pillar p { margin: 0 auto; max-width: 26ch; color: var(--text); font-size: 1.1rem; letter-spacing: .01em; }
.ridge-art { display: block; width: 100%; height: auto; margin-top: 1rem; }

/* ---------- Content sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.mist { background: var(--mist); }
.section.navy { background: var(--navy); color: #E7ECF2; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.navy a:not(.button) { color: #fff; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.rule { display: block; width: 5rem; height: 2px; background: var(--gold); margin: 0 0 1.5rem; border: 0; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.3; color: var(--navy); margin: 0; max-width: 24ch; }
.facts { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.facts li { padding: .7rem 0 .7rem 1.6rem; border-top: 1px solid #DCD5C8; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .55rem; height: .55rem; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.facts li:last-child { border-bottom: 1px solid #DCD5C8; }

/* CVR */
.cvr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.cvr-item .letter { font-family: var(--serif); font-size: 5rem; line-height: .9; color: var(--gold-soft); display: block; }
.cvr-item h3 { color: #fff; margin: .2rem 0 .5rem; }
.cvr-item p { color: #D3DBE5; }

/* Books */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; align-items: start; }
.book .cover { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 18px 30px -18px rgba(16,31,48,.65), 0 2px 6px rgba(16,31,48,.15); margin-bottom: 1.4rem; }
.book-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.button.small { font-size: 1.05rem; padding: .6rem 1.1rem; }
.book { padding-top: .5rem; }
.book h3 { font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: .4rem; }
.book .kind { color: var(--gold); font-family: var(--serif); font-size: 1.15rem; margin-bottom: .8rem; }

/* CTA band */
.cta { text-align: center; }
.cta p { margin-left: auto; margin-right: auto; }

/* ---------- Speaking page ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(6rem, 12vw, 10rem); text-align: center;
}
.page-hero .hero-scene { opacity: .9; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); color: var(--navy-deep); }
.page-hero p { margin: 0 auto; font-size: 1.2rem; }

.talk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); padding: 2.75rem 0; border-top: 1px solid #DCD5C8; }
.talk:last-child { border-bottom: 1px solid #DCD5C8; }
.talk h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.talk .format { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.25rem; margin: 0; }
.talk ul { margin: 0; padding-left: 1.2rem; }
.talk li { margin-bottom: .35rem; }
.talk li::marker { color: var(--gold); }

.audiences { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.audiences li { border: 1px solid rgba(201,164,101,.6); color: #fff; padding: .45rem 1rem; border-radius: 999px; }

/* Form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; max-width: 48rem; margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 1rem; color: var(--navy); }
.hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid #C9C2B4; border-radius: 8px; padding: .75rem .85rem; width: 100%;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 1px; border-color: var(--navy); }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C9D3DF; padding: 2.5rem 0; font-size: 1rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }
.footer-ridge { display: block; width: 100%; height: 4rem; background: var(--cream); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a:not(.button) { font-size: 1.05rem; }
  .nav .button { display: none; }
}

@media (max-width: 900px) {
  .logo span { font-size: 1.45rem; white-space: nowrap; }
  .logo .mark { width: 6.5rem; }
  .logo .name { width: 9.5rem; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    font: inherit; font-family: var(--serif); font-size: 1.15rem;
    background: rgba(255,255,255,.85); color: var(--navy);
    border: 1.5px solid var(--gold); border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer;
  }
  .site-header nav { position: absolute; top: 100%; left: 1rem; right: 1rem; display: none; }
  .site-header nav.open { display: block; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-radius: 14px; padding: .75rem 1.25rem 1.25rem; box-shadow: 0 18px 40px -20px rgba(23,54,74,.5); }
  .nav li a:not(.button) { display: block; padding: .7rem 0; border-bottom: 1px solid #E5DED2; }
  .nav .button { display: inline-flex; margin-top: 1rem; width: 100%; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .hero-wash { background: linear-gradient(to bottom, rgba(248,244,237,0) 20rem, rgba(248,244,237,.85) 30rem); }
  .tagline { font-size: 1.45rem; }
  .roles { font-size: 1.05rem; }
  .hero-photo {
    position: relative; width: auto; grid-column: 1; grid-row: 1; height: 26rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .hero-copy { grid-column: 1; grid-row: 2; padding: 0 1.25rem 9rem; margin-top: -3rem; }

  .books { grid-template-columns: 1fr; max-width: 24rem; margin-left: auto; margin-right: auto; }
  .pillar-row, .cvr, .split, .talk, .form { grid-template-columns: 1fr; }
  .pillar { padding: 1.75rem 1rem; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--gold-soft); }
}
