:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #0f172a;
  --container: 1100px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 6px 16px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
img, picture, video, canvas { display: block; max-width: 100%; height: auto; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: var(--bg); }

.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem .75rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 1.25rem; }

.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(8px); background: rgb(255 255 255 / .8); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { font-family: "Fraunces", ui-serif, Georgia, serif; font-weight: 700; letter-spacing: .2px; text-decoration: none; color: var(--text); }
.nav { display: flex; gap: 1.25rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.hero { padding: clamp(3rem, 7vw, 7rem) 0; text-align: center; }
.hero.has-bg { position: relative; color: #0b0b0b; }
.hero.has-bg::before { content: ""; position: absolute; inset: 0; background: url('../pictures/bg001.png') center/cover no-repeat; filter: saturate(105%); z-index: -2; }
.hero.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / 0.86), rgb(255 255 255 / 0.98)); z-index: -1; }
.hero h1 { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; margin: 0 0 .75rem; }
.hero p { margin: 0 0 1.25rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.125rem); }
.button { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--text); color: #fff; text-decoration: none; font-weight: 600; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.section { padding: 2.5rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section-header h2 { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0; }
.section-header .link { color: var(--muted); text-decoration: none; font-weight: 600; }
.section-header .link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.artist-notes { margin-top: .5rem; color: var(--muted); }
.artist-notes ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.artist-notes li { margin: .25rem 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--border); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.media { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f8fafc; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.media-auto { aspect-ratio: auto; height: auto; object-fit: contain; background: #fff; }
.media.placeholder { background: linear-gradient(120deg, #f6f7f9 0%, #eef1f5 50%, #f6f7f9 100%); }
.card-body { padding: .9rem 1rem 1.1rem; }
.card-body h3 { margin: 0 0 .25rem; font-size: 1rem; }
.card-body p { margin: 0; color: var(--muted); }

.lede { color: var(--muted); max-width: 60ch; }

/* Story layout */
.story .story-content { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: start; }
.story .story-media .media { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.story .story-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.story .story-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.story .photo-note { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }
.story .story-text ul { margin: .5rem 0 .5rem 1.25rem; }
.story .story-text li { margin: .25rem 0; }
@media (max-width: 900px) { .story .story-content { grid-template-columns: 1fr; } }

.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem; background: #fff; }
.site-footer .container { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; color: var(--muted); }
.social { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .nav { display: none; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

/* Plushies grid: use natural image ratio to avoid awkward crops */
#plushies .grid .media { aspect-ratio: auto; height: auto; object-fit: contain; background: #fff; }
