:root {
  --charcoal: #0b0c0c;
  --gold: #d8a948;
  --white: #ffffff;
  --charcoal-72: rgba(11, 12, 12, .72);
  --charcoal-16: rgba(11, 12, 12, .16);
  --charcoal-08: rgba(11, 12, 12, .08);
  --gold-25: rgba(216, 169, 72, .25);
  --title: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background: var(--white);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.global-header, .hero, .global-footer, .portal { position: relative; z-index: 1; }

.global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 82px;
  background: var(--white);
  border-bottom: 1px solid rgba(11, 12, 12, .06);
  box-shadow: 0 4px 18px rgba(11, 12, 12, .04);
}

.header-inner {
  width: 100%;
  height: 100%;
  padding: 0 3vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-logo {
  width: 48px;
  color: var(--gold);
  display: inline-flex;
}

.header-logo img { display: block; width: auto; height: 52px; }

.menu-toggle { display: none; }

.header-logo-mark {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-logo-mark .logo-heart { fill: var(--gold); stroke: none; }

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.header-nav a {
  color: var(--charcoal);
  font: 400 20px/1 var(--title);
  text-decoration: none;
  transition: color .2s ease;
}

.header-nav a:hover, .header-nav a:focus-visible { color: var(--gold); }

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
}

.header-tools .listen-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 16px 22px;
  border: 1px solid var(--gold);
  background: var(--white);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.header-tools .listen-link:hover,
.header-tools .listen-link:focus-visible {
  background: var(--gold);
  color: var(--charcoal);
}

.hero {
  min-height: calc(100vh - 160px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10vh 20px 80px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(216, 169, 72, .09), transparent 38%);
}

.eyebrow, .step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
}

.eyebrow { margin-bottom: 24px; }

.hero h1 {
  font-family: var(--title);
  font-weight: 600;
  font-size: clamp(55px, 8vw, 108px);
  letter-spacing: -4px;
  line-height: .9;
  margin: 0;
}

.hero h1 em, .portal-art h1 em { color: var(--gold); font-weight: 400; 
  font-size: clamp(30px, 6vw, 80px);}

.hero p {
  max-width: 545px;
  font-family: var(--title);
  font-size: 18px;
  line-height: 1.65;
  margin: 32px 0;
  color: var(--charcoal-72);
}

.primary-button {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.primary-button:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); transform: translateY(-1px); }
.primary-button:focus-visible, .secondary:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.primary-button span { color: var(--gold); }
.primary-button:hover span { color: var(--charcoal); }

.sound-mark {
  position: absolute;
  left: 5vw;
  bottom: 8%;
  height: 95px;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: rotate(-8deg);
}

.sound-mark span { width: 3px; border-radius: 4px; background: var(--charcoal); opacity: .26; }
.sound-mark span:nth-child(1), .sound-mark span:nth-child(7) { height: 18px; }
.sound-mark span:nth-child(2), .sound-mark span:nth-child(6) { height: 42px; }
.sound-mark span:nth-child(3), .sound-mark span:nth-child(5) { height: 72px; }
.sound-mark span:nth-child(4) { height: 95px; background: var(--gold); opacity: 1; }

.global-footer {
  background: var(--charcoal);
  color: var(--white);
}

.footer-inner { width: 100%; padding: 0 2.6vw; }

.footer-signup {
  max-width: 680px;
  margin: 0 auto;
  padding: 70px 0 66px;
  text-align: center;
}

.footer-signup h2 {
  margin: 0 0 14px;
  font: 600 38px/1.1 var(--title);
}

.footer-signup p {
  margin: 0 0 30px;
  font-size: 16px;
  color: rgba(255, 255, 255, .78);
}

.newsletter-form { display: grid; grid-template-columns: 1fr 138px; gap: 10px; }

.newsletter-form input {
  width: 100%;
  min-width: 0;
  padding: 17px 20px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 15px;
  outline: none;
}

.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(216, 169, 72, .3); }

.newsletter-form button {
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.newsletter-form button:hover, .newsletter-form button:focus-visible { background: var(--white); color: var(--charcoal); }

.newsletter-error {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 2px 0 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8vw;
  padding: 0 0 66px;
}

.footer-columns h2 { margin: 0 0 18px; font-size: 17px; font-weight: 700; }
.footer-about h2 { font: 600 24px/1.2 var(--title); }
.footer-about p { max-width: 520px; margin: 0; color: rgba(255, 255, 255, .76); line-height: 1.6; }
.footer-links, .footer-social { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-links h2, .footer-social h2 { margin-bottom: 6px; }

.footer-links a, .footer-social a, .footer-bottom a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-links a:hover, .footer-social a:hover, .footer-bottom a:hover { color: var(--gold); }

.footer-social a { display: inline-flex; align-items: center; gap: 12px; }
.footer-social svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social svg .icon-fill { fill: currentColor; stroke: none; }

.footer-bottom {
  min-height: 66px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

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

.portal { display: grid; grid-template-columns: minmax(300px, 44%) 1fr; min-height: 100vh; }

.portal-art {
  position: relative;
  min-height: 400px;
  padding: 54px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--charcoal);
}

.portal-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(216, 169, 72, .08), transparent 45%);
}

