/* Fishburg site: one shared stylesheet. No web fonts, no external requests. */

:root {
  color-scheme: light dark;
  --bg: #f2f9fc;
  --bg-deep: #e2f2f8;
  --surface: #ffffff;
  --surface-2: #eaf6fa;
  --text: #15323e;
  --muted: #4d6b77;
  --border: #cfe5ee;
  --primary: #0b7392;
  --primary-strong: #075a73;
  --accent: #e8603c;
  --sand: #f6e7c8;
  --sand-deep: #e9d2a3;
  --kelp: #2f9a6a;
  --focus: #f59e0b;
  --shadow: 0 1px 2px rgb(16 60 80 / 0.06), 0 6px 20px rgb(16 60 80 / 0.07);
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 46rem;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081a22;
    --bg-deep: #0c2530;
    --surface: #0f2a36;
    --surface-2: #133443;
    --text: #e2f1f6;
    --muted: #a3c0cb;
    --border: #1f4656;
    --primary: #5ec8e5;
    --primary-strong: #8fdcf0;
    --accent: #ff9a7a;
    --sand: #3a3325;
    --sand-deep: #4a4130;
    --kelp: #56c28f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--primary-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.skip:focus {
  left: 0.75rem;
}

/* Header */

.site-header {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-nav .lang {
  margin-left: 0.25rem;
  border: 1px solid var(--border);
  color: var(--primary);
}

/* Main content */

main {
  flex: 1;
  padding-block: 2rem 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.5rem);
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.6rem;
  padding-top: 0.2rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li + li {
  margin-top: 0.3rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  margin: 1.25rem 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2:first-child,
.card h3:first-child {
  margin-top: 0;
}

.summary {
  border-left: 5px solid var(--kelp);
}

.toc ol {
  columns: 2 14rem;
  column-gap: 2rem;
  padding-left: 1.2rem;
  margin: 0;
}

.toc li {
  break-inside: avoid;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-2);
  font-weight: 650;
}

tr:last-child td {
  border-bottom: 0;
}

.path {
  font-weight: 600;
}

.email {
  font-weight: 650;
}

/* FAQ */

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0.6rem 0;
  padding: 0 1rem 0 1.75rem;
}

details[open] {
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.8rem 0;
  list-style-position: outside;
}

details > :not(summary) {
  margin-top: 0;
}

details > :last-child {
  padding-bottom: 0.9rem;
  margin-bottom: 0;
}

/* Home page */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem 1.5rem 0;
  background: linear-gradient(180deg, #7fd3ea 0%, #3fa9cf 55%, #2b8fb8 100%);
  color: #06303f;
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(180deg, #1b6f8c 0%, #11506a 60%, #0c3d52 100%);
    color: #e9f8fc;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.2rem);
  margin-bottom: 0.3rem;
}

.hero .lead {
  color: inherit;
  opacity: 0.9;
  max-width: 32rem;
}

.hero .badge {
  display: inline-block;
  margin: 0.4rem 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.75);
  color: #06303f;
  font-weight: 650;
  font-size: 0.92rem;
}

.hero svg.scene {
  display: block;
  width: calc(100% + 3rem);
  height: auto;
  margin: 0.5rem -1.5rem 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.9rem;
  padding: 0;
  list-style: none;
  margin: 1.5rem 0;
}

.features li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.features strong {
  display: block;
  margin-bottom: 0.2rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.links li {
  margin: 0;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-strong);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .button,
  .button:hover {
    color: #04222c;
  }
}

.button.secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--sand);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 1.25rem;
}

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

.site-footer a {
  color: inherit;
}

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
  }

  .site-header .wrap {
    justify-content: center;
  }

  .hero {
    padding-inline: 1.1rem;
  }

  .hero svg.scene {
    width: calc(100% + 2.2rem);
    margin-inline: -1.1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .fish-a {
    animation: swim 9s ease-in-out infinite alternate;
  }

  .hero .fish-b {
    animation: swim 12s ease-in-out infinite alternate-reverse;
  }

  .hero .bubble {
    animation: rise 6s linear infinite;
  }
}

@keyframes swim {
  from {
    transform: translateX(-12px);
  }
  to {
    transform: translateX(14px);
  }
}

@keyframes rise {
  from {
    transform: translateY(0);
    opacity: 0.9;
  }
  to {
    transform: translateY(-60px);
    opacity: 0;
  }
}

@media print {
  .site-header nav,
  .skip,
  .hero svg.scene {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
