/* invitation-md site: a stationer's desk at dusk. Plum envelope-liner, paper white, gold leaf. */
:root {
  --plum: #2b1b30;
  --plum-2: #3a2640;
  --ink: #231726;
  --paper: #fbf8f6;
  --paper-2: #f2ebe8;
  --lilac: #cdb8ef;
  --gold: #e3bf6c;
  --muted: #6c5a6f;
  --line: rgba(43, 27, 48, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 8px; top: 8px; z-index: 10; background: var(--gold); color: var(--plum); padding: 8px 14px; font-weight: 600; transform: translateY(-300%); }
.skip:focus { transform: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
h3 { font-size: 22px; }
.sub { color: var(--muted); max-width: 40em; margin-bottom: 36px; }
.fine { font-size: 14px; color: var(--muted); }
.kicker { font: 600 13px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }

/* Header */
.top { background: var(--plum); color: var(--paper); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--serif); text-decoration: none; }
.wordmark img { background: var(--paper); border-radius: 7px; padding: 2px; }
.nav { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 15px; opacity: 0.88; }
.nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero { background: radial-gradient(90% 70% at 80% 30%, #4a3252 0%, var(--plum) 62%); color: var(--paper); padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 46px; background: var(--paper); clip-path: polygon(0 100%, 50% 0, 100% 100%); opacity: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { font: 600 13px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 400; }
.hero h1 em { display: block; font-style: italic; color: var(--lilac); font-weight: 300; }
.lede { font-size: 19px; color: rgba(251, 248, 246, 0.82); margin: 22px 0 28px; max-width: 32em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.btn { display: inline-block; background: var(--gold); color: var(--plum); font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 999px; }
.btn:hover { background: #ecd08c; }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(251, 248, 246, 0.5); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.hero .fine { color: rgba(251, 248, 246, 0.62); }
.flatlay { position: relative; aspect-ratio: 1 / 0.92; }
.fl { position: absolute; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 30px 60px rgba(0, 0, 0, 0.42); }
.fl-inv { width: 46%; left: 8%; top: 2%; transform: rotate(-5deg); z-index: 2; }
.fl-std { width: 52%; right: 0; top: 0; transform: rotate(4deg); z-index: 1; }
.fl-env { width: 56%; right: 6%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.fl-rsvp { width: 22%; left: 0; bottom: -4%; transform: rotate(6deg); z-index: 4; border-radius: 16px; border: 5px solid #120b14; }

/* The set */
.set { padding: 72px 0 40px; }
.pieces { list-style: none; display: grid; grid-template-columns: 1.1fr 1.5fr 1fr 1.45fr 0.75fr; gap: 22px; align-items: end; }
.pieces img { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 16px 34px rgba(43, 27, 48, 0.18); }
.pieces li:last-child img { border-radius: 12px; border: 4px solid #120b14; }
.pieces span { display: block; font-size: 14px; color: var(--muted); margin-top: 14px; line-height: 1.4; }
.pieces b { display: block; font: 500 19px/1.2 var(--serif); color: var(--ink); }

/* How */
.how { padding: 64px 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.steps li { background: var(--paper-2); border-radius: 18px; padding: 28px 26px 30px; position: relative; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--plum); color: var(--gold); font: 500 21px/1 var(--serif); margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Themes */
.themes { padding: 72px 0; background: var(--plum); color: var(--paper); }
.themes .sub { color: rgba(251, 248, 246, 0.7); }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; align-items: start; }
.gallery a { display: block; transition: transform 0.25s; }
.gallery a:hover { transform: translateY(-6px) rotate(-1deg); }
.gallery img { box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45); }
.gallery h3 { margin: 18px 0 4px; font-style: italic; color: var(--gold); }
.gallery p { font-size: 15px; color: rgba(251, 248, 246, 0.74); line-height: 1.5; }

/* RSVP note */
.rsvp-note { padding: 80px 0; }
.rsvp-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.rsvp-grid img { border-radius: 26px; border: 8px solid #120b14; box-shadow: 0 30px 60px rgba(43, 27, 48, 0.3); transform: rotate(-3deg); }
.rsvp-grid p { max-width: 36em; margin-bottom: 14px; font-size: 18px; }

/* Examples */
.examples { padding: 72px 0; background: var(--paper-2); }
.ex-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ex-list li { background: var(--paper); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ex-list img { height: 220px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; box-shadow: 0 10px 24px rgba(43, 27, 48, 0.18); }
.ex-list p { color: var(--muted); font-size: 15px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.links a { color: var(--plum); font-weight: 600; font-size: 14px; }

/* Install */
.install { padding: 72px 0 80px; }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 22px; }
.box { border: 1px solid var(--line); border-radius: 18px; padding: 24px; min-width: 0; }
.box h3 { margin-bottom: 10px; font-size: 20px; }
.box p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
pre { background: var(--plum); color: var(--paper); border-radius: 12px; padding: 14px 16px; font: 14px/1.6 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Footer */
.foot { background: var(--plum); color: rgba(251, 248, 246, 0.8); padding: 48px 0 56px; font-size: 15px; }
.foot .kicker { color: var(--gold); margin-bottom: 12px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.foot .wordmark { color: var(--paper); margin-bottom: 12px; }
.more { list-style: none; display: grid; gap: 6px; }
.more a { color: var(--paper); font-weight: 600; }

/* 404 */
.lost { padding: 96px 0; min-height: 60vh; }
.lost h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 14px; }
.lost .lede { color: var(--muted); }
.lost .eyebrow { color: var(--muted); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .flatlay { max-width: 620px; width: 100%; margin: 0 auto; }
  .pieces { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .ex-list, .boxes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 14px; }
  .hero { padding: 48px 0 80px; }
  .pieces, .gallery { grid-template-columns: 1fr 1fr; align-items: start; }
  .steps, .ex-list, .boxes, .foot-grid { grid-template-columns: 1fr; }
  .rsvp-grid { grid-template-columns: 1fr; gap: 36px; }
  .rsvp-grid img { max-width: 240px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery a { transition: none; } }
