:root {
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --linen: #f3ecdf;
  --green: #2f5d3a;
  --green-dark: #1d3d26;
  --green-deep: #142c1b;
  --berry: #b3312c;
  --gold: #c9a45c;
  --ink: #2b2a27;
  --muted: #736d62;
  --line: #e8e0d1;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(40 30 10 / 0.06), 0 8px 24px rgb(40 30 10 / 0.07);
  --shadow-lift: 0 2px 4px rgb(40 30 10 / 0.06), 0 18px 40px rgb(40 30 10 / 0.14);
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.25rem 4.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

a { color: var(--green); }

.status { text-align: center; color: var(--muted); }
.status:empty { display: none; }
.error { color: var(--berry); }

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: rgb(251 247 240 / 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(232 224 209 / 0.7);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--linen); }
.nav-links a[aria-current="page"] { color: var(--green); background: rgb(47 93 58 / 0.09); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4.5rem, 12vw, 8rem) 1.25rem;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 20% 0%, rgb(255 255 255 / 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgb(201 164 92 / 0.18), transparent 55%),
    linear-gradient(160deg, var(--green) 0%, var(--green-dark) 60%, var(--green-deep) 100%);
}
/* Faint wreath illustrations peeking in from the corners */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: clamp(260px, 38vw, 480px);
  aspect-ratio: 1;
  background: url("/wreath-light.svg") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}
.hero::before { top: -18%; left: -9%; transform: rotate(-12deg); }
.hero::after { bottom: -22%; right: -8%; transform: rotate(25deg); }
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 5.75rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.15);
}
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.tagline { margin: 0.75rem 0 0; font-size: clamp(1.1rem, 2.4vw, 1.35rem); opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.hero-small { padding: clamp(3.5rem, 8vw, 5rem) 1.25rem; }
.hero-small h1 { font-size: clamp(2.8rem, 7vw, 4.25rem); }

/* Section heading with a small wreath flourish */
.section-heading { text-align: center; margin-bottom: 2.75rem; }
.section-heading h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 0; color: var(--green-dark); }
.section-heading p { margin: 0.5rem 0 0; color: var(--muted); }
.flourish { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 0.6rem 0 0.4rem; }
.flourish span { width: 70px; height: 1px; background: linear-gradient(to var(--dir, right), transparent, var(--gold)); }
.flourish span:last-child { --dir: left; }
.flourish img { width: 30px; height: 30px; }

/* Public gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

.wreath {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wreath:hover, .wreath:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.wreath:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wreath .frame { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--linen); }
.wreath img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.wreath:hover img { transform: scale(1.05); }
.wreath .info { padding: 1.1rem 1.25rem 1.3rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.wreath h2 { margin: 0; font-size: 1.45rem; color: var(--green-dark); }
.wreath .price { margin: 0; color: var(--green); font-weight: 700; white-space: nowrap; }
.wreath.sold .price { color: var(--berry); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }

.badge {
  position: absolute;
  top: 1rem;
  right: -2.6rem;
  width: 10rem;
  transform: rotate(40deg);
  background: var(--berry);
  color: white;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.35rem 0;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

/* Lightbox */
.lightbox {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(1040px, 94vw);
  max-height: 92vh;
  background: var(--paper);
  overflow: auto;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
}
.lightbox[open] { display: grid; grid-template-columns: 3fr 2fr; animation: pop 0.2s ease-out; }
.lightbox::backdrop { background: rgb(15 25 18 / 0.78); backdrop-filter: blur(3px); }
.lightbox-image { position: relative; overflow: hidden; background: var(--green-deep); }
.lightbox-image .badge { right: auto; left: -2.6rem; transform: rotate(-40deg); }
.lightbox-image img { width: 100%; height: 100%; max-height: 92vh; object-fit: contain; display: block; }
.lightbox-text { padding: 2.5rem 2rem; align-self: center; }
.lightbox-text h2 { margin: 0; font-size: 2.2rem; color: var(--green-dark); }
.lightbox-text .price { margin: 0.4rem 0 1.25rem; color: var(--green); font-weight: 700; font-size: 1.25rem; }
.lightbox-text .price.sold { color: var(--berry); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; }
.lightbox-text .description p { margin: 0 0 0.9rem; }
.lightbox .close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
@keyframes pop { from { opacity: 0; transform: scale(0.97); } }
@media (max-width: 760px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox-image .badge { right: auto; left: -2.6rem; transform: rotate(-40deg); }
.lightbox-image img { max-height: 60vh; }
  .lightbox-text { padding: 1.5rem; }
}

/* About page */
.about-card {
  position: relative;
  max-width: 760px;
  margin: -6.5rem auto 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  text-align: center;
}
.about-ornament { width: 64px; height: 64px; margin-bottom: 1rem; }
.about-text { text-align: left; font-size: 1.1rem; margin-bottom: 2rem; }
.about-text p { margin: 0 0 1.1rem; }
.about-text > p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 0.85;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--green);
}
.about-text .status::first-letter { all: unset; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 1.25rem 2rem;
  background: var(--green-deep);
  color: rgb(251 247 240 / 0.75);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
}
.site-footer p { margin: 0.4rem 0; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin: 1.25rem 0; }
.footer-links a { color: var(--cream); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--gold); }
.footer-links .admin-link { opacity: 0.55; font-weight: 400; }
.copyright { font-size: 0.85rem; opacity: 0.6; }

