/* upfront. Tokens from the Wedding Quotes DESIGN.md ("invitation suite"). */

:root {
  --paper: #F7F2EB;
  --card: #FFFDF9;
  --ink: #2B211C;
  --ink-soft: #6B5D54;
  --hairline: #E3D8CC;
  --mocha: #8A5F4B;
  --mocha-tint: #EFE3DA;
  --forest: #2F4A3A;
  --forest-tint: #E3EBE4;
  --ochre: #8A5F12;
  --ochre-tint: #F6ECD9;
  --stone: #8E8580;
  --stone-text: #6E6560;

  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1120px;
  --gutter: 20px;
  --space: 72px;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: 40px; margin-bottom: 16px; }
h2 { font-size: 30px; margin-bottom: 28px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--mocha); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

strong { font-weight: 600; }
.price, .num { font-variant-numeric: tabular-nums; }
.soft { color: var(--ink-soft); }
.small { font-size: 15px; }

/* Skip link */
.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 12px 16px; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 12px; }

/* Layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--space) 0 0; }
section:last-of-type { padding-bottom: var(--space); }
.measure { max-width: 640px; }

/* Header and footer */
.site-header { padding: 20px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  font-family: var(--display); font-size: 28px; line-height: 1;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--ink); }
.header-link { color: var(--ink); font-size: 16px; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
  color: var(--ink-soft); font-size: 15px;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.site-footer .wordmark { font-size: 20px; }
.site-footer a { color: var(--ink-soft); }
.site-footer .sep { color: var(--hairline); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  width: 100%;
  white-space: nowrap;
}
.btn--primary { background: var(--mocha); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }

.actions { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 14px; }
.inline-link { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; min-height: 48px; }
.fine { font-size: 15px; color: var(--ink-soft); }

/* Hero */
.hero { padding-top: 32px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 18px; max-width: 520px; }
.shot-phone {
  margin-top: 40px;
  width: 100%; max-width: 340px;
  height: 520px; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 48px -24px rgba(43, 33, 28, 0.25);
}
.shot-phone img { width: 100%; height: auto; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; }
.steps .n {
  font-family: var(--display); font-size: 30px; line-height: 1; color: var(--ink);
  padding-top: 2px; font-variant-numeric: lining-nums;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }

/* Comparison table (the brief's example) */
.compare { width: 100%; border-collapse: collapse; }
.compare caption {
  caption-side: bottom; text-align: left;
  padding: 14px 0 0; color: var(--ink-soft); font-size: 15px;
}
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--hairline); }
.compare thead th { border-top: 0; padding-top: 0; font-weight: 500; color: var(--ink-soft); font-size: 15px; }
.compare tbody th { font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 1px solid var(--hairline); }
.compare .total { font-family: var(--display); font-size: 26px; line-height: 1; display: block; white-space: nowrap; }
.compare .total--quoted { color: var(--forest); }
.compare .total--estimate { color: var(--ochre); }
.compare .total--none { font-family: var(--body); font-size: 17px; color: var(--stone-text); }
.compare .tag { display: block; font-size: 15px; color: var(--ink-soft); margin-top: 4px; }
.avail { font-weight: 600; }
.avail--yes { color: var(--forest); }
.avail--no { color: var(--stone-text); }
.flag { color: var(--ochre); }

@media (max-width: 767px) {
  .shot-wide { display: none; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare caption { display: block; }
  .compare tr { border-top: 1px solid var(--hairline); padding: 16px 0; }
  .compare tbody tr:last-child { border-bottom: 1px solid var(--hairline); }
  .compare th, .compare td { border: 0 !important; padding: 0 0 8px; }
  .compare tbody th { font-size: 18px; }
  .compare td:empty { display: none; }
  .compare td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-soft); }
  .compare td.total-cell::before { display: block; margin-bottom: 2px; }
}

.shot-wide {
  margin-top: 36px;
  border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden;
  background: var(--paper);
}
.shot-wide img { width: 100%; }
.looks-lines { margin-top: 20px; }
.looks-lines p { color: var(--ink-soft); font-size: 15px; margin: 0 0 6px; }

/* Sound familiar */
.familiar-list { list-style: none; margin: 0; padding: 0; font-size: 20px; line-height: 1.35; }
.familiar-list li { padding: 0 0 14px; }
.familiar-close { font-size: 20px; font-weight: 600; margin-top: 24px; }

/* Pricing */
.price-big { font-family: var(--display); font-size: 72px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 8px; }
.price-note { color: var(--ink-soft); }
.includes { list-style: none; margin: 0; padding: 0; }
.includes li { padding: 12px 0; border-top: 1px solid var(--hairline); }
.includes li:last-child { border-bottom: 1px solid var(--hairline); }
.promise { margin-top: 20px; }
.promise p { margin-bottom: 12px; }
.pricing .actions { margin-top: 24px; }

/* Email */
.mail {
  background: var(--card);
  border: 1px solid var(--hairline); border-radius: 8px;
  margin-top: 24px;
}
.mail-body { padding: 22px 22px 8px; }
.mail pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.mail-foot { padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.copy-status { font-size: 15px; color: var(--forest); min-height: 22px; }
.after-mail { margin-top: 20px; }
.after-mail a { margin-left: 6px; }
.shot-vendor {
  margin-top: 36px;
  border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden;
  max-width: 360px;
}
.shot-vendor figcaption { font-size: 15px; color: var(--ink-soft); padding: 12px 16px; border-top: 1px solid var(--hairline); background: var(--card); }

/* Bio */
.bio { display: grid; gap: 20px; }
.portrait {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--mocha-tint); border: 1px solid var(--hairline); overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio p { max-width: 560px; }

/* FAQ */
.faq { display: grid; gap: 28px; }
.faq h3 { margin-bottom: 6px; }
.faq p { color: var(--ink-soft); }

/* Privacy and 404 */
.prose h2 { font-family: var(--body); font-size: 18px; font-weight: 600; letter-spacing: 0; margin: 32px 0 6px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.notfound .glyph { font-family: var(--display); font-size: 96px; line-height: 1; margin-bottom: 16px; }
.notfound .btn { width: auto; margin-top: 20px; }

/* Tablet */
@media (min-width: 640px) {
  .btn { width: auto; }
  .actions { flex-direction: row; align-items: center; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .faq { grid-template-columns: 1fr 1fr; gap: 36px 48px; }
  .mail-foot { flex-direction: row; align-items: center; gap: 16px; }
  .bio { grid-template-columns: 96px 1fr; align-items: start; }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --gutter: 32px; --space: 112px; }
  h1 { font-size: 64px; }
  h2 { font-size: 40px; margin-bottom: 36px; }
  .hero { padding-top: 56px; }
  .hero .container { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
  .hero .lede { font-size: 19px; }
  .shot-phone { margin: 0 0 0 auto; max-width: 380px; height: 640px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; }
  .two-col { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .two-col h2 { margin-bottom: 0; }
  .mail-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .shot-vendor { margin-top: 24px; margin-left: auto; }
  .pricing .price-big { font-size: 88px; }
  .compare th, .compare td { padding: 16px 24px 16px 0; }
}
