@font-face {
  font-family: "Kids Croteau";
  src: url("../fonts/Croteau-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #fffbd0;
  --paper: #fffef9;
  --ink: #1e1b18;
  --purple: #330353;
  --orange: #f45a16;
  --orange-dark: #b62b10;
  --orange-light: #ff9e2f;
  --pink: #d40067;
  --green: #16833e;
  --lime: #66a900;
  --gold: #d88b00;
  --brown: #5b4033;
  --shadow: 0 1rem 2.6rem rgb(57 35 17 / 22%), 0 0.25rem 0.7rem rgb(57 35 17 / 15%);
  --soft-shadow: 0 0.45rem 0.85rem rgb(57 35 17 / 18%);
  --focus: #005fcc;
  --content-width: 52rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 18rem;
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("../pics/tilepine.gif");
  font-family: Corbel, "Trebuchet MS", Tahoma, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.16rem);
  font-weight: 450;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgb(255 255 255 / 34%), transparent 55%);
  content: "";
  pointer-events: none;
}

a {
  color: #8d160d;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #c52c12;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  border-radius: 0.2rem;
  outline: 0.22rem solid var(--focus);
  outline-offset: 0.2rem;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  translate: 0 -200%;
  color: #fff;
  background: var(--purple);
  font-weight: 800;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus {
  translate: 0;
}

.site-wrap {
  width: min(calc(100% - 1.25rem), 68rem);
  margin-inline: auto;
  padding-block: clamp(0.65rem, 3vw, 2.5rem) 2rem;
}

.site-header {
  width: min(100%, 61rem);
  margin-inline: auto;
}

.compact-brand {
  display: flex;
  width: fit-content;
  margin: 0 auto 0.6rem;
  padding: 0.2rem 0.7rem 0.35rem;
  rotate: -1deg;
  flex-direction: column;
  color: var(--orange-dark);
  background: rgb(255 254 249 / 83%);
  box-shadow: var(--soft-shadow);
  text-align: center;
  text-decoration: none;
  text-shadow: 0.07em 0.08em 0 rgb(255 255 255), 0.1em 0.13em 0 rgb(69 37 17 / 16%);
}

.compact-brand span {
  font-family: "Kids Croteau", Impact, sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.75rem);
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  line-height: 0.95;
}

