/* Little Blooms — palette and type from Shirley's mock-up. */
:root {
  --bg: #FFFDF7;
  --ink: #2B2A2A;
  --muted: #5d5a5a;
  --pink: #F7A1C4;
  --pink-deep: #e0719f;
  --yellow: #F9D65C;
  --green: #8DBF6A;
  --blue: #9CC3F0;
  --purple: #B58BDB;
  --teal: #5FC1CF;
  --card: #ffffff;
  --line: #efe8d8;

  --f-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --f-body: 'Nunito', system-ui, sans-serif;

  --space-section: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --shadow: 0 1px 2px rgb(120 80 40 / 0.06), 0 10px 26px -12px rgb(120 80 40 / 0.22);
  --shadow-lift: 0 2px 4px rgb(120 80 40 / 0.08), 0 22px 44px -18px rgb(120 80 40 / 0.32);
}

.tint-yellow { --tint: var(--yellow); }
.tint-blue   { --tint: var(--blue); }
.tint-green  { --tint: #b5d99b; }
.tint-pink   { --tint: #f6bfd7; }
.tint-purple { --tint: #d6c0ee; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--f-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* nav */
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--pink); }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--teal); }
.nav-link { font-weight: 700; text-decoration: none; text-decoration-thickness: 3px; text-decoration-color: var(--pink); text-underline-offset: 5px; }
.nav-link:hover { text-decoration-line: underline; }

/* hero */
.hero-img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); background: #f5f0e4; }
.intro { text-align: center; max-width: 720px; margin: 36px auto 0; }
.intro h1 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.5rem); line-height: 1.2; text-wrap: balance; }
.intro p { color: var(--muted); font-size: 1.1875rem; margin: 12px auto 0; max-width: 56ch; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pink); color: var(--ink);
  font: 600 1.125rem var(--f-display);
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 14px -8px rgb(224 113 159 / 0.7);
  transition: transform 0.25s var(--spring), background-color 0.2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: #f48bb6; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-hero { margin-top: 26px; background: var(--yellow); box-shadow: 0 6px 14px -8px rgb(200 160 30 / 0.8); }
.btn-hero:hover { background: #f5c92f; }

/* resources */
.resources { padding-top: var(--space-section); }
.free {
  background: var(--purple); border-radius: 28px; padding: 28px 26px; text-align: center;
  transform: rotate(-1deg); box-shadow: var(--shadow);
}
.free h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); line-height: 1.15; }
.free p { margin: 6px auto 0; max-width: 48ch; font-size: 1.125rem; }

.grid {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px;
}
.card {
  position: relative; min-width: 0;
  background: var(--tint); border-radius: 24px; padding: 20px 20px 22px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--spring), box-shadow 0.3s var(--ease);
}
.card:nth-child(odd) { transform: rotate(-1deg); }
.card:nth-child(even) { transform: rotate(1deg); }
.card:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-lift); }
.card-peek {
  display: block; background: #fff; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; margin-bottom: 16px; box-shadow: 0 1px 0 rgb(0 0 0 / 0.05);
}
.card-peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s var(--ease); }
.card:hover .card-peek img { transform: scale(1.03); }
.card h3 { font-size: 1.375rem; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card p { margin: 6px 0 0; }
.card-age { font-size: 0.875rem; font-weight: 700; color: rgb(43 42 42 / 0.75); }
.card .card-age { margin-top: 4px; }
.btn-card {
  margin-top: auto; align-self: flex-start; background: #fff; font-size: 1rem; padding: 10px 20px;
  box-shadow: none;
}
.card .card-age { margin-bottom: 16px; }
.btn-card:hover { background: var(--ink); color: #fff; }
.pill-new { position: absolute; top: -10px; right: 16px; background: var(--teal); color: #fff; font: 600 0.875rem var(--f-display); padding: 3px 12px; border-radius: 99px; }
.note { color: var(--muted); text-align: center; margin: 40px 0 0; font-size: 1rem; }

/* single resource page */
.single { padding-top: 12px; padding-bottom: 20px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; margin-bottom: 20px; }
.back svg { width: 20px; height: 20px; }
.back:hover span { text-decoration: underline; }
.single-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.single-preview { background: var(--tint); border-radius: 24px; padding: 18px; transform: rotate(-1deg); box-shadow: var(--shadow); }
.single-preview img { border-radius: 10px; background: #fff; }
.single-body h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); line-height: 1.15; margin: 4px 0 8px; }
.lede { font-size: 1.1875rem; color: var(--muted); margin: 0 0 22px; }
.meta { color: var(--muted); font-size: 0.9375rem; margin: 14px 0 0; }
@media (min-width: 760px) {
  .single-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; }
  .single-body { padding-top: 24px; }
}
.nf { text-align: center; padding-top: 60px; }
.nf .mark { display: inline-block; width: 64px; height: 64px; }
.nf h1 { font-size: 2rem; margin: 12px 0 6px; }

/* preview sheet */
.sheet {
  border: 0; padding: 0; border-radius: 26px; background: var(--bg); color: var(--ink);
  width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  box-shadow: var(--shadow-lift);
}
.sheet::backdrop { background: rgb(43 42 42 / 0.45); }
.sheet[open] { display: grid; grid-template-columns: minmax(0, 1fr); animation: rise 0.35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 1; }
.sheet-x svg { width: 20px; height: 20px; }
.sheet-x:hover { background: var(--yellow); }
.sheet-preview { background: #f5efe2; padding: 22px; }
.sheet-preview img { border-radius: 8px; background: #fff; box-shadow: var(--shadow); max-height: 46dvh; width: auto; margin: 0 auto; }
.sheet-body { padding: 22px 26px 28px; }
.sheet-body h2 { font-size: 1.75rem; line-height: 1.2; margin: 2px 0 6px; }
.sheet-body > p:not(.card-age):not(.meta) { margin: 0 0 18px; color: var(--muted); }
.sheet-link { display: inline-block; margin-top: 10px; font-size: 0.9375rem; font-weight: 600; }
@media (min-width: 760px) {
  .sheet[open] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sheet-preview { padding: 28px; display: grid; place-items: center; }
  .sheet-preview img { max-height: 70dvh; }
  .sheet-body { padding: 56px 34px 34px; }
}

/* footer */
.foot { margin-top: 80px; padding: 32px 0 40px; border-top: 6px dotted var(--line); text-align: center; color: var(--muted); font-size: 0.9375rem; }
.foot p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .card-peek img { transition: none; }
  .sheet[open] { animation: none; }
}
