/* ==========================================================================
   Meadow Blooms — organic, botanical, gallery-first.
   ========================================================================== */

:root {
  /* Warm pearl neutrals — bright backdrops that let the pieces glow */
  --cream: #f8f4ec;
  --cream-deep: #f1eadb;
  --beige: #e9dfcd;
  --sage: #afc79a;
  --sage-deep: #546f42;
  --clay: #ead9b8;

  /* Botanical accents from the feed: berry, leaf, lilac, teal, gold */
  --floral-red: #c13a5e;
  --rich-blue: #33517e;
  --lilac: #7c5cb0;
  --teal: #23726f;
  --amber: #c39b3b;
  --gold: #c39b3b;
  /* Text-safe gold: the decorative gold fails WCAG contrast on light cards */
  --gold-deep: #8a6a1f;
  --blush: #f0c7d4;

  --ink: #38322b;
  --ink-soft: #6f675c;
  --paper: #fdfcf8;

  /* Organic geometry — softly uneven corners, echoing the blob logo */
  --radius-blob: 42% 58% 55% 45% / 52% 44% 56% 48%;
  --radius-lg: 26px 30px 24px 32px;
  --radius-md: 18px 22px 16px 20px;
  --radius-sm: 10px 12px 9px 11px;

  /* Organic easing — never linear */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.64, 1);

  --font-serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(175, 199, 154, 0.2), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(240, 199, 212, 0.18), transparent 55%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1em; }

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

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

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

.wrap {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   View Transitions — soft cross-fade between pages, gentle rise on entry
   ========================================================================== */

@view-transition {
  navigation: auto;
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}

@keyframes vt-rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

main {
  view-transition-name: page-main;
}

.site-header {
  view-transition-name: site-header;
}

::view-transition-old(page-main) {
  animation: vt-fade-out 0.26s var(--ease-in-out) both;
}

::view-transition-new(page-main) {
  animation: vt-rise-in 0.55s var(--ease-out) both;
}

::view-transition-old(root) {
  animation: vt-fade-out 0.3s var(--ease-in-out) both;
}

@keyframes vt-fade-in {
  from { opacity: 0; }
}

::view-transition-new(root) {
  animation: vt-fade-in 0.45s var(--ease-out) both;
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56, 50, 43, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

/* The cloud-blob logo — cream lobes with script lettering, like the badge */
.brand-logo {
  height: 58px;
  width: auto;
  flex: none;
  filter: drop-shadow(0 2px 4px rgba(56, 50, 43, 0.12));
  transition: transform 0.6s var(--ease-spring);
}

.brand:hover .brand-logo {
  transform: rotate(-2.5deg) scale(1.04);
}

.logo-script {
  font-family: "Dancing Script", "Segoe Script", cursive;
  font-weight: 700;
  fill: var(--ink);
}

.logo-caps {
  font-family: var(--font-sans);
  font-weight: 600;
  fill: var(--ink-soft);
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 1.9rem);
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-block: 0.35rem;
  transition: color 0.35s var(--ease-out);
}

.nav-links a[hidden] {
  display: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sage-deep);
  transition: width 0.4s var(--ease-out), left 0.4s var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

.nav-social {
  display: flex;
  gap: 0.55rem;
}

.nav-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink-soft);
  border-radius: var(--radius-blob);
  transition: color 0.35s var(--ease-out), background 0.35s var(--ease-out),
    transform 0.45s var(--ease-spring);
}

.nav-social a:hover {
  color: var(--paper);
  background: var(--sage-deep);
  transform: translateY(-2px);
}

.nav-social svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 720px) {
  .brand-logo { height: 46px; }
  .nav-links a { font-size: 0.85rem; }
}