.compact-brand small {
  color: var(--ink);
  font-family: "Comic Sans MS", cursive;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* The home title is the shared live-text brand enlarged to exactly 175%. */
.compact-brand--home {
  max-width: 100%;
  margin-bottom: clamp(0.7rem, 1.8vw, 1.3rem);
  padding: 0.35rem 1.225rem 0.6125rem;
  transition: box-shadow 180ms ease, translate 180ms ease;
}

.compact-brand--home span {
  font-size: clamp(2.975rem, 8.75vw, 4.8125rem);
  text-wrap: balance;
}

.compact-brand--home small {
  font-size: 1.26rem;
}

.compact-brand--home:hover {
  box-shadow: 0 0.65rem 1.1rem rgb(57 35 17 / 24%);
  translate: 0 -0.1rem;
}

.garden-nav {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 58rem;
  margin: 0 auto -0.85rem;
  padding: 0.25rem 0.4rem 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.22rem 0.35rem;
}

.garden-nav__link,
.garden-nav__utility,
.menu-toggle {
  border: 0.18rem solid currentColor;
  color: var(--orange);
  background: linear-gradient(165deg, #fff 0 63%, #fff7bd 100%);
  box-shadow: 0.12rem 0.18rem 0 #fff, 0.23rem 0.32rem 0 rgb(57 35 17 / 17%);
  font-family: "Kids Croteau", Impact, sans-serif;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.garden-nav__link {
  display: inline-block;
  padding: 0.4rem 0.58rem 0.33rem;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1), color 150ms ease, box-shadow 150ms ease;
}

.garden-nav__link:hover,
.garden-nav__link:focus-visible {
  z-index: 3;
  color: var(--orange-light);
  box-shadow: 0.14rem 0.22rem 0 #fff, 0.32rem 0.48rem 0 rgb(57 35 17 / 23%);
  transform: translateY(-0.36rem) rotate(calc(var(--tilt, 0deg) * -0.2)) scale(1.04);
}

.garden-nav__link[aria-current="location"] {
  color: #fff;
  background: linear-gradient(160deg, var(--orange-light), var(--orange));
  text-shadow: 0.07em 0.08em 0 rgb(100 24 0 / 24%);
}

.garden-nav__link--1 { --tilt: 2deg; color: var(--pink); }
.garden-nav__link--2 { --tilt: -2.2deg; color: #e66b00; }
.garden-nav__link--3 { --tilt: 1.4deg; color: var(--green); }
.garden-nav__link--4 { --tilt: -1.7deg; color: var(--green); }
.garden-nav__link--5 { --tilt: 1.8deg; color: var(--pink); }
.garden-nav__link--6 { --tilt: -1.2deg; color: var(--lime); }
.garden-nav__link--7 { --tilt: 1.1deg; color: var(--gold); }

.garden-nav__utility {
  min-height: 2.2rem;
  padding: 0.3rem 0.44rem 0.22rem;
  rotate: -1deg;
  color: var(--brown);
  cursor: pointer;
  font-size: 1.08rem;
}

.garden-nav__utility:hover {
  translate: 0 -0.2rem;
  color: var(--orange-dark);
}

.search-open {
  display: none;
}

.js .search-open {
  display: inline-block;
}

.menu-toggle {
  display: none;
  margin: 0 auto 0.7rem;
  padding: 0.48rem 0.7rem 0.4rem;
  color: var(--purple);
  cursor: pointer;
  font-size: 1.35rem;
}

.content-card {
  position: relative;
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4.8vw, 3.6rem) clamp(1.5rem, 4vw, 3rem);
  border: 0.08rem solid rgb(104 63 25 / 15%);
  border-radius: clamp(0.8rem, 2vw, 1.45rem);
  background:
    linear-gradient(140deg, rgb(255 255 255 / 98%), rgb(255 254 249 / 96%)),
    var(--paper);
  box-shadow: var(--shadow);
}

.page--home .content-card {
  width: min(100%, 58rem);
}

h1,
h2,
h3 {
  font-family: "Kids Croteau", Impact, sans-serif;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  margin: 0.2rem 0 1.1rem;
  color: var(--orange);
  font-size: clamp(2.5rem, 7vw, 4.35rem);
  letter-spacing: 0.01em;
  text-shadow: 0.045em 0.06em 0 #fff, 0.08em 0.11em 0 rgb(132 53 15 / 18%);
}

h2 {
  margin: 2rem 0 0.55rem;
  color: var(--orange-dark);
  font-size: clamp(1.75rem, 5vw, 2.65rem);
}

h3 {
  margin: 1.6rem 0 0.4rem;
  color: var(--purple);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}

p {
  margin-block: 0 1rem;
}

.article-content > p:first-child {
  font-size: 1.08em;
}

ul,
ol {
  margin-block: 0.5rem 1.15rem;
  padding-left: 1.65rem;
}

li {
  margin-block: 0.35rem;
  padding-left: 0.2rem;
  color: var(--purple);
}

ul > li::marker {
  content: "✿  ";
  color: var(--orange);
  font-size: 0.8em;
}

li strong {
  color: #551c1c;
}

hr {
  height: 0.22rem;
  margin-block: 1.8rem;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--orange) 0 0.25rem, transparent 0.25rem 0.55rem);
  opacity: 0.35;
}

.article-illustration {
  margin: 1.5rem auto;
  text-align: center;
}

.article-illustration img {
  max-height: 26rem;
  filter: drop-shadow(0 0.3rem 0.25rem rgb(57 35 17 / 16%));
}

.article-illustration img[src$=".gif"] {
  image-rendering: auto;
}

