/* The Yacht Fella: brand board 2026-11-10
   Navy #0E2236  Ivory #F7F5F0  Sky #9EB1D1  Ocean #2B5C8A  Slate #4A5B6E
   Heritage red #B91E24 (white/ivory backgrounds)  Bright red #FF281D (navy: rules and large type only)
   Theme: blue and white lead, red is the accent. */

/* Self-hosted fonts (latin subset, SIL OFL: see assets/fonts/LICENSE-*.txt) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

:root {
  --navy: #0E2236;
  --ivory: #F7F5F0;
  --sky: #9EB1D1;
  --ocean: #2B5C8A;
  --slate: #4A5B6E;
  --red: #B91E24;
  --red-bright: #FF281D;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: .75rem 1rem;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

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

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

/* Top bar (white) */
.topbar { background: #fff; border-bottom: 1px solid #DDE3EC; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--navy);
  text-decoration: none;
}
.brand__avatar { display: block; width: 2.75rem; height: 2.75rem; border-radius: 50%; } /* same size as the social icon buttons */
.brand__name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.social--top { display: none; }

/* Hero (navy) */
.hero { background: var(--navy); color: var(--ivory); padding: 2.5rem 0 3.5rem; }
.hero__inner { display: grid; gap: 2rem; }

.hero__avatar-wrap { order: -1; display: block; }
.hero__avatar {
  display: block;
  width: min(13rem, 60vw);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
}

.hero__copy { text-align: center; }

.hero__title { margin: 0; line-height: 1.1; }
.hero__brand {
  display: block;
  font-size: clamp(2rem, 9.5vw, 4rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__tag {
  display: block;
  margin-top: .5rem;
  font-size: clamp(1rem, 4.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: .38em;
  text-indent: .38em; /* balances the trailing letter space when centred */
  text-transform: uppercase;
  color: var(--sky);
}

.rule {
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 1.5rem auto;
  background: var(--red-bright);
}

.hero__intro {
  max-width: 32rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

/* Sign-up card (white on navy, red top edge) */
.signup {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.25rem;
  background: #fff;
  color: var(--navy);
  border-top: 4px solid var(--red);
  border-radius: 4px;
  text-align: center;
}
/* Reserve the height of the Beehiiv embed so the page does not jump when it loads.
   Measured on staging, 27 Nov 2026. The embed height changes in steps as its text wraps, not
   smoothly, so a fluid formula fits worse than these bands. Measured: 345-360px wide = 267,
   375-385 = 251, 395-500 = 227, 520 and up = 212. Band edges sit between the measured widths.
   Re-measure if the form text or fields change in Beehiiv. */
.signup__form { min-height: 267px; }
@media (min-width: 23rem)      { .signup__form { min-height: 251px; } } /* 368px */
@media (min-width: 24.375rem)  { .signup__form { min-height: 227px; } } /* 390px */
@media (min-width: 31.875rem)  { .signup__form { min-height: 212px; } } /* 510px */
/* Fade the embed in once it has loaded (the "js" class is set in the head) */
.js .signup__form { opacity: 0; transition: opacity .3s ease; }
.js .signup__form.is-ready { opacity: 1; }

/* Loading and fallback text sits over the reserved area. It only fades in after .4s, so a fast
   load never flashes it. */
.signup__slot { position: relative; }
.signup__status, .signup__nojs {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 1rem;
  color: var(--slate);
  font-size: .9375rem;
  text-align: center;
}
.signup__status { display: none; }
.js .signup__status { display: grid; opacity: 0; animation: signup-status-in .3s ease .4s forwards; }
.js .signup__status.is-error { animation: none; opacity: 1; }
.signup__status[hidden] { display: none; }
@keyframes signup-status-in { to { opacity: 1; } }
.signup__form[hidden], .signup__done[hidden] { display: none; }
.signup__done { margin: 0; font-weight: 500; }

/* Red, white and blue stripes */
.stripes { display: block; }
.stripes span { display: block; height: .3125rem; }
.stripes span:nth-child(1) { background: var(--red); }
.stripes span:nth-child(2) { background: #fff; }
.stripes span:nth-child(3) { background: var(--ocean); }

/* Social icon buttons: Heritage red on white. Glyphs: Simple Icons, CC0 */
.social ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  transition: background-color .2s ease, color .2s ease;
}
.social a:hover { background: var(--red); color: #fff; }
.social svg { display: block; }

/* Follow (white) */
.follow { background: #fff; padding: 2.75rem 0 3rem; text-align: center; }
.follow__title {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1.15;
  color: var(--navy);
}

/* Footer (navy) */
.footer { background: var(--navy); color: var(--sky); padding: 1.5rem 0 2rem; font-size: .9375rem; }
.footer__inner { display: flex; flex-direction: column; gap: .5rem; align-items: center; text-align: center; }
.footer__brand {
  margin: 0;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ivory);
}
.footer__brand span {
  margin-left: .5rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sky);
}
.footer__legal { margin: 0; }

@media (min-width: 48rem) {
  .topbar__inner { justify-content: space-between; }
  .social--top { display: block; }
  .hero { padding: 4rem 0 5rem; }
  .follow { padding: 3.5rem 0 4rem; }
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 62rem) {
  .hero { padding: 5rem 0 6rem; }
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
  }
  .hero__avatar-wrap { order: 0; }
  .hero__avatar { width: min(22rem, 100%); }
  .hero__copy { text-align: left; }
  .hero__intro { margin-left: 0; }
  .rule { margin-left: 0; }
  .signup { margin-left: 0; text-align: left; }
  .hero__tag { text-indent: 0; }
  .hero__brand { font-size: clamp(2.25rem, 3.6vw, 3.25rem); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .social a { transition: none; }
  .js .signup__form { transition: none; }
  .js .signup__status { animation-duration: .01ms; }
}

/* Footer link */
.footer__legal a { color: var(--ivory); text-decoration: underline; text-underline-offset: .2em; }
.footer__legal a:hover { text-decoration-thickness: 2px; }

/* Privacy policy page */
.policy { background: #fff; color: var(--navy); padding: 2.5rem 0 3.5rem; }
.policy__inner { max-width: 46rem; }
.policy__title { font-family: "Barlow", sans-serif; font-weight: 700; font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 .5rem; }
.policy__meta { margin: 0 0 2rem; color: var(--slate); font-size: .9375rem; }
.policy h2 { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 1.0625rem; letter-spacing: .06em; text-transform: uppercase; margin: 2.25rem 0 .75rem; padding-top: 1rem; border-top: 3px solid var(--red); }
.policy p, .policy li { line-height: 1.65; }
.policy ul { padding-left: 1.25rem; }
.policy li + li { margin-top: .4rem; }
.policy a { color: var(--ocean); text-underline-offset: .2em; }
.policy mark { background: #FFF2A8; color: var(--navy); padding: 0 .2em; }
