/* ---------- brand colors (the single source of truth) ---------- */
:root {
  --terracotta: #C8552B;  /* Rollo's scales */
  --cream:      #F3E7D3;  /* Rollo's belly */
  --sage:       #8FA58B;  /* accents */
  --ink:        #1F2A33;  /* outline + all text */

  /* background solids (no gradients, no textures) */
  --bg-lavender: #D8D3EE;
  --bg-peach:    #F5D5C4;
  --bg-butter:   #F3E6B8;
  --bg-sage:     #CFDCC9;
  --bg-sky:      #CBDDEA;
  --bg-blush:    #F2CFD6;

  --card: #FFFFFF;
  --radius: 24px;
  --max: 640px;
  --shadow: 0 2px 6px rgba(31, 42, 51, 0.06); /* a whisper */

  /* Dark mode is intentionally NOT inverted: the pastels stay, ink stays.
     Pinning the color scheme keeps browsers from darkening form controls
     or scrollbars and changing the look. */
  color-scheme: light;
}

/* ---------- font (self-hosted Patrick Hand, SIL Open Font License) ---------- */
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/patrick-hand-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/patrick-hand-latin-ext.woff2) format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/patrick-hand-latin.woff2) format("woff2");
  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;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Patrick Hand", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive, sans-serif;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg-lavender);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- sections ---------- */
section, footer {
  padding: 56px 24px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

/* hero */
.hero { background: var(--bg-lavender); padding-top: 64px; }
.hero__img {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  box-shadow: var(--shadow);
  animation: breathe 6s ease-in-out infinite;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
}
.hero p {
  margin: 0;
  font-size: 1.5rem;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; }
}

/* follow */
.follow { background: var(--bg-peach); }
.follow h2 { margin: 0 0 20px; }
.buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 24px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 160ms ease;
}
.btn svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.btn svg.stroke-icon { fill: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* today's reminder */
.today { background: var(--bg-butter); }
.today h2 { margin: 0 0 20px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.card p {
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.3;
}

/* footer */
.site-footer { background: var(--bg-sage); padding: 40px 24px; }
.site-footer p { margin: 0 0 8px; }

/* shared */
h2 {
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.15;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- wallpapers page ---------- */
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-size: 1.25rem; }
.back:hover { text-decoration: underline; }
.gallery { background: var(--bg-sky); }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 480px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.grid img { width: 100%; height: auto; display: block; }
.hint { margin: 24px 0 0; font-size: 1.1rem; }

/* ---------- stickers page ---------- */
.grid--stickers { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 480px) { .grid--stickers { grid-template-columns: repeat(4, 1fr); } }
.grid--stickers a { background: var(--card); padding: 8px; }
.hero .btn { display: inline-flex; margin-top: 8px; }
