/* ==========================================================================
   Tiny Makers Co — design system
   Register: sticker book. Chunky rounded type, thick outlines, tilted badges,
   confetti, slime drips. Playful without going shapeless.
   Palette sampled from the logo: teal #037e8e, coral #f55a48.
   No JavaScript anywhere. Fonts are self-hosted because font-src is 'self'.
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  /* Brand — sampled from the logo badge */
  --teal: #037e8e;
  --teal-deep: #02565f;
  --teal-soft: #d4eef1;
  --coral: #f55a48;
  --coral-deep: #d63d2c;
  /* Coral is too light to carry white text (3.26:1). These two are the text-safe
     variants: --coral-ink as a background under white (5.23:1), --coral-text as
     foreground on cream or coral-soft (5.4-5.6:1). Measured, not eyeballed. */
  --coral-ink: #c9351f;
  --coral-text: #a82e20;
  --coral-soft: #ffe2dd;

  /* Decorative only. Never used for text on its own. */
  --sunshine: #ffc93c;
  --bubblegum: #ff6fb5;
  --mint: #7fd8c9;
  --grape: #9b7ede;

  /* Surfaces and ink */
  --cream: #fffaf3;
  --paper: #ffffff;
  --ink: #16343a;
  --ink-soft: #4a656a;
  --line: #16343a;

  /* Shape language */
  --radius: 28px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --border: 3px solid var(--line);
  --shadow: 6px 6px 0 var(--line);
  --shadow-sm: 4px 4px 0 var(--line);
  --shadow-lift: 9px 9px 0 var(--line);

  /* Rhythm */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 9vw, 7rem);
  --measure: 62ch;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Confetti: a fixed, very light scatter behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 18%, var(--sunshine) 0 5px, transparent 5px),
    radial-gradient(circle at 82% 12%, var(--bubblegum) 0 4px, transparent 4px),
    radial-gradient(circle at 68% 62%, var(--mint) 0 6px, transparent 6px),
    radial-gradient(circle at 24% 78%, var(--grape) 0 4px, transparent 4px),
    radial-gradient(circle at 92% 84%, var(--coral) 0 5px, transparent 5px);
  background-size: 620px 620px;
}

h1,
h2,
h3,
h4 {
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.4rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
}
h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-text);
}

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

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

/* --------------------------------------------------------------- layout -- */

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

.section {
  padding-block: var(--section);
}

.section--teal {
  background: var(--teal);
  color: #fff;
}

/* Only headings sitting directly on the teal ground go white. */
.section--teal > .wrap > h2,
.section--teal > .wrap > h3 {
  color: #fff;
}

/* Every white surface re-asserts dark ink. Without this, anything inside a card
   in a teal section inherits the section's white text and vanishes — which is
   exactly what shipped in the first pass, invisibly, for every step heading. */
.card,
.steps li,
.quote,
.package,
.callout,
.faq details {
  color: var(--ink);
}

.section--cream {
  background: var(--paper);
}

.section--coral {
  background: var(--coral-soft);
}

.section--sky {
  background: var(--teal-soft);
}

/* Spacing and alignment utilities, so no page needs an inline style. */
.mt-xl {
  margin-top: 2.5rem;
}
.mb-xl {
  margin-bottom: 2.5rem;
}
.mt-sm {
  margin-top: 1.4rem;
}
.center {
  justify-content: center;
  margin-inline: auto;
}

.stack > * + * {
  margin-top: 1.1rem;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--ink-soft);
}

.section--teal .lede {
  color: #f0fbfd; /* #d9f2f5 measured 4.10:1 on teal; this is 4.55:1 */
}

.eyebrow {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-text);
  background: var(--coral-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.section--teal .eyebrow {
  color: var(--teal-deep);
  background: var(--sunshine);
}

/* ---------------------------------------------------------------- skips -- */

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 99;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
}

/* --------------------------------------------------------------- header -- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: var(--border);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 0.7rem;
}

/* Placeholder wordmark, built in CSS. Replaced by the owner's real logo file. */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: "Fredoka", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
}

.logo:hover {
  color: inherit;
  transform: rotate(-1.5deg) translateY(-2px);
  box-shadow: 6px 6px 0 var(--line);
}

.logo__tiny {
  color: var(--coral-ink);
}
.logo__makers {
  color: var(--teal);
  letter-spacing: 0.02em;
}
.logo__co {
  color: var(--teal);
  font-size: 0.62em;
  font-weight: 600;
}

.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--teal-deep);
  border-bottom-color: var(--coral);
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--coral-ink);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms ease-out;
}

.btn:hover {
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--line);
}

.btn--ghost {
  background: #fff;
  color: var(--teal-deep);
}

.btn--ghost:hover {
  color: var(--teal-deep);
}

.btn--sun {
  background: var(--sunshine);
  color: var(--ink);
}

.btn--sun:hover {
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(circle at 78% 22%, var(--teal-soft) 0 38%, transparent 38%),
    radial-gradient(circle at 8% 84%, var(--coral-soft) 0 26%, transparent 26%);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  color: var(--teal-deep);
}

.hero h1 em {
  font-style: normal;
  color: var(--coral-ink);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.8rem;
  padding: 0;
  list-style: none;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  color: var(--teal-deep);
}

.hero__proof li::before {
  content: "✓";
  color: var(--coral-ink);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* Tilted sticker that overlaps the hero image. */
.sticker {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
  padding: 0.8rem 1.1rem;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--sunshine);
  box-shadow: var(--shadow-sm);
  transform: rotate(-6deg);
}