.portal-art-copy { position: relative; z-index: 1; }
.portal-art-copy { margin: auto 0; }

.portal-art h1 {
  font: 400 clamp(48px, 6vw, 88px)/.95 var(--title);
  letter-spacing: -3px;
  margin: 0;
}

.portal-art p { font: 17px/1.6 var(--title); color: var(--gold); max-width: 440px; }

.rings {
  position: absolute;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(216, 169, 72, .3);
  border-radius: 50%;
  right: -390px;
  bottom: -300px;
}

.rings::before, .rings::after { content: ""; position: absolute; border: 1px solid rgba(216, 169, 72, .2); border-radius: 50%; }
.rings::before { inset: 55px; }
.rings::after { inset: 120px; }

.portal-main { display: flex; align-items: center; justify-content: center; padding: 55px 7vw; background: var(--white); }
.card { width: min(100%, 520px); }
.step-label { letter-spacing: 2.4px; }

.card h2 {
  font: 500 44px/1.05 var(--title);
  letter-spacing: -1.2px;
  margin: 14px 0;
}

.card > p { font: 16px/1.6 var(--title); color: var(--charcoal-72); margin-bottom: 35px; }
.field { display: block; margin: 22px 0; }
.field span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 9px; }

.field input {
  width: 100%;
  border: 1px solid var(--charcoal-16);
  border-bottom-color: var(--gold);
  background: var(--white);
  padding: 17px;
  font-size: 16px;
  color: var(--charcoal);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-25); }
.wide { width: 100%; justify-content: space-between; }
.secondary { border: 0; padding: 0 0 3px; background: none; border-bottom: 1px solid var(--gold); color: var(--charcoal); cursor: pointer; margin-top: 20px; }
.secondary-spaced { margin-left: 20px; }
.inline-link { display: inline-block; }
.saved-messages-link { border-bottom: 0; text-decoration: none; }
.message-preview .portal-main .secondary { border-bottom: 0; text-decoration: none; }
.status { min-height: 20px; margin-top: 15px; font-size: 13px; font-weight: 600; color: var(--charcoal); }
.hidden { display: none !important; }
.message-list { display: grid; gap: 14px; margin: 28px 0; }

.password-offer {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--gold-25);
  border-top: 3px solid var(--gold);
  background: rgba(216, 169, 72, .06);
}

.password-offer h3 { margin: 0 0 8px; font: 500 25px/1.2 var(--title); }
.password-offer-copy > p { margin: 0 0 18px; color: var(--charcoal-72); font-size: 14px; line-height: 1.55; }
.password-offer > .primary-button { margin-bottom: 18px; }
.password-offer .field { margin: 15px 0; }

.message-card {
  background: var(--white);
  border: 1px solid var(--gold-25);
  border-left: 3px solid var(--gold);
  padding: 20px;
  box-shadow: 0 12px 35px var(--charcoal-08);
}

.message-card .meta { font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.message-card p { font: 17px var(--title); margin: 9px 0 15px; }
.message-card audio, .message-card video { width: 100%; max-height: 270px; }
.message-card a { font-size: 12px; color: var(--charcoal); font-weight: 700; text-decoration-color: var(--gold); }
.message-card .playback-error { margin: 12px 0 0; color: #8b1e1e; font: 600 13px/1.45 Arial, sans-serif; }
.library-pay-it-forward { width: fit-content; margin-top: 4px; }
.library-signout { display: block; width: fit-content; margin-top: 18px; }

@media (max-width: 760px) {
  .global-header { height: 74px; min-height: 74px; }
  .header-inner { position: relative; display: flex; min-height: 74px; padding: 11px 20px; }
  .header-logo { position: absolute; left: 50%; top: 50%; width: auto; transform: translate(-50%, -50%); }
  .header-logo img { height: 48px; }
  .header-tools { display: none; }
  .menu-toggle {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    color: var(--charcoal);
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .header-nav {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    padding: 25px 20px 28px;
    border-top: 1px solid var(--gold-25);
    background: var(--white);
    box-shadow: 0 16px 30px rgba(11, 12, 12, .14);
    display: none;
    flex-direction: column;
    gap: 22px;
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { font-size: 19px; }
  .portal { display: block; }
  .portal-art { min-height: 310px; padding: 32px; }
  .portal-art-copy { margin-top: 70px; }
  .portal-art h1 { font-size: 50px; }
  .portal-art p { font-size: 15px; }
  .portal-main { padding: 55px 25px; }
  .card h2 { font-size: 38px; }
  .hero h1 { letter-spacing: -2px; }
  .sound-mark { display: none; }
  .footer-inner { padding: 0 24px; }
  .footer-signup { padding: 56px 0 54px; }
  .footer-signup h2 { font-size: 32px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form button { min-height: 52px; }
  .footer-columns { grid-template-columns: 1fr; gap: 42px; padding-bottom: 54px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
