@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffaf6;
  --cream: #f7eee7;
  --blush: #f5dce5;
  --ink: #2d2026;
  --muted: #64545a;
  --berry: #8b3050;
  --berry-dark: #6f233f;
  --line: #e9dcd7;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
}

body:has(dialog[open]) { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 5px;
}

h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 { font-weight: 400; }

section[id], main[id], .gallery-filters button, .photo a { scroll-margin-top: var(--anchor-space, 105px); }

[hidden] { display: none !important; }

.wrap {
  width: min(1140px, calc(100% - clamp(32px, 8vw, 112px)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
}

.skip:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 2px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 84px;
  height: 84px;
  margin: 0 -9px 0 -16px;
}

.site-nav {
  display: flex;
  gap: clamp(15px, 2.6vw, 37px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a { text-decoration: none; }

.site-nav a:hover, .footer-links a:hover { color: var(--berry); }

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--berry);
  color: #fff;
}

.button-primary:hover { background: var(--berry-dark); }

.button-outline {
  border-color: #cfacb9;
  background: transparent;
  color: var(--berry);
}

.button-outline:hover {
  border-color: var(--berry);
  background: var(--blush);
}

.nav-cta {
  min-height: 42px;
  justify-self: end;
}

.hero {
  display: grid;
  grid-template-columns: 1.17fr 1fr;
  align-items: center;
  gap: clamp(26px, 5vw, 78px);
  padding-block: clamp(42px, 5.3vw, 76px) clamp(54px, 6.5vw, 98px);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin-left: -0.025em;
  font-family: var(--display);
  font-size: clamp(4rem, 7.55vw, 7rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.hero h1 em { color: var(--berry); }

.lede {
  max-width: 30rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px 24px;
  margin-top: 29px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--berry);
  font-size: 0.94rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero-art {
  display: grid;
  place-items: center;
  padding: clamp(19px, 3.4vw, 48px);
  overflow: hidden;
  border-radius: 50% 50% 24px 24px / 33% 33% 24px 24px;
  background: radial-gradient(ellipse at 50% 36%, #fae8ed 0%, #f4dbe4 74%);
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 32px #5b25361a;
}

.section-title {
  font: 400 clamp(3.2rem, 5.8vw, 5.25rem)/0.97 var(--display);
  letter-spacing: -0.025em;
}

.gallery {
  padding-block: clamp(44px, 5.8vw, 76px) clamp(54px, 6.8vw, 95px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 14px 28px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 32rem;
  padding-bottom: 2px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.25vw, 28px);
}

.photo { min-width: 0; }

.photo a {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cream);
  text-decoration: none;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.photo a:hover img { transform: scale(1.03); }

.photo .zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--berry);
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: 0 2px 8px #40252914;
}

.photo figcaption {
  padding: 10px 1px 2px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.gallery-actions[hidden] { display: none; }

.order {
  padding-block: clamp(50px, 6.8vw, 90px);
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.order-note {
  margin-top: 14px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4.2vw, 54px);
  padding: 0;
  margin: 34px 0 29px;
  list-style: none;
}

.steps li {
  display: grid;
  align-content: start;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid #d9c7c0;
}

.step-number {
  color: var(--berry);
  font-size: 0.85rem;
  font-weight: 700;
}

.steps h3 {
  font: 400 2rem/1.1 var(--display);
}

.steps p, .details-content p { color: var(--muted); }

.order-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

details {
  align-self: start;
  border: 1px solid #dfcdc6;
  border-radius: 14px;
  background: var(--paper);
}

summary {
  position: relative;
  padding: 15px 46px 15px 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--berry);
  content: "+";
  transform: translateY(-50%);
}

details[open] summary::after { content: "−"; }

.details-content {
  padding: 0 17px 17px;
  font-size: 0.93rem;
}

.details-content p + p { margin-top: 8px; }

.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(26px, 6.3vw, 86px);
  padding-block: clamp(55px, 7vw, 96px);
}

.about p, .contact > p {
  margin-top: 15px;
  max-width: 29rem;
  color: var(--muted);
}

.contact {
  padding: clamp(23px, 4vw, 46px);
  border-radius: 22px;
  background: var(--blush);
}

.contact h2 {
  font: 400 clamp(2.7rem, 4.4vw, 4.15rem)/0.98 var(--display);
  letter-spacing: -0.02em;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.form-field > span,
.form-field > label,
.form-sweets legend {
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #c8aab6;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.45 var(--body);
}

.form-field textarea { resize: vertical; }

.form-field textarea::placeholder { color: var(--muted); }

.form-field input[type="file"] {
  padding: 6px 8px;
  font-size: 0.87rem;
}

.form-field input::file-selector-button {
  margin-right: 8px;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink);
  font: 600 0.86rem var(--body);
  cursor: pointer;
}

.form-sweets {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.form-sweets legend { padding: 0; }

.form-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.form-choices label {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  font-size: 0.94rem;
  cursor: pointer;
}

.form-choices input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--berry);
}

.form-help, .form-error {
  font-size: 0.83rem;
  line-height: 1.48;
}

.form-help { color: var(--muted); }

.form-error {
  color: #7e2445;
  font-weight: 700;
}

.form-actions {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding-top: 1px;
}

.form-actions button:disabled {
  opacity: 0.7;
  cursor: default;
}

.attachment-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.attachment-preview img {
  border: 1px solid #c8aab6;
  border-radius: 8px;
  background: var(--paper);
  object-fit: contain;
}

