@font-face {
  font-family: 'Pinyon Script';
  src: url('/assets/pinyon-script.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('/assets/caveat.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #f8f5eb;
  --ivory: #eeebdf;
  --ink: #30312d;
  --sage: #4d7167;
  --sage-light: #e9eddf;
  --muted: #6d7066;
  --rust: #5f7b8d;
  --line: #dcd9cc;
  --white: #fcfaf3;
  --script: 'Pinyon Script', Georgia, serif;
  --hand: 'Caveat', Georgia, serif;
}
body { background: var(--paper); }
.doodle { display: block; fill: none; flex-shrink: 0; pointer-events: none; }
.site-header { background: transparent; }
.demo-bar { background: #eae6dba8; }
.header-inner { padding-block: 24px; }
.brand > span:last-child { font-family: var(--script); font-size: 33px; line-height: 1; letter-spacing: 0; }
.brand small { font-family: var(--sans); font-size: 9px; margin-top: 6px; letter-spacing: .12em; }
.button { border-radius: 3px; }
.button:hover { transform: none; }
.button.secondary { border-color: #aeb5a5; }
.text-link { border-bottom-color: #a9ae99; }
.eyebrow { color: #697561; }
.page-intro { padding-top: 50px; padding-bottom: 40px; }
.page-intro h1 { font-size: clamp(38px, 4.2vw, 54px); margin-top: 10px; line-height: 1.2; }
.page-intro > p { max-width: 610px; font-size: 14px; }

/* The invitation's lettering, drawings and date remain the homepage's identity. */
.invitation-hero { position: relative; padding-top: 28px; padding-bottom: 46px; }
.invitation-copy { position: relative; max-width: 625px; margin: 0 auto; text-align: center; z-index: 1; }
.invitation-copy > .eyebrow { justify-content: center; font-size: 10px; letter-spacing: .15em; }
.hero-puzzle { width: 64px; height: 58px; margin: 0 auto 12px; opacity: .9; }
.invitation-copy h1 { font-family: var(--script); font-weight: 400; font-size: 110px; line-height: 1.1; letter-spacing: 0; margin: 14px 0 8px; color: #282b27; }
.invitation-copy .couple-names { font-size: 18px; margin: 8px 0 24px; color: #484a41; }
.sketch-date { display: block; }
.date-parts { display: inline-flex; align-items: flex-start; justify-content: center; gap: 9px; }
.date-piece > span, .date-separator { font: italic 59px/1.13 var(--serif); letter-spacing: .01em; color: #34372f; }
.date-piece small { display: flex; flex-direction: column; align-items: center; font: 19px/.9 var(--hand); color: #777b69; height: 46px; margin-top: 2px; }
.date-piece small > span { font-size: 26px; transform: rotate(9deg); margin-bottom: 1px; }
.date-piece:last-child small { transform: rotate(7deg); }
.prime-equation { display: block; font: 19px var(--hand); letter-spacing: .04em; color: #727769; margin: 0 auto 20px; }
.invitation-copy .hero-intro { font-size: 14px; line-height: 1.8; margin: 0 auto; max-width: 455px; }
.invitation-copy .hero-actions { justify-content: center; gap: 26px; margin: 24px 0 0; }
.hero-doodles { position: absolute; inset: 0; pointer-events: none; }
.hero-doodles .doodle { position: absolute; opacity: .75; }
.hero-birds { width: 218px; height: 164px; top: 235px; left: 18px; transform: rotate(-9deg); }
.hero-dice { width: 140px; height: 126px; left: 94px; top: 38px; transform: rotate(-8deg); }
.hero-shapes { width: 166px; height: 150px; right: 65px; top: 42px; transform: rotate(7deg); }
.hero-steps { width: 190px; height: 143px; right: 22px; top: 270px; transform: rotate(-21deg); opacity: .55 !important; }
.hero-yarn { width: 120px; height: 108px; right: 126px; bottom: 24px; transform: rotate(8deg); }
.hero-books { width: 155px; height: 116px; left: 95px; bottom: 26px; transform: rotate(-8deg); }
.home-facts { grid-template-columns: 1.2fr 1fr; padding-block: 24px; gap: 40px; }
.facts-strip { background: #eeeddf; }
.home-facts strong { display: block; font-size: 13px; }
.fact-detail { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.home-details { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; padding-top: 65px; padding-bottom: 70px; align-items: start; }
.home-links h2 { font-size: 32px; margin-bottom: 24px; }
.home-links > a { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.home-links > a:hover { color: var(--sage); }
.invitation-photo { margin: 0; }
.invitation-photo img { width: 100%; height: auto; max-height: 430px; object-fit: contain; border: 1px solid var(--line); }
.invitation-photo figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* Guest pages use plain headings and only the content needed for planning. */
.gifts-intro { max-width: 850px; padding-top: 0; padding-bottom: 50px; }
.gifts-intro p { font-size: 14px; line-height: 1.9; }
.gift-grid { grid-template-columns: repeat(2, 1fr); }
.gift-card { background: transparent; }
.gift-card-body { padding: 28px; }
.gift-card h3 { font-size: 26px; }
.gift-card p { font-size: 13px; }
.gift-card-body .status-pill { font-size: 10px; }
.gift-card .button { font-size: 12px; }
.gift-card-action { min-height: 0; }
.team-list { max-width: 850px; padding-bottom: 70px; }
.team-list article { border-top: 1px solid var(--line); padding: 26px 0; }
.team-list h2 { font-size: 28px; margin-bottom: 8px; line-height: 1.2; }
.team-list p { font-size: 14px; }
.team-role { color: var(--ink); }
.team-contact-note { border-top: 1px solid var(--line); padding-top: 26px; }
.team-contact-note .text-link { display: table; margin-top: 15px; }
.day-aside .big-date { font-style: italic; }
.timeline-dot { background: #e8ecde; border-color: #cdd5bf; }
.form-section-heading > span { font-family: var(--sans); font-size: 14px; font-style: normal; padding-top: 7px; color: var(--muted); }
.rsvp-form, .admin-panel { background: #fdfbf5; }
.soft-note, .rsvp-note, .stat { background: #eeeddf; }
.mini-cta, .parking-note { background: #e9eadb; }
.auth-shell { display: block; max-width: 470px; width: calc(100% - 48px); margin: 55px auto 70px; background: var(--white); }
.auth-content { padding: 35px; }
.auth-content h1 { font-size: 36px; line-height: 1.2; margin: 20px 0; }
.auth-content > p { font-size: 13px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0; font-size: 12px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .hero-dice { width: 110px; height: 99px; left: 45px; }
  .hero-shapes { width: 130px; height: 117px; right: 35px; }
  .hero-birds { width: 160px; height: 120px; left: 12px; }
  .hero-steps { width: 145px; height: 109px; right: 12px; }
  .hero-books { width: 120px; height: 90px; left: 45px; }
  .hero-yarn { width: 95px; height: 86px; right: 45px; }
  .home-details { gap: 55px; }
}
@media (max-width: 900px) {
  .hero-birds, .hero-steps, .hero-books, .hero-yarn { display: none; }
  .hero-dice { width: 105px; height: 95px; left: 30px; top: 20px; }
  .hero-shapes { width: 110px; height: 99px; right: 25px; top: 20px; }
  .invitation-copy h1 { font-size: 95px; }
}
@media (max-width: 760px) {
  .header-inner { padding-block: 19px; }
  .brand > span:last-child { font-size: 30px; }
  .brand small { font-size: 8px; }
  .invitation-hero { padding-top: 26px; padding-bottom: 35px; }
  .invitation-copy { max-width: 515px; }
  .hero-puzzle { width: 58px; height: 52px; margin-bottom: 15px; }
  .invitation-copy h1 { font-size: 86px; margin-top: 17px; }
  .invitation-copy .couple-names { font-size: 17px; margin-bottom: 23px; }
  .date-piece > span, .date-separator { font-size: 53px; }
  .date-parts { gap: 7px; }
  .date-piece small { font-size: 18px; height: 43px; }
  .prime-equation { font-size: 18px; margin-bottom: 22px; }
  .invitation-copy .hero-intro { max-width: 370px; font-size: 14px; }
  .invitation-copy .hero-actions { margin-top: 23px; }
  .hero-dice { left: 20px; width: 90px; height: 81px; }
  .hero-shapes { right: 17px; width: 95px; height: 86px; }
  .home-facts { grid-template-columns: 1fr; gap: 24px; }
  .home-facts > div + div { border: 0; padding-left: 0; }
  .home-details { grid-template-columns: 1fr; gap: 38px; padding-top: 40px; padding-bottom: 45px; }
  .home-links h2 { font-size: 29px; margin-bottom: 16px; }
  .invitation-photo { max-width: 500px; }
  .page-intro { padding-top: 35px; padding-bottom: 30px; }
  .page-intro h1 { font-size: 38px; }
  .gift-grid { grid-template-columns: 1fr; }
  .gifts-intro { padding-bottom: 32px; }
  .team-list { padding-bottom: 45px; }
  .team-list h2 { font-size: 25px; }
  .day-aside { display: block; }
  .day-aside > .text-link { margin-top: 20px; }
  .auth-shell { margin-top: 30px; margin-bottom: 45px; }
  .auth-content { padding: 27px; }
  .auth-content h1 { font-size: 32px; }
  .site-footer { flex-wrap: wrap; justify-content: flex-start; gap: 12px 25px; font-size: 11px; }
  .site-footer > span:last-child { flex-basis: 100%; }
}
@media (max-width: 440px) {
  .invitation-copy h1 { font-size: clamp(56px, 16vw, 70px); }
  .invitation-copy .couple-names { font-size: 16px; }
  .invitation-copy > .eyebrow { font-size: 9px; }
  .hero-dice { width: 70px; height: 63px; left: 15px; top: 23px; }
  .hero-shapes { width: 78px; height: 70px; right: 11px; top: 23px; }
  .date-piece > span, .date-separator { font-size: 48px; }
  .date-parts { gap: 6px; }
  .date-piece small { font-size: 17px; height: 41px; }
  .prime-equation { font-size: 17px; }
  .invitation-copy .hero-intro { max-width: 305px; }
  .invitation-copy .hero-actions { flex-direction: column; gap: 16px; }
  .invitation-copy .hero-actions .button { min-width: 205px; }
}
@media (max-width: 360px) {
  .invitation-copy .couple-names { font-size: 14px; }
  .date-piece > span, .date-separator { font-size: 43px; }
  .hero-dice { width: 60px; left: 10px; }
  .hero-shapes { width: 65px; right: 8px; }
  .brand > span:last-child { font-size: 27px; }
  .brand small { font-size: 7px; }
}
