/* Palette and faces follow web/shell.html and the store boards: navy, amber,
   cream, hazard stripes, Black Ops One. That face only covers Latin, so other
   scripts use a heavy system font, as store/build.mjs does on its boards. */
@font-face {
  font-family: "Black Ops One";
  src: url("BlackOpsOne-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("BarlowSemiCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #071827;
  --navy-2: #0d2436;
  --amber: #ffb719;
  --red: #e0463a;
  --cream: #fff5df;
  --muted: #b9c4cc;
  --sans: "Barlow Semi Condensed", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Black Ops One", "Arial Black", system-ui, sans-serif;
}
.script-other {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); }
a:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
.script-other h1, .script-other h2 { font-weight: 800; }

.stripe {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--navy) 18px 36px);
}

/* Hero */
.hero { position: relative; min-height: min(92vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 24, 39, .25) 0%, rgba(7, 24, 39, .55) 45%, var(--navy) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.logo { width: min(340px, 70vw); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 4rem); max-width: 16em; text-shadow: 0 2px 16px rgba(7, 24, 39, .7); }
.lede { font-size: 1.3rem; max-width: 34em; margin: .9rem 0 0; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #ffc94d; }
.btn-secondary { border: 2px solid var(--cream); color: var(--cream); padding: calc(.85rem - 2px) calc(1.5rem - 2px); }
.btn-secondary:hover { background: rgba(255, 245, 223, .12); }

/* Body */
main > section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem; }
.about p { font-size: 1.35rem; max-width: 40em; margin: 0; }
.plate { display: grid; gap: 1.5rem; align-items: center; }
.plate img { width: 100%; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.plate h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.plate p { margin: .75rem 0 0; color: var(--muted); }
.features h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--amber); margin-bottom: 1rem; }
.features ul { margin: 0; padding-left: 1.2rem; max-width: 40em; }
.features li { margin: .4rem 0; }
.features li::marker { color: var(--red); }

@media (min-width: 800px) {
  .plate { grid-template-columns: 3fr 2fr; gap: 3rem; }
  .plate:nth-of-type(odd) img { order: 2; }
}

/* Footer */
footer { background: var(--navy-2); }
footer nav, .legal { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 0; }
footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--muted); margin-bottom: .75rem; }
.langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: 1rem; }
.langs a { display: inline-block; padding: .25rem 0; color: var(--cream); text-decoration: none; }
.langs a:hover { text-decoration: underline; }
.langs a[aria-current] { color: var(--amber); }
.legal { padding-top: 1.5rem; padding-bottom: 2rem; color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }

/* 404 */
.not-found main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; text-align: center; }
.not-found h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
.not-found p { color: var(--muted); }
.not-found .actions { justify-content: center; }
