/* ==========================================================================
   OWN VOYAGE — base
   Reset, typography defaults, layout helpers (section / container / gutters),
   overline and display type classes.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--navy-800);
  /* NOTE: no background-attachment: fixed — it breaks on iOS Safari. */
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  color: var(--text-strong);
  margin: 0;
  line-height: var(--lh-heading);
  font-weight: var(--fw-bold);
}

p {
  margin: 0;
}

a {
  color: var(--navy-800);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
a:hover {
  color: var(--orange-600);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--white);
  color: var(--navy-800);
  padding: 10px 16px;
  border: 2px solid var(--navy-800);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sticker);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  top: 16px;
}

/* ---- Layout ---- */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

.section {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-20);
}
.section--navy {
  background: var(--navy-800);
  color: var(--white);
  border-top: 2px solid var(--navy-800);
  border-bottom: 2px solid var(--navy-800);
}
.section--yellow {
  background: var(--yellow-400);
  color: var(--navy-800);
  border-top: 2px solid var(--navy-800);
  border-bottom: 2px solid var(--navy-800);
}
.section--mist {
  background: var(--mist-50);
}
.section--tight {
  padding-block: var(--space-12);
}
.section--flush-top {
  padding-top: 0;
}
.section--tight-bottom {
  padding-bottom: var(--space-12);
}
.section--hero {
  padding-block: var(--space-16) var(--space-24);
}

/* ---- Overline ---- */
.overline {
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--orange-500);
  margin: 0 0 var(--space-3);
}
.overline--navy {
  color: var(--navy-800);
}
.overline--yellow {
  color: var(--yellow-400);
}
.overline--white {
  color: var(--white);
}

/* ---- Display (Bobby Jones Soft) ---- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  margin: 0;
  color: var(--navy-800);
  text-wrap: balance;
}
.display--xl {
  font-size: var(--fs-display-xl);
}
.display--l {
  font-size: var(--fs-display-l);
}
.display--m {
  font-size: var(--fs-display-m);
}
.display--s {
  font-size: var(--fs-display-s);
}
.display--white {
  color: var(--white);
}

/* ---- Body helpers ---- */
.lede {
  font-size: var(--fs-body-l);
  line-height: var(--lh-body);
  color: var(--deep-teal-600);
  text-wrap: pretty;
}
.on-dark .lede,
.section--navy .lede {
  color: var(--white);
}
.muted {
  color: var(--ink-500);
}

/* ---- Flow / spacing utilities ---- */
.flow > * + * {
  margin-top: var(--space-6);
}

.stack {
  display: grid;
  gap: var(--space-6);
}

/* ---- Width + spacing utilities ---- */
.mx-auto { margin-inline: auto; }
.mw-520 { max-width: 520px; }
.mw-560 { max-width: 560px; }
.mw-640 { max-width: 640px; }
.mw-700 { max-width: 700px; }
.mw-760 { max-width: 760px; }
.mw-780 { max-width: 780px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.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;
}
