/* Harbour Pilot: Cruise Line Simulator. The game's own palette and typefaces. */

@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/dm-serif-display-400.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/dm-serif-display-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/manrope-700.woff2") format("woff2"); }

:root {
  --navy: #0B1824;
  --panel: #12253A;
  --line: #1A3048;
  --ivory: #F4EFE6;
  --soft: #D9E1E8;
  --steel: #9FB1C1;
  --brass: #D4A24C;
  --teal: #3CC4A8;
  --cyan: #5BC8E6;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 1240px;
  --pad: 32px;
  --gap-section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 700; }

a { color: var(--ivory); text-decoration: none; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 10; padding: 12px 18px; border-radius: 6px; background: var(--brass); color: var(--navy); font-weight: 700; }
.skip:focus { top: 16px; color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wide); width: 100%; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ruled { border-top: 1px solid var(--line); }

.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.kicker.cyan { color: var(--cyan); }
.kicker.teal { color: var(--teal); }

h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; border-radius: 6px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--brass); color: var(--navy); }
.btn.primary:hover { background: #E2B768; color: var(--navy); }
.btn.ghost { border-color: var(--steel); color: var(--ivory); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- header and hero ---------- */

.hero { position: relative; min-height: 780px; display: flex; flex-direction: column; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,24,36,0.92) 0%, rgba(11,24,36,0.72) 38%, rgba(11,24,36,0.08) 72%), linear-gradient(0deg, rgba(11,24,36,1) 0%, rgba(11,24,36,0) 26%); }

.nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.wordmark { display: flex; flex-direction: column; gap: 3px; color: var(--ivory); }
.wordmark:hover { color: var(--ivory); }
.wordmark-name { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: 0.01em; }
.wordmark-sub { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; font-size: 15px; font-weight: 700; }
.nav-links a { padding: 12px 0; }
.nav-links a.nav-cta { padding: 12px 20px; border-radius: 6px; background: var(--brass); color: var(--navy); }
.nav-links a.nav-cta:hover { background: #E2B768; }

.hero-body { position: relative; flex-grow: 1; display: flex; align-items: center; padding-top: 40px; padding-bottom: 120px; }
.hero-copy { max-width: 660px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-weight: 400; }
.title-name { font-size: clamp(52px, 7.4vw, 96px); line-height: 1; }
.title-sub { font-size: clamp(28px, 3.9vw, 50px); line-height: 1.05; color: var(--brass); }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.lede { font-size: 20px; line-height: 1.5; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.when { font-size: 15px; font-weight: 700; color: var(--soft); }

/* ---------- trailer ---------- */

.trailer { padding-top: 56px; padding-bottom: var(--gap-section); display: flex; flex-direction: column; gap: 28px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; }
.head-title { display: flex; flex-direction: column; gap: 10px; }
.head p { max-width: 460px; color: var(--steel); }
.player { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--panel); }
.player img, .player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player-shade { position: absolute; inset: 0; background: rgba(11,24,36,0.28); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--brass); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.play:hover { background: #E2B768; }
.player-caption { position: absolute; left: 24px; right: 24px; bottom: 20px; font-size: 14px; font-weight: 700; }

/* ---------- text beside a picture ---------- */

.split { padding-top: var(--gap-section); padding-bottom: var(--gap-section); display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.split.flip { flex-wrap: wrap-reverse; }
.split-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.split-copy > p { color: var(--soft); }
.split-art { flex: 1.35 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.split-art img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
.split-art figcaption { font-size: 14px; color: var(--steel); }

.points { display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; gap: 14px; }
.points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--brass); }

/* ---------- harbours ---------- */

.harbours { padding-top: var(--gap-section); padding-bottom: var(--gap-section); display: flex; flex-direction: column; gap: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 10px; border: 1px solid var(--line); }
.card img.right { object-position: 62% 50%; }
.card img.mid-right { object-position: 58% 50%; }
.card figcaption { display: flex; flex-direction: column; gap: 4px; }
.card-name { font-family: var(--serif); font-size: 26px; }
.card-text { font-size: 15px; color: var(--steel); }

/* ---------- figures ---------- */

.figures { padding-top: var(--gap-section); padding-bottom: var(--gap-section); display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px 48px; }
.figure { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--brass); padding-top: 20px; }
.figure-number { font-family: var(--serif); font-size: 44px; line-height: 1; }
.figure-label { font-weight: 700; }
.figure-text { font-size: 15px; color: var(--steel); }

/* ---------- dedication ---------- */

.dedication { background: var(--panel); border-top: 1px solid var(--line); }
.dedication-inner { max-width: 860px; margin: 0 auto; padding: var(--gap-section) var(--pad); display: flex; flex-direction: column; gap: 28px; }
.dedication-quote { display: flex; flex-direction: column; gap: 16px; padding: 6px 0 6px 28px; border-left: 3px solid var(--brass); }
.dedication h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.55; text-transform: uppercase; color: var(--brass); }
.dedication-text { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.35; }
.dedication-sign { font-family: var(--serif); font-style: italic; font-size: 24px; }
.dedication-memory { font-size: 15px; color: var(--steel); }
.dedication-more { display: flex; flex-direction: column; gap: 6px; padding-left: 31px; }
.dedication-more p { color: var(--soft); }
.dedication-more a { display: inline-block; padding: 10px 0; font-weight: 700; color: var(--brass); text-decoration: underline; text-underline-offset: 4px; }
.dedication-more a:hover { color: var(--ivory); }
.dedication-more .small { font-size: 14px; color: var(--steel); }

/* ---------- the last call ---------- */

.last { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.last-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.last-inner { position: relative; max-width: 820px; margin: 0 auto; padding: 112px var(--pad); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.last h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.last p { font-size: 19px; color: var(--soft); }
.last .soon { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; max-width: 560px; }
.signup input { flex: 1 1 260px; min-width: 0; height: 52px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--steel); background: var(--navy); color: var(--ivory); font: inherit; }
.signup input::placeholder { color: var(--steel); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); }
.foot-inner { padding-top: 36px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; font-size: 14px; color: var(--steel); }
.foot-inner > div { display: flex; flex-direction: column; gap: 6px; }
.foot-inner > div:last-child { max-width: 520px; }
.foot-name { font-family: var(--serif); font-size: 20px; color: var(--ivory); }
.foot a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--brass); }

/* ---------- the page that isn't there ---------- */

.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 48px var(--pad); text-align: center; }
.lost h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
.lost p { max-width: 520px; color: var(--soft); }

/* ---------- smaller screens ---------- */

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; --gap-section: 64px; }
  body { font-size: 16px; }
  .hero { min-height: 640px; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,24,36,1) 0%, rgba(11,24,36,0.78) 45%, rgba(11,24,36,0.45) 100%); }
  .hero-body { align-items: flex-end; padding-bottom: 56px; }
  .wordmark-name { font-size: 22px; }
  .wordmark-sub { font-size: 10.5px; }
  .nav { gap: 12px; padding-top: 20px; padding-bottom: 20px; }
  .nav-links a.nav-cta { padding: 10px 14px; font-size: 14px; }
  .lede { font-size: 18px; }
  .split { gap: 32px; }
  .play { width: 72px; height: 72px; }
  .last-inner { padding-top: 80px; padding-bottom: 80px; }
  .dedication-quote { padding-left: 20px; }
  .dedication-more { padding-left: 23px; }
}
