/* R&K special orders + quick quote (DRAFT, 22 Oct 2026). Her site's colours and fonts, light leather on paper. */
@font-face { font-family: "Rye"; font-weight: 400; font-display: swap; src: url("/fonts/rye-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400 700; font-display: swap; src: url("/fonts/libre-franklin-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url("/fonts/dm-mono-500.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --espresso: #1c130e; --saddle: #6b3a1e; --rust: #a4532c; --rust-ink: #8a4120; --natural: #d2a578;
  --hide: #f4ebdd; --paper: #fbf7f0; --card: #fff; --ink: #23170f; --muted: #6a5444; --line: #e0cfb8;
  --on-dark: #f4e8d6; --on-dark-muted: #c9b199; --ok: #33602f; --ok-bg: #e2eddc; --you: #7a4700; --you-bg: #f8e6c8;
  --display: "Rye", Rockwell, Georgia, serif; --body: "Libre Franklin", "Segoe UI", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 1px 2px rgb(35 23 15 / .07), 0 8px 22px rgb(35 23 15 / .09);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
.wrap { width: min(72rem, 100% - 32px); margin-inline: auto; }
a { color: var(--rust-ink); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); margin: .2rem 0 .7rem; }
h2 { font-size: 1.3rem; margin: 0 0 .7rem; color: var(--saddle); }
.eyebrow { margin: 0; color: var(--rust-ink); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lede { color: var(--muted); max-width: 46rem; margin: 0 0 1.4rem; }
.hint { color: var(--muted); font-size: .86rem; margin: .3rem 0 .6rem; }
.notice { background: var(--you-bg); border: 1px solid #e9cf9f; border-radius: 10px; padding: .8rem 1rem; }

.qtop { background: var(--espresso); color: var(--on-dark); }
.qtop-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.qbrand { display: flex; align-items: center; gap: .6rem; color: var(--on-dark); text-decoration: none; font-family: var(--display); font-size: 1.1rem; }
.qdraft { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--you-bg); color: var(--you); border-radius: 999px; padding: .25rem .7rem; }
.qintro { padding: 1.6rem 0 .4rem; }
.q-viewing .qintro { display: none; }   /* a client opening a quote link sees the quote, not the builder's intro */
.q-viewing .qview { padding-top: 1.4rem; }
.qfoot { border-top: 1px solid var(--line); margin-top: 2.4rem; padding: 1rem 0 2rem; color: var(--muted); font-size: .88rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--rust); background: var(--rust); color: #fff; font: 700 .95rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--rust-ink); border-color: var(--rust-ink); }
.btn.ghost { background: transparent; color: var(--rust-ink); }
.btn.ghost:hover { background: var(--hide); }
.btn.small { min-height: 40px; padding: 0 .9rem; font-size: .88rem; }
.linkish { background: none; border: 0; padding: .5rem .2rem; color: var(--rust-ink); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; min-height: 40px; }

/* Builder */
.qgrid { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 1000px) { .qgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .qpreview { position: sticky; top: 1rem; } }
.qbuild { display: grid; gap: 1rem; min-width: 0; }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); min-width: 0; }
.qsettings summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; }
.qrow { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.qf { display: grid; gap: .25rem; margin-bottom: .6rem; min-width: 0; }
.qf > span { font-weight: 600; font-size: .9rem; }
.qf small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
input, select, textarea { font: inherit; width: 100%; min-height: 44px; padding: .45rem .6rem; border: 1.5px solid #b9a48c; border-radius: 9px; background: #fff; color: var(--ink); }
textarea { min-height: 4rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .linkish:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.qline { border: 1px dashed var(--line); border-radius: 12px; padding: .8rem; margin: 0 0 .8rem; min-width: 0; }
.qline.so { background: #fffaf2; }
.ql-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.qchecks { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin: 0 0 .6rem; font-size: .92rem; }
.qchecks > span { font-weight: 600; width: 100%; }
.qchecks label { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; }
.qchecks input { width: 1.2rem; min-height: 1.2rem; height: 1.2rem; accent-color: var(--rust); }
.qadd { display: flex; flex-wrap: wrap; gap: .5rem; }
.qactions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }

/* The quote document */
.qdoc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; box-shadow: var(--shadow); font-size: .95rem; min-width: 0; }
.qdoc-head { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; border-bottom: 2px solid var(--saddle); padding-bottom: .8rem; }
.qdoc-head p { margin: 0; font-size: .84rem; color: var(--muted); }
.qdoc-name { font-family: var(--display); font-size: 1.1rem !important; color: var(--ink) !important; }
.qdoc-meta { text-align: right; }
.qdoc-title { font-family: var(--display); font-size: 1.5rem !important; color: var(--saddle) !important; }
@media (max-width: 520px) { .qdoc-head { grid-template-columns: auto 1fr; } .qdoc-meta { grid-column: 1 / -1; text-align: left; } }
.qdoc-for { margin: .8rem 0; } .qdoc-for span { font-weight: 700; color: var(--muted); margin-right: .3rem; }
.qdoc-table { width: 100%; border-collapse: collapse; margin: .6rem 0; }
.qdoc-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); padding: .4rem .3rem; }
.qdoc-table td { border-bottom: 1px solid var(--line); padding: .55rem .3rem; vertical-align: top; }
.qdoc-table small { display: block; color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.qdoc-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .qdoc-table thead { display: none; }
  .qdoc-table tr { display: grid; grid-template-columns: 1fr auto; gap: 0 .6rem; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .qdoc-table td { border: 0; padding: .1rem 0; }
  .qdoc-table td:first-child { grid-column: 1 / -1; }
  .qdoc-table td:nth-child(2)::before { content: "Qty "; color: var(--muted); }
  .qdoc-table td:nth-child(3)::before { content: "Each "; color: var(--muted); }
  .qdoc-table td:nth-child(2):empty, .qdoc-table td:nth-child(3):empty { display: none; }
}
.qdoc-sum { margin: .6rem 0 0 auto; max-width: 22rem; }
.qdoc-sum div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.qdoc-sum dt { color: var(--muted); } .qdoc-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.qdoc-total { border-top: 2px solid var(--ink); margin-top: .3rem; padding-top: .45rem !important; font-weight: 700; font-size: 1.1rem; }
.qdoc-total dt { color: var(--ink) !important; }
.qdoc-due { background: var(--you-bg); border: 1px solid #e9cf9f; border-radius: 10px; padding: .7rem .9rem; margin: .9rem 0; }
.qdoc-due p { margin: .2rem 0; }
.qdoc-notes { white-space: pre-line; background: var(--hide); border-radius: 10px; padding: .6rem .8rem; }
.qdoc-terms { font-size: .82rem; color: var(--muted); padding-left: 1.1rem; margin: .9rem 0 .4rem; }
.qdoc-terms li { margin: .2rem 0; }
.qdoc-foot { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .noprint, .qbuild, .qtop, .qfoot, .qintro { display: none !important; }
  .qgrid { display: block; }
  .qdoc { border: 0; box-shadow: none; padding: 0; }
  .qdoc-due, .qdoc-notes { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .wrap { width: 100%; }
}
