@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-normal-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-italic-500.ttf") format("truetype");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-normal-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-normal-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-normal-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
body {
  --paper: #faf8f2;
  --wash: #e5e9dc;
  --accent: #465b42;
  --ink: #2d3526;
  --line: color-mix(in srgb, var(--accent) 40%, var(--paper));
  --soft-ink: color-mix(in srgb, var(--ink) 75%, var(--paper));
  --print: #fffdf6;
  --error: #913f32;
  --grain: url("/images/paper-ivory.webp");
  --guide-grain: url("/images/paper-sage.webp");
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--grain) var(--paper);
  background-size: 90px auto;
  background-blend-mode: luminosity;
  font: 100%/1.5 var(--body);
  accent-color: var(--accent);
  caret-color: var(--accent);
}
body[data-theme="garden"] {
  --ink: #30341c;
  --accent: #454d2b;
  background-blend-mode: normal;
}
body[data-theme="garden"] .guide,
body[data-theme="citrus"] .guide {
  background-blend-mode: normal;
}
body[data-theme="blush"] {
  --paper: #fff7f4;
  --wash: #f0dedc;
  --accent: #834957;
  --ink: #4b3137;
}
body[data-theme="coastal"] {
  --paper: #f5faf9;
  --wash: #dce9e9;
  --accent: #376371;
  --ink: #213e46;
}
body[data-theme="citrus"] {
  --guide-grain: url("/images/paper-apricot.webp");
  --paper: #fff8e9;
  --wash: #f8deaa;
  --accent: #984219;
  --ink: #50210d;
}
body[data-theme="berry"] {
  --paper: #fff6f7;
  --wash: #f4d9e4;
  --accent: #8f365d;
  --ink: #522135;
}
body[data-theme="confetti"] {
  --paper: #f9f6ff;
  --wash: #e6dcfa;
  --accent: #594497;
  --ink: #35294f;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scrollbar-color: #909582 #f8f6f0;
}
h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
button,
input {
  color: inherit;
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.58;
  cursor: default;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--accent);
  color: white;
}
svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  inset: 0.5rem auto auto 0.5rem;
  padding: 0.5rem;
  background: var(--paper);
}
.mast {
  padding: 0 clamp(1rem, 2.5vw, 3.5rem);
}
.mast-inner {
  max-width: 98rem;
  min-height: 4.75rem;
  padding: 0.65rem 0.6rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font: 500 clamp(1.95rem, 2.8vw, 2.7rem)/1 var(--serif);
  letter-spacing: -0.035em;
  text-decoration: none;
}
.wordmark img {
  width: 1.1em;
  height: 1.1em;
}
.mast nav,
.actions {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 2.8rem);
}
.guide-link,
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.guide-link:hover,
footer a:hover {
  text-decoration: underline;
}
.outline,
.primary,
.close,
.queue-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.62em;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  padding: 0.5rem 1.05rem;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.mast nav {
  font-size: clamp(1rem, 1.28vw, 1.24rem);
}
.mast .outline {
  border-radius: 4rem;
}
.primary {
  background: var(--accent);
  border-color: transparent;
  color: white;
}
button:not(:disabled):active,
.outline:active {
  transform: scale(0.98);
}
@media (hover: hover) {
  .primary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--accent) 82%, black);
  }
  .outline:hover:not(:disabled),
  .close:hover,
  .queue-action:hover {
    background: var(--wash);
  }
}
.album {
  overflow: clip;
}
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 3vw, 3.25rem);
  align-items: center;
  max-width: 101rem;
  min-height: clamp(31.6rem, 40.8vw, 42rem);
  padding: clamp(2.15rem, 3.45vw, 4.15rem) clamp(1.6rem, 3.8vw, 4rem);
  margin: auto;
}
.invitation {
  text-align: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.event-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 1.3vw, 1.5rem);
  color: var(--accent);
  font: 600 clamp(0.68rem, 0.86vw, 0.88rem)/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.event-date span {
  width: clamp(1.7rem, 3.8vw, 4rem);
  height: 1px;
  background: var(--line);
}
.invitation h1 {
  margin: 0.25em 0 0.18em;
  color: var(--ink);
  font: 500 clamp(4.25rem, 7.15vw, 7.15rem)/0.83 var(--serif);
  letter-spacing: -0.037em;
  overflow-wrap: anywhere;
}
.invitation h1 em {
  display: block;
  font-weight: inherit;
}
.event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.22em 0.52em;
  margin-top: clamp(1.1rem, 1.55vw, 1.6rem);
  overflow-wrap: anywhere;
  font-size: clamp(0.84rem, 1.06vw, 1.1rem);
}
#venue-group {
  display: inline-flex;
  gap: 0.35em;
  align-items: center;
  min-width: 0;
}
#venue-group svg {
  width: 1em;
  height: 1em;
  color: var(--accent);
}
.welcome {
  max-width: 31ch;
  margin: 1em auto 1.32em;
  font-size: clamp(1rem, 1.38vw, 1.4rem);
  line-height: 1.38;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
#start-upload {
  width: min(100%, 24rem);
  min-height: 3.15rem;
  padding: 0.57em 0.75em;
  font: 500 clamp(1.5rem, 2.1vw, 2.15rem)/1.15 var(--serif);
}
#start-upload svg {
  width: 0.97em;
  height: 0.97em;
}
.privacy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45em;
  margin-top: 1.05em;
  font: 600 clamp(0.63rem, 0.75vw, 0.76rem)/1.5 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft-ink);
}
.privacy svg {
  width: 1.05em;
  height: 1.05em;
}
#event-error {
  margin: 1em auto 0;
  font: 0.95rem/1.45 var(--sans);
  color: var(--error);
}
.prints {
  position: relative;
  min-width: 0;
}
.print {
  margin: 0;
  position: relative;
  background: var(--grain) var(--print);
  background-blend-mode: soft-light;
  padding: clamp(0.5rem, 0.92vw, 1rem) clamp(0.5rem, 0.92vw, 1rem) 0.1rem;
  box-shadow:
    1px 7px 14px -5px #463b2454,
    0 1px 2px #463b2426;
}
.print img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.print figcaption {
  text-align: center;
  padding: 0.18em 0.1em 0.23em;
  font:
    500 clamp(1.1rem, 2.22vw, 2.3rem)/1.35 Caveat,
    cursive;
  color: #4e4435;
}
.portrait {
  transform: rotate(-6.5deg);
}
.portrait img {
  aspect-ratio: 0.91;
  object-position: 50% 50%;
}
.reception {
  transform: rotate(7.2deg);
  width: 92%;
  margin-left: auto;
}
.reception img {
  aspect-ratio: 0.83;
}
.reception figcaption {
  margin-left: 33%;
  font-size: clamp(0.95rem, 1.95vw, 2.1rem);
}
.detail {
  position: absolute;
  bottom: -7%;
  left: -5%;
  width: 48%;
  transform: rotate(7deg);
  z-index: 1;
  padding: clamp(0.32rem, 0.6vw, 0.65rem) clamp(0.32rem, 0.6vw, 0.65rem) 0;
}
.detail img {
  aspect-ratio: 1;
}
.detail figcaption {
  font-size: clamp(1rem, 1.58vw, 1.6rem);
}
.tape {
  position: absolute;
  z-index: 1;
  top: -0.75rem;
  left: 35%;
  width: 30%;
  height: clamp(0.9rem, 2vw, 1.9rem);
  background: url("/images/tape.webp") center / cover #d6bf92;
  transform: rotate(-2.5deg);
  clip-path: polygon(
    1% 3%,
    99% 0,
    98% 21%,
    100% 37%,
    98% 62%,
    100% 78%,
    98% 100%,
    0 98%,
    2% 73%,
    0 60%,
    2% 40%,
    0 23%
  );
}
.detail .tape {
  display: none;
}
.guide {
  background: var(--guide-grain) var(--wash);
  background-size: 110px auto;
  background-blend-mode: luminosity;
}
.guide-inner,
.gallery-inner {
  max-width: 92rem;
  margin: auto;
  padding: clamp(1.65rem, 2.6vw, 3rem) clamp(1.25rem, 5.4vw, 6.25rem) clamp(2.3rem, 4.1vw, 4.25rem);
}
.guide h2,
.gallery h2 {
  text-align: center;
  font: 500 clamp(2.25rem, 3.6vw, 3.7rem)/1.05 var(--serif);
  letter-spacing: -0.027em;
}
.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(1.6rem, 2.7vw, 2.8rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps li {
  display: flex;
  gap: clamp(0.85rem, 1.5vw, 1.65rem);
  align-items: flex-start;
  padding: 0 clamp(1.25rem, 2.5vw, 2.7rem);
}
.steps li + li {
  border-left: 1px solid var(--line);
}
.steps li:first-child {
  padding-left: 0;
}
.steps li:last-child {
  padding-right: 0;
}
.step-icon {
  color: var(--accent);
  display: inline-flex;
  margin-top: 0.12em;
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
}
.step-icon svg {
  stroke-width: 1.35;
}
.steps h3 {
  font: 500 clamp(1.45rem, 2vw, 2.1rem)/1.04 var(--serif);
  letter-spacing: -0.023em;
}
.steps p {
  margin-top: 0.4em;
  max-width: 28ch;
  font-size: clamp(0.9rem, 1.15vw, 1.15rem);
  line-height: 1.42;
  color: var(--soft-ink);
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 98rem;
  margin: auto;
  padding: 0.7rem clamp(1rem, 3.1vw, 3.4rem);
  color: var(--soft-ink);
}
footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font: italic 500 1.4rem/1 var(--serif);
}
footer span img {
  width: 1.3rem;
  height: 1.3rem;
}
footer a {
  font: 0.85rem var(--sans);
}
dialog {
  color: var(--ink);
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  width: min(31rem, calc(100% - 1.5rem));
  max-height: min(89dvh, 48rem);
  overflow: auto;
  padding: 0;
  box-shadow: 0 1.25rem 4rem #201e2233;
}
dialog::backdrop {
  background: #1c251fcc;
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog[open] {
  animation: sheet-in 180ms ease-out;
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.sheet {
  position: relative;
  padding: 2rem;
}
.sheet h2 {
  padding-right: 2.35rem;
  overflow-wrap: anywhere;
  font: 500 2.35rem/1.04 var(--serif);
  letter-spacing: -0.03em;
}
.dialog-copy,
.notice,
.queue-item,
.drop,
.actions,
.sheet label,
.sheet input,
.sheet .primary,
.sheet .outline,
.gallery .notice,
.gallery .outline {
  font-family: var(--sans);
}
.dialog-copy,
.notice {
  font-size: 0.93rem;
  line-height: 1.5;
}
.dialog-copy {
  margin: 0.6rem 0 1.35rem;
  color: var(--soft-ink);
}
.notice:not(:empty) {
  margin: 0.9rem 0;
}
.close {
  min-width: 44px;
  min-height: 44px;
  position: absolute;
  top: 0.85rem;
  right: 0.8rem;
  padding: 0.6rem;
  border: 0;
  border-radius: 50%;
}
.drop {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  width: 100%;
  padding: 1.25rem 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--wash);
  font-size: 1rem;
}
.drop svg {
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.15rem;
  color: var(--accent);
}
.drop span {
  color: var(--soft-ink);
  font-size: 0.8rem;
}
.drop.drag-over {
  outline: 2px solid var(--accent);
}
#queue {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.queue-info {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.1rem;
}
.queue-name,
.gallery-name {
  overflow-wrap: anywhere;
}
.queue-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.queue-state {
  color: var(--soft-ink);
  font-size: 0.8rem;
}
.queue-item:is([data-state="error"], [data-state="invalid"]) .queue-state {
  color: var(--error);
}
.queue-progress {
  width: 100%;
  height: 0.45rem;
  accent-color: var(--accent);
}
.queue-action {
  flex: none;
  padding: 0.4rem;
  font-size: 0.81rem;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
#send-files {
  width: 100%;
}
.share-sheet .qr {
  display: block;
  max-width: 80%;
  height: auto;
  aspect-ratio: 1;
  margin: 0.5rem auto 1.35rem;
  background: white;
}
.share-sheet label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.share-sheet input {
  width: 100%;
  padding: 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--print);
  font-size: 1rem;
}
.actions {
  gap: 0.65rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.gallery {
  border-bottom: 1px solid var(--line);
}
.gallery-inner {
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  list-style: none;
  padding: 0;
  gap: 1.15rem;
  margin: 1.25rem auto;
}
.gallery-item {
  display: grid;
  width: 100%;
  padding: 0.55rem;
  border: 0;
  background: var(--print);
  text-align: left;
  box-shadow: 1px 3px 7px #332b181c;
}
.gallery-thumb {
  width: 100%;
  aspect-ratio: 1.22;
  object-fit: cover;
  background: var(--wash);
  color: var(--soft-ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-name {
  margin: 0.5rem 0.1rem 0.2rem;
  font: 0.86rem/1.3 var(--sans);
}
#media-dialog {
  width: min(54rem, calc(100% - 1.5rem));
}
#media-title {
  font-size: 1.7rem;
}
#media-content {
  text-align: center;
  margin: 1rem 0;
}
#media-content img,
#media-content video {
  display: block;
  width: 100%;
  max-height: 58dvh;
  object-fit: contain;
  background: var(--wash);
}
@media (max-width: 58rem) and (min-width: 45.01rem) {
  .spread {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.16fr) minmax(0, 0.82fr);
    gap: 1.05rem;
    padding-inline: 1.4rem;
  }
  .steps li {
    padding: 0 1rem;
    gap: 0.65rem;
  }
  .steps p {
    font-size: 0.88rem;
  }
}
@media (max-width: 45rem) {
  .mast {
    padding: 0 0.85rem;
  }
  .mast-inner {
    min-height: 2.85rem;
    padding: 0.15rem 0;
    border: 0;
  }
  .wordmark {
    gap: 0.4rem;
    font-size: 1.65rem;
    font-style: italic;
  }
  .wordmark img {
    width: 1.03em;
  }
  .mast .outline {
    border-radius: 0.6rem;
    font-size: 0.9rem;
    padding: 0.28rem 0.62rem;
    min-height: 36px;
    position: relative;
  }
  .mast .outline::before {
    content: "";
    position: absolute;
    inset: -4px 0;
  }
  .guide-link {
    display: none;
  }
  .spread {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 0;
    width: min(100%, 31rem);
    padding: 0.32rem clamp(1.6rem, 8vw, 2.8rem) 0.9rem;
  }
  .left-print {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
  }
  .right-print {
    grid-column: 2;
    grid-row: 1;
  }
  .portrait {
    transform: translateX(0.15rem) rotate(-5deg);
    width: 104%;
  }
  .reception {
    transform: translateX(-0.15rem) rotate(5deg);
    width: 101%;
  }
  .print {
    padding: 0.4rem 0.4rem 0;
  }
  .print img {
    aspect-ratio: 1.05;
  }
  .print figcaption {
    font-size: clamp(0.98rem, 4.3vw, 1.35rem);
    padding: 0.08em 0 0.16em;
  }
  .reception figcaption {
    margin-left: 0;
  }
  .portrait img {
    object-position: 49% 40%;
  }
  .detail {
    display: none;
  }
  .tape,
  .reception::before {
    width: 26%;
    height: 0.9rem;
    top: -0.4rem;
  }
  .reception::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 38%;
    transform: rotate(3deg);
    background: url("/images/tape.webp") center / cover #d6bf92;
  }
  .invitation {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: clamp(1.15rem, 4.6vw, 1.75rem);
  }
  .event-date {
    font-size: 0.7rem;
    letter-spacing: 0.19em;
    gap: 0.82rem;
  }
  .event-date span {
    width: 1.9rem;
  }
  .invitation h1 {
    font-size: clamp(3.7rem, 18.7vw, 6.1rem);
    line-height: 0.8;
    margin: 0.1em 0;
  }
  .event-meta {
    margin-top: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.35;
  }
  .welcome {
    margin: 0.45rem auto 0.59rem;
    max-width: 35ch;
    font-size: 0.93rem;
    line-height: 1.34;
  }
  #start-upload {
    width: min(100%, 20.5rem);
    font-size: 1.42rem;
    min-height: 44px;
    padding: 0.43rem 0.7rem;
  }
  .privacy {
    margin-top: 0.37rem;
    font: 0.78rem/1.5 var(--body);
    text-transform: none;
    letter-spacing: 0;
  }
  .guide-inner {
    padding: 1rem 1.4rem 1.55rem;
  }
  .guide h2,
  .gallery h2 {
    font-size: 2.13rem;
  }
  .steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 0.75rem auto 0;
    max-width: 23rem;
    counter-reset: step;
  }
  .steps li,
  .steps li + li {
    padding: 0;
    border: 0;
    gap: 1rem;
    counter-increment: step;
  }
  .steps h3::before {
    content: counter(step) ". ";
  }
  .step-icon {
    justify-content: center;
    align-items: center;
    width: 2.45rem;
    flex: none;
  }
  .steps h3 {
    font-size: 1.35rem;
    line-height: 1.13;
  }
  .steps p {
    font-size: 0.875rem;
    line-height: 1.34;
    margin-top: 0.13rem;
    max-width: 36ch;
  }
  footer {
    padding-block: 0.1rem;
  }
  footer span {
    font-size: 1.05rem;
  }
  footer span img {
    display: none;
  }
  footer a {
    font-size: 0.77rem;
  }
  .sheet {
    padding: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  button:not(:disabled):active,
  .outline:active {
    transform: none;
  }
}
@media (prefers-contrast: more) {
  body {
    --line: var(--ink);
    --soft-ink: var(--ink);
  }
  .print,
  dialog,
  .gallery-item {
    outline: 1px solid var(--ink);
  }
}
@media (prefers-reduced-transparency: reduce) {
  dialog::backdrop {
    background: #252a23;
  }
}

#album[aria-busy="true"] .invitation,
.spread:has(#event-error:not([hidden])) .invitation {
  grid-column: 1 / -1;
  margin: auto;
  max-width: 45rem;
}
