/* Checkout: the brand layer for the checkout page served by the huifineart-checkout Worker.
   The Worker keeps its own base styles inline; this file is linked after them and restyles the
   page in the house manner: Ivory ground, Ink text, Stone for quiet words, the order summary hung
   on the Tyrian wall with gold hairlines (gold appears on the wall only), and one Tyrian pill for
   the payment. Stripe's own fields are styled by the Worker's appearance settings to match.
   Type follows the site (Buccellati style, 22 Nov 2026): Cormorant for sentences and prices,
   Montserrat for labels, small capital headings and buttons.
   Class names come from the Worker's markup; keep them in step if the Worker changes. */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/montserrat-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/cormorant-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hui Wordmark'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/hui-wordmark.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/cormorant-latin-wght-italic.woff2) format('woff2'); }

:root {
  --bg: #FBF9F4; --ink: #26171F; --muted: #67565E; --gold: #66023C; --gold-light: #66023C;
  --line: rgba(38, 23, 31, .13); --surface: #FFFFFF; --error: #A3242C;
  --co-tyrian: #66023C; --co-wall: #560A36; --co-wall-gold: #DCB870; --co-vellum: #EDE9E1;
  --co-on-wall: #FBF9F4; --co-on-wall-soft: rgba(251, 249, 244, .7); --co-wall-line: rgba(251, 249, 244, .16);
  --co-serif: 'Cormorant', Georgia, serif; --co-sans: 'Montserrat', Arial, sans-serif;
}

body { background: var(--bg); color: var(--ink); font-family: var(--co-sans); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 1120px; padding: 0 24px 88px; }

/* Header: the name, the city, and a quiet word that the payment is secure. */
header.brand { padding: 40px 0 6px; }
header.brand a { font-family: 'Hui Wordmark', 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }
header.brand p { margin: 8px 0 0; color: var(--muted); font-size: 14px; letter-spacing: .02em; text-transform: none; }
.secure { margin: 14px 0 40px; color: var(--muted); font-size: 13px; letter-spacing: .02em; text-transform: none; }
.secure::before {
  content: ""; width: 11px; height: 13px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13'%3E%3Cpath d='M2.5 5.5V4a3 3 0 0 1 6 0v1.5h.5a1 1 0 0 1 1 1V12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6.5a1 1 0 0 1 1-1zm1.2 0h3.6V4a1.8 1.8 0 0 0-3.6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13'%3E%3Cpath d='M2.5 5.5V4a3 3 0 0 1 6 0v1.5h.5a1 1 0 0 1 1 1V12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6.5a1 1 0 0 1 1-1zm1.2 0h3.6V4a1.8 1.8 0 0 0-3.6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; }

