/* The look, for the small pages a link lands on: a household's invitation
   (r.html), joining a wedding (join.html), and a co-host's code
   (cohost.html). The same one as the front page, the hosts' pages, and the
   wedding in a browser: set in type and hairlines rather than rounded
   boxes, with a card only where something is a card. It is loaded after
   styles.css and each page's own styles, so it has the last word. */

h1 { font-weight: 400; font-size: clamp(40px, 9vw, 64px); letter-spacing: -.022em; line-height: 1.02; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
.eyebrow { font-size: 12px; letter-spacing: .2em; }
.lede { font-size: 19px; }

/* Buttons are pills. */
.btn, button, .button { border-radius: 999px; }
.btn.quiet { background: none; border: 1.5px solid #cfc4b3; }
.btn.quiet:hover { border-color: var(--ink); }

/* The card that holds a code is the card at a guest's place: cream, with a hairline inside its edge. */
.card { position: relative; background: #fffdf8; border-radius: 0; padding: clamp(30px, 6vw, 44px) clamp(24px, 6vw, 40px); text-align: center; align-items: center; box-shadow: 0 1px 0 #e9e0d0, 0 26px 50px -34px rgba(31,27,22,.45); }
.card::before { content: ''; position: absolute; inset: 10px; border: 1px solid #d9c9ae; pointer-events: none; }
.card::after { content: ''; position: absolute; inset: 14px; border: 1px solid #ece2d0; pointer-events: none; }
.card > * { position: relative; z-index: 1; }
.card .btn { align-self: center; }
.code { font-weight: 400; letter-spacing: .2em; margin-right: -.2em; }

/* What isn't a card is a passage under a rule. */
.card.plain { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: 20px 0 0; text-align: left; align-items: stretch; }
.card.plain::before, .card.plain::after { content: none; }
.card.plain .btn { align-self: flex-start; }

/* Steps are numbered in type. */
.steps { list-style: none; padding: 0; counter-reset: step; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 72px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 4px; }
.steps li::before { content: 'No. ' counter(step); position: absolute; left: 0; font: italic 300 16px/1.6 var(--display); color: var(--accent); white-space: nowrap; }

/* A code typed on a ruled line, as on the front page. */
.seat-line { width: 100%; max-width: 9.2em; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: none; padding: 2px 0 6px .3em; font: 400 clamp(32px, 9vw, 44px)/1 var(--display); letter-spacing: .3em; text-align: center; text-transform: uppercase; color: var(--deep); }
.seat-line:focus-visible { outline: none; border-bottom-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }

footer { border-top-color: var(--line); }

/* ---- A household's invitation (r.html) ---- */
#hello h1 { font-size: clamp(34px, 8vw, 52px); }
.panel { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 22px 0 0; }
/* Their answer, once given, is a card of its own. */
#done.panel { position: relative; background: #fffdf8; border: 0; padding: clamp(30px, 6vw, 44px) clamp(24px, 6vw, 40px); text-align: center; box-shadow: 0 1px 0 #e9e0d0, 0 26px 50px -34px rgba(31,27,22,.45); }
#done.panel::before { content: ''; position: absolute; inset: 10px; border: 1px solid #d9c9ae; pointer-events: none; }
#done.panel > * { position: relative; }
#done.panel h2 { font-size: clamp(30px, 7vw, 42px); font-style: italic; font-weight: 300; color: var(--accent); }
#done.panel button { width: auto; align-self: center; padding: 12px 24px; }
legend { font-family: var(--display); font-weight: 400; font-size: 21px; margin-bottom: 10px; }
label.choice { border-radius: 2px; background: #fffdf8; }
input[type=text], select, textarea { border-radius: 8px; }
.panel button, .panel .button { border-radius: 999px; }
#card, #back { box-shadow: 0 1px 0 #e9e0d0, 0 30px 54px -30px rgba(31,27,22,.5); border: 0; }
.seat-line::placeholder { color: #d8cbb8; }
.btn { text-decoration: none; }

/* ---- The other small pages: a new address for the couple (a.html), a shared invitation (i.html),
   the page emailed links open (account.html), unsubscribing, and the privacy and terms pages. ---- */
h1 + .lede, h1 + p { margin-top: 4px; }
.cta h1 { font-size: clamp(32px, 8vw, 48px); }
.button { border-radius: 999px; }
a.button, a.btn { text-decoration: none; }
.input-row input { border-radius: 8px; }
/* Long reading: headings in the lighter serif, sections parted by rules. */
.legal h1 { font-size: clamp(40px, 8vw, 60px); }
.legal h2 { font-weight: 400; font-size: 27px; letter-spacing: -.015em; margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal th { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