@media (max-width: 540px) {
  .nav { gap: 0.7rem; }
  .nav-links { gap: 0.7rem; }
  .nav-links a { font-size: 0.78rem; letter-spacing: 0.03em; }
  .nav-social { gap: 0.25rem; }
  .nav-social a { width: 28px; height: 28px; }
  .nav-social svg { width: 15px; height: 15px; }
  .brand-logo { height: 40px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: 2.75rem 0 2.25rem;
  background: var(--cream-deep);
  border-top: 1px solid rgba(56, 50, 43, 0.06);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* The quiet door to the admin backroom */
.admin-door {
  color: inherit;
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.admin-door:hover {
  opacity: 1;
  color: var(--floral-red);
}

/* ==========================================================================
   Scroll reveal — soft fade + slide upwards, staggered
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Buttons — anticipation on hover, settle on press
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.7rem;
  border: none;
  border-radius: var(--radius-blob);
  background: var(--sage-deep);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(56, 50, 43, 0.08);
  transition:
    transform 0.45s var(--ease-spring),
    box-shadow 0.45s var(--ease-out),
    background 0.35s var(--ease-out);
}

.btn:hover {
  transform: translateY(-3px);
  background: #5e6e50;
  box-shadow: 0 14px 26px -12px rgba(110, 127, 95, 0.55);
}

.btn:active {
  transform: translateY(-1px) scale(0.985);
  transition-duration: 0.15s;
}

.btn--red {
  background: var(--floral-red);
}

.btn--red:hover {
  background: #8b3232;
  box-shadow: 0 14px 26px -12px rgba(158, 59, 59, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(56, 50, 43, 0.35);
}

.btn--ghost:hover {
  background: rgba(56, 50, 43, 0.05);
  box-shadow: inset 0 0 0 1.5px rgba(56, 50, 43, 0.55);
}

/* ==========================================================================
   Page intro blocks
   ========================================================================== */

.page-intro {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  max-width: 46rem;
}

.page-intro .eyebrow,
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
}

.page-intro p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: var(--measure);
}

/* ==========================================================================
   Home — hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--floral-red);
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  border-radius: var(--radius-blob);
  box-shadow: 0 30px 60px -30px rgba(56, 50, 43, 0.35);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 24rem; }
}

.home-section {
  padding-top: clamp(3rem, 7vw, 5rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-head a {
  white-space: nowrap;
  font-size: 0.95rem;
}

/* ==========================================================================
   Cards & the shop masonry grid
   ========================================================================== */

.masonry {
  columns: 3 260px;
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
}

.masonry > * {
  break-inside: avoid;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(56, 50, 43, 0.06);
  transition:
    transform 0.55s var(--ease-out),
    box-shadow 0.55s var(--ease-out);
}

.card:hover,
.card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -20px rgba(56, 50, 43, 0.3);
}

.card-media {
  overflow: hidden;
  background: var(--beige);
}

.card-media img {
  width: 100%;
  height: auto;
  transform-origin: center;
  transition: transform 0.9s var(--ease-out);
}

/* Anticipation: the piece leans in slightly before you commit */
.card:hover .card-media img,
.card:focus-within .card-media img {
  transform: scale(1.045);
}

.card-body {
  padding: 1.1rem 1.3rem 1.3rem;
}

.card-body h3 {
  margin-bottom: 0.15rem;
}

.card .price {
  margin: 0;
  font-size: 1rem;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* One-of-a-kind pieces stay on show after they sell */

.sold-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-blob);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card.is-sold .card-media img {
  filter: saturate(0.55) opacity(0.85);
}

/* Placeholder listings while the real collection is photographed */
.sample-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-blob);
  background: var(--gold-deep);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card.is-sold .price {
  color: var(--ink-soft);
}

.sold-note {
  display: block;
  margin-top: 1.4rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-weight: 500;
}

.card-hit {
  position: absolute;
  inset: 0;
  background: none;
  border: none;
  border-radius: inherit;
  z-index: 1;
}

.card-hit:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: -3px;
}

/* ==========================================================================
   Portfolio — large staggered features
   ========================================================================== */

.features {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5.5rem);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.feature:nth-child(even) .feature-media {
  order: 2;
}

/* stagger the vertical rhythm so rows don't sit on a rigid rail */
.feature:nth-child(odd) .feature-body { transform: translateY(clamp(0px, 2vw, 22px)); }
.feature:nth-child(even) .feature-body { transform: translateY(clamp(0px, -2vw, -22px)); }

.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(56, 50, 43, 0.35);
}

.feature-media img {
  width: 100%;
  transition: transform 1s var(--ease-out);
}

.feature:hover .feature-media img {
  transform: scale(1.035);
}

.feature-collection {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
  display: block;
}

.feature-excerpt {
  color: var(--ink-soft);
}

.feature .btn {
  margin-top: 0.75rem;
}

@media (max-width: 760px) {
  .feature,
  .feature:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature .feature-body { transform: none !important; }
}

/* ==========================================================================
   Studio — journal feed
   ========================================================================== */

.feed {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 56rem;
  margin-inline: auto;
}

.entry {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(56, 50, 43, 0.06);
  transition: box-shadow 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.entry:hover {
  box-shadow: 0 20px 40px -22px rgba(56, 50, 43, 0.25);
  transform: translateY(-3px);
}

.entry:nth-child(odd) { margin-right: clamp(0rem, 5vw, 3.5rem); }
.entry:nth-child(even) { margin-left: clamp(0rem, 5vw, 3.5rem); }

.entry-media {
  overflow: hidden;
  background: var(--beige);
}

.entry-media img,
.entry-media video {
  width: 100%;
}

.entry-body {
  padding: 1.6rem clamp(1.3rem, 3vw, 2.2rem) 1.9rem;
}

.entry-date {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}

.entry-body h3 {
  margin-top: 0.3rem;
}

.entry-body p {
  color: var(--ink-soft);
  margin-bottom: 0;
  white-space: pre-line;
}

/* ==========================================================================
   Reviews — kind words from customers
   ========================================================================== */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.review {
  margin: 0;
  padding: 1.6rem 1.7rem 1.4rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(56, 50, 43, 0.06);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}

.review:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgba(56, 50, 43, 0.28);
}

.review blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.review blockquote::before {
  content: "“";
  display: block;
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.review figcaption {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.review figcaption .review-source {
  color: var(--gold-deep);
  font-weight: 600;
}

.reviews-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ==========================================================================
   About — the maker
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius-blob);
  box-shadow: 0 24px 50px -28px rgba(56, 50, 43, 0.35);
}

.about-photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
}

.about-body p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.placeholder-copy {
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.45rem;
}

/* ==========================================================================
   FAQ — delivery, returns & care
   ========================================================================== */

.faq {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  max-width: 46rem;
}

.faq h2 {
  margin-bottom: 1.25rem;
}

.faq details {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 1px 2px rgba(56, 50, 43, 0.06);
  transition: box-shadow 0.4s var(--ease-out);
}

.faq details:hover {
  box-shadow: 0 8px 20px -12px rgba(56, 50, 43, 0.25);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  color: var(--sage-deep);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.4s var(--ease-spring);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--ink-soft);
  margin: 0.75rem 0 0.25rem;
}

/* ==========================================================================
   Empty state
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
}

/* ==========================================================================
   Modal — detail view
   ========================================================================== */

/* The author display values below would otherwise override the `hidden`
   attribute, leaving an invisible full-page layer that swallows every click. */
.modal-backdrop[hidden],
.login-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  background: rgba(56, 50, 43, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal {
  width: min(920px, 100%);
  max-height: min(88vh, 100%);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(30, 26, 20, 0.5);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.5s var(--ease-spring);
}

.modal-backdrop.is-open .modal {
  transform: none;
}

.modal-close {
  position: sticky;
  top: 0.9rem;
  margin-left: auto;
  margin-right: 0.9rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-blob);
  background: var(--cream-deep);
  color: var(--ink);
  font-size: 1.15rem;
  z-index: 2;
  transition: background 0.35s var(--ease-out), transform 0.4s var(--ease-spring);
}

.modal-close:hover {
  background: var(--beige);
  transform: rotate(90deg);
}

.modal-inner {
  padding: 0 clamp(1.4rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.75rem);
  margin-top: -2.4rem;
}

.modal-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: start;
}

@media (max-width: 700px) {
  .modal-split { grid-template-columns: 1fr; }
}

.modal-media img,
.modal-media video {
  width: 100%;
  border-radius: var(--radius-md);
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.modal h2 {
  margin-bottom: 0.35rem;
}

.modal .price {
  font-size: 1.4rem;
  color: var(--gold-deep);
  font-weight: 600;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.modal-desc,
.modal-story {
  color: var(--ink-soft);
  white-space: pre-line;
}

.modal-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 1.4rem 0 0.35rem;
}

.modal .btn {
  margin-top: 1.4rem;
}

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Admin — the studio backroom
   ========================================================================== */

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 1px 3px rgba(56, 50, 43, 0.08);
}

.panel h2 {
  margin-bottom: 1.25rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.field .hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.field input[type="text"],
.field input[type="url"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(56, 50, 43, 0.14);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(110, 127, 95, 0.18);
}

.field input[type="file"] {
  width: 100%;
  padding: 0.6rem;
  background: var(--cream);
  border: 1.5px dashed rgba(56, 50, 43, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.previews figure {
  position: relative;
  margin: 0;
  width: 86px;
}

.previews img,
.previews video {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(56, 50, 43, 0.12);
  transition: opacity 0.3s var(--ease-out);
}

.previews figure.is-removed img {
  opacity: 0.28;
}

.previews .remove-image {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--floral-red);
  color: var(--paper);
  font-size: 0.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-spring);
}

.previews .remove-image:hover {
  transform: scale(1.15);
}

.field-check label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  cursor: pointer;
}

.field-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--sage-deep);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Admin item list */

.admin-list-section h3 {
  margin: 1.6rem 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(56, 50, 43, 0.1);
}

.admin-list-section h3:first-child {
  margin-top: 0;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease-out);
}

