/* Gull Harbor's site. Brand colours and type are from docs/branding/README.md. The home page
   is always dark, like the game's menus; the privacy and support pages follow the reader's
   light or dark setting. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0B2545;
  --deep: #13315C;
  --orange: #FF6B35;
  --orange-hover: #FF8152;
  --ink-on-dark: #B7C6D9;
  --sky: #4FA8F0;
  --edge: #24477A;

  --page: #F6F3EC;
  --paper: #FFFFFF;
  --text: #0B2545;
  --muted: #4A5D78;
  --rule: #DCD5C5;
  --link: #13315C;

  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0B2545;
    --paper: #13315C;
    --text: #FFFFFF;
    --muted: #B7C6D9;
    --rule: #24477A;
    --link: #4FA8F0;
  }
}

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

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

/* The footer sits at the bottom of the window on short pages. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font: 17px/1.6 var(--body);
}
main { flex: 1 0 auto; }

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

a { color: var(--link); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header and footer: navy on every page. */

.site-header { background: var(--navy); border-bottom: 1px solid var(--edge); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand { display: block; padding: 8px 0; }
.brand img { height: 36px; width: auto; }

.nav { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav a, .footer-links a {
  font: 600 15px/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-on-dark);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .footer-links a:hover { color: #FFFFFF; }
.nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--orange); }

.site-footer { background: var(--navy); color: var(--ink-on-dark); border-top: 1px solid var(--edge); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 15px;
}
.footer-links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-footer p { margin: 0; }

/* Buttons. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 30px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--navy);
  font: 700 21px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover { background: var(--orange-hover); }
.button:focus-visible { outline-color: #FFFFFF; }

/* Apple's black badge, unmodified (developer.apple.com/app-store/marketing/guidelines/). Its
   clear space is a quarter of its height, 13.5 px, which the margins around it already give. */
.app-store-badge { display: inline-block; line-height: 0; border-radius: 9px; }
.app-store-badge img { height: 54px; width: auto; }
.app-store-badge:focus-visible { outline-color: #FFFFFF; }

/* Home. */

.home { background: var(--navy); color: #FFFFFF; }

/* The stacked lockup is left-aligned (the tagline lines up under the badge), so the hero is too:
   the logo beside the pitch on wide screens, above it on narrow ones. */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
  padding: 64px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 56px;
}
.hero h1 { margin: 0; }
.hero h1 img { width: min(400px, 100%); }
.pitch {
  max-width: 30em;
  margin: 0 0 28px;
  font-size: 21px;
  line-height: 1.5;
  color: #FFFFFF;
}
.hero p { margin-top: 0; }
.platforms { margin: 14px 0 0; font-size: 15px; color: var(--ink-on-dark); }

.shots { padding: 56px 0 24px; }
.shots ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shots img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--edge);
}
.shots li:first-child { grid-column: 1 / -1; }

.features { padding: 40px 0 72px; }
.features .wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.features h2 {
  margin: 0 0 8px;
  font: 700 24px/1.1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.features p { margin: 0; color: var(--ink-on-dark); }

/* Privacy and support. */

.page-title { background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%); color: #FFFFFF; }
.page-title .wrap { max-width: 760px; padding-top: 44px; padding-bottom: 40px; }
.page-title h1 {
  margin: 0;
  font: italic 800 clamp(40px, 8vw, 56px)/1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.page-title p { margin: 12px 0 0; color: var(--ink-on-dark); }

.prose { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.prose h2 {
  margin: 40px 0 10px;
  font: 700 25px/1.15 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose h3 { margin: 28px 0 6px; font-size: 17px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 0 0 6px; }
.prose .lead { font-size: 20px; line-height: 1.5; }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px 26px;
  margin: 0 0 14px;
}
.card > :last-child { margin-bottom: 0; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.contact p { margin: 0; color: var(--muted); }
.contact .address { color: var(--text); font-weight: 600; user-select: all; }

.muted { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 img { width: min(320px, 82vw); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .shots ul { grid-template-columns: 1fr; gap: 16px; }
  .features .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 40px 0 48px; }
  .pitch { font-size: 18px; }
}

@media (max-width: 440px) {
  .brand img { height: 32px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; letter-spacing: 0.12em; }
  .button { width: 100%; font-size: 19px; padding: 12px 18px; }
}
