/* Stirloom storefront. Mobile first, system fonts, no external requests. */
:root {
  --paper: #fbf7ef;
  --paper-2: #f3eadb;
  --card: #fffdf8;
  --ink: #2b2118;
  --ink-2: #5f5042;
  --line: #e2d5bf;
  --accent: #9c3b25;
  --accent-2: #7f2f1d;
  --sage: #4f6a49;
  --focus: #1a5fb4;
  --ok: #2f6b3a;
  --warn-bg: #fff3d6;
  --warn-ink: #6b4a00;
  --radius: 12px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Bradley Hand", "Segoe Print", Noteworthy, "Chalkboard SE", cursive;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
/* `img { display: block }` beat the hidden attribute: the join page showed empty "Preview of the
   card photo" boxes before a file was chosen. */
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.wordmark { font: 600 1.45rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.wordmark span { color: var(--accent); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover { background: var(--paper-2); }
.site-footer { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer a { color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--paper-2); color: var(--accent-2); }
.btn.block { width: 100%; }
.pill { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-weight: 600; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; gap: 32px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.art { position: relative; min-height: 400px; max-width: 460px; margin: 0 auto; width: 100%; }
.art .page {
  position: absolute; right: 0; top: 0; width: 74%; height: 320px; background: var(--card);
  border: 1px solid var(--line); border-radius: 4px; padding: 22px 20px; box-shadow: 0 10px 30px rgba(60, 40, 20, .12);
  font: .78rem/1.45 var(--serif); color: var(--ink);
}
.art .page h3 { font-size: 1.05rem; margin: 0 0 4px; }
.art .page .meta { color: var(--ink-2); font-style: italic; margin-bottom: 8px; }
.art .page ul { padding-left: 1.1em; margin: 0 0 8px; }
.art .card {
  position: absolute; left: 0; top: 226px; width: 60%; aspect-ratio: 5 / 3; transform: rotate(-4deg);
  background: repeating-linear-gradient(#fffef9 0 21px, #c9dbe8 21px 22px); border-top: 26px solid #fffef9;
  box-shadow: 0 10px 24px rgba(60, 40, 20, .18); border-radius: 3px; padding: 4px 14px;
  font: 1rem/22px var(--hand); color: #26345c;
}
.art .card::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: #d9787a; }
.art .card b { position: absolute; top: -24px; left: 14px; font-weight: 400; }

/* Sections */
section { padding: 40px 0; }
section.alt { background: var(--paper-2); }
.steps { display: grid; gap: 16px; counter-reset: step; padding: 0; list-style: none; margin: 24px 0 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
.features { columns: 1; padding-left: 1.2em; }
.features li { margin-bottom: 6px; break-inside: avoid; }
.spreads { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
.spreads figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.spreads .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px; }
.spreads figcaption { font-size: .85rem; color: var(--ink-2); padding: 6px 4px 0; }

/* Price table */
.prices { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.prices th, .prices td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices thead th { background: var(--paper-2); font-weight: 600; }
.prices th .small { font-weight: 400; }
.prices td.num, .prices th.num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }

/* Notices */
.notice { border-radius: var(--radius); padding: 14px 16px; background: var(--card); border: 1px solid var(--line); margin: 16px 0; }
.notice.holiday { border-left: 6px solid var(--sage); }
.notice.offer { border-left: 6px solid var(--accent); }
.notice.offer s { color: var(--ink-2); }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #ecd59b; }
.notice.ok { border-left: 6px solid var(--ok); }
.notice ul { margin: 6px 0 0; padding-left: 1.2em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Prose (legal pages) */
.prose { max-width: 720px; }
.prose h1 { margin-top: 32px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose .table-scroll { margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); }
.prose li { margin-bottom: 4px; }

/* Forms */
.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.field label, .legend { font-weight: 600; }
.field .hint { font-size: .9rem; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #b9a88f; border-radius: 10px;
  background: #fff; color: var(--ink); font: 1rem/1.4 var(--sans);
}
textarea { min-height: 120px; resize: vertical; }
input[type=file] { font: inherit; width: 100%; max-width: 100%; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: 10px; }
.field .choice, .choice { font-weight: 400; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.choice input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.choice .price { margin-left: auto; font-weight: 600; white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.stepper { justify-self: start; display: inline-flex; align-items: center; border: 1.5px solid #b9a88f; border-radius: 999px; background: #fff; }
.stepper button { width: 48px; height: 48px; border: 0; background: none; font-size: 1.4rem; color: var(--accent); cursor: pointer; border-radius: 999px; }
.stepper input { width: 56px; border: 0; text-align: center; min-height: 44px; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.error-text { color: #a1260f; font-weight: 600; }
.hp { position: absolute; left: -5000px; }

/* Checkout */
.checkout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.summary { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.cover { aspect-ratio: 8.5 / 11; border-radius: 3px 6px 6px 3px; background: #c9b896; display: grid; place-items: center; padding: 10px; text-align: center; color: #2b2118; font: 600 .8rem/1.2 var(--serif); box-shadow: inset 6px 0 0 rgba(0,0,0,.12), 0 6px 14px rgba(60,40,20,.18); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }
.totals { width: 100%; border-collapse: collapse; }
.totals td { padding: 6px 0; }
.totals td:last-child { text-align: right; white-space: nowrap; }
.totals tr.offer td { color: var(--accent-2); }
.totals tr.total td { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 1.1rem; }
#checkout { min-height: 0; }
#checkout.loading { min-height: 400px; display: grid; place-items: center; color: var(--ink-2); }
.test-banner { background: #e8f0fb; color: #173d6b; border: 1px solid #b7cdeb; border-radius: 10px; padding: 12px 14px; }

/* Order timeline */
.timeline { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 36px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b9a88f; background: var(--paper); }
.timeline li::after { content: ""; position: absolute; left: 14px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.current { color: var(--ink); font-weight: 600; }
.timeline li.current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(156, 59, 37, .18); }
.timeline .when { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-2); }

/* Join */
.preview-img { max-height: 220px; border-radius: 8px; border: 1px solid var(--line); margin-top: 8px; }
.typed { display: grid; gap: 18px; }

@media (min-width: 720px) {
  .hero { padding: 64px 0 40px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { columns: 2; column-gap: 40px; }
  .spreads { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .checkout .summary-col { position: sticky; top: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---- Penround (body.brand-penround and the card pages) ---- */
.brand-penround {
  --paper: #f7f5f0;
  --paper-2: #ece8df;
  --card: #fffefb;
  --ink: #1d2430;
  --ink-2: #4f5866;
  --line: #dcd6ca;
  --accent: #1f3a5f;
  --accent-2: #15294a;
  --sage: #3f6a90;
  --ok: #2f6b3a;
}
.brand-penround .timeline li.current::before { box-shadow: 0 0 0 4px rgba(31, 58, 95, .18); }
.brand-penround .cover { aspect-ratio: 1 / 1; border-radius: 4px; background: #1f3a5f; color: #fbf8f2; }
.card-art { position: relative; display: grid; gap: 14px; max-width: 440px; margin: 0 auto; width: 100%; }
.mini-card { background: var(--card-bg); color: var(--card-ink); border-radius: 10px; padding: 28px 22px; display: grid; gap: 6px; text-align: center; box-shadow: 0 10px 28px rgba(20, 30, 50, .18); }
.mini-card .occ { letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; }
.mini-card .for { font: 600 2rem/1.1 var(--serif); }
.mini-card .from { font-style: italic; font-size: .95rem; }
.mini-msg { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font: .95rem/1.5 var(--serif); }
.mini-msg p { margin: 0 0 6px; }
.mini-msg span { font-family: var(--hand); color: var(--ink-2); }
.mini-msg.alt { margin-left: 12%; }
.book-pages { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.book-pages figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
.book-pages figcaption { font-size: .85rem; color: var(--ink-2); padding: 4px 2px 0; }
.card-head { background: var(--card-bg, #1f3a5f); color: var(--card-ink, #fbf8f2); border-radius: var(--radius); padding: 22px 18px; margin-bottom: 18px; }
.card-head h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); margin: 0; color: inherit; }
.card-head .from { margin: 8px 0 0; font-style: italic; }
.your-time { display: block; }
.notice-collection { margin: 0; }
.danger-zone { margin-top: 20px; }
mark { background: #ffe08a; color: inherit; padding: 0 2px; border-radius: 3px; }
.card-locked { text-align: center; padding-top: 48px; }
.card-page .card-cover { background: var(--card-bg); color: var(--card-ink); text-align: center; padding: 56px 0 48px; }
.card-page .card-cover h1 { color: inherit; margin: 0; }
.card-page .card-cover .occ { letter-spacing: .22em; text-transform: uppercase; font-size: .85rem; margin: 0 0 10px; }
.card-page .card-cover .title { font: italic 1.2rem/1.4 var(--serif); margin: 10px 0 0; }
.card-page .card-cover .from { margin: 8px 0 0; font-style: italic; }
.card-page .cover-photo { width: min(320px, 80%); aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 6px solid var(--card-ink); margin: 28px auto 0; }
.card-note .note { white-space: pre-line; font: 1.15rem/1.6 var(--serif); }
.message-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.message { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--card-accent, var(--accent)); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; }
.message img { width: 100%; height: auto; border-radius: 8px; }
.message .text { white-space: pre-line; overflow-wrap: anywhere; font: 1.05rem/1.55 var(--serif); margin: 0; }
.message .sig { font: 1.25rem/1.2 var(--hand); color: var(--ink-2); text-align: right; margin: 0; }
.message .report { color: var(--ink-2); justify-self: start; }
@media (min-width: 720px) {
  .message-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-pages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .message-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Guides (/guides, /guides/{slug}): the answer first, then steps, a comparison and the FAQ. */
.guide { padding: 32px 0 8px; }
.guide .crumbs { margin: 0 0 8px; }
.guide .answer { font-size: 1.15rem; line-height: 1.55; }
.guide .byline { margin-top: -6px; }
.guide h2 { margin-top: 1.8em; }
.guide h3 { margin-top: 1.4em; }
.guide-steps { padding-left: 1.3em; }
.guide-steps li { margin-bottom: 10px; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--card); font-size: .93rem; }
.compare.compact { min-width: 520px; }
.compare.pair { min-width: 0; }
.compare th, .compare td { padding: 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th, .compare thead td { background: var(--paper-2); font-weight: 600; }
.compare tbody th { font-weight: 600; width: 22%; }
.compare .ours { border-left: 3px solid var(--accent); }
.table-note { margin-top: 8px; }
.use-chatgpt { margin: 32px 0 8px; }
.use-chatgpt h2 { margin-top: 0; }
.use-chatgpt .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 0; }
.guide-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.guide-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.guide-list a { font: 600 1.15rem/1.3 var(--serif); }
.guide-list p { margin: 6px 0 0; }

/* ---- Heardloom (body.brand-heardloom: checkout and order pages on heardloom.ambientapp.ai) ---- */
.brand-heardloom {
  --paper: #f8f4ee;
  --paper-2: #efe7dc;
  --card: #fffdf9;
  --ink: #241c24;
  --ink-2: #5a4d58;
  --line: #e1d6ca;
  --accent: #4a2c4f;
  --accent-2: #36203a;
  --sage: #6b5a3a;
  --ok: #2f6b3a;
}
.brand-heardloom .timeline li.current::before { box-shadow: 0 0 0 4px rgba(74, 44, 79, .18); }
.brand-heardloom .cover { aspect-ratio: 2 / 3; border-radius: 4px; background: #4a2c4f; color: #f7efe6; }

/* ---- Yrbk (body.brand-yrbk: checkout and order pages on yrbk.ambientapp.ai) ---- */
.brand-yrbk {
  --paper: #fbf9f4;
  --paper-2: #f1ecdf;
  --card: #ffffff;
  --ink: #18223a;
  --ink-2: #5a6275;
  --line: #e6e1d4;
  --accent: #1d2f4f;
  --accent-2: #14223a;
  --sage: #b8892b;
  --ok: #1f7a4f;
}
.brand-yrbk .timeline li.current::before { box-shadow: 0 0 0 4px rgba(29, 47, 79, .18); }
.brand-yrbk .cover { aspect-ratio: 8.5 / 11; border-radius: 4px; background: #1d2f4f; color: #fbf7ec; }

/* ---- Kinroll (body.brand-kinroll: checkout and order pages on kinroll.ambientapp.ai) ---- */
.brand-kinroll {
  --paper: #f7f3ec;
  --paper-2: #efe6da;
  --card: #fffdf9;
  --ink: #221c17;
  --ink-2: #5a5047;
  --line: #e2d9cc;
  --accent: #6b4a2e;
  --accent-2: #523822;
  --sage: #35603f;
  --ok: #2f6b3a;
}
.brand-kinroll .timeline li.current::before { box-shadow: 0 0 0 4px rgba(107, 74, 46, .18); }
.brand-kinroll .cover { aspect-ratio: 8.5 / 11; border-radius: 4px; background: #4a3426; color: #f7efe2; }