/* --------------------------------------------------- photo placeholders -- */
/* Real photography has not been cleared for publication yet. Each slot names
   the shot it wants and the ratio the layout expects, so swapping in an <img>
   is a one-line change. See docs/CONTENT_TODO.md. */

.photo {
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
  aspect-ratio: 4 / 3;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    repeating-linear-gradient(
      135deg,
      var(--teal-soft) 0 22px,
      var(--coral-soft) 22px 44px,
      #fff5cc 44px 66px,
      #ffe0ef 66px 88px
    );
  color: var(--teal-deep);
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  overflow: hidden;
}

.photo::after {
  content: "photo to come";
  position: absolute;
  inset-inline: 0;
  bottom: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.photo span {
  display: block;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  max-width: 24ch;
  margin-inline: auto;
}

.photo--tall {
  aspect-ratio: 3 / 4;
}
.photo--wide {
  aspect-ratio: 16 / 9;
}
.photo--square {
  aspect-ratio: 1 / 1;
}

.hero__media {
  position: relative;
}

/* Top corner, not bottom: at the bottom it landed on the photo slot's caption. */
.hero__media .sticker {
  position: absolute;
  right: -0.5rem;
  top: -1.2rem;
  z-index: 2;
  max-width: 11rem;
}

/* ---------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3vw, 1.9rem);
}

.card h3 {
  margin-bottom: 0.2rem;
  color: var(--teal-deep);
}

.card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.card__link {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.card__link::after {
  content: " →";
}

.card--feature {
  background: var(--sunshine);
}

.card--feature p {
  color: var(--ink);
}

.card__tag {
  align-self: flex-start;
  font-family: "Fredoka", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
}

/* Numbered steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.6rem 1.3rem 1.3rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -1.1rem;
  left: 1.2rem;
  display: grid;
  place-content: center;
  width: 2.4rem;
  height: 2.4rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  color: #fff;
  background: var(--coral-ink);
  border: var(--border);
  border-radius: 50%;
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- quotes -- */

.quotes {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.quote {
  background: #fff;
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  margin: 0;
}

.quote p {
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.quote footer {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.quote:nth-child(2) {
  transform: rotate(1.2deg);
}
.quote:nth-child(3) {
  transform: rotate(-1deg);
}

/* ---------------------------------------------------------------- price -- */

.package {
  display: grid;
  gap: 1.4rem;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 1.6rem;
}

@media (min-width: 820px) {
  .package {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.package h3 {
  margin-top: 0;
}

.package__price {
  font-family: "Fredoka", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--coral-text);
}

.package ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.package li {
  margin-bottom: 0.35rem;
}

.package__aside {
  background: var(--teal-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.package__aside p:last-child {
  margin-bottom: 0;
}

/* A visible marker for anything the owner still has to supply. */
.todo {
  font-family: "Fredoka", sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  background: var(--sunshine);
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.5em;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ faq -- */

.faq {
  max-width: 78ch;
}

.faq details {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.3rem;
  margin-bottom: 1rem;
}

.faq summary {
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--coral-ink);
  font-size: 1.5rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > *:not(summary) {
  margin-top: 0.9rem;
}

.faq p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- misc -- */

.callout {
  background: var(--coral-soft);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.callout p:last-child {
  margin-bottom: 0;
}

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

.towns li {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
}

.section--teal .towns li {
  background: var(--teal-deep);
  color: #fff;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Slime drip between sections, drawn as an inline SVG data URI. */
.drip {
  height: 46px;
  background-repeat: repeat-x;
  background-size: 180px 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='46' viewBox='0 0 180 46'%3E%3Cpath d='M0 0h180v10c-12 0-12 16-24 16S144 6 132 6s-12 26-24 26S96 8 84 8s-12 22-24 22S48 4 36 4 24 22 12 22 0 10 0 10Z' fill='%23037e8e'/%3E%3C/svg%3E");
}

.drip--coral {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='46' viewBox='0 0 180 46'%3E%3Cpath d='M0 0h180v10c-12 0-12 16-24 16S144 6 132 6s-12 26-24 26S96 8 84 8s-12 22-24 22S48 4 36 4 24 22 12 22 0 10 0 10Z' fill='%23f55a48'/%3E%3C/svg%3E");
}

.drip--up {
  transform: scaleY(-1);
}

/* --------------------------------------------------------------- footer -- */

.footer {
  background: var(--teal-deep);
  color: #dff1f3;
  border-top: var(--border);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.footer a {
  color: #fff;
}

.footer h2 {
  color: #fff;
  font-size: 1.3rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.4rem;
}

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  color: #b9dde1;
}

/* ------------------------------------------------------------- 404 page -- */

.notfound {
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.notfound h1 {
  font-size: clamp(4rem, 14vw, 9rem);
  color: var(--coral-ink);
}

/* ---------------------------------------------------------------- motion -- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1,
.hero .lede,
.hero .btn-row,
.hero__media {
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .lede {
  animation-delay: 80ms;
}
.hero .btn-row {
  animation-delay: 160ms;
}
.hero__media {
  animation-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .logo,
  .sticker,
  .quote:nth-child(2),
  .quote:nth-child(3) {
    transform: none;
  }
}

@media print {
  body::before,
  .drip,
  .masthead {
    display: none;
  }
}
