/* ==========================================================
   Nono Florals — styles
   Three colors only. Wax seal is for calls to action.
   ========================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Ceremonial";
  src: url("../fonts/Ceremonial-Quirky.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Brand tokens ---------- */
:root {
  --ink: #37031A;
  --paper: #FFF8EB;
  --wax-seal: #C2352C;

  --display: "Ceremonial", Georgia, serif;
  --body: "Satoshi", system-ui, sans-serif;

  --gutter: 20px;          /* side padding on phones */
  --space: 96px;           /* breathing room between sections */
  --hairline: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --space: 160px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) { body { font-size: 18px; } }

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

/* anything marked hidden stays hidden, even if a layout rule says otherwise */
[hidden] { display: none !important; }

/* ---------- Cream wash: one shared look for every photo ----------
   A thin layer of the brand cream is blended over each photo so whites
   lean toward the page color and the set feels consistent.
   To use on a new photo, wrap it in <div class="photo-wash">.
   Gallery photos get it automatically. */
.photo-wash,
.collage figure { position: relative; }

.photo-wash img,
.collage img { filter: saturate(.95) contrast(.95); }

.photo-wash::after,
.collage figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* keep the wash inside the gallery photos' paper edge */
.collage figure::after { inset: var(--print-edge); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;      /* sits quietly at the top of the page */
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px var(--gutter);
}

.logo {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  padding: 6px 0;          /* bigger tap area */
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }


@media (min-width: 768px) {
  .site-header { padding-top: 28px; }
  .logo { font-size: 26px; }
}

/* ---------- Hero ---------- */
/* Headline on paper first, then the full-width photo.
   (Phones frame the photo on the flowers; wider screens show the whole table.) */
.hero {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
}

/* two photos side by side, with a thin strip of paper between them */
.hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hero-photo {
  width: 100%;
  height: 62svh;
  object-fit: cover;
  object-position: 72% 50%;   /* the delphinium and carnation arrangement */
}
.hero-photo--second { object-position: 50% 45%; }

.hero-text {
  position: relative;
  padding: 104px var(--gutter) 40px;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 12vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

/* Wider screens: the headline and both photos fit in one screen (above the fold).
   The hero is exactly one screen tall: the headline takes what it needs and the photos fill the rest.
   The photos keep a slightly tall shape (about 0.87 wide to 1 tall) so whole arrangements show;
   on wide screens that means the pair is narrower than the window and sits centered,
   with the headline lined up to the photos' left edge. */
@media (min-width: 768px) {
  .hero {
    --title: clamp(52px, min(6.6vw, 10svh), 112px);              /* headline size, also used below */
    --text-h: calc(108px + 1.96 * var(--title) + 36px);          /* height of the headline area */
    --photos-w: min(100%, calc((100svh - var(--text-h)) * 1.74 + 12px));  /* two photos at 0.87 + the gap */
    /* one screen tall, but never so tall that the photos get thinner than 0.87 wide to 1 tall
       (matters on tall, narrow screens like an upright tablet) */
    height: min(100svh, calc(var(--text-h) + (100vw - 12px) * 0.5747));
    min-height: 600px;
    align-items: center;
  }
  .hero > .hero-photos {
    width: var(--photos-w);
    flex: 1 1 0;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
  }
  .hero-photos > .photo-wash { min-height: 0; height: 100%; }
  .hero-photo {
    height: 100%;
    object-position: 66% 45%;
  }
  .hero-photo--second { object-position: 50% 40%; }
  .hero-text {
    flex: none;
    width: var(--photos-w);
    /* the usual side margin when the photos run edge to edge; none once they're centered */
    padding: 108px max(0px, calc(var(--gutter) - (100% - var(--photos-w)) / 2)) 36px;
  }
  .hero-title {
    margin: 0;
    max-width: 13ch;
    font-size: var(--title);
  }
}

/* ---------- Buttons (wax seal = asking for a yes) ---------- */
.button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--wax-seal);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

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

.button:focus-visible { outline-color: var(--wax-seal); }

/* ---------- Intro line ---------- */
.intro {
  padding: var(--space) var(--gutter);
  text-align: center;
}

