:root {
  color-scheme: light;
  --cream: #f3efe4;
  --cream-deep: #e8e1d1;
  --surface: #fbf8f0;
  --surface-raised: #fffdf7;
  --ink: #1d2923;
  --muted: #687069;
  --line: rgba(29, 41, 35, .14);
  --green: #2f5947;
  --green-deep: #1d3c30;
  --sage: #b9c8b8;
  --accent: #b76e44;
  --shadow: 0 24px 70px rgba(39, 45, 36, .12);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --cream: #17211c;
  --cream-deep: #202d26;
  --surface: #1d2923;
  --surface-raised: #24332b;
  --ink: #f0ebdf;
  --muted: #aeb9b1;
  --line: rgba(240, 235, 223, .14);
  --green: #aac4ad;
  --green-deep: #d6e2d4;
  --sage: #486352;
  --accent: #d5966f;
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: var(--ink); color: var(--cream); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; height: 82px; background: color-mix(in srgb, var(--cream) 88%, transparent); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: height .3s ease, border-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled { height: 68px; border-color: var(--line); box-shadow: 0 8px 32px rgba(18, 28, 22, .06); }
.nav { position: relative; height: 100%; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 24px; }
.brand { width: 168px; }
.brand img { width: 100%; max-height: 64px; object-fit: contain; transition: filter .2s ease; }
.brand .theme-logo { content: url('assets/moellenbergs-logo-light.webp'); }
[data-theme="dark"] .brand .theme-logo { content: url('assets/moellenbergs-logo-dark.webp'); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 42px); font-size: .91rem; font-weight: 600; }
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--accent); transition: right .25s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.social-links { display: flex; align-items: center; gap: 6px; }
.social-link { display: grid; width: 34px; height: 34px; place-items: center; color: var(--muted); border-radius: 50%; transition: color .2s ease, background .2s ease, transform .2s ease; }
.social-link:hover, .social-link:focus-visible { color: var(--ink); background: var(--surface); transform: translateY(-1px); }
.social-link svg { width: 17px; height: 17px; }
.language-switch { display: inline-flex; min-width: 62px; height: 34px; align-items: center; justify-content: center; gap: 6px; padding-inline: 9px; color: var(--ink); background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--line); border-radius: 999px; font-size: .67rem; font-weight: 700; letter-spacing: .05em; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.language-flag { font-size: 1rem; line-height: 1; letter-spacing: 0; }
.language-switch:hover, .language-switch:focus-visible { background: var(--surface-raised); border-color: color-mix(in srgb, var(--green) 50%, var(--line)); transform: translateY(-1px); }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.icon-button:hover { background: var(--surface); }
.theme-toggle { font-size: 1.08rem; line-height: 1; }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 50px; padding: 0 22px; color: #fffdf7; font-weight: 700; background: var(--green-deep); border: 1px solid var(--green-deep); border-radius: 999px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
[data-theme="dark"] .button { color: #17211c; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25, 50, 40, .16); }
.button-small { min-height: 42px; padding-inline: 18px; font-size: .87rem; }
.button-outline { color: var(--ink); background: transparent; border-color: var(--line); }
[data-theme="dark"] .button.button-outline { color: var(--ink); }
.button-light { color: var(--green-deep); background: #f5f0e5; border-color: #f5f0e5; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.text-link svg, .button svg { transition: transform .2s ease; }
.text-link:hover svg, .button:hover svg { transform: translateX(3px); }

.hero { position: relative; min-height: min(720px, calc(100vh - 82px)); display: grid; align-items: center; overflow: hidden; border-radius: 0 0 34px 34px; isolation: isolate; }
.hero-media { position: absolute; z-index: -2; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(245, 240, 229, .98) 0%, rgba(245, 240, 229, .9) 34%, rgba(245, 240, 229, .12) 68%, transparent 100%); }
[data-theme="dark"] .hero::after { background: linear-gradient(90deg, rgba(20, 30, 25, .97) 0%, rgba(20, 30, 25, .83) 37%, rgba(20, 30, 25, .08) 70%); }
.hero-content { max-width: 580px; padding: 92px 0 116px clamp(24px, 5vw, 72px); }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pulse { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
h1 { max-width: 660px; margin-top: 22px; font-size: clamp(3.3rem, 6.4vw, 6rem); }
h1 em { color: var(--green); font-weight: 500; }
.hero-content > p { max-width: 540px; margin: 28px 0 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.hero-note { position: absolute; right: 28px; bottom: 24px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: #213128; background: rgba(250, 247, 238, .86); border: 1px solid rgba(255,255,255,.5); border-radius: 14px; backdrop-filter: blur(12px); }
.hero-note span { font-family: var(--serif); font-size: 1.9rem; }
.hero-note p { margin: 0; font-size: .72rem; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }

.trust-strip { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 26px; }
.trust-grid > div { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 4px 24px; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border: 0; }
.trust-grid svg { width: 25px; height: 25px; color: var(--green); }
.trust-grid p { display: grid; margin: 0; line-height: 1.3; }
.trust-grid strong { font-size: .88rem; }
.trust-grid span { color: var(--muted); font-size: .76rem; }

.section { padding-block: 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 42px; }
.section-heading h2, .story-copy h2, .contact-card h2 { margin-top: 10px; font-size: clamp(2.45rem, 4.5vw, 4.4rem); }
.section-heading > p { max-width: 520px; margin: 0 0 6px; color: var(--muted); }
.filter-row { display: flex; gap: 8px; margin-bottom: 26px; }
.filter { padding: 10px 16px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.filter span { display: inline-grid; min-width: 22px; height: 22px; margin-left: 6px; place-items: center; font-size: .71rem; background: var(--cream-deep); border-radius: 50%; }
.filter.active { color: #fff; background: var(--green-deep); border-color: var(--green-deep); }
[data-theme="dark"] .filter.active { color: #17211c; }
.animal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.animal-card { overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 22px; transition: transform .3s ease, box-shadow .3s ease; }
.animal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.animal-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent); outline-offset: 4px; }
.animal-photo { position: relative; aspect-ratio: 1.08; overflow: hidden; background: var(--cream-deep); }
.animal-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.animal-card:hover .animal-photo img { transform: scale(1.035); }
.status-badge { position: absolute; top: 16px; left: 16px; padding: 7px 12px; color: #244735; background: rgba(244, 248, 239, .9); border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.status-badge.reserved { color: #72452d; background: rgba(253, 235, 218, .92); }
.animal-body { padding: 22px; }
.animal-title-row { display: flex; justify-content: space-between; gap: 16px; }
.animal-title-row h3 { margin: 0; font-family: var(--serif); font-size: 1.85rem; font-weight: 500; }
.animal-meta { margin: 5px 0 13px; color: var(--green); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.animal-description { min-height: 52px; margin: 0; color: var(--muted); font-size: .9rem; }
.animal-card .text-link { margin-top: 18px; font-size: .86rem; }
.sales-footnote { display: flex; justify-content: center; gap: 20px; margin-top: 38px; color: var(--muted); }
.sales-footnote p { margin: 0; }
.animals-more { margin-top: 38px; text-align: center; }

.story-section { padding-block: 120px; background: var(--cream-deep); }
.story-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(60px, 9vw, 130px); }
.story-visual { position: relative; }
.story-visual > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 180px 180px 24px 24px; box-shadow: var(--shadow); }
.roundel { position: absolute; top: 14%; right: -48px; width: 106px; height: 106px; display: grid; place-content: center; color: #243a2f; background: #d5bea2; border: 6px solid var(--cream-deep); border-radius: 50%; text-align: center; transform: rotate(8deg); }
.roundel span { max-width: 65px; font-size: .55rem; font-weight: 700; line-height: 1.4; letter-spacing: .16em; }
.roundel strong { color: #954f3b; font-size: 1.15rem; }
.story-copy { max-width: 550px; }
.story-copy h2 { margin-bottom: 28px; }
.story-copy > p { color: var(--muted); }
.story-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 32px 0; padding-block: 20px; border-block: 1px solid var(--line); }
.story-stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.story-stats dt { font-family: var(--serif); font-size: 1.25rem; }
.story-stats dd { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }

.feed-heading .text-link { margin-bottom: 10px; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feed-card { display: flex; min-height: 290px; flex-direction: column; padding: 25px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 20px; }
.feed-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.fb-mark { display: grid; width: 34px; height: 34px; place-items: center; color: white; font-family: Arial, sans-serif; font-size: 1.25rem; font-weight: bold; background: #1877f2; border-radius: 50%; }
.feed-card-head p { display: grid; margin: 0; line-height: 1.25; }
.feed-card-head span { color: var(--muted); font-size: .72rem; }
.feed-message { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ink); font-size: .94rem; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.feed-card .text-link { margin-top: auto; padding-top: 24px; align-self: flex-start; font-size: .82rem; }
.feed-status { margin: 18px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }

.contact-section { padding-top: 30px; }
.contact-card { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(45px, 7vw, 90px); padding: 64px clamp(28px, 6vw, 78px); color: #f7f2e8; background: #264b3c; border-radius: 28px; }
.contact-card .kicker { color: #c5d7c5; }
.contact-card h2 { max-width: 720px; }
.contact-card > div > p { max-width: 510px; color: #c5d7c5; }
.contact-direct { display: inline-block; margin-top: 15px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.28); }
.contact-response { display: block; margin-top: 8px; color: #c5d7c5; font-size: .76rem; }
.contact-form { position: relative; display: flex; flex-direction: column; gap: 22px; color: var(--ink); }
.contact-form label { display: flex; flex-direction: column; gap: 9px; color: var(--ink); font-size: .8rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px 17px; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); border-radius: 13px; outline: none; resize: vertical; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-form input { min-height: 54px; }
.contact-form textarea { min-height: 180px; line-height: 1.55; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: color-mix(in srgb, var(--muted) 68%, transparent); }
.contact-form input:hover, .contact-form textarea:hover { border-color: color-mix(in srgb, var(--green) 48%, var(--line)); }
.contact-form input:focus, .contact-form textarea:focus { background: var(--surface); border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent); }
.contact-form .button { align-self: flex-start; color: #fffdf7; background: #264b3c; border-color: #264b3c; }
.contact-form .button:disabled { cursor: wait; opacity: .6; }
.contact-form-message { min-height: 20px; margin: 0; color: #53645b; font-size: .76rem; }
.contact-teaser { grid-template-columns: 1fr auto; }
.contact-page-button { min-width: 170px; }
.contact-page { min-height: 76vh; display: flex; width: min(720px, calc(100% - 32px)); flex-direction: column; padding-block: 88px 110px; }
.contact-page-copy { text-align: center; }
.contact-page-copy h1 { margin: 10px 0 20px; font-size: clamp(3.5rem, 8vw, 5.8rem); }
.contact-page-copy > p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.02rem; }
.contact-fallback { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin: 28px 0 0; color: var(--muted); font-size: .78rem !important; text-align: center; }
.contact-fallback a { color: var(--ink); font-size: 1rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.contact-fallback small { flex-basis: 100%; color: var(--muted); }
.contact-form-page { margin-top: 48px; padding: clamp(26px, 5vw, 48px); background: color-mix(in srgb, var(--surface-raised) 82%, var(--cream-deep)); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 60px rgba(35, 47, 39, .09); }

.footer { padding: 64px 0 26px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 40px; }
.footer-brand { width: 190px; }
.footer-grid > p { max-width: 330px; color: var(--muted); font-size: .86rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; justify-self: end; gap: 9px 44px; font-size: .84rem; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 22px; color: var(--muted); border-top: 1px solid var(--line); font-size: .74rem; }
.footer-bottom button { padding: 0; color: inherit; background: 0; border: 0; cursor: pointer; }
.footer-bottom button:hover { color: var(--ink); }
.managed-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.managed-links a:hover, .footer-bottom > a:hover { color: var(--ink); }
.managed-page { min-height: 70vh; padding: 110px max(0px, 10vw); }
.managed-page header { max-width: 820px; margin-bottom: 60px; }
.managed-page h1 { margin: 10px 0 20px; font-size: clamp(3.2rem, 7vw, 6.5rem); }
.managed-page header > p { max-width: 680px; color: var(--muted); font-size: 1.15rem; }
.managed-content { max-width: 760px; }
.managed-content h2 { margin: 48px 0 14px; font-size: clamp(2rem, 4vw, 3rem); }
.managed-content p { color: var(--muted); font-size: 1.02rem; }
.gallery-page { min-height: 75vh; padding-block: 100px 120px; }
.animals-page { min-height: 75vh; padding-block: 100px 120px; }
.animals-page > header { max-width: 780px; margin-bottom: 42px; }
.animals-page h1 { margin: 12px 0 22px; font-size: clamp(3.6rem, 8vw, 7.5rem); }
.animals-page header p { max-width: 660px; color: var(--muted); font-size: 1.08rem; }
.collection-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.collection-nav a { padding: 9px 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 700; }
.collection-nav a:hover, .collection-nav a.active { color: var(--surface-raised); background: var(--green-deep); border-color: var(--green-deep); }
[data-theme="dark"] .collection-nav a:hover, [data-theme="dark"] .collection-nav a.active { color: var(--cream); }
.animal-category-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: -8px 0 28px; }
.animal-category-filters label { display: grid; gap: 6px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.animal-category-filters select { min-width: 190px; padding: 11px 38px 11px 13px; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px; }
.memorial-card .animal-body h3 { margin: 0; font-family: var(--serif); font-size: 1.85rem; font-weight: 500; }
.memorial-dates { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.litters-page { min-height: 75vh; padding-block: 100px 120px; }
.litters-page > header { max-width: 800px; margin-bottom: 52px; }
.litters-page h1 { margin: 12px 0 22px; font-size: clamp(3.6rem, 8vw, 7.5rem); }
.litters-page header > p { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.litter-grid { display: grid; gap: 24px; }
.litter-card { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--custom-radius, 22px); }
.litter-image { min-height: 360px; background: var(--cream-deep); }
.litter-image img { width: 100%; height: 100%; object-fit: cover; }
.litter-placeholder { display: grid; place-items: center; color: var(--green); font-family: var(--serif); font-size: 5rem; }
.litter-body { align-self: center; padding: clamp(28px, 5vw, 58px); }
.litter-body h2 { margin: 10px 0 6px; font-size: clamp(2.3rem, 4vw, 3.7rem); }
.litter-date { margin: 0 0 24px; color: var(--green); font-weight: 700; }
.litter-parents { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 24px; padding-block: 16px; border-block: 1px solid var(--line); }
.litter-parents div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.litter-parents dt { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.litter-parents dd { margin: 5px 0 0; font-family: var(--serif); font-size: 1.15rem; }
.litter-description { margin: 0; color: var(--muted); line-height: 1.7; white-space: pre-line; }
.animal-profile-page { min-height: 78vh; padding-block: 62px 120px; }
.profile-back { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.profile-back:hover { color: var(--ink); }
.animal-profile-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: start; gap: clamp(42px, 7vw, 92px); }
.animal-profile-main { overflow: hidden; aspect-ratio: 1.08; background: var(--cream-deep); border-radius: var(--custom-radius, 22px); }
.animal-profile-main img { width: 100%; height: 100%; object-fit: cover; }
.animal-profile-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.animal-profile-thumbs button { overflow: hidden; aspect-ratio: 1; padding: 0; background: var(--cream-deep); border: 2px solid transparent; border-radius: 10px; cursor: pointer; opacity: .68; }
.animal-profile-thumbs button.active { border-color: var(--green); opacity: 1; }
.animal-profile-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.animal-profile-copy { position: sticky; top: 118px; padding-top: 18px; }
.animal-profile-copy h1 { margin: 12px 0 30px; font-size: clamp(3.8rem, 7vw, 6.7rem); }
.profile-status { display: inline-flex; margin-bottom: 18px; padding: 7px 12px; color: #244735; background: #e7efe5; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-status.reserved { color: #72452d; background: #f9e5d3; }
.animal-profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 0 0 30px; padding-block: 18px; border-block: 1px solid var(--line); }
.animal-profile-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.animal-profile-facts dt { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.animal-profile-facts dd { margin: 5px 0 0; font-family: var(--serif); font-size: 1.25rem; }
.animal-profile-description { color: var(--muted); font-size: 1.02rem; line-height: 1.75; white-space: pre-line; }
.animal-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.gallery-page > header { max-width: 780px; margin-bottom: 62px; }
.gallery-page h1 { margin: 12px 0 22px; font-size: clamp(3.6rem, 8vw, 7.5rem); }
.gallery-page h1 em { color: var(--green); font-weight: 500; }
.gallery-page header p { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.public-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 16px; }
.gallery-item { position: relative; grid-column: span 4; margin: 0; overflow: hidden; background: var(--cream-deep); border-radius: 16px; }
.gallery-item:nth-child(6n + 1), .gallery-item:nth-child(6n + 5) { grid-column: span 7; }
.gallery-item:nth-child(6n + 2), .gallery-item:nth-child(6n + 6) { grid-column: span 5; }
.gallery-item img { width: 100%; height: 100%; min-height: 300px; aspect-ratio: 1.05; object-fit: cover; transition: transform .4s ease; }
.gallery-item:nth-child(6n + 1) img, .gallery-item:nth-child(6n + 2) img { aspect-ratio: 1.45; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item figcaption { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 10px 13px; color: #243128; background: rgba(250,247,238,.84); border-radius: 9px; backdrop-filter: blur(10px); font-size: .8rem; }
.public-gallery .empty-state { grid-column: 1/-1; }

.admin-dialog { width: min(620px, calc(100% - 30px)); max-height: 92vh; padding: 34px; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.admin-dialog::backdrop { background: rgba(10, 16, 13, .62); backdrop-filter: blur(5px); }
.dialog-close-form { position: absolute; top: 18px; right: 18px; }
.dialog-header { padding-right: 38px; }
.dialog-header h2 { margin-top: 8px; font-size: 2.3rem; }
.dialog-header p { color: var(--muted); font-size: .88rem; }
.animal-form { display: grid; gap: 14px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.animal-form label { display: grid; gap: 5px; color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.animal-form input, .animal-form select, .animal-form textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.animal-form input:focus, .animal-form select:focus, .animal-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent); }
.form-message { min-height: 20px; margin: 0; color: var(--muted); font-size: .78rem; }
.toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 18px; color: #fff; background: #274b3d; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.empty-state { grid-column: 1/-1; padding: 60px 20px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 18px; }

@media (max-width: 900px) {
  .shell { width: min(100% - 32px, 720px); }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; justify-content: stretch; gap: 0; padding: 12px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s ease; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 13px 12px; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: grid; }
  .hero { min-height: 670px; }
  .hero-media img { object-position: 57% center; }
  .hero::after { background: linear-gradient(90deg, rgba(245, 240, 229, .98) 0%, rgba(245, 240, 229, .88) 45%, rgba(245, 240, 229, .22) 100%); }
  [data-theme="dark"] .hero::after { background: linear-gradient(90deg, rgba(20, 30, 25, .98), rgba(20, 30, 25, .82) 52%, rgba(20, 30, 25, .2)); }
  .hero-content { max-width: 510px; padding-left: 30px; }
  .animal-grid, .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .animal-profile-grid { grid-template-columns: 1fr; }
  .litter-card { grid-template-columns: 1fr; }
  .litter-image { min-height: 300px; aspect-ratio: 1.5; }
  .animal-profile-copy { position: static; }
  .story-grid { gap: 70px; }
  .contact-card { grid-template-columns: 1fr; gap: 34px; }
  .contact-teaser { grid-template-columns: 1fr; }
  .contact-page-button { justify-self: start; }
  .contact-page { align-items: stretch; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .nav { grid-template-columns: 160px 1fr auto; gap: 12px; }
  .nav-links { gap: 16px; }
  .nav-cta { display: none; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 24px, 520px); }
  .site-header, .site-header.scrolled { height: 66px; }
  .nav { gap: 8px; }
  .brand { width: 137px; }
  .nav-cta { display: none; }
  .nav-actions { gap: 7px; }
  .icon-button { width: 39px; height: 39px; }
  .language-switch { min-width: 34px; width: 34px; padding: 0; }
  .language-code { display: none; }
  .hero { width: 100%; min-height: 720px; border-radius: 0 0 24px 24px; align-items: end; }
  .hero-media img { object-position: 66% center; }
  .hero::after { background: linear-gradient(0deg, rgba(245, 240, 229, .98) 0%, rgba(245, 240, 229, .92) 42%, rgba(245, 240, 229, .12) 80%); }
  [data-theme="dark"] .hero::after { background: linear-gradient(0deg, rgba(20, 30, 25, .99), rgba(20, 30, 25, .9) 44%, rgba(20, 30, 25, .09) 82%); }
  .hero-content { padding: 250px 20px 80px; }
  h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .hero-content > p { font-size: .98rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-note { display: none; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 10px; }
  .trust-grid > div { justify-content: flex-start; padding: 15px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid > div:last-child { border: 0; }
  .section { padding-block: 78px; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; margin-bottom: 30px; }
  .section-heading h2, .story-copy h2, .contact-card h2 { font-size: 2.65rem; }
  .filter-row { overflow-x: auto; padding-bottom: 4px; }
  .filter { flex: 0 0 auto; }
  .animal-grid, .feed-grid { grid-template-columns: 1fr; }
  .sales-footnote { align-items: flex-start; flex-direction: column; }
  .story-section { padding-block: 78px; }
  .story-grid { grid-template-columns: 1fr; gap: 62px; }
  .story-visual { width: calc(100% - 30px); }
  .roundel { right: -36px; }
  .story-stats { grid-template-columns: 1fr; gap: 16px; }
  .story-stats div + div { padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .contact-section { padding-top: 10px; }
  .contact-card { width: 100%; padding: 45px 24px; border-radius: 0; }
  .contact-card .button { width: 100%; font-size: .82rem; }
  .contact-page { padding-block: 70px 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { justify-self: start; }
  .form-row { grid-template-columns: 1fr; }
  .admin-dialog { padding: 28px 20px; }
  .gallery-page { padding-block: 70px 80px; }
  .animals-page { padding-block: 70px 80px; }
  .animal-profile-page { padding-block: 36px 80px; }
  .litters-page { padding-block: 70px 80px; }
  .animal-profile-thumbs { grid-template-columns: repeat(4, 1fr); }
  .animal-profile-copy h1 { font-size: 3.8rem; }
  .animal-profile-facts { grid-template-columns: 1fr; gap: 14px; }
  .animal-profile-facts div + div { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .animal-profile-actions .button { width: 100%; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: 1/-1; }
  .gallery-item img, .gallery-item:nth-child(n) img { min-height: 240px; aspect-ratio: 1.15; }
}

@media (max-width: 380px) {
  .brand { width: 112px; }
  .nav-actions { gap: 4px; }
  .social-links { gap: 1px; }
  .social-link { width: 30px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
