/* A single italic type family and the couple's original watercolor. */
:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #3f503f;
  --muted: #596451;
  --line: #87957b;
  --serif: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.invitation {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
}
.invitation::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 20px;
  border: 1px solid #87957b45;
  pointer-events: none;
}
.artwork {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 39%;
  pointer-events: none;
}
.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.artwork::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper), #faf8f2a6 13%, #faf8f200 38%);
}
.message {
  width: 54%;
  min-height: 100svh;
  padding: 54px 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.opening, .details { width: 100%; max-width: 560px; }
p { margin: 0; }
.eyebrow { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.2; }
.ornament { display: block; margin: 14px auto 12px; font-size: 26px; line-height: 1; color: var(--line); }
.intro { color: var(--muted); font-size: 19px; text-wrap: balance; }
h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0 0;
  font-size: clamp(64px, 6.5vw, 104px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.045em;
}
h1 .ampersand {
  margin: 8px 0 9px;
  color: var(--muted);
  font-size: .43em;
  line-height: .85;
  letter-spacing: 0;
}
.getting-married { margin-top: 22px; font-size: 24px; }
.date { margin-top: 28px; }
.weekday { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 19px; }
.weekday::before, .weekday::after { content: ''; width: 34px; height: 1px; background: #87957b70; }
.date time { display: block; margin-top: 4px; font-size: 37px; line-height: 1.2; }
.date time span { display: block; margin-top: 4px; font-size: 24px; }
.invitation-copy { margin-top: 22px; font-size: 21px; line-height: 1.4; text-wrap: balance; }
.calendar-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  margin-top: 23px;
  padding: 11px 24px;
  border: 1px solid #87957b9c;
  border-radius: 40px;
  background: #faf8f2b3;
  font-size: 20px;
  line-height: 1.3;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.calendar-button svg { width: 19px; height: 19px; flex-shrink: 0; }
.calendar-status { max-width: 31ch; margin-inline: auto; font-size: 17px; color: var(--muted); }
.calendar-status:not(:empty) { margin-top: 12px; }
.closing { margin-top: 28px; color: var(--muted); }
.small-rule { display: block; width: 26px; height: 1px; margin: 0 auto 16px; background: #87957b70; }
.closing p { font-size: 17px; line-height: 1.5; text-wrap: balance; }
.footer-mark { display: block; margin-top: 15px; font-size: 22px; }
.footer-mark span { font-size: 16px; }
@media (hover: hover) {
  .calendar-button:hover { background: #eaf0e3; border-color: var(--muted); }
}
@media (min-width: 761px) and (min-height: 950px) {
  .message { padding-block: 48px; }
  .ornament { margin-block: 18px; }
  h1 { margin-top: 30px; }
  .date { margin-top: 38px; }
  .closing { margin-top: 38px; }
}
@media (min-width: 761px) and (max-height: 900px) {
  .message { padding-block: 36px 26px; }
  .ornament { margin-block: 10px; }
  h1 { margin-top: 18px; font-size: clamp(60px, 5vw, 76px); }
  .getting-married { margin-top: 16px; font-size: 22px; }
  .date { margin-top: 20px; }
  .date time { font-size: 34px; }
  .invitation-copy { margin-top: 18px; font-size: 20px; }
  .calendar-button { margin-top: 18px; }
  .closing { margin-top: 20px; }
  .footer-mark { margin-top: 10px; }
}
/* On portrait screens, the sky holds the names and the facade stays visible. */
@media (max-width: 760px) {
  .invitation::after { inset: 12px; }
  .artwork { inset: 145px 0 auto; height: max(850px, 180vw); }
  .artwork img { object-fit: cover; object-position: center top; }
  .artwork::after {
    background: linear-gradient(180deg, var(--paper), #faf8f250 12%, transparent 27%, transparent 63%, var(--paper) 96%);
  }
  .message { width: 100%; min-height: 100svh; padding: 42px 25px 35px; }
  .eyebrow { font-size: 32px; }
  .ornament { margin-block: 13px; font-size: 24px; }
  .intro { font-size: 18px; }
  h1 { margin-top: 22px; font-size: clamp(62px, 12vw, 86px); }
  h1 .ampersand { margin-block: 7px; }
  .getting-married { margin-top: 17px; font-size: 23px; }
  .details { margin-top: max(400px, calc(110vw - 100px)); }
  .date { margin-top: 0; }
  .date time { font-size: 38px; }
  .invitation-copy { margin-top: 22px; font-size: 21px; }
  .closing { margin-top: 28px; }
}
@media (max-width: 360px) {
  .message { padding-inline: 24px; }
  .intro { font-size: 17px; }
  h1 { font-size: 59px; }
  .calendar-button { padding-inline: 18px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .calendar-button { transition: none; }
}
