@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-400.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Tagalog";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-tagalog.woff2") format("woff2");
  unicode-range: U+1700-171F;
}

:root {
  --ink: #1a2430;
  --muted: #3e5164;
  --sea-950: #07243f;
  --sea-900: #0c3358;
  --sea-700: #13487a;
  --sky: #1f6fbe;
  --foam: #e7f4fb;
  --paper: #fbf6ee;
  --sand: #f4e6cf;
  --line: rgba(12, 51, 88, 0.16);
  --coral: #b8432a;
  --coral-deep: #8c311c;
  --gold: #f0c36a;
  --cream: #f6efe4;
  --white: #fffdfb;
  --serif: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --baybayin: "Noto Sans Tagalog", sans-serif;
  --wrap: 68rem;
  --header: 4.25rem;
  color-scheme: light;
}

*,
*::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(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: #0e4f86;
}

a:hover {
  color: var(--sea-950);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--white);
  color: var(--sea-950);
  padding: 0.55rem 0.9rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.55rem;
}

.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;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(7, 36, 63, 0.96);
  color: var(--cream);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100% - 1.25rem, var(--wrap));
  margin-inline: auto;
}

.wordmark {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.wordmark:hover {
  color: var(--gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--sea-950);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.header-cta:hover {
  background: #ffe1a0;
  color: var(--sea-950);
}

.nav-burger,
.nav-close {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.hero {
  position: relative;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(90, 176, 230, 0.45), transparent 60%),
    linear-gradient(180deg, #07243f 0%, #0c3358 58%, #0e406e 100%);
  color: var(--cream);
  padding: 1.25rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cover-frame {
  order: -1;
  margin: 0.25rem auto 0;
  padding: 0.45rem 0.45rem 0.7rem;
  background: var(--white);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  width: fit-content;
  max-width: 100%;
}

.cover-frame img {
  width: auto;
  height: min(38vh, 22rem);
  max-width: min(72vw, 20rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 11vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.byline {
  margin: 0.85rem 0 0;
  font-size: 1.125rem;
}

.byline a {
  color: var(--cream);
  font-weight: 600;
}

.hook {
  margin: 1.1rem 0 0;
  max-width: 12em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.85rem, 6.2vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}

.button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  max-width: 26rem;
  min-height: 4.4rem;
  margin-top: 1.25rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fffdfb;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(142, 49, 28, 0.35);
}

.button:hover {
  background: var(--coral-deep);
  color: #fffdfb;
}

.button-main,
.button-sub {
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.button-main {
  font-size: clamp(1.02rem, 3.5vw, 1.28rem);
}

.button-sub {
  font-size: clamp(0.92rem, 3vw, 1.05rem);
}

.fine {
  margin: 0.85rem 0 0;
  color: var(--cream);
  font-size: 0.95rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid rgba(246, 239, 228, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.875rem;
  color: var(--cream);
}

.wave {
  display: block;
  margin-top: -1px;
  background: #0e406e;
  line-height: 0;
}

.wave svg {
  display: block;
  width: 100%;
  height: 3rem;
}

.section {
  padding: 3rem 0;
  scroll-margin-top: calc(var(--header) + 0.4rem);
}

.section-story {
  background: var(--paper);
  padding-top: 1.5rem;
}

.section h2,
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-lead {
  max-width: 40rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.blurb {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
  max-width: 42rem;
}

.blurb p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
}

.section-people {
  background: var(--foam);
}

.people {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.shore-still {
  margin: 0;
  background: var(--white);
  padding: 0.55rem 0.55rem 0.85rem;
  box-shadow: 0 16px 40px rgba(12, 51, 88, 0.08);
}

.shore-still img {
  width: 100%;
  height: auto;
}

.shore-still figcaption {
  margin: 0.7rem 0.35rem 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.person {
  background: var(--white);
  padding: 1.15rem 1.15rem 1.25rem;
  border-top: 4px solid var(--sky);
}

.person-lawin {
  border-top-color: var(--coral);
}

.baybayin {
  font-family: var(--baybayin);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--sea-700);
  margin: 0 0 0.35rem;
}

.person h3,
.team-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.person .who {
  margin: 0.35rem 0 0;
  color: var(--sea-700);
  font-weight: 600;
}

.person .gloss {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.person p:last-child {
  margin: 0.75rem 0 0;
}

.section-team {
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.4), rgba(255, 253, 251, 0)),
    var(--sand);
}

.team-grid {
  margin: 1.4rem 0 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.8rem;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 11rem;
  padding: 1.15rem;
  background: var(--white);
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(12, 51, 88, 0.06);
}

.team-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.team-card:focus-within {
  outline: 3px solid var(--sea-900);
  outline-offset: 3px;
}

.team-card:has(input:checked) {
  border-color: var(--coral);
  background: #fff8f2;
}

.team-pitch {
  margin: 0;
  color: var(--muted);
}

.picked {
  display: none;
  margin: 0.2rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--sea-950);
}

.team-card input:checked ~ .picked {
  display: block;
}

.team-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-chapters {
  background: var(--paper);
}

.chapter-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.chapter-list a {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  min-height: 3.4rem;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.chapter-list a:hover .ch-title {
  color: var(--coral-deep);
}

.ch-kicker {
  color: var(--sea-700);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ch-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
}

.ch-go {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.95rem;
}

.more-link {
  margin: 1.15rem 0 0;
}

.more-link a {
  font-weight: 600;
}

.section-notes {
  background: var(--foam);
}

.note-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  border-top: 4px solid var(--sea-700);
}

.note-card:hover {
  color: inherit;
}

.note-card:hover h3 {
  color: var(--coral-deep);
}

.note-card time,
.meta-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.note-card h3 {
  margin: 0.15rem 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.note-card p {
  margin: 0;
}

.closer {
  background:
    radial-gradient(80% 80% at 100% 100%, rgba(31, 111, 190, 0.45), transparent 55%),
    var(--sea-950);
  color: var(--cream);
  padding: 3.2rem 0 3.4rem;
}

.closer h2 {
  color: var(--white);
  max-width: 14ch;
}

.closer p {
  max-width: 36rem;
  font-size: 1.125rem;
}

.closer .button {
  margin-top: 0.4rem;
}

.site-footer {
  background: #05182b;
  color: var(--cream);
  padding: 2rem 0 2.4rem;
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  gap: 1.3rem;
}

.site-footer a {
  color: var(--cream);
}

.site-footer h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.2rem 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

.legal {
  margin: 1.3rem 0 0;
  color: #d7cbb8;
  font-size: 0.92rem;
}

.page-hero {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(31, 111, 190, 0.35), transparent 50%),
    linear-gradient(180deg, #07243f, #0c3358);
  color: var(--cream);
  padding: 2.2rem 0 2.4rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
}

.page-hero p {
  max-width: 40rem;
  margin: 0.8rem 0 0;
  font-size: 1.125rem;
}

.page-hero a {
  color: var(--gold);
}

.crumb {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.crumb a {
  color: var(--cream);
  font-weight: 600;
}

.prose {
  padding: 2rem 0 3rem;
}

.prose-wrap {
  width: min(100% - 2rem, 40rem);
  margin-inline: auto;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--sea-900);
}

.prose h2 {
  margin: 2.1rem 0 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  font-size: 1.075rem;
  line-height: 1.7;
}

.prose ul {
  padding-left: 1.2rem;
}

.pull {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--coral);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--sea-900);
}

.end-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.next-read {
  margin-top: 1.6rem;
  padding: 1rem 1rem 1.1rem;
  background: var(--foam);
}

.next-read p {
  margin: 0.3rem 0;
}

@media (max-width: 800px) {
  .nav-burger,
  .site-nav:target .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    color: var(--cream);
    font-weight: 600;
    text-decoration: none;
  }

  .nav-burger {
    border: 1px solid rgba(246, 239, 228, 0.4);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0.8rem 0.9rem;
    background: #07243f;
    border-bottom: 1px solid rgba(246, 239, 228, 0.16);
  }

  .site-nav:target {
    display: flex;
    z-index: 46;
  }

  .header-inner:has(.site-nav:target)::before {
    content: "";
    position: fixed;
    z-index: 45;
    inset: var(--header) 0 0 0;
    background: rgba(5, 24, 43, 0.72);
  }

  .header-inner:has(.site-nav:target) .nav-burger {
    visibility: hidden;
  }

  .site-nav:target .nav-close {
    border: 1px solid rgba(246, 239, 228, 0.45);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0 0.4rem;
    border-bottom: 1px solid rgba(246, 239, 228, 0.1);
  }

  .nav-close {
    align-self: flex-end;
    border-bottom: 0;
  }

  .chapter-list a {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "kicker go"
      "title go";
  }

  .ch-kicker { grid-area: kicker; }
  .ch-title { grid-area: title; }
  .ch-go { grid-area: go; align-self: center; }
}

@media (max-width: 800px) and (max-height: 780px) {
  .cover-frame img {
    height: min(30vh, 15.5rem);
  }

  .hero {
    padding-bottom: 2.2rem;
  }
}

@media (min-width: 801px) {
  .hero {
    padding: 3rem 0 4.5rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.8fr);
    gap: 3rem;
    align-items: center;
  }

  .cover-frame {
    order: 0;
    margin: 0 0 0 auto;
    max-width: min(100%, 23rem);
  }

  .cover-frame img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }

  .button {
    width: auto;
    min-width: 18rem;
  }

  .people {
    grid-template-columns: 0.86fr 1.14fr;
    grid-template-areas:
      "still tala"
      "still lawin";
    align-items: stretch;
  }

  .shore-still { grid-area: still; }
  .person-tala { grid-area: tala; }
  .person-lawin { grid-area: lawin; }

  .team-grid,
  .note-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header,
  .wave,
  .button,
  .nav-burger,
  .closer .button {
    display: none;
  }

  body,
  .hero,
  .closer,
  .site-footer,
  .page-hero {
    background: white;
    color: black;
  }

  a { color: black; }
}