/* Buttons & forms */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-light { background: var(--cream); border-color: var(--cream); color: var(--green-dark); }
.btn-light:hover:not(:disabled) { background: white; }
.btn-outline-light { background: transparent; border-color: rgb(251 247 240 / 0.6); color: var(--cream); }
.btn-outline-light:hover:not(:disabled) { background: rgb(255 255 255 / 0.1); }
.btn-quiet { background: transparent; color: var(--green); }
.btn-quiet:hover:not(:disabled) { background: rgb(47 93 58 / 0.08); }
.btn-danger { background: transparent; color: var(--berry); border-color: var(--berry); }
.btn-danger:hover:not(:disabled) { background: rgb(179 49 44 / 0.08); }

input, textarea {
  font: inherit;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
input:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--green); }
textarea { resize: vertical; }

/* Admin */
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: var(--green-dark);
}
.admin-bar .brand { color: var(--cream); font-size: 1.5rem; }
.admin-bar .tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.admin-actions { display: flex; gap: 0.5rem; }
.admin-bar .btn { background: var(--cream); color: var(--green-dark); border-color: var(--cream); padding: 0.5rem 1.1rem; }
.admin-bar .btn-quiet { background: transparent; color: var(--cream); border-color: rgb(251 247 240 / 0.5); }

.login {
  max-width: 360px;
  margin: 3rem auto;
  padding: 2.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.login h1 { margin: 0; color: var(--green-dark); }
.login label { display: grid; gap: 0.3rem; font-weight: 600; }
.login .error { margin: 0; min-height: 1.5em; }

.tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.tab {
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: white; }

.about-editor {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}
.about-editor h2 { margin: 0; color: var(--green-dark); font-size: 1.8rem; }
.about-editor .hint { margin: 0; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin: 0 0 1.75rem; }
.filters label { display: flex; gap: 0.35rem; align-items: center; cursor: pointer; }

.admin-list { display: grid; gap: 1.1rem; }

.admin-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.1rem;
  background: var(--paper);
  border-left: 5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admin-card.is-shown { border-left-color: var(--green); }
.admin-card.not-in-album { opacity: 0.7; }
.admin-card img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; background: var(--linen); }
.admin-card .fields { display: grid; gap: 0.75rem; align-content: start; }
.admin-card label { display: grid; gap: 0.2rem; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.admin-card .toggles { display: flex; gap: 1.5rem; }
.admin-card .toggles label { display: flex; align-items: center; gap: 0.4rem; color: var(--ink); cursor: pointer; }
.card-actions { display: flex; gap: 0.5rem; }
.admin-card .missing { margin: 0; color: var(--berry); font-size: 0.9rem; }

@media (max-width: 560px) {
  .site-nav { flex-wrap: wrap; justify-content: center; row-gap: 0.35rem; padding-block: 0.55rem; }
}

@media (max-width: 640px) {
  .admin-card { grid-template-columns: 1fr; }
  .admin-card img { max-height: 320px; }
  .brand { font-size: 1.3rem; gap: 0.45rem; }
  .brand img { width: 28px; height: 28px; }
  .nav-links a { padding: 0.35rem 0.65rem; font-size: 0.95rem; }
}

/* Lightbox call to action */
.lightbox-text .inquire { margin-top: 0.75rem; }
.about-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* Contact page */
.contact-card {
  position: relative;
  max-width: 820px;
  margin: -6.5rem auto 0;
  padding: clamp(1.75rem, 5vw, 3rem);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 1.1rem;
}
.contact-card .intro { margin: 0 0 0.25rem; font-size: 1.1rem; text-align: center; color: var(--muted); }
.contact-card label { display: grid; gap: 0.3rem; font-weight: 700; color: var(--green-dark); }
.contact-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.contact-card .error { margin: 0; min-height: 1.5em; text-align: center; }
.contact-card .send { justify-self: center; padding: 0.8rem 2.5rem; font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.picker { border: none; padding: 0; margin: 0; min-width: 0; }
.picker legend { font-weight: 700; color: var(--green-dark); padding: 0; margin-bottom: 0.5rem; }
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  max-height: 440px;
  overflow-y: auto;
  padding: 0.25rem;
}
.contact-card .pick {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  border: 2px solid var(--line);
  cursor: pointer;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pick:hover { border-color: var(--gold); }
.pick input { position: absolute; top: 0.5rem; left: 0.5rem; width: 1.2rem; height: 1.2rem; margin: 0; }
.pick img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--linen); }
.pick-text { display: grid; padding: 0.4rem 0.6rem 0.5rem; font-size: 0.85rem; line-height: 1.3; }
.pick-text strong { font-family: var(--serif); font-size: 1.05rem; color: var(--green-dark); }
.pick-text span { color: var(--green); font-weight: 700; }
.pick:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgb(47 93 58 / 0.2); }

.thanks { text-align: center; justify-items: center; }
.thanks h2 { margin: 0; font-size: 2.4rem; color: var(--green-dark); }
.thanks p { margin: 0 0 0.5rem; font-size: 1.1rem; }

@media (max-width: 640px) {
  .contact-card .row { grid-template-columns: 1fr; }
  .picker-grid { grid-template-columns: repeat(2, 1fr); }
}