.intro-line {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 44px);
  line-height: 1.25;
  text-wrap: balance;   /* avoids a lonely last word */
}

/* hairline above and below, like an invitation card */
.intro-line::before,
.intro-line::after {
  content: "";
  display: block;
  width: 56px;
  margin: 0 auto;
  border-top: var(--hairline);
}
.intro-line::before,
.intro-line::after  { content: none; }   /* no straight lines: the hanging vine below replaces them */

/* hand-drawn hanging vine under the intro line, same pen style as the sprig */
.intro-vine {
  display: block;
  width: 220px;
  height: auto;
  margin: 32px auto 0;
  overflow: visible;
  filter: url(#ink-wobble-3);
}
.intro-vine path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Small section label ---------- */
.section-label {
  margin: 0 0 56px;
  text-align: center;
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Gallery: loose, scattered masonry ----------
   js/collage.js places each photo in the shortest column at a slightly varied size and offset,
   with the invitation card spanning two columns in the middle. Nothing overlaps.
   Without JavaScript, the photos fall back to a simple grid. */
.gallery {
  padding: 0 var(--gutter) var(--space);
}

.collage {
  --print-edge: 6px;
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  /* fallback before/without the script */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.collage-card { grid-column: 1 / -1; }

.collage figure {
  position: relative;
  margin: 0;
}

.collage img {
  width: 100%;
  border: var(--print-edge) solid var(--paper);   /* a thin paper edge, like a print */
}

/* arranged by js/collage.js */
.collage.is-arranged { display: block; }
.collage.is-arranged > * {
  position: absolute;
  top: 0;
  left: 0;
}

.collage-card .invitation-card { max-width: none; margin: 0; }

@media (min-width: 768px) {
  .collage { --print-edge: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Closing invitation ----------
   A centered card with a double hairline frame, like a printed invitation. */
.invitation {
  padding: 0 var(--gutter) var(--space);
}

.invitation-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 28px 56px;
  text-align: center;
  position: relative;
}

/* Hand-drawn double frame (see the <svg class="drawn-frame"> in the page) */
.drawn-frame {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  --frame-inset: 0px;
  top: var(--frame-inset);
  left: var(--frame-inset);
  width: calc(100% - 2 * var(--frame-inset));
  height: calc(100% - 2 * var(--frame-inset));
}
.drawn-frame line {
  stroke: var(--ink);
  stroke-linecap: round;
  fill: none;
}
.drawn-frame--outer { filter: url(#ink-wobble-1); }
.drawn-frame--outer line { stroke-width: 1.6; stroke-opacity: .75; }
.drawn-frame--echo { --frame-inset: 2px; filter: url(#ink-wobble-3); }
.drawn-frame--echo line { stroke-width: 1; stroke-opacity: .3; }


.drawn-sprig {
  display: block;
  width: 92px;
  height: 38px;
  margin: 0 auto 22px;
  overflow: visible;
  filter: url(#ink-wobble-3);
}
.drawn-sprig path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.drawn-frame--inner { --frame-inset: 9px; filter: url(#ink-wobble-2); }
.drawn-frame--inner line { stroke-width: 1; stroke-opacity: .5; }

.invitation-label {
  margin: 0 0 28px;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invitation-title {
  margin: 0 auto 20px;
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.08;
  text-wrap: balance;
}

.invitation-note {
  margin: 0 auto 20px;
  max-width: 34ch;
  text-wrap: balance;
}

/* Christina's hand-drawn signature */
.invitation-sign {
  width: 150px;
  height: auto;
  margin: 4px auto 36px;
}
@media (min-width: 768px) { .invitation-sign { width: 170px; } }

@media (min-width: 768px) {
  .invitation-card { padding: 88px 64px 80px; }
  .drawn-frame--inner { --frame-inset: 13px; }
}

/* ---------- Oxblood version of the invitation card ---------- */
.drawn-fill { display: none; }

.invitation-card--ink { color: var(--paper); }

.invitation-card--ink .drawn-fill {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: url(#ink-wobble-2);     /* uneven, hand-cut edges */
  pointer-events: none;
}
.invitation-card--ink .drawn-fill rect { fill: var(--ink); }

/* text and drawn lines sit above the fill */
.invitation-card--ink > :not(.drawn-fill) { position: relative; }
.invitation-card--ink > .drawn-frame { position: absolute; }

.invitation-card--ink .drawn-frame line,
.invitation-card--ink .drawn-sprig path { stroke: var(--paper); }

/* frames drawn inside the card instead of on its edge */
.invitation-card--ink .drawn-frame--outer { --frame-inset: 12px; }
.invitation-card--ink .drawn-frame--echo  { --frame-inset: 14px; }
.invitation-card--ink .drawn-frame--inner { --frame-inset: 21px; }

.invitation-card--ink .button:hover { background: var(--paper); color: var(--ink); }
.invitation-card--ink .button:focus-visible { outline-color: var(--paper); }

@media (min-width: 768px) {
  .invitation-card--ink .drawn-frame--outer { --frame-inset: 18px; }
  .invitation-card--ink .drawn-frame--echo  { --frame-inset: 20px; }
  .invitation-card--ink .drawn-frame--inner { --frame-inset: 30px; }
}

/* ---------- Footer ----------
   Cream, with a hand-drawn rule on top so it doesn't compete with the oxblood card above. */
.site-footer {
  padding: 0 var(--gutter) 40px;
}

/* hand-drawn vine across the top of the footer (drawn by js/footer-vine.js) */
.footer-rule {
  height: 40px;
}
.footer-rule svg { display: block; overflow: visible; }

.footer-inner {
  padding-top: 48px;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-weight: 400;
  font-size: 15px;
}

.footer-links a {
  text-decoration: none;
  padding: 4px 0;          /* bigger tap area */
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-links { align-items: center; justify-items: center; }

/* Instagram icon, drawn in oxblood */
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;             /* comfortable tap area */
  height: 44px;
}
.footer-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
}
.footer-icon svg .dot { fill: var(--ink); stroke: none; }
.footer-icon svg { transition: opacity .2s ease; }
.footer-icon:hover svg { opacity: .6; }

@media (min-width: 768px) {
  .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: left;
    justify-items: start;
  }
  .footer-links { grid-auto-flow: column; gap: 24px; }
}

/* ---------- Helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the current page in the nav gets a quiet underline */
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- About page ----------
   Layered like a scrapbook page.
   Phones: opening line + ranunculus, portrait with a tilted print over its corner, then the note.
   Wider screens: the line runs across the top; photos on the left, note tucked lower on the right. */
.about {
  padding: 104px var(--gutter) var(--space);
  display: grid;
  gap: 40px;
}

.about-intro {
  display: grid;
  gap: 0;
}

.about-lead {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 8.4vw, 72px);
  line-height: 1.1;
  text-wrap: balance;
}

.drawn-ranunculus {
  width: 50px;
  height: auto;
  overflow: visible;
  transform: rotate(8deg);
  filter: url(#ink-fine);
  /* phones: tucks into the space beside the portrait's top-right corner */
  justify-self: end;
  margin: 40px -4px -120px 0;
  position: relative;
  z-index: 1;
}
.drawn-ranunculus path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the portrait, signed just off its bottom-right corner */
.about-photos { position: relative; margin-bottom: 14%; }   /* room for the signature below */
.about-photo { width: 84%; }
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
/* signature written diagonally off the photo's bottom-right corner:
   its start just touches the photo, most of it sits on the cream page */
.about-photo img.photo-sign {
  position: absolute;
  z-index: 2;                       /* above the cream wash */
  left: 68%;
  bottom: -15%;
  width: 52%;
  height: auto;
  aspect-ratio: auto;
  transform: rotate(-14deg);
  transform-origin: left center;
  filter: none;                     /* no photo wash on the ink */
  pointer-events: none;
}

.about-text { max-width: 34rem; }
.about-text p { margin: 0 0 1.2em; }

.about-text .button { margin-top: 12px; }

@media (min-width: 900px) {
  .about {
    padding-top: 150px;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 72px;
  }
  /* no headline: the ranunculus sits at the top of the right-hand column,
     beside the portrait and above the note, so the photos start right under the header */
  .about-intro {
    grid-column: 9 / span 4;
    grid-row: 1;
    align-self: start;
  }
  .about-photos { grid-row: 1; }
  .about-text { grid-row: 1; margin-top: 186px; }   /* sits just below the ranunculus */
  .drawn-ranunculus { width: 104px; margin: 0 0 0 30%; justify-self: start; }
  .about-photos { grid-column: 1 / span 7; }
  .about-photo { width: 86%; }
  .about-text { grid-column: 9 / span 4; align-self: start; }
}

/* ---------- Inquire page ----------
   Phones: heading and intro, then the form.
   Wider screens: intro and a tilted print on the left, form on the right. */
.inquire {
  padding: 104px var(--gutter) var(--space);
  display: grid;
  gap: 48px;
}

.inquire-title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 12vw, 96px);
  line-height: 1;
}

.inquire-lede {
  margin: 0;
  max-width: 30ch;
}

.inquire-print {
  display: none;               /* phones: keep the form close to the top */
}
.inquire-print img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 8px solid var(--paper);
}
.inquire-print.photo-wash::after { inset: 8px; }

@media (min-width: 900px) {
  .inquire {
    padding-top: 150px;
    max-width: 1180px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 8vw, 128px);
    align-items: start;
  }
  .inquire-intro { position: sticky; top: 40px; }
  .inquire-print {
    display: block;
    width: 62%;
    margin-top: 56px;
    transform: rotate(-3deg);
  }
}

/* ---------- Inquiry form ---------- */
.inquiry-form {
  display: grid;
  gap: 32px;
}

.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }

.field label,
.field legend {
  padding: 0;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.req { margin-left: 2px; }
.opt { margin-left: 6px; text-transform: none; letter-spacing: 0; font-weight: 300; font-size: 13px; opacity: .7; }

/* inputs: just a pen line to write on */
.field input,
.field select,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 17px;           /* 16px+ stops phones zooming in */
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  resize: vertical;
  min-height: 132px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
}
.field select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2337031A' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);   /* thicker line while typing */
}
.field textarea:focus { box-shadow: inset 0 0 0 1px var(--ink); }

/* date picker icon in ink */
.field input[type="date"] { min-height: 46px; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .7; }

/* two short fields side by side */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* event type: pill choices */
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.choice { position: relative; cursor: pointer; }
.choice input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.choice span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  transition: background-color .2s ease, color .2s ease;
}
.choice:hover span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* errors are written in ink, quietly */
.field-error {
  margin: 2px 0 0;
  font-size: 14px;
  font-style: italic;
}
.field.has-error input,
.field.has-error textarea { border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field.has-error textarea { box-shadow: inset 0 0 0 1px var(--ink); }
.field.has-error .choice span { border-color: var(--ink); }


.inquiry-form .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
}
.inquiry-form .button[disabled] { opacity: .6; cursor: progress; }

.form-error { margin: 0; max-width: 40ch; }

/* spam trap, hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* thank-you note */
.inquiry-thanks { padding: 24px 0; }
.inquiry-thanks:focus { outline: none; }
.thanks-title {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1.15;
  max-width: 16ch;
}
.thanks-sign { width: 160px; height: auto; }
/* choices are labels too, but read as normal words, not small caps */
.field .choice { text-transform: none; letter-spacing: 0; font-size: 15px; }

/* ---------- Inspiration: link + photo uploads ---------- */
.field--inspiration { gap: 10px; }
.field-hint { margin: 0 0 6px; font-size: 15px; }
.field .sub-label {
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 400;
}
.field input::placeholder { color: var(--ink); opacity: .45; }

.upload { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.field .upload-input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; }
.field .upload-button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  border-radius: 999px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 400;
  transition: background-color .2s ease, color .2s ease;
}
.field .upload-button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.upload-input:focus-visible + .upload-button { outline: 2px solid var(--ink); outline-offset: 3px; }
.upload-limit { font-size: 13px; opacity: .7; }

.upload-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.upload-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.upload-list img { width: 44px; height: 44px; object-fit: cover; }
.upload-list .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-list button {
  background: none; border: 0; padding: 6px; cursor: pointer;
  color: var(--ink); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}

/* when guest count is hidden (restaurants and hotels), the date takes the full row */
.field-row.is-single { grid-template-columns: 1fr; }

/* A smaller print tucked over the top of a gallery photo (e.g. the wine shop over the hotel lobby) */
.collage .tucked-print {
  position: absolute;
  z-index: 1;
  top: -4%;
  right: -30%;
  width: 42%;
  transform: rotate(2.5deg);
}
.collage .tucked-print.photo-wash::after { inset: var(--print-edge); }

/* Photos with class="keep-clear" are kept uncovered by js/collage.js */

/* ---------- Invitation card as an embroidered linen napkin ---------- */
.invitation-card.napkin {
  --hem: 14px;                       /* how far the hemstitch sits in from the edge */
  position: relative;
  color: var(--paper);
  background-color: var(--ink);
  /* a fine linen weave, made from the paper color at a whisper */
  background-image:
    repeating-linear-gradient(0deg,  color-mix(in srgb, var(--paper) 5%, transparent) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--paper) 4%, transparent) 0 1px, transparent 1px 4px);
}
.invitation-card.napkin > * { position: relative; }

/* hemstitch: a row of tiny open stitches with a fine thread just inside it */
.napkin .hemstitch {
  --in: var(--hem);
  position: absolute;
  top: var(--in);
  left: var(--in);
  width: calc(100% - 2 * var(--in));
  height: calc(100% - 2 * var(--in));
  overflow: visible;
  pointer-events: none;
}
.napkin .hemstitch--thread { --in: calc(var(--hem) + 5px); }
.napkin .hemstitch rect { fill: none; }
.napkin .hemstitch-holes {
  stroke: var(--paper);
  stroke-opacity: .55;
  stroke-width: 2.4;
  stroke-dasharray: 1.6 2.4;
}
.napkin .hemstitch-thread {
  stroke: var(--paper);
  stroke-opacity: .22;
  stroke-width: .8;
}

/* mitered corners: the faint diagonal fold where the hem turns the corner */
.napkin .miter {
  position: absolute;
  width: var(--hem);
  height: var(--hem);
  pointer-events: none;
  --fold: color-mix(in srgb, var(--paper) 30%, transparent);
}
.napkin .miter--tl { top: 0; left: 0;  background: linear-gradient(to top right,    transparent calc(50% - .6px), var(--fold) 50%, transparent calc(50% + .6px)); }
.napkin .miter--tr { top: 0; right: 0; background: linear-gradient(to bottom right, transparent calc(50% - .6px), var(--fold) 50%, transparent calc(50% + .6px)); }
.napkin .miter--bl { bottom: 0; left: 0;  background: linear-gradient(to bottom right, transparent calc(50% - .6px), var(--fold) 50%, transparent calc(50% + .6px)); }
.napkin .miter--br { bottom: 0; right: 0; background: linear-gradient(to top right,    transparent calc(50% - .6px), var(--fold) 50%, transparent calc(50% + .6px)); }

/* embroidered sprig */
.embroidered-sprig {
  display: block;
  width: 104px;
  height: auto;
  margin: 0 auto 26px;
  overflow: visible;
}
.embroidered-sprig .stem {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 3.2 1.2;          /* stem stitch */
}
.embroidered-sprig .leaf {
  fill: var(--paper);
  fill-opacity: .9;
  stroke: var(--paper);
  stroke-width: .6;
}
.embroidered-sprig .vein {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: .55;
  stroke-width: .6;
  stroke-linecap: round;
}
.embroidered-sprig .knot { fill: var(--paper); }

.napkin .button:hover { background: var(--paper); color: var(--ink); }
.napkin .button:focus-visible { outline-color: var(--paper); }

@media (min-width: 768px) {
  .invitation-card.napkin { --hem: 22px; }
  .embroidered-sprig { width: 120px; }
}

/* hand-drawn sprig in cream on the napkin; extra room above the button now that there's no signature */
.napkin .drawn-sprig path { stroke: var(--paper); }
.napkin .invitation-note { margin-bottom: 36px; }
