/* Nimue's Nook: a little pond on the internet */

@import url("https://fonts.googleapis.com/css2?family=Grandstander:wght@400;600;800&family=Pixelify+Sans:wght@400;600&display=swap");

:root {
  --lake: #8fd3e8;
  --lake-deep: #6bbad4;
  --pad: #6fbf5a;
  --pad-dark: #3f8a3a;
  --lily: #f7a8c8;
  --lily-deep: #e27aa6;
  --dusk: #b9a3e3;
  --paper: #fffbe6;
  --ink: #2b2640;
  --ink-soft: #5a5170;
  --bevel-hi: #ffffff;
  --bevel-lo: #8a7fa3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 40px;
  color: var(--ink);
  background-color: var(--lake);
  /* hand-drawn ripples, tiled */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cg fill='none' stroke='%237cc4dc' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M10 30 q10 -8 20 0 t20 0'/%3E%3Cpath d='M95 85 q10 -8 20 0 t20 0'/%3E%3Cpath d='M60 110 q7 -5 14 0'/%3E%3C/g%3E%3Ccircle cx='130' cy='25' r='4' fill='none' stroke='%23b8e6f2' stroke-width='2'/%3E%3Ccircle cx='40' cy='80' r='3' fill='none' stroke='%23b8e6f2' stroke-width='2'/%3E%3C/svg%3E");
  font-family: "Grandstander", "Comic Sans MS", cursive;
  font-size: 17px;
  line-height: 1.6;
  /* a little fly for a cursor */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cellipse cx='8' cy='7' rx='6' ry='4' fill='%23ffffffcc' stroke='%232b2640'/%3E%3Cellipse cx='16' cy='7' rx='6' ry='4' fill='%23ffffffcc' stroke='%232b2640'/%3E%3Ccircle cx='12' cy='13' r='5' fill='%232b2640'/%3E%3C/svg%3E") 12 13, auto;
}

a { color: var(--pad-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:visited { color: #7a55b8; }
a:hover { color: var(--lily-deep); text-decoration-style: wavy; }
a, button { cursor: pointer; }
:focus-visible { outline: 3px dashed var(--lily-deep); outline-offset: 3px; }

.pond { max-width: 900px; margin: 0 auto; }

/* ---------- the title: bubble letters bobbing on the water ---------- */
.title {
  margin: 8px 0 4px;
  text-align: center;
  font-family: "Grandstander", cursive;
  font-weight: 800;
  font-size: clamp(44px, 10vw, 92px);
  line-height: 1.05;
  letter-spacing: 1px;
}
.title span {
  display: inline-block;
  color: var(--lily);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--lake-deep);
  animation: bob 3.2s ease-in-out infinite;
}
.title span:nth-child(3n+2) { color: var(--dusk); animation-delay: -1.1s; }
.title span:nth-child(3n)   { color: var(--pad);  animation-delay: -2.2s; }
.title .gap { width: .35em; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-7px) rotate(3deg); }
}
.subtitle {
  text-align: center;
  margin: 0 auto 18px;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---------- lily pad navigation ---------- */
.pads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.pads a {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 92px;
  border-radius: 50%;
  /* the notch every lily pad has */
  background: conic-gradient(from -18deg, transparent 0 34deg, var(--pad) 34deg 360deg);
  filter: drop-shadow(0 4px 0 var(--pad-dark));
  color: var(--ink);
  font-family: "Pixelify Sans", monospace;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transform: rotate(var(--tilt, -4deg));
  transition: transform .25s ease;
}
.pads li:nth-child(2) a { --tilt: 5deg; }
.pads li:nth-child(3) a { --tilt: -7deg; }
.pads li:nth-child(4) a { --tilt: 3deg; }
.pads li:nth-child(5) a { --tilt: -2deg; }
.pads a:hover { transform: rotate(var(--tilt)) translateY(-5px) scale(1.04); color: var(--ink); }
.pads a[aria-current="page"]::after {
  /* a water lily blooms on the page you're on */
  content: "";
  position: absolute;
  top: -10px;
  right: 2px;
  width: 34px;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23f7a8c8' stroke='%232b2640' stroke-width='1.5'%3E%3Cellipse cx='20' cy='10' rx='5' ry='10'/%3E%3Cellipse cx='20' cy='10' rx='5' ry='10' transform='rotate(72 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5' ry='10' transform='rotate(144 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5' ry='10' transform='rotate(216 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5' ry='10' transform='rotate(288 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='5' fill='%23ffe27a' stroke='%232b2640' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- old-computer windows ---------- */
.desk {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}
.desk .wide { grid-column: 1 / -1; }

.win {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: inset -2px -2px 0 var(--bevel-lo), inset 2px 2px 0 var(--bevel-hi), 6px 6px 0 rgba(43, 38, 64, .25);
}
.win.tilt-l { transform: rotate(-.6deg); }
.win.tilt-r { transform: rotate(.8deg); }
.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 4px 3px 10px;
  background: linear-gradient(90deg, var(--dusk), var(--lily));
  border-bottom: 2px solid var(--ink);
  font-family: "Pixelify Sans", monospace;
  font-size: 16px;
}
.win-bar .btns { display: flex; gap: 3px; }
.win-bar .btns span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 18px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: inset -1px -1px 0 var(--bevel-lo);
  font-size: 12px;
  line-height: 1;
}
.win-body { padding: 14px 20px 18px; }
.win-body > :first-child { margin-top: 0; }
.win-body > :last-child { margin-bottom: 0; }

h2 {
  margin: 1.4em 0 .3em;
  font-family: "Grandstander", cursive;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  color: var(--pad-dark);
}
h3 {
  margin: 1.3em 0 .2em;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
p { max-width: 64ch; }

/* ---------- the frog window ---------- */
.frog-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px 0 18px;
  background:
    radial-gradient(ellipse 46% 11% at 50% 90%, var(--pad) 0 97%, var(--pad-dark) 98% 100%, transparent 101%),
    linear-gradient(var(--lake) 0 0);
  border: 2px solid var(--ink);
}
.frog-stage img { position: relative; width: 190px; height: auto; }
.caption {
  margin: 8px auto 12px;
  text-align: center;
  font-family: "Pixelify Sans", monospace;
  font-size: 15px;
  color: var(--ink-soft);
}

.facts { width: 100%; border-collapse: collapse; font-size: 16px; }
.facts th, .facts td { padding: 5px 8px; border-bottom: 2px dotted var(--dusk); text-align: left; vertical-align: top; }
.facts th { width: 40%; font-weight: 600; color: var(--ink-soft); }

/* ---------- small bits ---------- */
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 8px 0; border-bottom: 2px dotted var(--dusk); }
.news li:last-child { border-bottom: 0; }
.news time { font-family: "Pixelify Sans", monospace; color: var(--lily-deep); margin-right: 6px; }

.sign {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  background: #ffe27a;
  border: 2px solid var(--ink);
  font-family: "Pixelify Sans", monospace;
  font-size: 15px;
  transform: rotate(-2deg);
}

.button88 { image-rendering: pixelated; vertical-align: middle; }

.shore {
  margin-top: 30px;
  text-align: center;
  font-family: "Pixelify Sans", monospace;
  font-size: 15px;
  color: var(--ink-soft);
}
.shore p { max-width: none; margin: 6px 0; }

/* ---------- the library: a guidebook ---------- */
.guide-head { text-align: center; padding: 6px 0 4px; }
.guide-head h2 { margin: 0; font-size: 34px; }
.guide-head p { margin: 4px auto 0; color: var(--ink-soft); }
.version {
  margin: 16px auto 0;
  padding: 8px 14px;
  max-width: 560px;
  background: #fff;
  border: 2px dashed var(--dusk);
  font-size: 15px;
}
.version b { font-family: "Pixelify Sans", monospace; font-weight: 600; color: var(--lily-deep); }

.contents {
  margin: 22px 0 8px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--dusk);
}
.contents h3 { margin: 0 0 6px; }
.contents ol {
  columns: 2 240px;
  column-gap: 28px;
  margin: 0;
  padding-left: 1.6em;
}
.contents li { break-inside: avoid; padding: 2px 0; }

.chapter { padding-top: 6px; scroll-margin-top: 12px; }
.chapter h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-bottom: 4px;
  border-bottom: 3px dotted var(--pad);
}
.code-tag {
  font-family: "Pixelify Sans", monospace;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--lily);
  border: 1.5px solid var(--ink);
  padding: 0 7px;
  border-radius: 10px;
  transform: rotate(-3deg);
}
.chapter h3 { font-size: 19px; color: var(--pad-dark); }

