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

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9fcff;
  --ink: #2e2024;
  --quiet: #55484f;
  --cherry: #8e242f;
  --deep: #701b26;
  --sky: #a8d9f3;
  --ice: #dfeffa;
  --line: #c7d7df;
  --heading: "Bricolage Grotesque", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 "DM Sans", sans-serif; }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #20658c;
  outline-offset: 4px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: .99; letter-spacing: -.052em; }
h2, .narrow h1, .admin-view h1 { color: var(--deep); font-size: clamp(2.15rem, 4.7vw, 3.75rem); font-weight: 760; }
h3 { font-size: clamp(1.22rem, 2.3vw, 1.6rem); }
.shell { width: min(1160px, calc(100% - clamp(32px, 8vw, 112px))); margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 3; padding: 8px 14px; background: white; transform: translateY(-170%); }
.skip-link:focus { transform: none; }

.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header { min-height: 80px; border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--deep);
  font: 780 clamp(1.17rem, 2.4vw, 1.48rem)/1 var(--heading);
  letter-spacing: -.058em;
  text-decoration: none;
}
.brand img { flex: 0 0 auto; }
.header nav, .header-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
}
.header nav a:hover { text-decoration: underline; }
.account-link { border: 1px solid #ba9298; border-radius: 999px; padding: 7px 17px; color: var(--deep); }
.account-link:hover { background: #f9eef0; }

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6.3vw, 96px);
  padding-block: clamp(42px, 6.5vw, 86px);
}
.hero h1 { color: var(--cherry); font-size: clamp(3.85rem, 7.55vw, 6.95rem); font-weight: 800; letter-spacing: -.062em; }
.hero h1 em { font-style: normal; color: var(--deep); }
.hero-copy p { max-width: 34ch; margin-block: 22px 25px; font-size: clamp(1.07rem, 1.65vw, 1.24rem); color: var(--quiet); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; row-gap: 5px; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--cherry);
  color: white;
  font: 750 .99rem/1.2 "DM Sans", sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.primary:hover { background: #59131d; }
.primary:disabled { opacity: .65; }
.quiet { display: inline-flex; min-height: 44px; align-items: center; color: var(--deep); font-weight: 740; white-space: nowrap; }
.quiet:hover { text-decoration-thickness: 2px; }

.hero-preview {
  isolation: isolate;
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 455px;
  padding: 47px 30px 23px;
  overflow: hidden;
  border-radius: 19px;
  background: var(--sky);
}
.hero-preview figcaption { z-index: 1; margin-top: 24px; color: #2b495b; font-size: .81rem; font-weight: 650; text-align: center; }
.invitation-preview {
  z-index: 1;
  width: min(100%, 373px);
  transform: rotate(-4deg);
  border: 1px solid var(--deep);
  border-radius: 11px;
  background: var(--paper);
  box-shadow: 7px 8px var(--cherry);
  color: var(--deep);
}
.invitation-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid var(--deep);
  background: var(--ice);
}
.invitation-head span, .invitation-list b { font-weight: 780; font-size: .86rem; }
.invitation-head strong { display: block; margin: 4px 0 9px; font: 800 clamp(1.6rem, 4vw, 2.82rem)/.95 var(--heading); letter-spacing: -.072em; }
.invitation-head p { font-size: .82rem; line-height: 1.4; }
.invitation-stamp { width: clamp(48px, 8vw, 82px); height: auto; }
.invitation-list { padding: 13px 18px 16px; }
.invitation-items { list-style: none; margin: 7px 0 0; padding: 0; }
.invitation-items li { display: flex; align-items: center; gap: 11px; padding: 5px 0; border-top: 1px solid var(--line); }
.invitation-items img { width: 42px; height: 42px; border-radius: 5px; object-fit: cover; }
.invitation-items strong, .invitation-items span { display: block; font-size: .79rem; line-height: 1.4; }
.invitation-items span { color: var(--quiet); }

.confetti { position: absolute; display: block; pointer-events: none; }
.confetti-one { top: 10%; left: 7%; width: 16px; height: 32px; background: var(--cherry); transform: rotate(-36deg); }
.confetti-two { right: 6%; bottom: 13%; width: 28px; height: 28px; border: 6px solid var(--paper); border-radius: 50%; }
.confetti-three { top: 9%; right: 9%; width: 36px; height: 13px; background: var(--paper); transform: rotate(-29deg); }
.confetti-three::after { content: ""; position: absolute; top: 21px; right: -10px; width: 10px; height: 18px; background: var(--cherry); transform: rotate(45deg); }

.how { border-top: 1px solid var(--line); padding-block: 39px 68px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 4vw, 55px); margin-top: 26px; }
.steps article { border-top: 4px solid var(--sky); padding-top: 14px; }
.steps h3 { color: var(--deep); margin-bottom: 8px; }
.steps p { color: var(--quiet); max-width: 38ch; }