.form-remove {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.form-result {
  display: grid;
  gap: 11px;
  margin-top: 21px;
  padding: clamp(13px, 2.5vw, 23px);
  border: 1px solid #cfacb9;
  border-radius: 13px;
  background: var(--paper);
}

.form-result h3 {
  font: 400 2.12rem/1 var(--display);
}

.form-review pre {
  margin: 0;
  padding: 0 17px 17px;
  color: var(--muted);
  font: 400 0.9rem/1.52 var(--body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.form-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-result-actions .button { padding-inline: 15px; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}

.contact-links a, .footer-links a {
  text-underline-offset: 4px;
}

.contact-links a {
  color: var(--berry);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  padding-block: 31px 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 22px 38px;
  padding-bottom: 25px;
}

.footer-inner strong { color: var(--ink); }

address { font-style: normal; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 21px;
}

.footer-source {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.footer-source a { text-underline-offset: 4px; }

.lightbox {
  width: min(810px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 19px;
  background: var(--paper);
  color: var(--ink);
}

.lightbox::backdrop { background: #251820d9; }

.lightbox-bar, .lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
}

.lightbox-count {
  padding-left: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #d7b9c4;
  border-radius: 50%;
  background: var(--paper);
  color: var(--berry);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover { background: var(--blush); }

.lightbox img {
  width: 100%;
  height: min(66dvh, 630px);
  background: var(--cream);
  object-fit: contain;
}

.lightbox-caption {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 820px) {
  .hero h1 { font-size: clamp(3.55rem, 8.6vw, 5.3rem); }
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .hero-art { padding: 19px; }
  .site-nav { gap: 21px; }
  .about-contact { gap: 25px; }
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 12px;
  }

  .brand img { width: 72px; height: 72px; margin-left: -13px; }
  .brand { font-size: 0.97rem; }
  .nav-cta { grid-row: 1; grid-column: 2; min-height: 38px; padding: 8px 15px; }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 28px;
    padding: 0 0 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 34px 45px;
  }

  .hero h1 { font-size: clamp(3.5rem, 11.7vw, 5.4rem); }
  .eyebrow { margin-bottom: 16px; }
  .lede { margin-top: 18px; }
  .actions { margin-top: 22px; }
  .hero-art { width: min(100%, 410px); margin-inline: auto; padding: 23px; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo a { border-radius: 12px; }
  .photo .zoom { width: 28px; height: 28px; top: 7px; right: 7px; }
  .photo figcaption { padding-top: 7px; font-size: 0.85rem; }

  .steps, .order-details, .about-contact { grid-template-columns: 1fr; }
  .steps { gap: 16px; margin-top: 22px; }
  .steps li { gap: 5px; padding-top: 12px; }
  .footer-inner { gap: 14px; }
}

@media (max-width: 440px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .brand { font-size: 0.88rem; }
  .brand img { width: 64px; height: 64px; }
  .nav-cta { padding-inline: 12px; }
  .nav-cta span { display: none; }
  .site-nav { gap: 22px; }
}

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

.header-actions, .header-social {
  display: flex;
  align-items: center;
}

.header-actions { justify-self: end; gap: 9px; white-space: nowrap; }

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

.social-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 99px;
  color: var(--berry);
  text-decoration: none;
}

.social-link svg { width: 19px; height: 19px; }
.social-link:hover { background: var(--blush); }

.gallery-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 9px 18px;
  margin-bottom: 20px;
}

.gallery-filters { display: flex; flex-wrap: wrap; gap: 7px; }

.gallery-filters button {
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid #dac2ca;
  border-radius: 99px;
  background: transparent;
  color: var(--berry);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.gallery-filters button:hover { background: var(--blush); }

.gallery-filters button[aria-pressed="true"] {
  border-color: var(--berry);
  background: var(--berry);
  color: #fff;
}

.gallery-status { color: var(--muted); font-size: 0.85rem; }
.gallery-actions { align-items: center; flex-wrap: wrap; gap: 10px 18px; }

.about-photo {
  margin-top: 25px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cream);
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.3;
  object-fit: cover;
  object-position: 50% 52%;
}

.contact { min-width: 0; }
.contact-links a, .download-link { min-height: 44px; }
.contact-links a { display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.download-link { width: fit-content; }

.form-order {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px 0 0;
  margin: 2px 0 0;
  border: 0;
  border-top: 1px solid #d9b9c6;
}

.form-order legend { padding-right: 9px; color: var(--berry-dark); font-weight: 700; }
.date-note { color: var(--berry-dark); font-weight: 600; }
.date-note:empty { display: none; }

.details-content a { color: var(--berry); font-weight: 700; text-underline-offset: 3px; }

.site-footer {
  padding-top: clamp(28px, 5vw, 50px);
  background: var(--ink);
  color: #f1e3e8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px 30px;
}

.site-footer h2 { margin-bottom: 6px; color: #fff8f9; font-size: 0.94rem; font-weight: 700; }
.site-footer :focus-visible { outline-color: #ffe5ef; }
.footer-info { display: grid; justify-items: start; gap: 4px; }
.footer-info a { text-underline-offset: 4px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social .social-link { padding: 7px 13px; border: 1px solid #775761; color: #fff6f8; }
.footer-social .social-link:hover { background: #51353f; }
.footer-source { border-color: #644853; }

@media (max-width: 820px) {
  .header-inner { gap: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --anchor-space: 132px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; }
  .header-actions { display: contents; }
  .brand img { width: 66px; height: 66px; margin-left: -13px; }
  .nav-cta { grid-row: 1; grid-column: 2; min-height: 44px; padding: 8px 15px; }
  .site-nav, .header-social { grid-row: 2; padding-bottom: 3px; }
  .site-nav { grid-column: 1; justify-content: start; gap: clamp(10px, 4vw, 25px); }
  .header-social { grid-column: 2; justify-content: end; }
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .form-grid, .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .brand img { width: 64px; height: 64px; }
  .nav-cta { padding-inline: 12px; }
  .site-nav { gap: 12px; font-size: 0.85rem; }
}
