:root {
  --ink: #5f6274;
  --muted: #808395;
  --plum: #8f8cc7;
  --plum-deep: #645a82;
  --pink: #e8a6cc;
  --lilac: #e8e2f4;
  --lilac-mid: #c8c5eb;
  --mint: #d8f0ec;
  --paper: #fdfcff;
  --white: #ffffff;
  --line: rgba(74, 47, 84, .16);
  --shadow: 0 22px 60px rgba(52, 26, 66, .13);
}
@font-face {
  font-family: "Milkyway";
  src: url("/fonts/milkyway-demo.regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(118deg, #f6d6df 0%, #f8e6da 34%, #e0f0ee 67%, #d8d2ef 100%); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; z-index: 0; inset: 0; pointer-events: none; background: url("/assets/watercolor-clouds.png") right -11rem bottom -5rem / min(58vw, 880px) auto no-repeat, url("/assets/watercolor-clouds.png") left -18rem top 38% / min(47vw, 700px) auto no-repeat; opacity: .3; mix-blend-mode: screen; }
#app, .shell { position: relative; z-index: 1; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { overflow: clip; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px clamp(22px, 12vw, 260px); background: linear-gradient(90deg, rgba(181,180,225,.93), rgba(206,239,236,.93) 40%, rgba(241,190,216,.93) 74%, rgba(251,218,206,.93)); border-bottom: 1px solid rgba(255,255,255,.65); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(119, 106, 154, .11); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--plum-deep); text-decoration: none; min-width: 185px; }
.brand img { height: 80px; width: 60px; object-fit: contain; mix-blend-mode: multiply; }
.brand-label { font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; line-height: 1.02; }
.brand-label small { color: var(--muted); display: block; font-family: "DM Sans", Arial, sans-serif; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: clamp(14px, 3.5vw, 44px); }
.nav button { border: 0; color: #6e6a7d; padding: 9px 0; background: transparent; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.nav button:hover, .nav button.active { color: var(--plum); }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 50%; height: 42px; width: 42px; font-size: 18px; }
.page { display: none; }
.page.active { display: block; animation: rise .38s ease both; }
#puppies { background: linear-gradient(122deg, #d8f0ec 0%, #e4e0f2 48%, #f3d5df 100%); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero { min-height: min(650px, calc(100vh - 94px)); position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(280px, .65fr); gap: clamp(30px, 6vw, 105px); align-items: center; padding: clamp(56px, 8vw, 112px) clamp(22px, 14vw, 285px); background: linear-gradient(128deg, rgba(241,217,223,.94) 0%, rgba(246,231,221,.94) 34%, rgba(217,240,236,.94) 67%, rgba(201,198,234,.94) 100%), url("/assets/watercolor-clouds.png") right 6% top 10% / min(48vw, 700px) auto no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: url("/assets/watercolor-clouds.png") left -10rem top -5rem / min(43vw, 660px) auto no-repeat, url("/assets/watercolor-clouds.png") right -9rem bottom -9rem / min(50vw, 760px) auto no-repeat; opacity: .46; mix-blend-mode: screen; }
.hero::after { content: ""; position: absolute; inset: 21px; border: 1px solid rgba(255,255,255,.72); pointer-events: none; z-index: -1; }
.hero-copy { max-width: 650px; position: relative; z-index: 2; background: rgba(255,255,255,.72); padding: clamp(28px, 4vw, 62px); box-shadow: 9px 10px 0 rgba(155,145,203,.28); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--pink); margin: 0 0 16px; }
h1, h2, h3 { font-family: "Milkyway", "Playfair Display", Georgia, serif; letter-spacing: -.025em; line-height: 1.08; margin: 0; font-weight: 400; }
h1 { font-size: clamp(3rem, 5.3vw, 5.3rem); max-width: 740px; color: var(--plum); }
h2 { font-size: clamp(2.25rem, 4.2vw, 4.6rem); }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.25rem); }
.hero-copy > p:not(.eyebrow) { color: #727486; font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 550px; margin: 27px 0 0; }
.hero-image { width: 100%; max-width: 430px; justify-self: end; aspect-ratio: 4 / 5; position: relative; z-index: 2; right: auto; bottom: auto; border-radius: 4px; overflow: hidden; background: linear-gradient(160deg, #d2c0da, #a886b1); box-shadow: 0 10px 0 rgba(255,255,255,.75), 0 0 0 12px rgba(255,255,255,.64), 12px 19px 28px rgba(117,95,140,.15); transform: rotate(1.2deg); }
.image-slot { position: relative; overflow: hidden; background: linear-gradient(135deg, #cdbbd4, #a888b1); cursor: default; }
.image-slot.has-image { background: #b9a5c2; }
.image-slot img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.image-empty { display: grid; place-items: center; color: rgba(255,255,255,.88); text-align: center; padding: 24px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.image-empty span { display: grid; justify-items: center; gap: 8px; }
.image-empty b { font-size: 26px; font-weight: 400; }
.editor-active .image-slot { cursor: pointer; outline: 2px dashed rgba(255,255,255,.92); outline-offset: -9px; }
.editor-active .image-slot:hover .image-empty, .editor-active .image-slot:hover::after { opacity: 1; }
.editor-active .image-slot::after { content: "Click to choose photo"; color: white; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; background: rgba(52,26,66,.75); position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.section { padding: clamp(75px, 10vw, 145px) clamp(22px, 14vw, 285px); }
.intro { display: grid; grid-template-columns: minmax(230px, .67fr) minmax(320px, 1.33fr); gap: clamp(46px, 10vw, 140px); align-items: center; background: radial-gradient(circle at 72% 25%, rgba(255,255,255,.62), transparent 23%), linear-gradient(115deg, rgba(229,223,244,.94), rgba(226,241,240,.94)), url("/assets/watercolor-clouds.png") left -15rem bottom -8rem / min(54vw, 760px) auto no-repeat; background-blend-mode: normal, normal, screen; }
.intro-image { min-height: 390px; width: min(100%, 390px); justify-self: center; border-radius: 50%; box-shadow: 0 0 0 14px rgba(255,255,255,.58), 0 0 0 16px rgba(146,138,178,.45), var(--shadow); }
.intro-copy { background: rgba(255,255,255,.76); padding: clamp(27px, 4vw, 60px); box-shadow: 8px 9px 0 rgba(155,145,203,.28); }
.intro-copy > p, .story-copy > p { color: var(--muted); font-size: 1.05rem; max-width: 650px; margin: 28px 0 0; white-space: pre-line; }
.story { background: radial-gradient(circle at 17% 80%, rgba(255,255,255,.45), transparent 24%), linear-gradient(120deg, #d8edf1, #ced2ee), url("/assets/watercolor-clouds.png") right -17rem center / min(50vw, 700px) auto no-repeat; background-blend-mode: normal, normal, screen; color: var(--ink); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(46px, 8vw, 120px); align-items: center; }
.story p { color: var(--muted); }
.story-image { min-height: 420px; border-radius: 20px 120px 20px 120px; background: linear-gradient(135deg, #f1c4d8, #bfc5e9); }
.puppy-tease { background: radial-gradient(circle at 78% 16%, rgba(225,238,255,.65), transparent 22%), radial-gradient(circle at 20% 83%, rgba(255,221,236,.53), transparent 19%), rgba(255,255,255,.87); text-align: center; }
.puppy-tease > p { color: var(--muted); max-width: 570px; margin: 20px auto 32px; }
.button { border: 0; border-radius: 999px; padding: 14px 23px; font-weight: 700; letter-spacing: .03em; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--pink); color: white; }
.button-primary:hover { background: #d891bb; }
.button-light { background: white; color: var(--plum-deep); }
.button-secondary { background: transparent; border: 1px solid var(--line); color: var(--plum-deep); }
.button-danger { background: #8a2f43; color: #fff; }
.puppy-header { display: grid; justify-items: center; background: linear-gradient(122deg, rgba(212,240,235,.94), rgba(201,196,234,.94) 50%, rgba(238,185,213,.94)), url("/assets/watercolor-clouds.png") left -14rem bottom -14rem / min(58vw, 760px) auto no-repeat; padding: clamp(72px, 8vw, 115px) clamp(22px, 8vw, 150px) clamp(54px, 6vw, 80px); text-align: center; }
.puppy-header h1 { width: min(100%, 1500px); margin-inline: auto; text-align: center; background: rgba(255,255,255,.7); padding: clamp(25px, 3vw, 38px); box-shadow: 7px 8px 0 rgba(255,255,255,.25); }
.puppy-header p { color: var(--muted); max-width: 580px; margin: 21px auto 0; }
.admin-actions { margin: 28px auto 0; display: none; gap: 10px; justify-content: center; flex-wrap: wrap; }
.editor-active .admin-actions { display: flex; }
.puppy-grid { width: min(100%, 1850px); padding: clamp(54px, 6vw, 90px) clamp(22px, 5vw, 120px); display: grid; grid-template-columns: 1fr; gap: 42px; max-width: none; margin: 0 auto; }
.puppy-card { width: 100%; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); overflow: hidden; position: relative; box-shadow: 0 7px 22px rgba(98,91,124,.1); text-align: left; display: grid; grid-template-columns: minmax(240px, 38%) 1fr; min-height: 410px; padding: 22px; gap: clamp(26px, 7vw, 100px); }
.puppy-card-image { aspect-ratio: auto; height: clamp(320px, 34vw, 500px); min-height: 0; background: rgba(226,238,239,.78); border: 3px solid rgba(255,255,255,.9); }
.puppy-card-image img { object-fit: contain; background: rgba(226,238,239,.65); }
.puppy-card-copy { padding: 36px 35px 30px 0; align-self: center; text-align: center; max-width: 440px; justify-self: center; width: 100%; }
.puppy-card-copy h3 { font-size: clamp(2rem, 3.4vw, 3.15rem); color: var(--plum); }
.puppy-details { color: var(--pink); font-size: 1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 13px 0 18px; }
.puppy-price { color: var(--plum); font-family: "Milkyway", "Playfair Display", Georgia, serif; font-size: 1.55rem; margin: 0 0 18px; }
.puppy-card-copy p:not(.puppy-details):not(.puppy-price) { color: var(--muted); margin: 0; font-size: 1rem; }
.carousel-controls { display: none; position: absolute; inset: auto 12px 12px; align-items: center; justify-content: space-between; pointer-events: none; }
.puppy-card.has-gallery .carousel-controls { display: flex; }
.carousel-button { pointer-events: auto; height: 38px; width: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--plum-deep); box-shadow: 0 2px 10px rgba(0,0,0,.13); font-size: 27px; display: grid; place-items: center; }
.dots { display: flex; gap: 5px; justify-content: center; }
.dot { height: 6px; width: 6px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.72); }
.dot.active { background: var(--plum-deep); transform: scale(1.35); }
.puppy-card-image img { animation: photo-in .38s ease both; }
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
.delete-card { display: none; position: absolute; top: 11px; right: 11px; z-index: 4; height: 36px; width: 36px; border: 0; border-radius: 50%; color: white; background: rgba(87,29,47,.9); }
.editor-active .delete-card { display: block; }
.contact-page { min-height: calc(100vh - 94px); display: grid; place-items: center; padding: clamp(70px, 12vw, 150px) 22px; background: linear-gradient(128deg, #f5d5df, #e0f1ee 55%, #d3c9ec); }
.contact-box { width: min(760px, 100%); text-align: center; }
.contact-box > p { color: var(--muted); font-size: 1.1rem; margin: 20px auto 48px; }
.contact-list { background: var(--white); box-shadow: var(--shadow); border-radius: 20px; padding: clamp(25px, 5vw, 60px); text-align: left; }
.contact-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row strong { color: var(--plum); font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; }
.footer { background: linear-gradient(90deg, #cae9e8, #c5c0ea 56%, #e6b2d1); color: #69677f; padding: 50px clamp(22px, 14vw, 285px); display: flex; gap: 40px; align-items: center; justify-content: space-between; }
.footer-brand { color: var(--plum-deep); font-family: "Milkyway", "Playfair Display", Georgia, serif; font-size: 2rem; }
.footer p { margin: 5px 0 0; font-size: .85rem; }
.footer-contacts { text-align: right; font-size: .88rem; }
.editor-fab { position: fixed; z-index: 40; bottom: 21px; right: 21px; height: 51px; width: 51px; border-radius: 50%; border: 0; background: var(--plum); color: white; box-shadow: 0 8px 22px rgba(52,26,66,.28); font-size: 21px; }
.editor-bar { position: fixed; z-index: 35; left: 50%; bottom: 18px; transform: translateX(-50%); display: none; align-items: center; gap: 10px; background: #2c1937; box-shadow: 0 15px 38px rgba(26,11,33,.32); border-radius: 999px; padding: 9px; color: white; }
.editor-active .editor-bar { display: flex; }
.editor-bar span { font-size: .82rem; padding-left: 12px; white-space: nowrap; }
.editor-bar button { border: 0; border-radius: 999px; height: 40px; padding: 0 16px; font-weight: 700; }
.editor-bar .save { color: white; background: var(--plum); }
.editor-bar .cancel { color: var(--ink); background: white; }
[contenteditable="true"] { outline: 2px dashed rgba(82,44,93,.43); outline-offset: 4px; border-radius: 3px; cursor: text; }
.story [contenteditable="true"] { outline-color: rgba(255,255,255,.55); }
.modal-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(29,15,36,.58); animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(610px, 100%); background: white; border-radius: 20px; padding: 30px; box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--muted); margin-top: 0; }
.field { display: grid; gap: 7px; margin: 16px 0; }
.field label { font-size: .78rem; font-weight: 700; color: var(--plum); text-transform: uppercase; letter-spacing: .09em; }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--ink); background: #fff; }
.field textarea { min-height: 100px; resize: vertical; }
.drop-area { border: 2px dashed #bca8c6; border-radius: 14px; min-height: 144px; display: grid; place-items: center; padding: 18px; text-align: center; color: var(--muted); background: #fbf9fc; cursor: pointer; }
.drop-area.dragging { background: var(--lilac); border-color: var(--plum); }
.upload-previews { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.upload-preview { width: 72px; height: 72px; border-radius: 9px; overflow: hidden; position: relative; }
.upload-preview img { height: 100%; width: 100%; object-fit: cover; }
.upload-preview button { position: absolute; top: 3px; right: 3px; background: rgba(41,29,50,.85); color: white; border: 0; border-radius: 50%; height: 21px; width: 21px; line-height: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.status { min-height: 22px; color: #a62d47; font-size: .88rem; }
@media (max-width: 760px) {
  .topbar { height: 72px; padding: 6px 18px; }
  .brand img { height: 59px; width: 46px; }
  .brand-label { font-size: 1.05rem; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 13px 20px 18px; background: rgba(252,251,253,.98); border-bottom: 1px solid var(--line); flex-direction: column; gap: 3px; }
  .nav.open { display: flex; }
  .nav button { text-align: left; }
  .topbar { padding: 6px 18px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 60px; }
  .hero-image { width: min(84vw, 360px); height: 370px; justify-self: center; }
  .hero-copy { padding-bottom: 32px; }
  .intro, .story { grid-template-columns: 1fr; }
  .intro-image { min-height: 330px; max-width: 380px; width: 100%; justify-self: center; }
  .story-image { min-height: 290px; }
  .puppy-grid { max-width: none; }
  .footer { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-contacts { text-align: left; }
  .contact-row { grid-template-columns: 1fr; gap: 3px; }
  .editor-bar { max-width: calc(100vw - 25px); }
  .editor-bar span { display: none; }
}
@media (max-width: 620px) {
  .puppy-card { grid-template-columns: 1fr; padding: 13px; gap: 0; }
  .puppy-card-image { height: min(118vw, 480px); }
  .puppy-card-copy { padding: 28px 18px 25px; }
}
