@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit.woff2") format("woff2");
}

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

:root {
  --blue: #0a3276;
  --blue-deep: #071a3a;
  --blue-mid: #15408f;
  --blue-bright: #1e5bb8;
  --ice: #eef3fb;
  --white: #ffffff;
  --ink: #071a3a;
  --muted: #3a4e73;
  --line: #c5d4ef;
  --shadow: 0 18px 40px rgba(7, 26, 58, 0.12);
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.55;
  background: var(--white);
}

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

a {
  color: var(--blue-bright);
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 3px;
}

.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  padding: 0.65rem 1.25rem 4.5rem;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--white);
  z-index: 2;
}

.hero::before { top: 0; }
.hero::after { bottom: 0; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  padding-top: 2.25rem;
}

.logo {
  width: 210px;
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

@media (min-width: 700px) {
  .logo { width: 260px; }
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.lede {
  margin: 1.15rem auto 0;
  max-width: 36em;
  color: #d5e3fb;
  font-size: 1.05rem;
}

.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  width: 100%;
  height: 70px;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: -3.25rem;
    position: relative;
    z-index: 3;
  }

  main {
    padding-top: 0;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue);
}

.card p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  flex: 1;
}

.book-card {
  gap: 0;
}

.book-layout {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.book-layout p {
  margin: 0;
}

.cover {
  width: 108px;
  flex: 0 0 108px;
  border-radius: 0.35rem;
  box-shadow: 0 8px 20px rgba(7, 26, 58, 0.22);
  background: var(--ice);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  box-shadow: 0 8px 0 var(--blue-deep);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--blue-mid);
  color: var(--white);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--blue-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  border: 2px solid var(--blue);
  padding: 0.65rem 1.1rem;
}

.btn-secondary:hover {
  background: var(--ice);
  color: var(--blue-deep);
}

.signoff {
  text-align: center;
  padding: 1.5rem 1.25rem 3rem;
}

.signoff p {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.65rem;
  color: var(--blue);
}

.signoff small {
  display: block;
  margin-top: 0.45rem;
  font-family: Outfit, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  background: var(--white);
  color: var(--blue);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active {
    transition: none;
    transform: none;
  }
}

.lede a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.lede a:hover {
  color: #ffd166;
}

.words {
  margin-top: 2.75rem;
  padding-top: 0.25rem;
}

.words h2 {
  margin: 0 0 1.15rem;
  text-align: center;
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue);
}

.word-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .word-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.word-grid a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: 0 8px 20px rgba(7, 26, 58, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.word-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--blue-bright);
  box-shadow: var(--shadow);
  color: inherit;
}

.word-grid strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.word-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.words-end {
  justify-content: center;
  margin-top: 1.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .word-grid a,
  .word-grid a:hover {
    transition: none;
    transform: none;
  }
}

/* Inner page: Waterford Facts */
.hero-compact {
  padding-bottom: 2.75rem;
}

.hero-compact .logo {
  width: 120px;
  margin-bottom: 0.7rem;
}

@media (min-width: 700px) {
  .hero-compact .logo { width: 150px; }
}

.brand {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.site-name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--white);
}

.page-facts main {
  max-width: 46rem;
  padding-top: 2.5rem;
}

.facts h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue);
}

.facts > p,
.facts section p,
.facts .nudge {
  color: var(--ink);
}

.facts > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.facts section {
  margin: 1.75rem 0 0;
}

.facts h2 {
  margin: 0 0 0.45rem;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.facts p {
  margin: 0 0 0.85rem;
}

.facts .nudge {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
