/* ==========================================================================
   Nina & Yoav — guest stationery
   Set to match the printed celebration schedule: Pinyon Script for names,
   Cormorant Garamond for everything else, a timeline with circle nodes, and a
   pale-blue-to-peach wash over Jerusalem stone. Paper is light; so is this.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Pinyon+Script&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Frank+Ruhl+Libre:wght@400;500&display=swap");

:root {
  --gold:      #8a7340;   /* the script ink on the printed schedule */
  --gold-deep: #6f5b30;
  --ink:       #3b352c;
  --ink-soft:  #6b6356;
  --ink-faint: #9e9585;
  --line:      #cdbf9f;   /* the timeline */
  --line-soft: #e6ddcb;
  --paper:     #fbf8f2;
  --accept:    #5f7650;
  --decline:   #9a6d64;

  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --serif:  "Cormorant Garamond", "Frank Ruhl Libre", "Hoefler Text", Garamond, Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "liga", "kern", "onum";
  background: var(--paper) url("/stone.svg") center / cover fixed;
}
body.photo-stone { background-image: url("/stone.jpg"); }
/* the schedule's colour wash, laid over the wall so the stone is felt, not seen */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(214, 226, 238, .90) 0%,
    rgba(248, 245, 238, .93) 30%,
    rgba(250, 246, 239, .94) 62%,
    rgba(246, 232, 220, .92) 100%);
}
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }

.page { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; padding: 0 28px 90px; }

/* --- type primitives -------------------------------------------------- */
.script {
  font-family: var(--script); font-weight: 400; color: var(--gold);
  line-height: 1; letter-spacing: 0;
}
.caps {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  letter-spacing: .3em; font-size: 12.5px; color: var(--ink-soft);
}
.bsd { font-family: "Frank Ruhl Libre", serif; font-size: 13px; color: var(--ink-soft); }
.italic { font-style: italic; }
.soft { color: var(--ink-soft); }

/* --- masthead: as the top of the printed schedule -------------------- */
.masthead { text-align: center; padding: 54px 0 10px; }
.masthead .bsd { display: block; margin-bottom: 12px; }
.masthead .script { font-size: 64px; display: block; margin: 0 0 6px; }
.masthead .caps { display: block; font-size: 13px; letter-spacing: .38em; }
.masthead .ornament { display: block; margin: 22px auto 0; width: 64px; height: 1px; background: var(--line); }
@media (max-width: 440px) {
  .masthead .script { font-size: 52px; }
  .masthead .caps { font-size: 11.5px; letter-spacing: .3em; }
}

/* --- cover: the painting -----------------------------------------------
   The painting carries its own white circle. The names are placed inside it by
   the painting's measured geometry — centre 50% / 37.66%, diameter 34.32% of
   its width — and sized in container units, so they stay locked in the circle
   at every width. Nothing is drawn over the painted circle. */
