@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/fredoka-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Apple-orchard palette */
  --page: #f5f9e8;        /* apple flesh */
  --ink: #1f3a12;         /* leaf ink */
  --ink-soft: #4d6340;
  --line: #d9e6bf;
  --orchard: #9bd14b;     /* hero band, ripe green apple */
  --orchard-ink: #1f3a12;
  --panel: #ffffff;
  --link: #2f7a12;
  --focus: #1f3a12;

  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --max: 1040px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #141c0f;
    --ink: #eef5e2;
    --ink-soft: #b2c3a3;
    --line: #2c3a22;
    --orchard: #26401a;
    --orchard-ink: #eef5e2;
    --panel: #1b2614;
    --link: #a9e06a;
    --focus: #d6f2a8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header { background: var(--orchard); color: var(--orchard-ink); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.45rem;
  color: inherit;
  text-decoration: none;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 500; }
.nav a {
  color: inherit;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
}
.nav a:hover { background: rgb(255 255 255 / .35); }
@media (prefers-color-scheme: dark) { .nav a:hover { background: rgb(255 255 255 / .08); } }

.sound-toggle {
  font: inherit;
  font-family: var(--display);
  font-weight: 500;
  color: inherit;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 6px;
  cursor: pointer;
}

/* ---------- Hero: the soundboard ---------- */
.hero { background: var(--orchard); color: var(--orchard-ink); padding: 36px 0 64px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 13ch;
}
.hero p { margin: 0 0 36px; max-width: 46ch; font-size: 1.15rem; }

.pads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
}
@media (max-width: 820px) { .pads { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }

.pads > li { display: flex; }
.pads > li > a { flex: 1; }

/* The empty slot: an invitation, not a button */
.pad-idea {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 200px;
  padding: 22px 18px;
  border: 3px dashed currentColor;
  border-radius: 28px;
  color: inherit;
  text-decoration: none;
  text-align: center;
  opacity: .85;
}
.pad-idea:hover { opacity: 1; }
.pad-idea strong { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.pad-idea span { font-size: .95rem; }

.pad {
  --pad: #6dbe32;
  --pad-deep: #3f8a14;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 200px;
  padding: 22px 14px 18px;
  border-radius: 28px;
  background: var(--pad);
  box-shadow: 0 9px 0 var(--pad-deep);
  color: #fff;
  text-decoration: none;
  text-align: center;
  transform: translateY(0);
  transition: transform .07s ease-out, box-shadow .07s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.pad:hover { filter: saturate(1.08) brightness(1.03); }
.pad:active, .pad.is-pressed {
  transform: translateY(7px);
  box-shadow: 0 2px 0 var(--pad-deep);
}
.pad:focus-visible { outline-color: var(--orchard-ink); outline-offset: 5px; border-radius: 28px; }

.pad-icon {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: rgb(255 255 255 / .92);
  color: var(--pad-deep);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.4rem;
  overflow: hidden;
  box-shadow: 0 3px 0 rgb(0 0 0 / .12);
}
.pad-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.pad-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.2;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgb(0 0 0 / .18);
}
.pad-store { font-size: .85rem; opacity: .92; margin-top: auto; }

/* Ring that appears on press */
.pad::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 34px;
  border: 4px solid var(--pad);
  opacity: 0;
  pointer-events: none;
}
.pad.is-pressed::after { animation: ring .45s ease-out; }
@keyframes ring {
  from { opacity: .9; transform: scale(.96); }
  to { opacity: 0; transform: scale(1.08); }
}

.c-tomato   { --pad: #f05a3c; --pad-deep: #b23519; }
.c-sky      { --pad: #2f9de8; --pad-deep: #1765a6; }
.c-lemon    { --pad: #f5b512; --pad-deep: #b17c00; }
.c-grape    { --pad: #8a5be6; --pad-deep: #5a32a8; }
.c-bubble   { --pad: #f2609c; --pad-deep: #b3306a; }
.c-mint     { --pad: #1fb592; --pad-deep: #10785f; }
.c-apple    { --pad: #5fae2a; --pad-deep: #367a10; }
.c-lemon .pad-name, .c-lemon .pad-store { color: #3a2a00; text-shadow: none; }

/* Leaf-shaped edge between hero and page */
.hero-edge { display: block; width: 100%; height: 36px; margin-top: -1px; color: var(--orchard); }

/* ---------- Info section ---------- */
.info { padding: 28px 0 64px; }
.info-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; gap: 36px; } }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0 0 14px;
}
.facts { list-style: none; padding: 0; margin: 0 0 16px; }
.facts li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 2px dashed var(--line);
}
.facts li:last-child { border-bottom: 0; }
.facts svg { width: 28px; height: 28px; margin-top: 1px; color: var(--link); }
.facts strong { font-weight: 650; }

.mail {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  word-break: break-all;
  margin: 2px 0 18px;
}
.small { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Long-form pages ---------- */
.prose { padding: 40px 0 64px; max-width: 70ch; }
.prose h1 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 6px;
}
.prose h2 { margin-top: 40px; font-size: 1.4rem; }
.prose h3 { font-family: var(--display); font-weight: 600; margin-top: 26px; font-size: 1.15rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 5px 0; }
.updated { color: var(--ink-soft); margin: 0 0 18px; }
.lang-switch {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 22px;
}
.note {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 30px;
}
.site-footer a { color: inherit; }

@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .pad { min-height: 176px; border-radius: 24px; }
  .pad-icon { width: 72px; height: 72px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .pad, .pad:active, .pad.is-pressed { transition: none; }
  .pad.is-pressed::after { animation: none; }
}