.admin-item:hover {
  background: var(--cream);
}

.admin-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--beige);
  flex: none;
}

.admin-item .item-info {
  min-width: 0;
  flex: 1;
}

.admin-item .item-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item .item-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.admin-item .item-actions {
  display: flex;
  gap: 0.4rem;
}

.mini-btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  border: 1.5px solid rgba(56, 50, 43, 0.2);
  border-radius: var(--radius-blob);
  background: transparent;
  color: var(--ink);
  transition: all 0.3s var(--ease-out);
}

.mini-btn:hover {
  border-color: var(--sage-deep);
  background: rgba(110, 127, 95, 0.1);
}

.mini-btn--danger:hover {
  border-color: var(--floral-red);
  background: rgba(158, 59, 59, 0.08);
  color: var(--floral-red);
}

/* Toast */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, calc(100% + 2.5rem));
  padding: 0.85rem 1.6rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-blob);
  font-size: 0.92rem;
  box-shadow: 0 16px 34px -14px rgba(30, 26, 20, 0.5);
  transition: transform 0.55s var(--ease-spring);
  pointer-events: none;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: var(--floral-red);
  color: var(--paper);
}

/* Login gate — shown only on the hosted site's admin */

.login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--cream) 70%, transparent);
  backdrop-filter: blur(14px);
}

.login-panel {
  width: min(420px, 100%);
  box-shadow: 0 30px 60px -25px rgba(56, 50, 43, 0.35);
}

.login-panel .hint {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Resident cats — Perez & Bella, strictly background art.
   pointer-events: none so they can never block a click (we learned).
   ========================================================================== */

.cat-cameo {
  pointer-events: none;
  user-select: none;
  display: flex;
}

.cat-cameo svg {
  display: block;
  height: auto;
}

/* Perez asleep on the footer edge (home) */
.cat-on-footer {
  justify-content: flex-end;
  padding-right: clamp(1.5rem, 9vw, 7rem);
  margin: clamp(2rem, 5vw, 3.5rem) 0 -9px;
}

.cat-on-footer svg {
  width: clamp(120px, 15vw, 185px);
}

/* Perez breathes in his sleep — the slow-motion charmer at rest */
.cat-breathe {
  transform-origin: 50% 100%;
  animation: cat-breathe 3.6s var(--ease-in-out) infinite alternate;
}

@keyframes cat-breathe {
  from { transform: scaleY(1); }
  to { transform: scaleY(1.022); }
}

/* Perez supervising from the top of the first studio entry */
.cat-on-entry {
  justify-content: flex-end;
  padding-right: clamp(2rem, 12vw, 9rem);
  margin-bottom: -3px;
}

.cat-on-entry svg {
  width: clamp(110px, 13vw, 165px);
}

/* Bella batting the FAQ tassel (shop) */
.cat-bella-shop {
  justify-content: flex-end;
  padding-right: clamp(1rem, 8vw, 6rem);
  margin: 2.5rem 0 -14px;
}

.cat-bella-shop svg {
  width: clamp(92px, 11vw, 128px);
}

.tassel-sway {
  transform-box: view-box;
  transform-origin: 156px 0;
  animation: tassel-sway 2.8s var(--ease-in-out) infinite alternate;
}

@keyframes tassel-sway {
  from { transform: rotate(-7deg); }
  to { transform: rotate(7deg); }
}

.paw-bat {
  transform-box: view-box;
  transform-origin: 122px 134px;
  animation: paw-bat 4.5s var(--ease-in-out) infinite;
}

@keyframes paw-bat {
  0%, 68%, 100% { transform: rotate(0deg); }
  78% { transform: rotate(-15deg); }
  86% { transform: rotate(5deg); }
  93% { transform: rotate(-6deg); }
}

/* Bella and her butterfly (studio) + peeking on the 404 page */
.cat-bella-watch {
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.cat-bella-watch .bella-peek {
  width: clamp(150px, 18vw, 210px);
}

.cat-bella-watch .butterfly {
  width: clamp(38px, 5vw, 52px);
  margin-bottom: 3.2em;
}

.butterfly-flutter {
  animation: butterfly-flutter 6s var(--ease-in-out) infinite;
}

@keyframes butterfly-flutter {
  0%   { transform: translate(0, 0) rotate(-6deg); }
  25%  { transform: translate(-14px, -12px) rotate(6deg); }
  50%  { transform: translate(8px, -20px) rotate(-5deg); }
  75%  { transform: translate(16px, -6px) rotate(7deg); }
  100% { transform: translate(0, 0) rotate(-6deg); }
}

.cat-404 {
  justify-content: center;
  margin: 0 auto;
}

.cat-404 svg {
  width: clamp(150px, 20vw, 200px);
}

/* Bella, curious about the pendant, tucked into the hero art */
.hero-art .cat-in-hero {
  position: absolute;
  bottom: -6px;
  left: clamp(-8px, 2%, 24px);
  width: clamp(72px, 12vw, 104px);
  z-index: 2;
}

.hero-art .cat-in-hero svg {
  width: 100%;
  height: auto;
}

/* Perez & Bella together — she wants to play, he could not be less bothered */
.cat-duo {
  justify-content: center;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.cat-duo svg {
  width: clamp(240px, 40vw, 340px);
}

/* --- the cats' animation vocabulary (all pause under reduced-motion) --- */

/* Perez's slow "I love you" blink */
.cat-blink {
  transform-box: fill-box;
  transform-origin: center;
  animation: cat-blink 5s var(--ease-in-out) infinite;
}
@keyframes cat-blink {
  0%, 42%, 50%, 100% { transform: scaleY(1); }
  46% { transform: scaleY(0.08); }
}

/* Bella's playful "let's play!" bounce */
.cat-bounce {
  transform-box: view-box;
  transform-origin: 60px 158px;
  animation: cat-bounce 2.4s var(--ease-in-out) infinite;
}
@keyframes cat-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-10px) rotate(-3deg); }
  55% { transform: translateY(0) rotate(0deg); }
  70% { transform: translateY(-4px); }
}