.guide dl { margin: 10px 0; }
.guide dt { font-weight: 800; margin-top: 10px; }
.guide dd { margin: 2px 0 0 1.2em; max-width: 62ch; }

.stat-table { width: 100%; max-width: 640px; border-collapse: collapse; margin: 10px 0; background: #fff; border: 2px solid var(--ink); }
.stat-table th, .stat-table td { padding: 7px 12px; text-align: left; vertical-align: top; border-bottom: 2px dotted var(--dusk); }
.stat-table th { width: 32%; font-family: "Pixelify Sans", monospace; font-weight: 600; background: #eef9e8; }
.stat-table tr:last-child th, .stat-table tr:last-child td { border-bottom: 0; }

.callout {
  max-width: 62ch;
  margin: 14px 0;
  padding: 10px 14px;
  background: #ffe27a;
  border: 2px solid var(--ink);
  transform: rotate(-.5deg);
}
.callout strong { font-family: "Pixelify Sans", monospace; }

.qa dt::before { content: "Q: "; color: var(--lily-deep); }
.qa dd::before { content: "A: "; font-weight: 800; color: var(--pad-dark); }

.signoff { text-align: center; margin: 26px auto 4px; font-size: 20px; font-weight: 800; color: var(--pad-dark); }
.to-top { font-family: "Pixelify Sans", monospace; font-size: 14px; }

/* ---------- webring ---------- */
.ring {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 14px;
  border: 3px dashed var(--pad-dark);
  border-radius: 50% / 38%;
  background: radial-gradient(ellipse at center, #c9f0c0, #a4dd92);
}
.ring .ringname { font-weight: 800; font-size: 24px; }
.ring nav { font-family: "Pixelify Sans", monospace; font-size: 18px; display: flex; gap: 14px; }
.ring p { margin: 0; }

.code {
  margin: 8px 0;
  padding: 10px 12px;
  overflow-x: auto;
  background: #fff;
  border: 2px inset var(--bevel-lo);
  font-family: "Courier New", monospace;
  font-size: 13px;
  white-space: pre;
}

iframe.guestbook { display: block; width: 100%; height: 620px; border: 2px solid var(--ink); background: #fff; }

@media (max-width: 720px) {
  .desk { grid-template-columns: 1fr; }
  .pads a { width: 92px; height: 78px; font-size: 15px; }
  .win.tilt-l, .win.tilt-r { transform: none; }
  .win-body { padding: 12px 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .title span { animation: none; }
  .pads a { transition: none; }
}

/* fishing gear table: column headers across the top */
.stat-table.gear th { width: auto; }
.stat-table.gear tr:first-child th { border-bottom: 2px solid var(--ink); }
.stat-table.gear td:first-child { font-weight: 600; }
@media (max-width: 520px) {
  .stat-table.gear { font-size: 14px; }
  .stat-table.gear th, .stat-table.gear td { padding: 6px 6px; }
}