/* ==========================================================================
   Associazione Crescere – tema "carta e pastello"
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/baloo2-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/baloo2-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/caveat-latin.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  --paper: #fff8ec;
  --paper-deep: #fdf1dd;
  --white: #fffdf9;
  --cream: #fff2d9;
  --ink: #332e3f;
  --ink-soft: #5f586b;
  --muted: #837b8f;
  --line: #ecdfcc;

  --teal: #178f8f;
  --teal-dark: #0e6f6f;
  --coral: #e85d4a;
  --sun: #f6c445;
  --sky: #5aaee0;
  --grass: #6fbf7a;
  --grape: #8c6bb1;

  --font-head: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --wrap: 1180px;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow-sm: 0 2px 0 rgba(51, 46, 63, 0.04), 0 12px 28px -20px rgba(51, 46, 63, 0.45);
  --shadow-md: 0 4px 0 rgba(51, 46, 63, 0.05), 0 26px 50px -28px rgba(51, 46, 63, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(51, 46, 63, 0.028) 1px, transparent 1.2px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color 0.2s ease;
}

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

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

figure {
  margin: 0;
}

ul,
ol {
  padding-left: 1.4em;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

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

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Buttons, pills, eyebrow
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease, color 0.2s ease;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}
.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 0 var(--teal-dark);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--teal-dark);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 3px 0 rgba(51, 46, 63, 0.07);
}
.btn--ghost:hover {
  color: var(--teal-dark);
  border-color: rgba(23, 143, 143, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(51, 46, 63, 0.07);
}

.btn--teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 0 var(--teal-dark);
}
.btn--teal:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--teal-dark);
}

.btn--sun {
  background: var(--sun);
  color: #4a3a12;
  box-shadow: 0 4px 0 #d9a92f;
}
.btn--sun:hover {
  color: #4a3a12;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #d9a92f;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}
.btn--outline-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  background: var(--cream);
  color: #8a6a1f;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  color: var(--coral);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(232, 93, 74, 0.14);
}
.eyebrow--light {
  color: var(--sun);
}
.eyebrow--light .eyebrow__dot {
  box-shadow: 0 0 0 4px rgba(246, 196, 69, 0.18);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.12rem;
  border-bottom: 2px dashed rgba(23, 143, 143, 0.35);
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s var(--ease);
}
.text-link:hover {
  color: var(--coral);
  border-bottom-color: rgba(232, 93, 74, 0.4);
}
.text-link:hover .icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.86);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 248, 236, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 30px -26px rgba(51, 46, 63, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover {
  color: var(--ink);
}
.brand-sun {
  display: block;
  width: 46px;
  height: 46px;
  transition: transform 0.45s var(--ease);
}
.brand-sun svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand:hover .brand-sun {
  transform: rotate(12deg) scale(1.06);
}
.brand-logo {
  display: block;
  width: 46px;
  height: auto;
  transition: transform 0.45s var(--ease);
}
.brand:hover .brand-logo {
  transform: scale(1.05);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}
.brand-sub {
  margin-top: 0.22rem;
  color: var(--teal-dark);
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
}

.site-nav {
  margin-left: auto;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list--root {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.52rem 0.68rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover,
.nav-item.is-current > .nav-link {
  background: var(--cream);
  color: var(--teal-dark);
}
.nav-link .icon--chevron {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0.7;
  transition: transform 0.25s var(--ease);
}
.nav-item.has-children:hover > .nav-link .icon--chevron,
.nav-item:focus-within > .nav-link .icon--chevron,
.nav-item.is-open > .nav-link .icon--chevron {
  transform: rotate(180deg);
}

.nav-sub {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 30;
  min-width: 252px;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 30px 55px -30px rgba(51, 46, 63, 0.55);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s;
}
.nav-item:hover > .nav-sub,
.nav-item:focus-within > .nav-sub,
.nav-item.is-open > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub .nav-item {
  border: 0;
}
.nav-sub .nav-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 11px;
  font-size: 0.93rem;
  white-space: normal;
  text-align: left;
}
.nav-sub .nav-link:hover,
.nav-sub .nav-item.is-current > .nav-link {
  background: var(--cream);
  color: var(--teal-dark);
}
.nav-sub .nav-sub {
  top: -0.5rem;
  left: calc(100% + 0.4rem);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.25rem 0.2rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 143, 143, 0.12);
}
.header-search input {
  width: 116px;
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.header-search button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.header-search button:hover {
  background: var(--teal-dark);
}
.header-search .icon {
  width: 1rem;
  height: 1rem;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon {
  width: 1.4rem;
  height: 1.4rem;
}
.nav-toggle__close {
  display: none;
}
body.nav-open .nav-toggle__open {
  display: none;
}
body.nav-open .nav-toggle__close {
  display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 196, 69, 0.18), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy {
  position: relative;
  z-index: 2;
}
.hero__title {
  max-width: 15ch;
  margin: 0 0 1.2rem;
  font-size: clamp(2.35rem, 5.2vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.mark {
  display: inline;
  padding: 0 0.08em;
  border-radius: 6px;
  background-image: linear-gradient(180deg, transparent 58%, rgba(246, 196, 69, 0.58) 58%, rgba(246, 196, 69, 0.58) 92%, transparent 92%);
  color: var(--teal-dark);
}
.hero__text {
  max-width: 52ch;
  margin: 0 0 1.8rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.2rem;
  margin: 0;
  padding: 1.2rem 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
}
.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero__facts strong {
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1;
}
.hero__facts span {
  max-width: 14ch;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
.hero__facts .hero__fact--eia {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}
.hero__fact-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero__fact-logo {
  width: auto;
  height: 100px;
  flex-shrink: 0;
}

/* Hero illustration */

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
}
.hero-bloom {
  position: absolute;
  inset: 8% 2% 4% 6%;
  border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  background:
    radial-gradient(circle at 30% 30%, rgba(246, 196, 69, 0.42), transparent 58%),
    radial-gradient(circle at 74% 68%, rgba(90, 174, 224, 0.26), transparent 56%),
    radial-gradient(circle at 22% 80%, rgba(232, 93, 74, 0.18), transparent 52%),
    rgba(255, 242, 217, 0.55);
  filter: blur(2px);
  animation: breathe 9s ease-in-out infinite;
}
.hero-photo {
  position: relative;
  z-index: 2;
  width: min(100%, 415px);
  margin: 0;
  padding: 0.85rem 0.85rem 1.7rem;
  border-radius: 24px 18px 26px 20px / 20px 26px 18px 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: rotate(1.5deg);
  transition: transform 0.5s var(--ease);
}
.hero-photo:hover {
  transform: rotate(0deg) translateY(-4px);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
}
.hero-sticker {
  position: absolute;
  right: -10px;
  bottom: -20px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.83rem;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
}
.hero-sticker .icon {
  width: 1rem;
  height: 1rem;
  color: var(--coral);
}

