@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --computer: #0b2a3a;
  --signal: #ffd23f;
  --ink-shallow: #0b2a3a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 150ms;
  --base: 200ms;
  --gutter: 16px;
  --rail: 0px;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-weight: 400;
  color: var(--ink);
  background: #e6f6f5;
  padding-bottom: 96px;
}

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

h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus, var(--ink-shallow));
  outline-offset: 2px;
}

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

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 30;
  padding: 12px 16px; border-radius: 999px;
  background: var(--computer); color: #fff; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Zones: the depth of a section decides its ink. */
.zone-light {
  --ink: #0b2a3a;
  --muted: #2f5868;
  --line: rgb(11 42 58 / 0.18);
  --hover: rgb(11 42 58 / 0.08);
  --focus: #0b2a3a;
  color: var(--ink);
}
.zone-deep {
  --ink: #eaf6f8;
  --muted: #c3e3ea;
  --line: rgb(234 246 248 / 0.22);
  --hover: rgb(234 246 248 / 0.1);
  --focus: #ffd23f;
  color: var(--ink);
}

main > section {
  background: linear-gradient(to bottom, var(--from), var(--to));
  padding-block: 64px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 820px; }

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-stretch: 112%;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}
.intro {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 32px;
}
.note {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 24px;
}

/* Header */
.top {
  background: #e6f6f5;
}
.top .wrap, .top {
  padding: 16px var(--gutter) 0;
}
.brand { display: inline-block; border-radius: 8px; }
.brand img { height: 64px; width: auto; }

/* Hero */
.hero { padding-top: 24px; padding-bottom: 32px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-stretch: 115%;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.lede {
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 52ch;
}
.picker { margin-top: 32px; }
.picker-title {
  font-weight: 600;
  margin-bottom: 12px;
}
.picker ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
}
.picker a {
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 12px 20px;
  border: 1.5px solid rgb(11 42 58 / 0.55);
  border-radius: 28px;
  text-decoration: none;
  transition: background-color var(--fast) var(--ease);
}
.picker a:hover { background: var(--hover); }
.picker a:active { background: var(--line); }
.picker strong { font-weight: 600; }
.picker span { color: var(--muted); font-size: 0.9375rem; }
.picker-note { margin-top: 12px; color: var(--muted); font-size: 0.875rem; }

/* Full-bleed photos */
.bleed { margin: 0; }
.bleed img { width: 100%; object-fit: cover; }
.waterline { background: #dff3f2; }
.waterline img {
  aspect-ratio: 2 / 3;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 72px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 72px);
}
.band img { aspect-ratio: 3 / 2; max-height: 80vh; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--fast) var(--ease);
}
.btn:hover { background: var(--hover); }
.btn:active { background: var(--line); }

.whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--ink-shallow);
  border-radius: 999px;
  background: var(--signal);
  color: var(--ink-shallow);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--fast) var(--ease);
}
.whatsapp:hover { background: #ffdd66; }
.whatsapp:active { background: #f2c21f; }
.whatsapp:focus-visible { outline-color: var(--ink-shallow); box-shadow: 0 0 0 4px var(--signal); }

/* Rows: label and description lists */
.rows { margin: 0 0 32px; border-top: 1px solid var(--line); }
.row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.row dt { font-weight: 600; font-size: 1.125rem; }
.row dd { margin: 0; color: var(--muted); max-width: 62ch; }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  vertical-align: 2px;
}

/* Courses */
.num, .n { font-variant-numeric: tabular-nums; }
.feature {
  display: grid;
  gap: 24px;
  padding: 24px 0 32px;
  margin-bottom: 32px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.feature-text p { margin: 12px 0 20px; max-width: 60ch; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.table-title { margin: 40px 0 12px; }
.courses { width: 100%; border-collapse: collapse; }
.courses thead th {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
}
.courses th.n, .courses td.n { text-align: right; white-space: nowrap; }
.courses tbody th, .courses td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--line);
}
.courses tbody th { font-weight: 600; }
.courses td { color: var(--muted); }
.courses td.n { color: var(--ink); }
.courses td:last-child { text-align: right; white-space: nowrap; padding-right: 0; }

@media (max-width: 719px) {
  .courses thead { display: none; }
  .courses, .courses tbody, .courses tr, .courses th, .courses td { display: block; }
  .courses tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .courses tbody th, .courses td { padding: 0; border: 0; }
  .courses tbody th, .courses td[data-l="Formato"], .courses td:last-child { grid-column: 1 / -1; }
  .courses td.n { text-align: left; }
  .courses td.n::before {
    content: attr(data-l);
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
  }
  .courses td:last-child { text-align: left; padding-top: 4px; }
  .courses td:last-child a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* About */
.split { display: grid; gap: 40px; }
.split p + p { margin-top: 16px; }
.project h3 { margin-bottom: 12px; }
.project p { color: var(--muted); }
blockquote {
  margin: 24px 0 0;
  padding: 0;
  font-size: 1.5rem;
  font-stretch: 112%;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

/* Gallery */
.gallery { display: grid; gap: 16px; }
.gallery figure { margin: 0; }
.gallery img, .gallery video {
  width: 100%;
  border-radius: 16px;
  background: rgb(234 246 248 / 0.08);
}
.gallery img { height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  align-items: center;
  padding: 12px 0;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform var(--base) var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* Contact */
.contact { padding-top: 0 !important; }
.contact-photo img { aspect-ratio: 4 / 3; max-height: 70vh; }
.contact .wrap { padding-top: 48px; }
.contact h2 { max-width: 20ch; }
.channels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.channels .btn { overflow-wrap: anywhere; }

.foot {
  background: #062435;
  padding: 32px 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--ink); }

/* Gauge: a dive computer that doubles as the menu. */
.gauge {
  --g-ink: #eaf6f8;
  --g-muted: #a9cbd6;
  --focus: #ffd23f;
  margin: 0;
  border: 0;
  padding: 20px;
  border-radius: 20px;
  background: var(--computer);
  color: var(--g-ink);
  font-family: var(--sans);
}
.gauge-readout {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--signal);
  font-stretch: 125%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.gauge-depth { font-size: 2rem; }
.gauge-unit { font-size: 1rem; }
.gauge-scale { list-style: none; margin: 16px 0 0; padding: 0; }
.gauge-scale a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--g-ink);
  text-decoration: none;
  font-weight: 500;
}
.gauge-scale a:hover { background: rgb(234 246 248 / 0.08); }
.gauge-mark {
  min-width: 3.4em;
  color: var(--g-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
}
.gauge-scale a[aria-current] { color: var(--signal); }
.gauge-scale a[aria-current] .gauge-mark { color: var(--signal); }
.gauge-marker { display: none; }

/* Phones and tablets: a pill opens the gauge as a popover. */
.depth-pill {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 16px;
  border: 2px solid var(--signal);
  border-radius: 999px;
  background: var(--computer);
  color: #eaf6f8;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.depth-pill:focus-visible { outline: 2px solid var(--computer); outline-offset: 2px; box-shadow: 0 0 0 4px var(--signal); }
.depth-pill-value {
  color: var(--signal);
  font-stretch: 125%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .gauge:popover-open {
    position: fixed;
    inset: auto 16px 80px 16px;
    max-width: 360px;
    max-height: calc(100dvh - 120px);
    overflow: auto;
  }
  .gauge::backdrop { background: rgb(6 36 53 / 0.5); }
}

@media (max-width: 400px) {
  .whatsapp span { font-size: 0.9375rem; }
  .depth-pill-label { display: none; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .picker ul { grid-template-columns: 1fr 1fr; }
  .waterline img { aspect-ratio: 3 / 2; max-height: 88vh; }
  .feature { grid-template-columns: 3fr 2fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-tall { grid-row: span 2; }
  .row { grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px; align-items: baseline; }
}

@media (min-width: 1024px) {
  :root { --rail: 200px; }
  body { padding-bottom: 0; }
  main > section { padding-block: 128px; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .wrap { max-width: calc(1200px + var(--rail)); padding-right: calc(var(--gutter) + var(--rail)); }
  .top { padding-top: 24px; }
  .top .wrap { padding: 0; }
  .brand img { height: 88px; }
  .hero h1 { max-width: 18ch; }
  .contact .wrap { padding-top: 96px; }
  .gallery { grid-template-columns: 1fr 1.6fr; }
  .depth-pill { display: none; }

  .gauge {
    display: block;
    position: fixed;
    inset: 50% 16px auto auto;
    transform: translateY(-50%);
    z-index: 20;
    width: 176px;
    padding: 16px 12px 16px 16px;
  }
  .gauge-scale {
    position: relative;
    height: min(56vh, 440px);
    margin-top: 16px;
    margin-left: 10px;
    border-left: 2px solid rgb(234 246 248 / 0.3);
    background: repeating-linear-gradient(to bottom, rgb(234 246 248 / 0.3) 0 1px, transparent 1px 12.5%) left / 6px 100% no-repeat;
  }
  .gauge-scale li {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--d) / 40 * 100%);
    transform: translateY(-50%);
  }
  .gauge-scale a {
    min-height: 32px;
    padding: 0 6px 0 14px;
    gap: 8px;
    font-size: 0.875rem;
  }
  .gauge-mark { min-width: 2.6em; font-size: 0.75rem; }
  .gauge-marker {
    display: block;
    position: absolute;
    left: 20px;
    top: 0;
    width: 0;
    height: 0;
    border-block: 6px solid transparent;
    border-left: 8px solid var(--signal);
    translate: 0 calc(var(--marker, 0) * 1px);
  }
}

.lost-title {
  margin: 32px 0 16px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-stretch: 115%;
  font-weight: 500;
  line-height: 1.05;
}

@media (min-width: 1280px) {
  .picker ul { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