/* The form: open on the Ivory ground, three chapters divided by hairlines. */
.card { border-radius: 4px; border-color: var(--line); }
.grid > .card:first-child { background: transparent; border: 0; border-radius: 0; padding: 0; }
#payment-form { counter-reset: co-step; }
section.block { counter-increment: co-step; margin: 0; padding: 30px 0; border-top: 1px solid var(--line); }
section.block:first-child { padding-top: 6px; border-top: 0; }
section.block:last-of-type { padding-bottom: 8px; }
.step { gap: 14px; margin-bottom: 18px; }
.step .n { font-size: 0; line-height: 1; }
.step .n::before { content: counter(co-step, upper-roman); font: italic 400 21px/1 var(--co-serif); color: var(--co-tyrian); }
.step h3 { font-family: var(--co-serif); font-size: 25px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; }
label.flabel { margin: 0 0 8px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: .01em; text-transform: none; }
input[type=email] { padding: 13px 15px; border: 1px solid rgba(38, 23, 31, .2); border-radius: 6px; font-size: 16px; background: #FFFFFF; color: var(--ink); }
input[type=email]::placeholder { color: #A6989F; }
input[type=email]:focus { border-color: var(--co-tyrian); box-shadow: 0 0 0 3px rgba(102, 2, 60, .12); }
.hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.hint strong { color: var(--ink); font-weight: 500; }
#quote-request a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--co-tyrian); text-underline-offset: 4px; }

/* The one important action: a Tyrian pill. While it cannot be used it rests on Vellum. */
#pay-button {
  margin-top: 26px; padding: 17px 28px; border-radius: 999px; background: var(--co-tyrian); color: #FBF9F4;
  font-family: var(--co-sans); font-size: 16px; font-weight: 500; letter-spacing: .02em; text-transform: none;
  box-shadow: 0 14px 28px -18px rgba(86, 10, 54, .8); transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}
#pay-button:hover:not(:disabled) { background: var(--co-wall); transform: translateY(-1px); }
#pay-button:active:not(:disabled) { transform: translateY(0); }
#pay-button:focus-visible { outline: 2px solid var(--co-tyrian); outline-offset: 3px; }
#pay-button:disabled { opacity: 1; background: var(--co-vellum); color: var(--muted); box-shadow: none; }
#error-box { background: #FBEFEF; border-color: rgba(163, 36, 44, .28); border-radius: 6px; color: var(--error); }

/* The order, hung on the Tyrian wall inside a gold hairline, like the painting it holds. */
.card.summary {
  top: 28px; padding: 34px 32px 30px; border: 0; border-radius: 2px; background: var(--co-wall); color: var(--co-on-wall);
  outline: 1px solid rgba(220, 184, 112, .38); outline-offset: -11px;
}
.summary h2 { margin: 0 0 10px; font-size: 26px; font-weight: 400; color: var(--co-on-wall); }
.item { gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--co-wall-line); }
.item img, .rec img { border-radius: 0; background: #3E0727; box-shadow: 0 0 0 1px rgba(220, 184, 112, .7), 0 0 0 4px var(--co-wall), 0 0 0 5px rgba(220, 184, 112, .3); }
.item img { width: 72px; height: 72px; margin: 5px; }
.item .t .name { font-size: 18px; line-height: 1.3; white-space: normal; color: var(--co-on-wall); }
.item .t .meta { color: var(--co-on-wall-soft); font-size: 13px; }
.item .p { font-size: 15px; color: var(--co-on-wall); }
.item .rm { color: var(--co-on-wall-soft); }
.item .rm:hover, .item .rm:focus-visible { color: var(--co-wall-gold); }
.row { font-size: 15px; }
.row .k { color: var(--co-on-wall-soft); }
.row .v { color: var(--co-on-wall); }
.row.ship .v { color: var(--co-wall-gold); font-weight: 500; }
.row.total { margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(220, 184, 112, .38); }
.row.total .k strong { font-weight: 500; color: var(--co-on-wall); }
.row.total .v { font-size: 27px; color: var(--co-on-wall); }
.eta, .ship-note { color: var(--co-on-wall-soft); font-size: 13px; }
.recs { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--co-wall-line); }
.recs h3 { font-size: 20px; font-weight: 400; color: var(--co-on-wall); }
.recs .sub { color: var(--co-on-wall-soft); font-size: 13px; }
.rec { gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--co-wall-line); }
.rec img { width: 52px; height: 52px; margin: 5px; }
.rec .t .name { font-family: var(--co-serif); font-size: 16px; color: var(--co-on-wall); }
.rec .t .pr { color: var(--co-on-wall-soft); font-size: 13px; }
.rec .add {
  padding: 8px 15px; border: 1px solid rgba(220, 184, 112, .75); border-radius: 999px; background: transparent; color: var(--co-wall-gold);
  font-family: var(--co-sans); font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: none; transition: background .2s ease, color .2s ease;
}
.rec .add:hover, .rec .add:focus-visible { background: var(--co-wall-gold); color: var(--co-wall); }
.trust { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--co-wall-line); color: var(--co-on-wall-soft); font-size: 13px; }
.trust a { color: var(--co-on-wall); text-decoration: underline; text-decoration-color: rgba(220, 184, 112, .7); text-underline-offset: 3px; }
.summary :focus-visible { outline: 2px solid var(--co-wall-gold); outline-offset: 2px; }

.spinner { color: var(--muted); }
footer { margin-top: 72px; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
footer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--co-tyrian); text-underline-offset: 3px; }

/* Phones: the wall comes first and runs edge to edge, then the form. */
@media (max-width: 860px) {
  .wrap { padding: 0 20px 72px; }
  header.brand { padding-top: 30px; }
  header.brand a { font-size: 17px; letter-spacing: .16em; }
  .secure { margin: 10px 0 26px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .card.summary { position: static; order: -1; margin: 0 -20px; padding: 30px 26px 26px; border-radius: 0; outline-offset: -9px; }
  .step h3 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  #pay-button, .rec .add { transition: none; }
  #pay-button:hover:not(:disabled) { transform: none; }
}

/* Buccellati-style type: sentences, names and prices in Cormorant; labels, headings in small
   spaced capitals, fields and buttons in Montserrat. Text keeps the height of the earlier Jost. */
body { font-family: var(--co-serif); font-weight: 500; font-size-adjust: ex-height .46; }
header.brand a { font-size-adjust: none; }
header.brand p, .secure, label.flabel, input[type=email], #pay-button, .rec .add, .row .k, .step h3, .summary h2, .recs h3, #error-box, footer { font-family: var(--co-sans); }
.step h3, .summary h2, .recs h3 { font-weight: 500; text-transform: uppercase; letter-spacing: .12em; line-height: 1.3; }
.step h3 { font-size: 15px; }
.summary h2 { margin-bottom: 12px; font-size: 15px; }
.recs h3 { font-size: 13px; }
.row .k { font-size: 13px; letter-spacing: .02em; }
.item .t .name { font-size: 21px; }
.rec .t .name { font-size: 18px; }
.item .p, .row .v { font-size: 18px; }
.row.total .v { font-size: 30px; }

/* The Worker sets its own display serif on painting names and the total; they follow the house serif. A zero
   font size does not hide text once font-size-adjust is set, so the step digits switch it off. */
.item .t .name, .row.total .v { font-family: var(--co-serif); }
.step .n { font-size-adjust: none; }
.step .n::before { font-size-adjust: ex-height .46; }
#fatal h2 { font-family: var(--co-sans) !important; font-size: 15px !important; font-weight: 500 !important; letter-spacing: .12em; text-transform: uppercase; }