.cover { position: relative; z-index: 1; overflow: hidden; }
.art {
  position: relative; container-type: inline-size;
  width: max(100vw, 760px); max-width: 1240px; margin-left: 50%; transform: translateX(-50%);
}
.art img { display: block; width: 100%; height: auto; }
.art::after {                              /* ease the painting down into the paper */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, rgba(250,246,239,0), rgba(250,246,239,.97));
}
.seal-text {
  position: absolute; left: 50%; top: 37.66%; width: 34.32%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.seal-text .bsd { font-size: clamp(11px, 1.45cqw, 17px); margin-bottom: .9cqw; }
.seal-text .script { font-size: clamp(34px, 5.05cqw, 66px); white-space: nowrap; }
.seal-text .rule { width: 4.2cqw; height: 1px; background: var(--line); margin: 1.5cqw auto 1.4cqw; }
.seal-text .caps { font-size: clamp(8.5px, 1.12cqw, 13px); letter-spacing: .26em;
                   white-space: nowrap; padding-left: .26em; }

/* without the painting: a wash of its sky and a drawn circle */
.cover.wash { padding: 60px 20px; min-height: 70vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 78% 96%, #f8d79a 0%, transparent 58%),
    radial-gradient(120% 96% at 20% 92%, #f2c6a6 0%, transparent 62%),
    linear-gradient(178deg, #a9c0e6 0%, #c0b2da 42%, #f2c6a6 74%, #f8d79a 100%); }
.cover.wash .seal-text { position: relative; left: auto; top: auto; transform: none;
  width: min(80vw, 320px); border-radius: 50%; background: rgba(255,254,251,.96); container-type: normal; }
.cover.wash .seal-text .script { font-size: 54px; }

/* --- a sheet of paper for forms -------------------------------------- */
.sheet {
  position: relative; z-index: 2; margin: -8vw auto 0; max-width: 460px;
  background: #fffdf9; padding: 40px 38px 34px; text-align: center;
  box-shadow: 0 1px 2px rgba(60, 48, 28, .06), 0 20px 50px -24px rgba(60, 48, 28, .30);
}
.sheet h2 {
  font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 8px;
}
.sheet .lede { font-style: italic; color: var(--ink-soft); font-size: 18px; margin: 0 0 28px; }
@media (max-width: 480px) { .sheet { padding: 34px 24px 28px; margin-left: 4px; margin-right: 4px; } }

/* --- inputs: underline only, like writing on a reply card ------------- */
.field { display: block; text-align: left; margin: 0 0 24px; }
.field span {
  display: block; font-weight: 500; font-size: 11.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px;
}
.field input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; padding: 8px 0 9px; font: inherit; font-size: 21px; color: var(--ink);
  transition: border-color .2s;
}
.field input::placeholder { color: #c4baa8; font-style: italic; }
.field input:focus { outline: 0; border-bottom-color: var(--gold); }
.code { text-align: center !important; font-size: 38px !important; letter-spacing: .5em !important;
        padding-left: .5em !important; font-weight: 500; }

.btn {
  display: inline-block; cursor: pointer; font-family: var(--serif); font-weight: 600;
  font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--gold); background: var(--gold); color: #fffdf8;
  border-radius: 0; transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn.full { width: 100%; }
.btn.quiet { background: transparent; color: var(--gold-deep); }
.btn.quiet:hover { background: var(--gold); color: #fff; }
.fine { font-size: 15.5px; font-style: italic; color: var(--ink-faint); margin: 20px 0 0; }
.fine a { border-bottom: 1px solid var(--line); }

.alert {
  text-align: left; font-size: 16.5px; font-style: italic; color: var(--decline);
  border-left: 2px solid var(--decline); padding: 2px 0 2px 14px; margin: 0 0 22px;
}
.alert.calm { color: var(--ink-soft); border-left-color: var(--line); }

/* --- greeting ---------------------------------------------------------- */
.greeting { text-align: center; margin: 26px 0 8px; }
.greeting .script { font-size: 46px; }
.greeting p { font-style: italic; color: var(--ink-soft); margin: 10px auto 0; max-width: 420px; font-size: 18.5px; }

/* --- the timeline ----------------------------------------------------- */
.timeline { position: relative; margin: 34px 0 0; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line);
}
.day { position: relative; margin: 0 0 42px; }
.day::before {                                    /* the node */
  content: ""; position: absolute; left: -36px; top: 5px; width: 13px; height: 13px;
  border-radius: 50%; border: 1px solid var(--gold); background: var(--paper);
}
.day-label {
  font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 16px;
}
.item { margin: 0 0 24px; }
.item:last-child { margin-bottom: 0; }
.item-title {
  font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: .07em;
  line-height: 1.25; color: var(--ink); margin: 0; display: inline;
}
.item-title a { color: inherit; }
.item-title a:hover { color: var(--gold-deep); }
.item-meta { font-style: italic; color: var(--ink-soft); font-size: 18px; margin: 4px 0 0; }
.item-note { font-style: italic; color: var(--gold-deep); font-size: 16.5px; margin: 6px 0 0; }
.item-more {
  display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}

.openhouse { font-style: italic; color: var(--gold-deep); font-size: 16.5px; margin: 6px 0 0; }

/* --- the wedding: breaks the timeline, as on the printed schedule ----- */
.feature {
  position: relative; margin: 8px -28px 50px; padding: 46px 28px 42px; text-align: center;
  background: rgba(255, 254, 250, .78);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.feature .caps { display: block; margin-bottom: 4px; }
.feature .hebdate { display: block; font-family: "Frank Ruhl Libre", serif; font-size: 14px;
                    color: var(--ink-soft); margin-bottom: 2px; }
.feature .script { font-size: clamp(50px, 14vw, 68px); display: block; margin: 8px 0 20px; }
.feature .script a { color: inherit; }
.feature .times { font-weight: 500; font-size: 13.5px; letter-spacing: .24em; text-transform: uppercase;
                  color: var(--ink); line-height: 2.1; }
.feature .venue { font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
                  color: var(--ink-soft); margin: 16px auto 0; line-height: 2; text-wrap: balance; }
.feature-reply .attend { justify-content: center; margin-top: 24px; }
.feature-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-top: 22px; }
.feature-links .item-more { margin-top: 0; }

/* --- a single event --------------------------------------------------- */
.back { display: inline-block; margin: 34px 0 0; font-weight: 500; font-size: 11.5px;
        letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); }
.back:hover { color: var(--gold-deep); }
.event-head { text-align: center; margin: 34px 0 34px; }
.event-head .caps { display: block; margin-bottom: 10px; }
.event-head .script { font-size: 54px; display: block; }
.event-head .lede { font-style: italic; color: var(--ink-soft); margin: 14px 0 0; font-size: 19px; }
.details { border-top: 1px solid var(--line-soft); margin: 0 0 36px; }
.detail { display: grid; grid-template-columns: 118px 1fr; gap: 18px; padding: 15px 0;
          border-bottom: 1px solid var(--line-soft); }
.detail dt { font-weight: 500; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
             color: var(--ink-faint); padding-top: 5px; }
.detail dd { margin: 0; }
.detail dd small { display: block; font-style: italic; color: var(--ink-soft); font-size: 16.5px; }
@media (max-width: 480px) { .detail { grid-template-columns: 1fr; gap: 2px; } }
.prose { font-size: 20px; line-height: 1.7; }
.reply-card {
  margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line-soft); text-align: center;
}
.reply-card .caps { display: block; margin-bottom: 4px; }
.reply-card .attend { justify-content: center; }
.reply-card:empty { display: none; }

.foot { text-align: center; margin-top: 64px; font-style: italic; font-size: 16px; color: var(--ink-faint); }
.foot .script { display: block; font-size: 30px; margin-bottom: 4px; }
.signout { display: block; margin-top: 10px; font-style: normal; font-weight: 500; font-size: 11px;
           letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); }

/* --- important links: two real buttons, hard to miss ------------------- */
.links {
  position: relative; z-index: 2; text-align: center; padding: 20px 20px 22px;
  background: rgba(255, 253, 249, .82); border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 10px 30px -26px rgba(70, 55, 30, .5);
}
.links-label {
  display: block; margin: 0 0 12px; font-weight: 600; font-size: 11px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--ink-soft);
}
.link-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; margin: 0 auto; }
.link-btns.n1 { grid-template-columns: 1fr; max-width: 220px; }
.link-btn {
  display: flex; align-items: center; justify-content: center; padding: 14px 10px; border-radius: 2px;
  background: var(--gold); color: #fffdf8; border: 1px solid var(--gold);
  font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 6px 16px -10px rgba(111, 91, 48, .7); transition: background .15s, box-shadow .15s, transform .15s;
}
.link-btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff;
                  box-shadow: 0 10px 22px -12px rgba(111, 91, 48, .8); transform: translateY(-1px); }
