/* pastelings.velassi.org: one stylesheet for every page. No scripts, no outside fonts or services. */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #2E2A47;
  --ink-soft: #5D5878;
  --paper: #FFF8EE;
  --card: #FFFFFF;
  --line: #EADFF7;
  --link: #5B3DB8;
  --note: #FFF3BF;
  --on-pastel: #2E2A47;
  --pink: #FFC1D9;
  --mint: #BFEBD7;
  --sky: #BFE3FF;
  --butter: #FFF0A8;
  --lavender: #D9C8FF;
  --shadow: #2E2A47;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3EEFF;
    --ink-soft: #C8C1DF;
    --paper: #1E1B31;
    --card: #28243F;
    --line: #3C365C;
    --link: #CDB9FF;
    --note: #3A3350;
    --shadow: #0E0C1A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-inline: 16px;
}

.wrap { max-width: 46rem; margin-inline: auto; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* Header and nav */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 8px;
}

.brand {
  font-family: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--on-pastel);
  text-decoration: none;
  background: var(--pink);
  border: 3px solid var(--on-pastel);
  border-radius: 14px;
  padding: 6px 14px 8px;
  box-shadow: 0 5px 0 var(--shadow);
}

.nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--lavender); }

/* Text */
h1, h2, h3 {
  font-family: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: 2.2rem; margin: 28px 0 6px; }
h2 { font-size: 1.4rem; margin: 36px 0 8px; }
h3 { font-size: 1.12rem; margin: 22px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.meta { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 22px; }
.caps { text-transform: uppercase; font-size: 0.93rem; letter-spacing: 0.01em; }
strong { font-weight: 700; }

/* Boxes */
.note {
  background: var(--note);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-block: 18px 22px;
}
.note > :last-child { margin-bottom: 0; }

.facts {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 10px;
}
.facts li {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--on-pastel);
  font-weight: 600;
}
.facts li:nth-child(5n+1) { background: var(--sky); }
.facts li:nth-child(5n+2) { background: var(--mint); }
.facts li:nth-child(5n+3) { background: var(--butter); }
.facts li:nth-child(5n+4) { background: var(--lavender); }
.facts li:nth-child(5n+5) { background: var(--pink); }

.shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 3px solid var(--on-pastel);
  box-shadow: 0 6px 0 var(--shadow);
  margin-block: 18px 26px;
}

.email {
  font-size: 1.25rem;
  font-weight: 700;
  word-break: break-all;
  user-select: all;
}

.toc { padding-left: 1.2rem; columns: 2 16rem; column-gap: 28px; }
.toc li { break-inside: avoid; }

dl { margin: 0 0 14px; }
dt { font-weight: 700; margin-top: 16px; }
dd { margin: 4px 0 0; }

/* Footer */
.foot {
  margin-top: 48px;
  padding-block: 18px 32px;
  border-top: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.93rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .brand { font-size: 1.6rem; }
}