.tape {
  position: absolute;
  width: 86px;
  height: 25px;
  background: rgba(246, 196, 69, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.tape--tl {
  top: -12px;
  left: -18px;
  transform: rotate(-6deg);
}
.tape--br {
  right: -20px;
  bottom: 6px;
  background: rgba(90, 174, 224, 0.5);
  transform: rotate(4deg);
}

.doodle {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.doodle--sun {
  top: -6px;
  right: -4px;
  width: 84px;
  animation: float 6s ease-in-out infinite;
}
.doodle--rainbow {
  bottom: -24px;
  left: -32px;
  width: 142px;
  opacity: 0.9;
  animation: float 7s ease-in-out infinite reverse;
}
.doodle--cloud {
  top: 8%;
  left: -9%;
  width: 108px;
  opacity: 0.9;
  animation: float 8s ease-in-out infinite;
}
.doodle--star {
  right: -2%;
  bottom: 16%;
  width: 38px;
  animation: twinkle 3.5s ease-in-out infinite;
}
.doodle--squiggle {
  right: 16%;
  bottom: -40px;
  width: 132px;
  opacity: 0.55;
  animation: float 9s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(2.8rem, 6.5vw, 5rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.4rem;
}
.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
}
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}
.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section--features {
  background: linear-gradient(180deg, transparent, rgba(255, 242, 217, 0.55) 30%, transparent);
}

.section--about {
  background: linear-gradient(180deg, transparent, rgba(255, 242, 217, 0.42) 50%, transparent);
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: 28px 22px 30px 24px / 24px 30px 22px 28px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent, var(--teal));
  opacity: 0.65;
}
.feature-card:hover {
  transform: translateY(-6px) rotate(-0.3deg);
  box-shadow: var(--shadow-md);
}
.feature-card:focus-visible {
  outline: 3px solid var(--accent, var(--teal));
  outline-offset: 4px;
}
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1.1rem;
  border-radius: 20px 16px 22px 18px;
  background: var(--tint, var(--cream));
  color: var(--accent, var(--teal));
}
.feature-card__icon .icon {
  width: 32px;
  height: 32px;
}
.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.32rem;
}
.feature-card p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.feature-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}
.feature-card:hover .text-link {
  color: var(--coral);
  border-bottom-color: rgba(232, 93, 74, 0.4);
}
.feature-card:hover .text-link .icon {
  transform: translateX(3px);
}
.feature-card--coral {
  --accent: var(--coral);
  --tint: #fde5e1;
}
.feature-card--teal {
  --accent: var(--teal);
  --tint: #dff1ee;
}
.feature-card--grape {
  --accent: var(--grape);
  --tint: #ece4f4;
}

