:root {
  --cream: #FBF6F1;
  --cream-dark: #F3EBE3;
  --paper: #FFFCF8;
  --blush: #F8D3CE;
  --blush-deep: #E8B4AD;
  --sage: #949E8E;
  --sage-deep: #3F5A46;
  --ink: #221711;
  --ink-soft: #4A403B;
  --muted: #5C534E;
  --heart: #8B3E3E;
  --error: #8A2B2B;
  --error-bg: #F8E4E0;
  --ring: #3F5A46;
  --choice-checked: #E7EFE8;
  --shadow: 0 8px 28px rgba(34, 23, 17, 0.08);
  --radius: 1.5rem;
  --radius-sm: 1rem;
  --font-display: "Fredoka", "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe UI", cursive;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --nav-h: 4.25rem;
  --tab-h: 4.25rem;
  --max: 70rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
@media (min-width: 800px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus { outline: 3px solid var(--ring); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  text-decoration: none;
}
.skip:focus,
.skip:focus-visible {
  top: 1rem;
  outline-color: var(--cream);
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(1.85rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 38rem; }
.muted { color: var(--muted); }
.tiny { font-size: 0.875rem; color: var(--muted); }
.heart { color: var(--heart); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- top nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 23, 17, 0.08);
}
.topbar-inner {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  padding: 0.15rem 0.2rem;
  border-radius: 999px;
  margin-right: auto;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blush);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-name span { display: none; }
@media (min-width: 420px) {
  .brand-name span { display: inline; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
}
.nav-desktop a:hover { background: var(--blush); }
.nav-desktop a.cta-nav {
  background: var(--sage-deep);
  color: #fff;
  padding-inline: 1.1rem;
}
.nav-desktop a.cta-nav:hover { background: var(--ink); color: #fff; }
.nav-desktop a.cta-nav:focus-visible { outline-color: var(--sage-deep); outline-offset: 3px; }

.ig-link, .menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(34, 23, 17, 0.15);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.ig-link:hover, .menu-btn:hover { background: var(--blush); border-color: transparent; }
.menu-btn[aria-expanded="true"] { background: var(--blush); }

.nav-panel {
  display: none;
  border-top: 1px solid rgba(34, 23, 17, 0.08);
  background: var(--cream);
  padding: 0.5rem 1.25rem 1rem;
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border-radius: 0.75rem;
}
.nav-panel a:hover { background: var(--blush); }

@media (min-width: 800px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .nav-panel { display: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--sage-deep);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 52px; padding-inline: 1.6rem; font-size: 1.1rem; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(34, 23, 17, 0.35);
}
.btn-ghost:hover { background: var(--cream-dark); color: var(--ink); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 2rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 50% -8rem;
  width: 36rem;
  height: 36rem;
  margin-left: -18rem;
  background: radial-gradient(circle, var(--blush) 0%, rgba(248, 211, 206, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-logo {
  width: min(78vw, 22rem);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 10px 24px rgba(34, 23, 17, 0.12));
}
.hero .tagline {
  font-family: var(--font-hand);
  font-size: clamp(1.85rem, 5.5vw, 3rem);
  margin: 0 0 0.7rem;
  color: var(--ink);
}
.hero h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  letter-spacing: 0;
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  line-height: 1.45;
}
.hero-hearts {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--heart);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
}

/* ---------- sections ---------- */
section { padding: 3.25rem 0; }
.band-blush { background: var(--blush); }
.band-paper { background: var(--paper); }
.section-kicker {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  color: var(--heart);
  margin: 0 0 0.15rem;
}

.scallop {
  height: 22px;
  background:
    radial-gradient(circle at 12px 0, var(--blush) 12px, transparent 13px) repeat-x;
  background-size: 24px 22px;
  background-color: var(--cream);
}
.scallop-cream {
  background-image: radial-gradient(circle at 12px 0, var(--cream) 12px, transparent 13px);
  background-color: var(--blush);
}
.scallop-paper {
  background-image: radial-gradient(circle at 12px 0, var(--paper) 12px, transparent 13px);
  background-color: var(--cream);
}
.scallop-up { transform: scaleY(-1); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 23, 17, 0.05);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0 0 0.6rem; }
.card p:last-child { margin-bottom: 0; }
.placeholder-pill {
  display: inline-block;
  background: var(--cream-dark);
  border: 1px dashed var(--muted);
  color: var(--ink);
  padding: 0.1rem 0.5rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 0.95em;
}
.placeholder-pill.on-ink {
  background: #3A302C;
  color: var(--cream);
  border-color: #C4B8B0;
}

/* ---------- FAQ (buttons, not details) ---------- */
.faq { margin-top: 2rem; }
.faq > h3 { margin-bottom: 0.8rem; }
.faq-item {
  background: var(--paper);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  border: 1px solid rgba(34, 23, 17, 0.06);
  box-shadow: 0 2px 8px rgba(34, 23, 17, 0.04);
}
.faq-item .faq-heading {
  margin: 0;
  font: inherit;
  letter-spacing: 0;
}
.faq-trigger {
  width: 100%;
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
}
.faq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: var(--ink);
}
.faq-chevron svg {
  width: 0.8rem;
  height: 0.55rem;
  display: block;
}
.faq-chevron .chevron-up { display: none; }
.faq-trigger[aria-expanded="true"] .faq-chevron .chevron-down { display: none; }
.faq-trigger[aria-expanded="true"] .faq-chevron .chevron-up { display: block; }
.faq-body {
  padding: 0 1.1rem 1.1rem;
  color: var(--ink-soft);
}
.faq-body p { margin: 0; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-dark);
  box-shadow: var(--shadow);
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 0.15s ease;
}
.tile:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .tile:hover { transform: none; }
}
.tile-art {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}
.tile-art svg { width: 100%; height: 100%; }
.tile-caption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem 0.8rem;
  background: var(--paper);
}
.tile-caption strong { font-size: 0.95rem; }
.ig-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--blush);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  width: fit-content;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(34, 23, 17, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox-card {
  background: var(--paper);
  border-radius: 1.5rem;
  padding: 1rem;
  width: min(100%, 32rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  position: relative;
}
.lightbox-art {
  aspect-ratio: 1;
  background: var(--cream-dark);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.lightbox-art svg { width: 100%; height: 100%; }
.lightbox-meta { padding: 0.9rem 0.4rem 0.3rem; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1.3rem;
}
.lightbox-close { top: 0.6rem; right: 0.6rem; z-index: 1; }
.lightbox-nav.prev { left: 0.4rem; top: 42%; }
.lightbox-nav.next { right: 0.4rem; top: 42%; }

/* ---------- form ---------- */
.order { padding-bottom: 5rem; }
.form-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 880px) {
  .form-layout { grid-template-columns: 1.4fr 0.9fr; align-items: start; }
  .summary-card { position: sticky; top: calc(var(--nav-h) + 1rem); }
}
.form-card, .summary-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 23, 17, 0.05);
}
.form-card h3, .summary-card h3 { margin-bottom: 0.85rem; }