.topic-link {
  display: inline-block;
  margin: 0.18rem 0.22rem;
  padding: 0.38rem 0.62rem 0.31rem;
  border: 0.16rem solid var(--orange-dark);
  border-radius: 0.25rem;
  color: #fff;
  background: linear-gradient(165deg, var(--orange-light), var(--orange) 58%, #df3e12);
  box-shadow: inset 0 0.08rem 0 rgb(255 255 255 / 48%), 0 0.2rem 0 var(--orange-dark), 0 0.35rem 0.6rem rgb(80 31 5 / 20%);
  font-family: "Kids Croteau", Impact, sans-serif;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  font-size: 1.15em;
  line-height: 1;
  text-decoration: none;
  transition: translate 130ms ease, filter 130ms ease;
}

.topic-link:hover,
.topic-link:focus-visible {
  color: #fff;
  filter: saturate(1.16) brightness(1.05);
  translate: 0 -0.18rem;
}

.page--home .article-content > p:first-child {
  max-width: 43rem;
  margin: 0 auto 1.25rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  text-align: center;
}

.page--home .article-content > p:has(.topic-link) {
  display: flex;
  max-width: 47rem;
  margin-inline: auto;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.page--home .article-content .article-illustration:last-child {
  margin-bottom: -0.75rem;
}

.breadcrumbs {
  display: flex;
  margin: 0 0 1.15rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  color: #655c54;
  font-size: 0.8rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: #655c54;
}

.safety-note,
.review-note {
  margin: 0.5rem 0 1.25rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.65rem;
}

.safety-note {
  border: 0.12rem solid #cf5d00;
  color: #4f2600;
  background: linear-gradient(100deg, #fff1ac, #fff8d8);
  box-shadow: 0 0.22rem 0.55rem rgb(85 41 4 / 12%);
}

.safety-note strong::before {
  content: "⚠ ";
}

.review-note {
  margin-top: 2rem;
  border-left: 0.28rem solid var(--green);
  background: #eaf7e8;
  color: #234021;
  font-size: 0.82rem;
}

.review-note--pending {
  border-color: #9c8772;
  background: #f6f2eb;
  color: #5d534a;
}

.related {
  margin-top: 2.25rem;
  padding-top: 0.1rem;
  border-top: 0.16rem dotted rgb(141 22 13 / 27%);
}

.related h2 {
  margin-top: 1.4rem;
  font-size: 1.65rem;
}

.related a {
  display: inline-block;
  margin: 0.15rem 0.5rem 0.15rem 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.article-index {
  columns: 2 16rem;
  column-gap: 2.25rem;
}

.article-index section {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.article-index h2 {
  margin-top: 0.75rem;
}

.article-index ul {
  margin-top: 0;
}

.site-footer {
  max-width: 48rem;
  margin: 1.6rem auto 0;
  padding: 1rem;
  color: #43382e;
  background: rgb(255 251 208 / 75%);
  font-size: 0.77rem;
  text-align: center;
  text-shadow: 0 0.08rem 0 rgb(255 255 255 / 75%);
}

.site-footer p {
  margin-bottom: 0.25rem;
}

.site-footer nav {
  display: flex;
  margin-top: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.search-dialog {
  width: min(calc(100% - 1.5rem), 42rem);
  max-height: min(44rem, calc(100dvh - 2rem));
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
  border: 0.16rem solid var(--orange-dark);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-dialog::backdrop {
  background: rgb(44 28 17 / 58%);
  backdrop-filter: blur(0.16rem);
}

.search-dialog__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.search-dialog h2 {
  margin: 0;
}

.search-dialog__top button {
  border: 0;
  color: var(--purple);
  background: transparent;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.search-dialog label {
  display: block;
  margin-block: 1rem 0.35rem;
  font-weight: 750;
}

.search-dialog input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0.12rem solid #8c7764;
  border-radius: 0.5rem;
  background: #fff;
}

.search-status {
  margin: 0.7rem 0;
  color: #62574c;
  font-size: 0.82rem;
}

.search-results {
  overflow: auto;
  max-height: 24rem;
}

.search-result {
  display: block;
  margin-bottom: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 0.08rem solid #e0d4c4;
  border-radius: 0.55rem;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.search-result:hover {
  border-color: var(--orange);
  color: var(--ink);
  background: #fffaf0;
}

.search-result strong,
.search-result span,
.search-result small {
  display: block;
}

.search-result span {
  margin-block: 0.15rem;
  color: #554b42;
  font-size: 0.83rem;
}

.search-result small {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 46rem) {
  .site-wrap {
    width: min(calc(100% - 0.7rem), 68rem);
    padding-top: 0.45rem;
  }

  .menu-toggle {
    display: block;
  }

  .js .garden-nav {
    display: none;
  }

  .js .menu-toggle[aria-expanded="true"] + .garden-nav {
    display: flex;
  }

  .garden-nav {
    margin-bottom: 0.5rem;
    padding: 0.55rem;
    border-radius: 0.8rem;
    background: rgb(255 251 208 / 88%);
    box-shadow: var(--soft-shadow);
    gap: 0.45rem;
  }

  .garden-nav__link {
    flex: 1 1 7.5rem;
    font-size: 1.45rem;
    text-align: center;
  }

  .garden-nav__utility {
    flex: 1 1 4.8rem;
    text-align: center;
  }

  .content-card {
    padding-inline: clamp(0.85rem, 4.5vw, 1.4rem);
    border-radius: 0.75rem;
  }

  .page--home .article-content > p:has(.topic-link) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page--home .topic-link {
    margin: 0.18rem;
    font-size: 1.08rem;
    text-align: center;
  }

  .breadcrumbs {
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 23rem) {
  .page--home .article-content > p:has(.topic-link) {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .garden-nav__link:hover,
  .garden-nav__link:focus-visible,
  .compact-brand--home:hover {
    translate: 0;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-wrap,
  .content-card {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .garden-nav,
  .menu-toggle,
  .compact-brand small,
  .search-dialog,
  .site-footer nav {
    display: none !important;
  }

  .compact-brand {
    margin-left: 0;
    box-shadow: none;
  }

  a {
    color: #000;
  }
}