/* About */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__media {
  position: relative;
}
.about__photo {
  position: relative;
  padding: 0.8rem;
  border-radius: 30px 22px 30px 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: rotate(-1.2deg);
}
.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  bottom: -18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--sun);
  color: #4a3a12;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
}
.about__badge .icon {
  width: 1rem;
  height: 1rem;
}
.about__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
}
.about__copy p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

/* Post cards */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fde5e1, var(--cream));
  overflow: hidden;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card__media img {
  transform: scale(1.05);
}
.post-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--coral);
  background:
    radial-gradient(circle at 30% 25%, rgba(246, 196, 69, 0.5), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(90, 174, 224, 0.35), transparent 45%),
    var(--cream);
}
.post-card__placeholder .icon {
  width: 100px;
  height: 90px;
}
.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem 1.3rem 1.4rem;
}
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.post-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.25;
}
.post-card__title a {
  color: var(--ink);
  text-decoration: none;
}
.post-card__title a:hover {
  color: var(--teal-dark);
}
.post-card__excerpt {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.post-card__link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s var(--ease);
}
.post-card__link:hover .icon {
  transform: translateX(3px);
}

/* Archive tiles */

.archive-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.archive-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 26px 20px 28px 22px;
  background: var(--tint, var(--cream));
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.archive-tile:hover {
  color: var(--ink);
  transform: translateY(-6px) rotate(0.4deg);
  box-shadow: var(--shadow-md);
}
.archive-tile--coral {
  --tint: #fde5e1;
  --accent: var(--coral);
}
.archive-tile--teal {
  --tint: #dff1ee;
  --accent: var(--teal);
}
.archive-tile--grape {
  --tint: #ece4f4;
  --accent: var(--grape);
}
.archive-tile__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px -8px rgba(51, 46, 63, 0.6);
}
.archive-tile__icon .icon {
  width: 27px;
  height: 27px;
}
.archive-tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.32rem;
}
.archive-tile p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.archive-tile__go {
  margin-top: auto;
  color: var(--accent);
}
.archive-tile__go .icon {
  width: 1.4rem;
  height: 1.4rem;
  transition: transform 0.2s var(--ease);
}
.archive-tile:hover .archive-tile__go .icon {
  transform: translateX(4px);
}

/* CTA */

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  border-radius: 36px 28px 38px 30px / 30px 38px 28px 36px;
  background: linear-gradient(120deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}
.cta__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.cta h2 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
}
.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}
.cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.cta__doodle {
  position: absolute;
  opacity: 0.9;
}
.cta__doodle--star {
  top: 18px;
  right: 25%;
  width: 40px;
  animation: twinkle 4s ease-in-out infinite;
}
.cta__doodle--heart {
  right: -8px;
  bottom: -8px;
  width: 58px;
  opacity: 0.4;
  transform: rotate(12deg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5rem);
  background: #2b2633;
  color: #cfc9d8;
}
.footer-squiggle {
  position: absolute;
  top: -19px;
  left: 0;
  right: 0;
  height: 24px;
  color: #2b2633;
  line-height: 0;
  pointer-events: none;
}
.footer-squiggle svg {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-top: 3.4rem;
  padding-bottom: 2.4rem;
}
.brand-logo--footer {
  width: 50px;
  border-radius: 3px;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.8);
}
.brand--footer .brand-name {
  color: #fff;
}
.brand--footer .brand-sub {
  color: var(--sun);
}
.footer-intro {
  max-width: 36ch;
  margin: 1rem 0 1.2rem;
  color: #b9b3c4;
  font-size: 0.94rem;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}
.footer-social .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.footer-title {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
}
.footer-links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: #c9c3d3;
  font-size: 0.94rem;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--sun);
}
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: #c9c3d3;
  font-size: 0.94rem;
  line-height: 1.55;
}
.footer-address .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  color: var(--sun);
}
.footer-address a {
  color: #c9c3d3;
  text-decoration: none;
}
.footer-address a:hover {
  color: #fff;
}
.footer-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  color: var(--sun);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-link-arrow .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s var(--ease);
}
.footer-link-arrow:hover {
  color: var(--sun);
}
.footer-link-arrow:hover .icon {
  transform: translateX(3px);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  padding-bottom: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a39cab;
  font-size: 0.82rem;
}
.footer-bottom p {
  margin: 0;
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.to-top .icon {
  width: 0.95rem;
  height: 0.95rem;
}
.to-top:hover {
  background: var(--sun);
  border-color: var(--sun);
  color: #4a3a12;
}

/* --------------------------------------------------------------------------
   Breadcrumbs, pages, articles
   -------------------------------------------------------------------------- */

.breadcrumbs {
  margin: 1.8rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumbs li + li::before {
  content: "›";
  color: var(--coral);
  font-weight: 700;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--teal-dark);
}
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.page-wrap {
  max-width: 980px;
  padding-bottom: 3rem;
}
.page-wrap--search {
  max-width: 980px;
}
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px dashed var(--line);
}
.page-title {
  margin: 0 0 0.7rem;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
}
.page-lead {
  max-width: 66ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.13rem;
}
.page-content {
  max-width: 74ch;
}
.page-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: 3rem;
}
.article-main {
  min-width: 0;
}
.article-header {
  margin-bottom: 1.8rem;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.article-title {
  margin: 0 0 0.8rem;
  font-size: clamp(2.05rem, 4.3vw, 3.15rem);
  line-height: 1.1;
}
.article-lead {
  max-width: 65ch;
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.13rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  padding: 0.8rem 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.article-meta .icon {
  width: 1rem;
  height: 1rem;
  color: var(--teal);
}
.article-cover {
  margin: 0 0 2rem;
  padding: 0.6rem;
  border-radius: 24px 18px 26px 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: rotate(-0.4deg);
}
.article-cover img {
  display: block;
  width: 100%;
  max-height: 540px;
  border-radius: 18px;
  object-fit: cover;
}
.article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1.2rem;
}
.sidebar-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  margin: 0 0 1rem;
  font-size: 1.12rem;
}
.recent-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.recent-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--line);
}
.recent-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.recent-list a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.recent-list a:hover {
  color: var(--teal-dark);
}
.recent-list__date {
  color: var(--muted);
  font-size: 0.72rem;
}
.sidebar-cta {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
}
.sidebar-cta__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  background: #fff;
  color: var(--coral);
}
.sidebar-cta__icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.sidebar-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}
.sidebar-cta p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Prose (WordPress content)
   -------------------------------------------------------------------------- */