.field { margin-bottom: 1rem; }
.field label, .legend {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
fieldset {
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
}
.hint {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}
.error-msg {
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 0.3rem;
}
.error-msg[hidden] { display: none !important; }
.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: var(--error);
  background: var(--error-bg);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid rgba(34, 23, 17, 0.35);
  border-radius: 0.85rem;
  padding: 0.55rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
}
textarea { min-height: 6.5rem; resize: vertical; padding-top: 0.7rem; }
input::placeholder, textarea::placeholder { color: #534843; opacity: 1; }
input[type="number"] { width: 4.5rem; text-align: center; -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { appearance: none; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
#djur-group { grid-template-columns: repeat(6, 1fr); }
#djur-group .choice { grid-column: span 2; }
#djur-group .choice:nth-child(4),
#djur-group .choice:nth-child(5) { grid-column: span 3; }
.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.choice > span,
.choice > .swatch-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.45rem 0.7rem;
  border-radius: 0.9rem;
  border: 2px solid rgba(34, 23, 17, 0.28);
  background: var(--cream);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.choice input:checked + span,
.choice input:checked + .swatch-label {
  border-color: var(--sage-deep);
  background: var(--choice-checked);
  box-shadow: 0 0 0 1px var(--sage-deep);
}
.choice input:focus-visible + span,
.choice input:focus-visible + .swatch-label {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.choice.stack > span {
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.swatch-label {
  flex-direction: column;
  min-width: 4.6rem;
  padding: 0.4rem 0.45rem 0.45rem;
  gap: 0.25rem;
}
.chip {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(34, 23, 17, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.swatch-name { font-size: 0.78rem; font-weight: 700; }

.stepper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.stepper button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(34, 23, 17, 0.35);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.stepper button:hover { background: var(--blush); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem;
  border-radius: 0.9rem;
  background: var(--cream);
  min-height: 48px;
  font-weight: 400;
}
.consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 0.15rem;
  accent-color: var(--sage-deep);
  flex-shrink: 0;
}

.annat-field { margin-top: 0.6rem; display: none; }
.annat-field.show { display: block; }

.preview-bowl {
  margin-top: 0.8rem;
  background: var(--cream);
  border-radius: 1.1rem;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.preview-bowl svg { width: 140px; height: 90px; }
.preview-name {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--ink);
  min-height: 2rem;
}
.preview-empty { color: var(--muted); font-size: 1.4rem; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.form-actions.center { justify-content: center; }

.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(34, 23, 17, 0.12);
  font-size: 0.95rem;
}
.summary-list li span:first-child { color: var(--muted); }
.summary-list li span:last-child { font-weight: 700; text-align: right; }
.price-row { font-size: 1.1rem; margin-top: 0.6rem; }
.notice {
  background: var(--blush);
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  margin: 0.9rem 0;
  font-size: 0.92rem;
}

.review, .success { display: none; }
.form-card.is-review .editor,
.form-card.is-success .editor,
.form-card.is-review .form-actions.editor-actions,
.form-card.is-success .form-actions.editor-actions { display: none; }
.form-card.is-review .review { display: block; }
.form-card.is-success .success { display: block; }
.form-card.is-success .review { display: none; }

.success {
  text-align: center;
  padding: 1.5rem 0.5rem 1rem;
}
.success-heart {
  font-size: 2.4rem;
  color: var(--heart);
  margin-bottom: 0.4rem;
}
.success h3 { font-size: 1.8rem; letter-spacing: 0; }
#success-panel:focus, #success-panel:focus-visible,
#review-heading:focus, #review-heading:focus-visible { outline: none; }

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0 calc(2rem + var(--tab-h));
}
@media (min-width: 800px) {
  footer { padding-bottom: 2.5rem; }
}
footer a { color: var(--blush); }
footer a:hover { color: #fff; }
footer a:focus-visible { outline-color: var(--blush); }
.footer-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; background: var(--blush); }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
footer p { margin: 0.3rem 0; }
footer h2, footer h3 {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.uf-note {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 246, 241, 0.15);
  font-size: 0.92rem;
  color: #E8DCD4;
}

/* ---------- mobile tab bar ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 252, 248, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(34, 23, 17, 0.1);
  padding: 0.25rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-height: 52px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 0.8rem;
}
.tabbar a:hover, .tabbar a[aria-current="true"] { background: var(--blush); }
.tabbar svg { width: 22px; height: 22px; }
@media (min-width: 800px) {
  .tabbar { display: none; }
}

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