/* an occasional ear-twitch on the sleeping loaf */
.cat-ear-twitch {
  transform-box: view-box;
  transform-origin: 86px 40px;
  animation: cat-ear-twitch 4.5s var(--ease-in-out) infinite;
}
@keyframes cat-ear-twitch {
  0%, 88%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-9deg); }
  96% { transform: rotate(3deg); }
}

/* dreamy z z z rising from a sleeping cat */
.cat-zzz text {
  font-family: var(--font-serif);
  fill: var(--ink-soft);
  opacity: 0;
  animation: cat-zzz 3.6s var(--ease-out) infinite;
}
.cat-zzz text:nth-child(2) { animation-delay: 1.2s; }
.cat-zzz text:nth-child(3) { animation-delay: 2.4s; }
@keyframes cat-zzz {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20% { opacity: 0.75; }
  100% { opacity: 0; transform: translate(10px, -26px) scale(1.1); }
}

/* Bella tilting her head up at the jewellery, tail giving an idle flick */
.cat-lookup {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: cat-lookup 5s var(--ease-in-out) infinite;
}
@keyframes cat-lookup {
  0%, 100% { transform: rotate(0deg); }
  45%, 70% { transform: rotate(-5deg); }
}
.cat-tail-flick {
  transform-box: view-box;
  transform-origin: 42px 118px;
  animation: cat-tail-flick 3s var(--ease-in-out) infinite;
}
@keyframes cat-tail-flick {
  0%, 60%, 100% { transform: rotate(0deg); }
  75% { transform: rotate(7deg); }
  88% { transform: rotate(-4deg); }
}

/* Perez belly-up on the About page — the studio supervisor, off duty */
.cat-about {
  justify-content: center;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.cat-about svg {
  width: clamp(220px, 32vw, 320px);
}

/* his tummy rising as he breathes, blissfully asleep on his back */
.cat-belly-breathe {
  transform-box: view-box;
  transform-origin: 140px 128px;
  animation: cat-belly-breathe 4s var(--ease-in-out) infinite alternate;
}
@keyframes cat-belly-breathe {
  from { transform: scaleY(1); }
  to { transform: scaleY(1.035); }
}
/* back paws twitching through a good dream */
.cat-paw-wiggle {
  transform-box: view-box;
  transform-origin: 192px 104px;
  animation: cat-paw-wiggle 5.5s var(--ease-in-out) infinite;
}
@keyframes cat-paw-wiggle {
  0%, 78%, 100% { transform: rotate(0deg); }
  84% { transform: rotate(-7deg); }
  90% { transform: rotate(4deg); }
  95% { transform: rotate(-2deg); }
}
.cat-front-paw-wiggle {
  transform-box: view-box;
  transform-origin: 99px 96px;
  animation: cat-front-paw-wiggle 6s var(--ease-in-out) infinite;
}
@keyframes cat-front-paw-wiggle {
  0%, 60%, 100% { transform: rotate(0deg); }
  68% { transform: rotate(8deg); }
  76% { transform: rotate(-3deg); }
}

/* ==========================================================================
   Reduced motion — keep everything readable, drop the choreography
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(page-main),
  ::view-transition-new(page-main) {
    animation: none !important;
  }
}
