:root {
  --linen: #ECE4D8;
  --ivory: #FBF8F3;
  --ink: #2A231D;
  --muted: #5C4F43;
  --frame: #D6CCBF;
  --divider: #CFC5B8;
  --shadow: 0 18px 40px rgba(60, 45, 30, 0.22);
  --script: "Allison", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
}

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* the tilted strips poke out slightly on narrow phones */
}

a { color: var(--ink); }
a:hover { color: #000; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.script { font-family: var(--script); font-weight: 400; line-height: 1; }

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.label > span { white-space: nowrap; }

/* Header */

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.monogram { font-family: var(--script); font-size: 48px; line-height: 1; }

/* Hero */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 780px;
}
.greeting { margin: 0; font-size: 24px; font-style: italic; color: var(--muted); }
.greeting[hidden] { display: none; }
h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

/* Photobooth strips */

.strips {
  display: flex;
  flex-wrap: wrap; /* stacks on phones */
  justify-content: center;
  align-items: flex-start;
  gap: 48px 28px;
  padding: 12px 0;
}
.strip {
  width: 240px;
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.photo-strip {
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(-3deg);
}
.photo-strip img {
  display: block;
  width: 216px;
  height: 162px;
  object-fit: cover;
  background: var(--frame);
}
.photo-caption {
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.photo-caption .script { font-size: 42px; white-space: nowrap; }
.photo-caption .caps { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; }

.text-strip {
  height: 790px;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transform: rotate(2.5deg) translateY(18px);
}
.text-strip p { margin: 0; }
.getting-married { font-size: 44px; }
.names { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.names .name { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; }
.names .and { font-size: 17px; font-style: italic; }
.rule { width: 48px; height: 1px; background: var(--ink); }
.save-the-date { margin: 0; font-size: 92px; line-height: 0.85; }
.when { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.when .weekday { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); }
.when .date { font-size: 24px; font-weight: 600; letter-spacing: 0.1em; white-space: nowrap; }
.where { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 19px; line-height: 1.3; }
.to-follow { font-size: 17px; font-style: italic; color: var(--muted); }

/* Buttons */

.actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 29px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  transition: background-color 0.15s, color 0.15s;
}
.button-solid { background: var(--ink); color: var(--ivory); }
.button-solid:hover { background: #000; border-color: #000; color: var(--ivory); }
.button-outline { color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--ivory); }
.ics-note { margin: 0; font-size: 17px; font-style: italic; color: var(--muted); }
.ics-note a { color: var(--muted); }
.ics-note a:hover { color: var(--ink); }

/* Countdown */

.countdown {
  padding: 0 24px 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.countdown .days { font-size: clamp(96px, 26vw, 128px); font-weight: 500; line-height: 1; min-height: 1em; }
.countdown .script { font-size: clamp(42px, 12vw, 52px); }

/* Footer */

.site-footer {
  background: var(--ivory);
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.site-footer .script { font-size: 64px; white-space: nowrap; }
.site-footer .label { letter-spacing: 0.22em; line-height: 1.8; }

/* Phones */

@media (max-width: 560px) {
  .site-header { padding: 18px 16px; }
  .monogram { font-size: 40px; }
  .label { font-size: 12px; letter-spacing: 0.18em; }
  .hero { padding: 16px 16px 80px; gap: 40px; }
  .greeting { font-size: 21px; }
  .button { width: 100%; }
  .buttons { width: 100%; max-width: 320px; flex-direction: column; }
  .countdown { padding: 0 16px 80px; }
  .site-footer { padding: 48px 16px; }
  .site-footer .script { font-size: 54px; }
  .site-footer .label > span { display: block; }
  .site-footer .label > .sep { display: none; }
}
