@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #F7F2E9;
  --paper-shade: #eee5d7;
  --card: #fffaf1;
  --ink: #292421;
  --wine: #6F1D2C;
  --wine-hover: #551421;
  --muted: #75685d;
  --gold: #B79A5B;
  --line: #d6c6a5;
  --line-soft: #e8ddc8;
  --selection: #ead8d7;
  --shadow: #49301d10;
  --radius-card: 4px;
  --radius-control: 3px;
  --font-display: Georgia, "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: radial-gradient(ellipse at 25% 15%, var(--card) 0, transparent 65%),
    linear-gradient(145deg, var(--paper), var(--paper-shade));
}
main { width: min(100%, 560px); }
p { margin: 0; }
a { color: inherit; }
svg { display: block; }
::selection { background: var(--selection); }
.invitation {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 39px 42px 40px;
  text-align: center;
  background: var(--card);
  box-shadow: 0 18px 60px var(--shadow);
}
.invitation::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 1px;
  pointer-events: none;
}
.invitation-inner { position: relative; }
.heritage-ornament { width: 145px; height: 42px; margin: 0 auto 23px; }
.ornament-gold { color: var(--gold); }
.ornament-wine { color: var(--wine); }
.save-the-date {
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 25px;
}
h1 {
  font-family: var(--font-display);
  color: var(--wine);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.12;
  letter-spacing: -.055em;
  margin: 0;
}
.name-second { white-space: nowrap; }
h1 i { color: var(--wine); font-weight: 400; }
.occasion { margin-top: 33px; }
.weekday {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.date {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.02em;
}
.location { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.personal-note {
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  padding-top: 24px;
  margin: 27px auto;
  max-width: 330px;
  border-top: 1px solid var(--line);
}
.calendar { width: min(100%, 330px); margin: 0 auto; text-align: left; }
.calendar summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  cursor: pointer;
  min-height: 54px;
  padding: 16px;
  border: 1px solid var(--wine);
  border-radius: var(--radius-control);
  background: var(--wine);
  color: var(--card);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .025em;
  -webkit-tap-highlight-color: transparent;
}
.calendar summary::-webkit-details-marker { display: none; }
.calendar summary:hover { background: var(--wine-hover); }
.calendar summary > svg {
  height: 18px;
  width: 18px;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.calendar summary > .chevron { width: 16px; height: 16px; margin-left: 4px; }
.calendar[open] summary > .chevron { transform: rotate(180deg); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.calendar-options { margin-top: 12px; }
.calendar-label {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  padding: 5px 0 12px;
}
.calendar-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 12px 15px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
.calendar-options a:hover { background: var(--paper); }
.calendar-options a > span[aria-hidden] { color: var(--muted); font-size: 16px; }
.calendar-help { font-size: 10px; line-height: 1.6; text-align: center; color: var(--muted); margin-top: 10px; }
.invitation-note { font-size: 10px; letter-spacing: .06em; color: var(--muted); margin-top: 23px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  body { padding: 20px 16px; }
  .invitation { padding: 30px 26px 33px; }
  h1 { font-size: clamp(39px, 11.4vw, 60px); }
  .date { font-size: 26px; }
  .personal-note { font-size: 16px; }
  .heritage-ornament { width: 130px; height: 38px; margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Chosen Heritage Frame: arched stationery, elephant seal, lotus corners. */
body { background: #eee6d8; padding: 50px 28px; }
main { width: min(100%, 490px); }
.invitation { border-color: var(--gold); border-radius: 250px 250px 6px 6px; padding: 58px 42px 43px; }
.invitation::before { inset: 9px; border-color: var(--line); border-radius: 240px 240px 0 0; }
.heritage-ornament { width: 90px; height: auto; margin: 0 auto 25px; color: var(--wine); }
.heritage-ornament svg { width: 100%; height: auto; }
.gold-stroke { stroke: var(--gold); }
h1 { font-size: 55px; }
.personal-note { border: 0; padding-top: 0; margin: 29px auto; }
.personal-note::before { content: ''; display: block; width: 64px; height: 1px; background: var(--gold); margin: 0 auto 29px; }
.calendar { max-width: 280px; }
.lotus-corner { position: absolute; width: 49px; height: 40px; bottom: 13px; left: 15px; color: var(--wine); opacity: .65; pointer-events: none; }
.lotus-corner.right { left: auto; right: 15px; }
@media(max-width: 520px) {
  body { padding: 28px 18px; }
  .invitation { padding: 48px 25px 45px; border-radius: 190px 190px 5px 5px; }
  h1 { font-size: clamp(35px, 11vw, 43px); }
  .personal-note { font-size: 15px; }
  .lotus-corner { width: 38px; height: 31px; bottom: 11px; left: 12px; }
  .lotus-corner.right { right: 12px; }
}

.privacy-note { max-width: 280px; margin: 18px auto 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }
