/* FerryFuel product site — Joe's Mods
   Palette from the official manual: charcoal, bronze, warm paper.
   No frameworks. Works from a local file or a static server. */

:root {
  --bg: #161512;
  --bg-elev: #2b2a24;
  --bg-card: #24231e;
  --bg-card-hover: #2c2b25;
  --paper: #faf6ea;
  --paper-2: #efe8d4;
  --ink: #1d1f1c;
  --ink-soft: #3a3b36;
  --gold: #b89a52;
  --gold-deep: #6b5420;
  --gold-bright: #e0c97a;
  --gold-line: #8a7340;
  --text: #faf6ea;
  --text-muted: #c9c2ae;
  --line: #4a4638;
  --line-soft: #3a3730;
  --warn: #c45a45;
  --warn-soft: #fbefec;
  --focus: #e0c97a;
  --font-sans: "Segoe UI", "Liberation Sans", "DejaVu Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Palatino Linotype", Palatino, "Iowan Old Style", "Book Antiqua", Georgia, serif;
  --wrap: 70rem;
  --gutter: clamp(1.1rem, 3.2vw, 2rem);
  --radius: 6px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -80px, rgba(184, 154, 82, 0.08), transparent 60%),
    var(--bg);
  min-height: 100%;
}

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

a {
  color: var(--gold-bright);
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
button:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 0.5rem; }

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 21, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand:hover { color: var(--paper); }

.brand-icon {
  width: 44px;
  height: 44px;
  padding: 7px;
  background: #2b2a24;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

.brand-studio {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--paper); }

/* Hero */

.hero {
  padding: clamp(2.2rem, 6vw, 4.2rem) 0 clamp(2.4rem, 5vw, 3.4rem);
  border-bottom: 1px solid var(--line-soft);
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  color: var(--paper-2);
  margin: 0 0 1.4rem;
  max-width: 38rem;
}

.hero-grid {
  display: grid;
  gap: 1.4rem 2.5rem;
}

.hero p { margin: 0 0 1rem; max-width: 46rem; }

.hero p:last-child { margin-bottom: 0; }

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

.note {
  border-left: 4px solid var(--gold);
  background: rgba(250, 246, 234, 0.06);
  padding: 0.7rem 1rem;
  margin: 1.3rem 0 0;
  max-width: 46rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
}

.btn:hover { background: var(--gold-bright); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
}

.btn-ghost:hover { background: rgba(184, 154, 82, 0.12); color: var(--paper); }

/* Sections */

.section {
  padding: clamp(2.4rem, 5.5vw, 4rem) 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-header {
  margin-bottom: 1.4rem;
}

.sec-num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--paper);
  margin: 1.3rem 0 0.4rem;
}

.section-intro,
.prose p,
.prose li {
  max-width: 46rem;
}

.prose p,
.section-intro { margin: 0 0 1rem; }

.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }

.prose li { margin-bottom: 0.35rem; }

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

/* Feature layout: copy + screenshot */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(18rem, 0.95fr) minmax(22rem, 1.15fr);
  }
  .split.split-flip { grid-template-columns: minmax(22rem, 1.15fr) minmax(18rem, 0.95fr); }
  .split.split-flip .copy { order: 2; }
  .split.split-flip .shots { order: 1; }
  .split.ground-split {
    grid-template-columns: minmax(18rem, 0.85fr) minmax(24rem, 1.25fr);
  }
}

.shots {
  display: grid;
  gap: 1.2rem;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #111;
}

figcaption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  font-style: italic;
  line-height: 1.4;
}

/* Tank cards */

.tank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0 1rem;
}

.tank {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.05rem;
}

.tank h3 {
  margin: 0 0 0.15rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.tank .cap {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 0.15rem 0 0.55rem;
  color: var(--paper);
}

.tank dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.7rem;
  font-size: 0.92rem;
}

.tank dt {
  color: var(--text-muted);
  font-weight: 500;
}

.tank dd { margin: 0; }

/* Mode cards (fuel service) */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: 0.8rem;
  margin: 0.8rem 0 1.1rem;
}

.mode {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.mode h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.mode p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.mode .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.35rem;
  vertical-align: 1px;
  font-weight: 700;
}

/* Paper tables */

.sheet-wrap { overflow-x: auto; margin: 1rem 0 0.4rem; }

.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  border: 1px solid var(--gold-line);
}

.sheet th,
.sheet td {
  border: 1px solid #c9c0a6;
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.sheet th {
  background: var(--paper-2);
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sheet td:first-child,
.sheet th:first-child { font-weight: 600; }

.sheet caption {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 0 0 0.45rem;
  caption-side: top;
  font-size: 1rem;
  background: transparent;
}

.sheet a { color: var(--gold-deep); }

/* Comparison: emphasize the full product column */

.sheet.editions td:last-child,
.sheet.editions th:last-child {
  background: #f3ebd3;
}

.sheet.editions th:last-child { background: #e8d9a8; color: #3d2f10; }

/* Limits */

.limits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.limits li {
  background: var(--bg-card);
  border-left: 3px solid var(--gold-line);
  padding: 0.7rem 0.95rem;
  max-width: none;
}

.limits strong { color: var(--gold-bright); font-weight: 650; }

/* Get it + footer */

.get-it {
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
  background:
    linear-gradient(180deg, rgba(184, 154, 82, 0.08), transparent 40%),
    var(--bg-elev);
  border-bottom: 1px solid var(--line-soft);
}

.get-it h2 { margin-bottom: 0.6rem; }

.site-footer {
  padding: 2rem 0 2.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer .disclaimer {
  border-left: 4px solid var(--gold);
  background: var(--paper);
  color: var(--ink);
  padding: 0.85rem 1rem;
  margin: 0 0 1.2rem;
  max-width: 50rem;
}

.site-footer p { margin: 0 0 0.7rem; max-width: 50rem; }

.site-footer .credit {
  margin-top: 1.1rem;
  letter-spacing: 0.04em;
}

/* Utilities */

.small { font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .site-nav { gap: 0.3rem 0.8rem; }
  .site-nav a { font-size: 0.88rem; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.get-it .support-line { margin-top: 1rem; }

/* Anchor offset for the sticky header */
.section,
.get-it {
  scroll-margin-top: 4.75rem;
}

.fuel-service-note {
  max-width: 50rem;
  margin: 0 0 1.3rem;
}

.shots-pair {
  display: grid;
  gap: 1.2rem;
}

.shots-single {
  max-width: 42rem;
}

@media (min-width: 860px) {
  .shots-pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 700px) {
  .site-header { position: static; }
  .section,
  .get-it { scroll-margin-top: 0.5rem; }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