.prose {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.prose > :first-child {
  margin-top: 0;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose p {
  margin: 0 0 1.15em;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin: 1.6em 0 0.6em;
  line-height: 1.2;
}
.prose h2 {
  font-size: 1.85rem;
}
.prose h3 {
  font-size: 1.5rem;
}
.prose h4 {
  font-size: 1.22rem;
}
.prose h5 {
  font-size: 1.08rem;
}
.prose a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-color: rgba(23, 143, 143, 0.35);
  text-underline-offset: 0.16em;
}
.prose a:hover {
  color: var(--coral);
  text-decoration-color: rgba(232, 93, 74, 0.5);
}
.prose strong,
.prose b {
  color: var(--ink);
  font-weight: 800;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.5em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose li::marker {
  color: var(--coral);
}
.prose img {
  height: auto;
  margin: 0.5em 0;
  border-radius: 18px;
}
.prose figure {
  margin: 1.5em 0;
}
.prose figcaption {
  margin-top: 0.5em;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.3rem;
  border-left: 4px solid var(--sun);
  border-radius: 0 16px 16px 0;
  background: var(--cream);
  color: var(--ink);
  font-style: italic;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose hr,
.prose .wp-block-separator {
  width: 100%;
  margin: 2em auto;
  border: 0;
  border-top: 1px dashed var(--line);
}
.prose table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.prose th,
.prose td {
  padding: 0.6em 0.8em;
  border: 1px solid var(--line);
  text-align: left;
}
.prose th {
  background: var(--cream);
  color: var(--ink);
}
.prose iframe {
  max-width: 100%;
  border: 0;
  border-radius: 18px;
}
.prose code {
  padding: 0.15em 0.35em;
  border-radius: 6px;
  background: var(--cream);
  font-size: 0.9em;
}
.prose pre {
  padding: 1.2em;
  border-radius: 16px;
  background: #2b2633;
  color: #f3eee2;
  overflow: auto;
}
.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}
.alignright {
  float: right;
  margin: 0 0 1em 1em;
}
.alignwide {
  width: 100%;
}

.has-text-align-center {
  text-align: center;
}
.has-text-align-right {
  text-align: right;
}
.has-text-align-left {
  text-align: left;
}
.has-small-font-size {
  font-size: 0.875em;
}
.has-normal-font-size {
  font-size: 1em;
}
.has-medium-font-size {
  font-size: 1.2em;
}
.has-large-font-size {
  font-size: 1.75em;
}
.has-vivid-red-color {
  color: #cf2e2e;
}
.has-vivid-cyan-blue-color {
  color: #0693e3;
}
.has-very-dark-gray-color {
  color: #313131;
}

.has-drop-cap:first-letter {
  float: left;
  padding: 0.04em 0.1em 0 0;
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 3.4em;
  font-weight: 700;
  line-height: 0.85;
}

.wp-block-spacer {
  margin: 0;
}
.wp-block-paragraph:empty {
  display: none;
}
.wp-block-image {
  margin: 0 0 1em;
}
.wp-block-list {
  margin-bottom: 1em;
}
.wp-block-media-text {
  display: grid;
  grid-template-columns: 50% 1fr;
  align-items: center;
  gap: 2em;
  margin: 1.5em 0;
}
.wp-block-media-text__media {
  margin: 0;
}
.wp-block-media-text__media img {
  width: 100%;
  height: auto;
}
.wp-block-media-text__content {
  min-width: 0;
  padding: 0 4%;
}
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media {
  grid-column: 2;
  grid-row: 1;
}
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content {
  grid-column: 1;
  grid-row: 1;
}
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin: 1.5em 0;
}
.wp-block-column {
  flex: 1 1 0;
  min-width: 250px;
}
.wp-block-coblocks-row {
  margin: 1.5em 0;
}
.wp-block-coblocks-row__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5em;
}
.wp-block-coblocks-column {
  min-width: 0;
}
.wp-block-coblocks-column__inner {
  width: 100%;
}
.wp-block-embed {
  margin: 1.5em 0;
}
.wp-block-embed__wrapper {
  position: relative;
}
.wp-block-embed iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */

.page-header--archive {
  margin-bottom: 1.4rem;
}
.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.archive-tabs a {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.archive-tabs a:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.archive-tabs a.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 3px 0 var(--teal-dark);
}

.archive-list {
  display: grid;
}
.archive-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px dashed var(--line);
}
.archive-entry:first-child {
  padding-top: 0.3rem;
}
.archive-entry__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 0.6rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
}
.archive-entry__day {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.archive-entry__month {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.archive-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.archive-entry__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.2;
}
.archive-entry__title a {
  color: var(--ink);
  text-decoration: none;
}
.archive-entry__title a:hover {
  color: var(--teal-dark);
}
.archive-entry__excerpt {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.empty-state {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}
.pagination__pages {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination__pages a,
.pagination__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pagination__pages a:hover,
.pagination__step:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.pagination__pages a.is-current {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.pagination__step .icon {
  width: 0.9rem;
  height: 0.9rem;
}
.pagination__step:first-child .icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search-form-page {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 740px;
  margin: 0 0 1.2rem;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form-page:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 143, 143, 0.12);
}
.search-form-page__icon {
  display: flex;
  color: var(--teal);
}
.search-form-page__icon .icon {
  width: 1.2rem;
  height: 1.2rem;
}
.search-form-page input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
.search-form-page button {
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-form-page button:hover {
  background: var(--teal-dark);
}
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.search-suggestions a {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--cream);
  color: #8a6a1f;
  text-decoration: none;
}
.search-suggestions a:hover {
  background: var(--sun);
  color: #4a3a12;
}
.search-results {
  display: grid;
  gap: 1rem;
  max-width: 840px;
}
.search-result {
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.search-result:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.search-result h3 {
  margin: 0 0 0.3rem;
  font-size: 1.18rem;
}
.search-result h3 a {
  color: var(--ink);
  text-decoration: none;
}
.search-result h3 a:hover {
  color: var(--teal-dark);
}
.search-meta {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}
.search-result p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

.not-found {
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
}
.not-found__inner {
  max-width: 780px;
}
.not-found__art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.not-found__code {
  color: var(--teal);
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(23, 143, 143, 0.12);
}
.not-found__sun {
  width: clamp(90px, 16vw, 140px);
  animation: float 6s ease-in-out infinite;
}
.not-found__sun svg {
  display: block;
  width: 100%;
  height: auto;
}
.not-found__title {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.not-found__text {
  max-width: 52ch;
  margin: 0 auto 1.8rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.not-found .eyebrow {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9) rotate(6deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.post-grid > .reveal:nth-child(2),
.feature-grid > .reveal:nth-child(2),
.archive-tiles > .reveal:nth-child(2) {
  --reveal-delay: 0.07s;
}
.post-grid > .reveal:nth-child(3),
.feature-grid > .reveal:nth-child(3),
.archive-tiles > .reveal:nth-child(3) {
  --reveal-delay: 0.14s;
}
.post-grid > .reveal:nth-child(4) {
  --reveal-delay: 0.05s;
}
.post-grid > .reveal:nth-child(5) {
  --reveal-delay: 0.12s;
}
.post-grid > .reveal:nth-child(6) {
  --reveal-delay: 0.19s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .header-search input {
    width: 90px;
  }
  .nav-link {
    padding: 0.52rem 0.55rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 1179px) {
  .nav-toggle {
    display: grid;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 78px);
    padding: 0.4rem 28px 1.6rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px -30px rgba(51, 46, 63, 0.6);
    overflow-y: auto;
  }
  body.nav-open .site-nav {
    display: block;
  }
  .site-nav__inner {
    display: block;
  }
  .nav-list--root {
    display: block;
    padding-top: 0.4rem;
  }
  .nav-item {
    border-bottom: 1px solid var(--line);
  }
  .nav-item:last-child {
    border-bottom: 0;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.2rem;
    border-radius: 0;
    font-size: 1.02rem;
  }
  .nav-link:hover,
  .nav-item.is-current > .nav-link {
    background: transparent;
  }
  .nav-sub {
    display: none;
    position: static;
    min-width: 0;
    padding: 0 0 0.6rem 0.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.is-open > .nav-sub {
    display: block;
  }
  .nav-sub .nav-sub {
    display: block;
    padding-left: 0.9rem;
  }
  .nav-sub .nav-link {
    padding: 0.55rem 0.2rem;
    font-size: 0.95rem;
  }
  .nav-sub .nav-link:hover {
    background: transparent;
    color: var(--teal-dark);
  }
  .header-search {
    width: 100%;
    margin-top: 0.9rem;
  }
  .header-search input {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__title {
    max-width: 18ch;
  }
  .hero-art {
    min-height: 380px;
    max-width: 560px;
    margin: 0 auto;
  }

  .feature-grid,
  .archive-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .about {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
  .about__media {
    max-width: 560px;
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-nav {
    padding-left: 20px;
    padding-right: 20px;
  }
  .feature-grid,
  .archive-tiles,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .hero__facts {
    gap: 1.2rem 1.8rem;
  }
  .hero-photo {
    transform: none;
  }
  .doodle--cloud {
    left: -4%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .archivio-entry,
  .archive-entry {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .archive-entry__date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 0;
    width: fit-content;
    padding: 0.4rem 0.8rem;
  }
  .archive-entry__day {
    font-size: 1.25rem;
  }
  .archive-entry__month {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  .page-wrap {
    padding-bottom: 2rem;
  }
  .wp-block-columns {
    display: block;
  }
  .wp-block-column {
    min-width: 0;
    margin-bottom: 1.5em;
  }
  .wp-block-coblocks-row__inner {
    display: block;
  }
  .wp-block-coblocks-column {
    width: 100% !important;
    margin-bottom: 1em;
  }
  .wp-block-media-text {
    grid-template-columns: 100% !important;
    gap: 1em;
  }
  .wp-block-media-text__media {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .wp-block-media-text__content {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 0;
  }
  .alignleft,
  .alignright {
    float: none;
    margin: 0 0 1em;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }
  .brand-name {
    font-size: 1.35rem;
  }
  .brand-sub {
    font-size: 0.95rem;
  }
  .brand-sun {
    width: 40px;
    height: 40px;
  }
  .brand-logo {
    width: 40px;
  }
  .hero {
    padding-top: 1.8rem;
  }
  .hero__facts {
    gap: 1rem 1.4rem;
  }
  .hero__facts strong {
    font-size: 1.15rem;
  }
  .hero-art {
    min-height: 320px;
  }
  .doodle--sun {
    width: 66px;
  }
  .doodle--rainbow {
    width: 112px;
    left: -18px;
  }
  .doodle--cloud {
    width: 86px;
  }
  .doodle--squiggle {
    width: 104px;
  }
  .hero-sticker {
    right: -2px;
    bottom: -16px;
    font-size: 0.76rem;
  }
  .section {
    padding: 2.6rem 0;
  }
  .cta {
    padding: 1.8rem 1.4rem;
    border-radius: 28px 22px 30px 24px;
  }
  .pagination {
    justify-content: center;
  }
  .search-form-page {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 0.8rem;
  }
  .search-form-page__icon {
    display: none;
  }
  .search-form-page input {
    flex: 1 1 100%;
    padding: 0.4rem 0.5rem;
  }
  .search-form-page button {
    width: 100%;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .not-found__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