.styles-band { background: var(--ice); padding-block: clamp(44px, 6.3vw, 78px); }
.section-intro { margin-bottom: 25px; }
.section-intro p { margin-top: 11px; color: var(--quiet); max-width: 62ch; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.theme-card { min-width: 0; overflow: hidden; border: 1px solid #b6cbd8; border-radius: 10px; background: var(--paper); text-decoration: none; }
.theme-card:hover { border-color: var(--cherry); }
.theme-card:hover strong { text-decoration: underline; }
.theme-text { display: grid; gap: 2px; padding: 12px 14px 14px; }
.theme-text strong { color: var(--deep); font: 760 1.2rem/1.2 var(--heading); letter-spacing: -.035em; }
.theme-text small { color: var(--quiet); font-size: .85rem; }
.theme-art { display: block; width: 100%; height: auto; aspect-ratio: 486 / 300; object-fit: cover; }
.theme-details { margin-top: 13px; }
.theme-details[open] summary { margin-bottom: 10px; }
.when-open, .theme-details[open] .when-closed { display: none; }
.theme-details[open] .when-open { display: inline; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(24px, 5vw, 70px); padding-block: clamp(48px, 7vw, 92px); }
.faq-items { border-top: 1px solid var(--line); }
.faq-items details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 50px;
  padding-block: 9px;
  font-weight: 750;
  cursor: pointer;
  color: var(--deep);
}
summary::marker { content: ""; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: 0 0 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center/12px 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 12px no-repeat; }
details[open] > summary::after { background-size: 12px 2px, 0 0; }
summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.theme-details summary { justify-content: flex-start; width: fit-content; }
.faq-items p { margin: 0 20px 15px 0; color: var(--quiet); max-width: 57ch; }

.closing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
  padding: clamp(23px, 5vw, 59px);
  border-radius: 16px;
  background: var(--sky);
}
.closing h2 { margin-bottom: 17px; }
.closing img { width: clamp(58px, 11vw, 120px); height: auto; }
.footer { border-top: 1px solid var(--line); min-height: 72px; padding-block: 13px; color: var(--quiet); font-size: .88rem; }
.footer .brand { font-size: 1.07rem; }
.footer-credit a { color: var(--deep); font-weight: 700; }

.narrow { width: min(510px, calc(100% - 40px)); min-height: 68vh; margin-inline: auto; padding-block: 65px; }
.narrow p { margin-top: 16px; color: var(--quiet); }
.narrow h2 { margin-top: 26px; font-size: 1.65rem; }
.narrow form { margin-top: 20px; }
.narrow form label { display: grid; gap: 5px; margin-bottom: 12px; font-weight: 700; }
.narrow form input:not([type=hidden]) {
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid #839ba9;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.narrow .feedback { margin-block: 12px; min-height: 1.5em; }
.admin-view { min-height: 70vh; padding-block: 53px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 18px 26px; }
.stats p { padding: 8px 14px; border-radius: 7px; background: var(--ice); }
.stats strong { font-size: 1.25rem; }
.table-wrap { overflow: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 9px 13px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.paginator { display: flex; gap: 15px; margin-top: 18px; }

@media (max-width: 860px) {
  .hero h1 { font-size: clamp(3.4rem, 8.4vw, 4.9rem); }
  .hero-preview { min-height: 390px; padding-inline: 23px; }
}

@media (max-width: 690px) {
  .header { min-height: 65px; }
  .header-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-block: 35px 37px; }
  .hero h1 { font-size: clamp(3.35rem, 13.1vw, 5.55rem); }
  .hero-copy p { margin-block: 16px 17px; }
  .hero-preview { min-height: 328px; padding: 29px 25px 16px; border-radius: 12px; }
  .invitation-preview { transform: rotate(-3deg); box-shadow: 5px 6px var(--cherry); }
  .hero-preview figcaption { margin-top: 17px; }
  .how { padding-block: 29px 42px; }
  .steps { grid-template-columns: 1fr; gap: 13px; margin-top: 20px; }
  .steps article { border-top: 0; border-left: 4px solid var(--sky); padding: 5px 0 5px 12px; }
  .steps h3 { margin-bottom: 5px; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .faq { grid-template-columns: 1fr; gap: 20px; }
  .footer { flex-wrap: wrap; }
  .footer-credit { flex-basis: 100%; }
}

@media (max-width: 370px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .closing { align-items: flex-start; }
  .footer { gap: 10px; }
}

