/* Holiday cards: order and status pages. One stylesheet, no build step.
   Frost ground, spruce ink and action, brass for the step numerals. The card is the loud thing;
   everything else stays quiet. */
@font-face { font-family: "Young Serif"; src: url("/web/fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/web/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/web/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/web/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/web/fonts/Lora-Variable.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
:root {
  --ground: #F2F4F1;
  --sheet: #FFFFFF;
  --ink: #17251F;
  --ink-2: #4A5852;
  --rule: #D3DBD5;
  --spruce: #1F5C45;
  --spruce-hover: #184A37;
  --spruce-tint: #E3EDE7;
  --brass: #A97C22;
  --error: #A3291C;
  --error-tint: #F8E7E4;
  --notice: #FFF4D6;
  --focus: #2457A6;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
a { color: var(--spruce); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* header */
.top { border-bottom: 1px solid var(--rule); background: var(--sheet); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { font: 1.25rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.testpill { font-size: .85rem; background: var(--notice); color: #5C4708; padding: .3rem .7rem; border-radius: 99px; }

/* intro */
.intro { padding: 2.5rem 0 1.5rem; }
.intro h1 { font: 400 clamp(2rem, 4.4vw, 3.1rem)/1.1 var(--serif); margin: 0 0 .8rem; max-width: 18ch; letter-spacing: -.01em; }
.intro p { margin: 0; max-width: 56ch; color: var(--ink-2); font-size: 1.1rem; }

/* layout: steps on the left, the card on the right */
.layout { display: grid; gap: 2rem; padding-bottom: 4rem; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 3rem; }
  .stage { position: sticky; top: 1.5rem; order: 2; }
  .steps { order: 1; }
}

/* the card stage */
.stage-card { perspective: 2200px; }
.flip { position: relative; aspect-ratio: 3 / 2; transition: transform .7s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.flip.show-back { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 4px; overflow: hidden;
        box-shadow: 0 1px 2px rgba(23, 37, 31, .18), 0 18px 40px -12px rgba(23, 37, 31, .35); background: #fff; }
.face.back { transform: rotateY(180deg); }
.face iframe { position: absolute; border: 0; width: 888px; height: 600px; transform-origin: 0 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .flip { transition: none; } }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 99px; padding: 3px; background: var(--sheet); }
.seg button { font: 500 .95rem var(--sans); border: 0; background: none; padding: .4rem 1rem; border-radius: 99px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stage-note { color: var(--ink-2); font-size: .9rem; margin: 0; max-width: 40ch; }

/* steps */
.step { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 720px) { .step { padding: 1.75rem 2rem; } }
.step-head { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 1rem; }
.num { font: 400 2.4rem/1 var(--serif); color: var(--brass); min-width: 1.4ch; }
.step h2 { font: 400 1.5rem/1.2 var(--serif); margin: 0; }
.step .hint { color: var(--ink-2); margin: .25rem 0 0; font-size: .95rem; }
.step.done .num::after { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--spruce); margin-left: .25rem; vertical-align: super; }

/* step 1: designs */
.designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; padding: 0; border: 0; }
.design { position: relative; cursor: pointer; }
.design input { position: absolute; opacity: 0; }
.design .thumb { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; outline: 2px solid transparent; outline-offset: 3px; box-shadow: 0 1px 3px rgba(23, 37, 31, .25); }
.design .thumb iframe { position: absolute; border: 0; width: 888px; height: 600px; transform-origin: 0 0; pointer-events: none; }
.design input:checked + .thumb { outline-color: var(--spruce); }
.design input:focus-visible + .thumb { outline: 3px solid var(--focus); }
.design .label { display: block; text-align: center; margin-top: .55rem; font-weight: 500; }

/* fields */
.field { margin-bottom: 1.1rem; }
.field label, .field .lab { display: block; font-weight: 600; margin-bottom: .3rem; }
.field .sub { display: block; color: var(--ink-2); font-size: .9rem; font-weight: 400; margin-top: -.15rem; margin-bottom: .35rem; }
input[type=text], textarea { width: 100%; font: 1rem/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid #AEBBB3; border-radius: 8px; padding: .6rem .75rem; }
textarea { resize: vertical; }
textarea#message { min-height: 9rem; font-family: "Lora", Georgia, serif; font-size: 1.05rem; }
.count { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); margin-top: .3rem; }
.count .over { color: var(--error); font-weight: 600; }
.row2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.err { color: var(--error); font-size: .95rem; margin: .4rem 0 0; }
.ok-line { color: var(--spruce); font-size: .95rem; margin: .4rem 0 0; }
.file-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem var(--sans); border-radius: 8px; padding: .75rem 1.25rem; cursor: pointer; border: 1px solid var(--spruce); text-decoration: none; }
.btn.primary { background: var(--spruce); color: #fff; }
.btn.primary:hover { background: var(--spruce-hover); }
.btn.quiet { background: #fff; color: var(--spruce); }
.btn.quiet:hover { background: var(--spruce-tint); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.big { font-size: 1.1rem; padding: .95rem 1.6rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--spruce); text-decoration: underline; cursor: pointer; }

/* step 3: list */
.tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.tabs button { font: 600 1rem var(--sans); background: none; border: 0; border-bottom: 3px solid transparent; padding: .4rem 0 .5rem; color: var(--ink-2); cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--spruce); }
textarea#paste { min-height: 8rem; font: .9rem/1.4 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }
.drop { border: 2px dashed #AEBBB3; border-radius: var(--r); padding: 1.5rem; text-align: center; color: var(--ink-2); }
.drop.over { border-color: var(--spruce); background: var(--spruce-tint); }
.summary { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.summary .big-n { font: 400 2rem/1 var(--serif); display: block; }
.summary .ok .big-n { color: var(--spruce); }
.summary .no .big-n { color: var(--error); }
.leftout { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: .5rem; }
.leftout th, .leftout td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.leftout th { font-weight: 600; color: var(--ink-2); }
.fixes { font-size: .92rem; color: var(--ink-2); padding-left: 1.1rem; margin: .5rem 0 0; }
details.help { margin-top: 1rem; color: var(--ink-2); font-size: .95rem; }
details.help summary { cursor: pointer; color: var(--spruce); }

/* step 4: proofs */
.progress { height: 8px; background: var(--spruce-tint); border-radius: 99px; overflow: hidden; margin: .75rem 0 .4rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--spruce); transition: width .4s; }
.proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.proof figure { margin: 0; }
.proof img { width: 100%; display: block; border-radius: 3px; box-shadow: 0 1px 3px rgba(23, 37, 31, .3); background: #fff; }
.proof figcaption { font-size: .88rem; margin-top: .4rem; color: var(--ink-2); }
.proof figcaption b { color: var(--ink); font-weight: 600; }
.proof.bad img { opacity: .5; }
.proof.bad figcaption { color: var(--error); }
.proofs-more { margin: 0 0 1rem; }
.total { border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 1rem; }
.total .sum { font: 400 1.8rem/1.2 var(--serif); margin: 0 0 .2rem; }
.total .calc { color: var(--ink-2); margin: 0 0 1rem; }
.fine { color: var(--ink-2); font-size: .9rem; margin: .9rem 0 0; max-width: 52ch; }
.stale { background: var(--notice); border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; }

.foot { border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .9rem; padding: 1.5rem 0 2.5rem; }
.foot p { margin: 0 0 .5rem; }

/* status page */
.status-grid { display: grid; gap: 2rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .status-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.2rem 2.2rem; }
.timeline li::before { content: ""; position: absolute; left: .45rem; top: .35rem; width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid #AEBBB3; background: #fff; }
.timeline li::after { content: ""; position: absolute; left: .87rem; top: 1.35rem; bottom: .1rem; width: 2px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--spruce); border-color: var(--spruce); }
.timeline li.now::before { border-color: var(--spruce); box-shadow: 0 0 0 4px var(--spruce-tint); }
.timeline li.later { color: var(--ink-2); }
.timeline .t { font-weight: 600; display: block; }
.timeline .d { font-size: .92rem; color: var(--ink-2); }
.money { background: var(--spruce-tint); border-radius: var(--r); padding: 1rem 1.25rem; margin: 1rem 0; }
.money.bad { background: var(--error-tint); }
.cards-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cards-table th, .cards-table td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--rule); }
.cards-table th { color: var(--ink-2); font-weight: 600; }
.chip { display: inline-block; font-size: .82rem; padding: .1rem .55rem; border-radius: 99px; background: var(--spruce-tint); color: var(--spruce); white-space: nowrap; }
.chip.good { background: var(--spruce); color: #fff; }
.chip.bad { background: var(--error-tint); color: var(--error); }
.front-thumb img { width: 100%; border-radius: 3px; box-shadow: 0 1px 2px rgba(23, 37, 31, .18), 0 18px 40px -12px rgba(23, 37, 31, .35); }
.table-wrap { overflow-x: auto; }

@media (max-width: 600px) { .testpill .long { display: none; } .step-head { gap: .75rem; } }
.proof a { display: block; }

/* step 4: cards for the business itself */
.me-box { border: 1px solid var(--rule); border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1.25rem; background: #FAFBF9; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--spruce); }
.me-form { margin-top: 1rem; }
.row3 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .row3 { grid-template-columns: 2fr 1fr 1fr; } }
.sample-box { border-top: 1px solid var(--rule); margin-top: 1.5rem; padding-top: 1.25rem; }
.sample-box h3 { font: 400 1.15rem var(--serif); margin: 0; }
