@font-face {
  font-family: Nunito;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

/* Tankful — tankful.pastelero.ph
   Identity comes from the app: flat colour, thick ink outlines, rounded heavy
   type. No gradients, no glass. Lagoon is only ever a fill or an outline,
   never text: it does not reach 4.5:1 against paper or ink. */

:root {
  --ink:    #10242E;
  --paper:  #F2F5F3;
  --lagoon: #1E8FB3;
  --mango:  #FFC857;
  --water:  #8FD3E8;
  --water-2:#4FB4D6;
  --sand:   #E9D8B4;
  --white:  #FFFFFF;
  --text-2: #2E4652;   /* 9.6:1 on paper */

  --line: 3px solid var(--ink);
  --lift: 0 4px 0 var(--ink);
  --radius: 22px;

  --step--1: clamp(0.9rem, 0.87rem + 0.12vw, 0.98rem);
  --step-0:  clamp(1.04rem, 1rem + 0.2vw, 1.16rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.8rem, 1.5rem + 1.3vw, 2.6rem);
  --step-3:  clamp(2.5rem, 1.9rem + 3vw, 4.4rem);

  --pad:  clamp(1.25rem, 4vw, 2.5rem);
  --rail: 66rem;
}

* { box-sizing: border-box; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Nunito, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }

p { margin: 0 0 1em; max-width: 60ch; color: var(--text-2); text-wrap: pretty; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lagoon); }
a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 3px;
  border-radius: 6px;
}

.rail { width: min(100% - 2 * var(--pad), var(--rail)); margin-inline: auto; }
.small { font-size: var(--step--1); }

.skip {
  position: absolute; left: -9999px; top: 0.75rem;
  background: var(--mango); border: var(--line); border-radius: 12px;
  padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.75rem; }

/* ---------- nav ---------- */

nav { border-bottom: var(--line); background: var(--paper); }
nav .rail { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 900; font-size: 1.3rem; text-decoration: none; margin-right: auto;
}
.brand-fish { width: 48px; height: 29px; }
nav .link { font-weight: 800; padding: 0.6rem 0.2rem; }

/* ---------- hero ---------- */

.hero { background: var(--water); border-bottom: var(--line); overflow: hidden; }
.hero-grid {
  display: grid; gap: 2rem; align-items: end;
  grid-template-columns: 1fr;
  padding-top: clamp(2.5rem, 7vw, 5rem);
}
.hero-grid > * { min-width: 0; }
.lede { padding-bottom: 1rem; }
.lede p { color: var(--ink); font-size: var(--step-1); line-height: 1.4; }
.lede .small { font-size: var(--step--1); }
.soon {
  display: inline-block;
  background: var(--mango); border: var(--line); border-radius: 999px;
  box-shadow: var(--lift);
  padding: 0.55rem 1.2rem; margin: 0.5rem 0 1.25rem;
  font-weight: 900; font-size: var(--step-0) !important;
}
.hero-shot img {
  width: min(320px, 78vw); margin-inline: auto;
  border: var(--line); border-bottom: 0; border-radius: 28px 28px 0 0;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
  .lede { padding-bottom: 4rem; }
  .hero-shot img { width: 360px; }
}

/* ---------- sections ---------- */

section { padding-block: clamp(3rem, 8vw, 5.5rem); border-bottom: var(--line); }
.band-mango { background: var(--mango); }
.band-water { background: var(--water); }
.band-sand  { background: var(--sand); }
.band-mango p, .band-water p, .band-sand p { color: var(--ink); }

.card {
  background: var(--white); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--lift);
}

.loop, .stages {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.loop li, .stages li { padding: 1.25rem 1.4rem; display: grid; gap: 0.25rem; }
.loop b, .stages b { font-size: var(--step-1); font-weight: 900; }
.loop span, .stages span { color: var(--text-2); }
.loop { counter-reset: step; }
.loop li::before {
  counter-increment: step; content: counter(step);
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: var(--water-2); border: var(--line); border-radius: 50%;
  font-weight: 900; margin-bottom: 0.5rem;
}
.stages li { border-left-width: 10px; border-left-color: var(--lagoon); }

.fish-grid {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .fish-grid { grid-template-columns: repeat(3, 1fr); } }
.fish-card {
  background: var(--white); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--lift); padding: 1rem;
  display: grid; justify-items: start; gap: 0.15rem;
}
.fish-card svg { width: 100%; height: auto; aspect-ratio: 5 / 3; margin: 0.4rem 0; }
.fish-card b { font-weight: 900; line-height: 1.2; }
.fish-card i { font-size: var(--step--1); color: var(--text-2); font-weight: 700; }
.tier {
  font-size: 0.8rem; font-weight: 900; padding: 0.1rem 0.6rem;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper);
}
.tier-rare { background: var(--water); }
.tier-legendary { background: var(--mango); }

.gallery {
  list-style: none; margin: 1.5rem 0 0; padding: 0.5rem var(--pad) 1.5rem;
  display: flex; gap: 1.25rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
}
.gallery li { flex: 0 0 auto; scroll-snap-align: start; }
.gallery img {
  width: clamp(200px, 60vw, 260px);
  border: var(--line); border-radius: var(--radius); box-shadow: var(--lift);
}
@media (min-width: 1100px) {
  .gallery { justify-content: safe center; }
}

.split { display: grid; gap: 2.5rem; }
.split > * { min-width: 0; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- prose (privacy, support) ---------- */

.prose { padding-block: clamp(2.5rem, 7vw, 4.5rem); max-width: 44rem; }
.prose h1 { font-size: var(--step-2); }
.prose h2 { font-size: var(--step-1); margin-top: 2em; margin-bottom: 0.4em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.25rem; max-width: 60ch; }
.prose li { margin-bottom: 0.3em; }
.prose strong { color: var(--ink); font-weight: 900; }
.updated {
  display: inline-block; background: var(--sand); border: var(--line);
  border-radius: 999px; padding: 0.2rem 0.9rem; color: var(--ink);
  font-size: var(--step--1);
}

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

footer { background: var(--ink); color: var(--paper); padding-block: 2rem; }
footer .rail { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
footer a { color: var(--paper); font-weight: 800; padding-block: 0.6rem; }
footer a:focus-visible { outline-color: var(--mango); }
.sig { margin-left: auto; color: #C9D6DB; font-size: var(--step--1); }