@media (max-width: 380px) { .link-btn { font-size: 11px; letter-spacing: .14em; } }

/* --- one tap: I'll be there ---------------------------------------------
   Anything you haven't said yes to steps back, so what you're coming to
   stands out and what you're not barely takes a line. */
.item { margin: 0 0 24px; transition: opacity .2s; }
.item[data-state="pending"] .item-title { color: var(--ink-soft); }
.item[data-state="pending"] .item-meta,
.item[data-state="pending"] .item-note { color: var(--ink-faint); }
.item[data-state="no"] { margin-bottom: 16px; }
.item[data-state="no"] .item-title { color: var(--ink-faint); font-size: 19px; font-weight: 500; }
.item[data-state="no"] .item-meta,
.item[data-state="no"] .item-body { display: none; }
.item[data-state="no"] .attend { margin-top: 2px; }
.item.is-saving, .feature.is-saving, .reply-card.is-saving { opacity: .55; pointer-events: none; }

.attend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.attend-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border-radius: 2px;
  font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 9px 16px 9px 13px; border: 1px solid var(--gold); background: rgba(255,253,249,.6); color: var(--gold-deep);
  transition: background .15s, color .15s, box-shadow .15s;
}
.attend-btn::before {
  content: ""; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; flex: none;
}
.attend-btn:hover { background: #fffdf8; box-shadow: 0 4px 14px -8px rgba(111, 91, 48, .6); }
.attend-btn[aria-pressed="true"] { background: var(--gold); color: #fffdf8; }
.attend-btn[aria-pressed="true"]::before {          /* a drawn tick, not a font glyph */
  width: 5px; height: 10px; border: 0; border-radius: 0; margin: -3px 3px 0 3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg);
}
.attend-btn[aria-pressed="true"]:hover { background: var(--gold-deep); }
.text-btn {
  background: none; border: 0; padding: 3px 0; cursor: pointer; font-family: var(--serif);
  font-style: italic; font-size: 16.5px; color: var(--ink-faint); border-bottom: 1px solid transparent;
}
.text-btn:hover { color: var(--ink); border-bottom-color: var(--line); }
.attend-state { font-style: italic; font-size: 16.5px; color: var(--decline); }
.party { display: inline-flex; align-items: baseline; gap: 7px; font-style: italic; color: var(--ink-soft); font-size: 16.5px; }
.party select {
  font: inherit; font-style: italic; color: var(--ink); background: transparent; cursor: pointer;
  border: 0; border-bottom: 1px solid var(--line); padding: 1px 16px 1px 2px;
}

/* --- after the wedding ----------------------------------------------- */
.stay-note { position: relative; z-index: 1; text-align: center; max-width: 450px; margin: -12px auto 44px; padding: 0 6px; }
.stay-note .caps { display: block; margin-bottom: 12px; color: var(--gold-deep); }
.stay-note p { font-style: italic; font-size: 19.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 .35em; }
.stay-note::after { content: ""; display: block; width: 46px; height: 1px; background: var(--line); margin: 24px auto 0; }

/* --- transportation -------------------------------------------------- */
.info { padding: 30px 0 18px; border-top: 1px solid var(--line-soft); }
.info:first-of-type { border-top: 0; padding-top: 4px; }
.info h2 { font-family: var(--serif); font-weight: 600; font-size: 13.5px; letter-spacing: .3em;
           text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; }
.info p { font-size: 20px; line-height: 1.65; }
.apps-label { margin: 24px 0 12px; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app { background: rgba(255, 253, 249, .82); border: 1px solid var(--line-soft); padding: 16px 18px 15px; }
.app-name { display: block; font-weight: 600; font-size: 22px; letter-spacing: .04em; color: var(--ink); }
.app-what { display: block; font-style: italic; font-size: 16.5px; line-height: 1.4; color: var(--ink-soft); margin-top: 3px; }
@media (max-width: 480px) { .apps { grid-template-columns: 1fr; } }

/* --- a change of place, e.g. "Back in Tel Aviv" --------------------------- */
.section-break {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 16px;
  margin: 6px 0 40px; color: var(--gold-deep);
}
.section-break::before, .section-break::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-break span {
  font-weight: 600; font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
}

/* --- the front door: sign-in inside the painted circle ------------------
   The circle is 34.32% of the painting's width, so it is roomy on a laptop
   and far too small on a phone. Below the breakpoint the circle carries a
   "Log in" link that jumps to the sheet; above it, the link swaps the
   circle's face for the form. The painting's geometry is never touched. */
.seal-face { display: flex; flex-direction: column; align-items: center;
             justify-content: center; width: 100%; }
.seal-enter {
  margin-top: 1.8cqw; font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(9px, 1.16cqw, 13.5px); letter-spacing: .28em;
  text-transform: uppercase; padding-left: .28em;
  color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: .35cqw;
  transition: color .2s, border-color .2s;
}
.seal-enter:hover, .seal-enter:focus-visible { color: var(--ink); border-color: var(--gold-deep); }

/* a circle's inscribed square is diameter/√2 ≈ 71%; stay inside it */
.seal-form { display: none; width: 62%; }
.seal-head { display: block; font-size: clamp(9px, 1.16cqw, 13.5px);
             letter-spacing: .28em; padding-left: .28em; margin-bottom: 1cqw;
             color: var(--gold-deep); }
.seal-form .field { margin-bottom: .75cqw; text-align: left; }
.seal-form .field span { font-size: clamp(8px, .95cqw, 11px); letter-spacing: .2em; }
.seal-form .field input { font-size: clamp(13px, 1.45cqw, 17px); padding: .5cqw 0; }
.seal-form .btn { margin-top: .4cqw; padding: .8cqw 0; font-size: clamp(9px, 1.1cqw, 13px); }
.seal-back {
  display: block; margin: .7cqw auto 0; background: none; border: 0; cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
  font-size: clamp(10px, 1.15cqw, 14px); color: var(--ink-soft);
}
.seal-back:hover { color: var(--ink); }

@media (min-width: 1060px) {
  .seal-text.is-open .seal-face { display: none; }
  .seal-text.is-open .seal-form { display: block; }
}

/* With the form in the circle, the sheet below is the fallback, not the
   headline — let the painting hold the page on a wide screen. */
@media (min-width: 1060px) {
  .cover + .page .sheet#signin { margin-top: -4vw; }
}
