:root {
  color-scheme: dark;
  --base: #10100f;
  --panel: #181815;
  --ink: #f7f3e9;
  --muted: #b9b3a5;
  --gold: #d6b274;
  --line: #37362f;
  --paper: #f4f0e7;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
figure, p, h1, h2, h3 { margin: 0; }
p + p { margin-top: .7rem; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.bar, .section-head, .buy-line, .dialog-head, .line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top { border-bottom: 1px solid var(--line); background: var(--base); }
.top .bar { min-height: 90px; }
.brand { text-decoration: none; font: 500 1.55rem var(--serif); letter-spacing: -.04em; }
.top nav { display: flex; align-items: center; gap: 2rem; font-size: .875rem; }
.top nav a { text-decoration: none; }
.plain { background: none; color: inherit; border: 0; padding: 0; }
.gold, .outline, .danger { display: inline-flex; justify-content: center; align-items: center; min-height: 47px; padding: .7rem 1.3rem; border-radius: 2px; font-size: .875rem; line-height: 1.3; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.gold { background: var(--gold); color: #17130d; border: 1px solid var(--gold); }
.gold:hover { background: #e6c892; border-color: #e6c892; }
.outline { background: transparent; border: 1px solid #646155; color: inherit; }
.outline:hover { border-color: var(--gold); background: #d6b2740a; }
.danger { background: #703b30; color: #fff1ed; border: 1px solid #9d5e4d; }
.dark { color: #28231b; }
#count { border-left: 1px solid #646155; margin-left: .75rem; padding-left: .75rem; }
.hero { background: #10100f; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.13fr .87fr; gap: 7%; align-items: center; padding-block: 64px 70px; }
.hero-copy { max-width: 620px; }
.eyebrow { font-size: .72rem; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { font: 400 clamp(3.6rem, 6.5vw, 6rem)/.98 var(--serif); letter-spacing: -.065em; }
.hero h1 em { display: block; color: var(--gold); font-weight: 400; }
.hero .byline { font-size: .9rem; color: var(--ink); margin-top: 1.35rem; letter-spacing: .03em; }
.lede { max-width: 460px; color: #c2bdae; font-size: 1rem; line-height: 1.75; margin-top: 1.4rem; }
.buy-line { justify-content: flex-start; gap: 2rem; padding-top: 1.5rem; margin-top: 1.65rem; border-top: 1px solid var(--line); width: fit-content; }
.buy-line small, .buy-line strong { display: block; }
.buy-line small { font-size: .72rem; color: var(--muted); letter-spacing: .05em; margin-bottom: .35rem; }
.buy-line strong { font: 400 2.2rem/1 var(--serif); letter-spacing: -.04em; }
.buy-line .gold { min-width: 186px; min-height: 53px; text-transform: uppercase; letter-spacing: .06em; }
.muted { font-size: .875rem; color: var(--muted); }
#availability { margin-top: .9rem; max-width: 430px; font-size: .75rem; line-height: 1.6; }
.cover-frame { position: relative; width: min(100%, 350px); justify-self: center; margin: 0; border: 1px solid #6f5735; box-shadow: 14px 14px 0 #252218, 15px 15px 0 #665337; }
.cover-frame img { display: block; width: 100%; height: auto; }
.cream { background: var(--paper); color: #28241c; color-scheme: light; }
.cream .eyebrow { color: #8b692e; }
.section { padding-block: 65px; }
h2 { font: 400 clamp(2.25rem, 4vw, 3.65rem)/1.08 var(--serif); letter-spacing: -.05em; }
h3 { font: 500 1.4rem/1.25 var(--serif); margin-bottom: .55rem; letter-spacing: -.03em; }
.content-header { display: grid; grid-template-columns: .6fr 1.4fr; gap: 2rem; align-items: start; }
.content-header .eyebrow { padding-top: .45rem; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.topics article { border-top: 1px solid #c7bca6; padding-top: 1.1rem; }
.topics p { color: #625c50; font-size: .9rem; }
.readers { font-size: .875rem; margin-top: 1.8rem; color: #625c50; max-width: 780px; }
.section-head .eyebrow { margin-bottom: .5rem; }
.search { width: min(100%, 295px); }
.search span { font-size: .75rem; letter-spacing: .03em; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 2rem; margin-top: 1.8rem; }
.product { border-top: 1px solid var(--line); padding-top: 1.3rem; display: grid; grid-template-columns: 100px 1fr; gap: 0 1.25rem; align-content: start; }
.product > a { display: contents; text-decoration: none; }
.product img { grid-row: 1 / 4; display: block; width: 100px; height: auto; }
.product h3 { font: 500 1.35rem/1.2 var(--serif); letter-spacing: -.02em; }
.product p { margin: .6rem 0 .8rem; font-size: 1rem; }
.product button { justify-self: start; min-height: 40px; padding: .6rem .9rem; font-size: .75rem; }
.support-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10%; }
.support-grid h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.support-grid ol { padding-left: 1.2rem; margin-bottom: 0; max-width: 550px; }
.support-grid li { padding: .3rem 0; font-size: .9rem; color: #625c50; }
.support-grid > div + div { border-left: 1px solid #d0c6b4; padding-left: 2rem; }
.support-grid p { font-size: .9rem; color: #625c50; }
.support-grid button { margin-top: 1rem; }
#support { font-size: .85rem; margin-top: .8rem; overflow-wrap: anywhere; }
footer { padding-block: 1.7rem; color: #b0a99b; font-size: .75rem; }
footer a { text-decoration: none; }
label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 500; }
label.check { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
input, select, textarea { color: var(--ink); width: 100%; min-height: 47px; padding: .7rem .8rem; background: transparent; border: 1px solid #676357; border-radius: 2px; }
select { padding-right: 2rem; }
textarea { min-height: 100px; resize: vertical; }
input[type=checkbox] { width: auto; min-height: 0; margin-top: .3rem; accent-color: var(--gold); }
input[type=file] { padding: .6rem; font-size: .8rem; }
input[type=file]::file-selector-button { background: #e9e2d3; color: #292319; border: 0; padding: .5rem .6rem; margin-right: .7rem; font: inherit; cursor: pointer; }
input::placeholder, textarea::placeholder { color: #928d82; }
button:focus-visible, a:focus-visible, input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 3px; }
dialog { width: min(630px, calc(100% - 24px)); max-height: 92dvh; background: var(--paper); color: #28241c; color-scheme: light; padding: 1.7rem; border: 1px solid #b5a581; border-radius: 3px; overflow-y: auto; box-shadow: 0 20px 100px #0008; }
dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
dialog h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); letter-spacing: -.04em; }
dialog input, dialog select, dialog textarea { color: #28241c; border-color: #b6ad9c; background: #ffffff70; }
dialog .outline { border-color: #b6ad9c; }
dialog .muted, dialog small { color: #716854; }
dialog .line { border-color: #cfc5b1; }
.dialog-head { margin-bottom: 1.1rem; position: sticky; top: -1.7rem; padding-block: .6rem; background: var(--paper); z-index: 2; }
.dialog-head button { flex-shrink: 0; min-height: 36px; padding: .5rem .8rem; font-size: .75rem; }
.stack, form.stack { display: grid; gap: 1rem; }
.line { padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.line > strong { white-space: nowrap; }
.note, #notice { padding: .9rem 1rem; background: #e8dfcd; border: 1px solid #cbb996; font-size: .875rem; overflow-wrap: anywhere; }
#notice { margin-block: .75rem; }
.error { background: #f0d8d0 !important; border-color: #b67462 !important; color: #762e20; }
.qr-layout { display: grid; gap: .8rem; justify-items: start; }
.qr-layout > strong { font-size: .875rem; }
.qr-preview { display: block; width: min(100%, 340px); height: auto; background: white; }
.qr-original { max-height: 390px; object-fit: contain; }
.code { display: block; font-family: monospace; user-select: all; overflow-wrap: anywhere; font-size: .85rem; margin-block: .6rem; }
.order-id { font-family: monospace; font-size: .9rem; overflow-wrap: anywhere; }
.inline { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.controls { margin-block: 1.2rem; }
details { margin-block: .5rem; }
summary { cursor: pointer; font-size: .875rem; font-weight: 600; }
.tag { color: #8a601b; font-weight: 600; font-size: .875rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.wide { grid-column: 1 / -1; }
[hidden] { display: none !important; }
.admin-page { color-scheme: light; --base: #f3f1ea; --panel: #fffefa; --ink: #272a27; --muted: #6d706a; --line: #d8dbd1; --gold: #bd9656; background: var(--base); color: var(--ink); font-size: .9rem; }
.admin-page .top { color-scheme: dark; color: #f7f3e9; background: #171714; border-bottom: 0; }
.admin-page .top .bar { min-height: 72px; }
.admin-page .brand { font-size: 1.4rem; }
.admin-page .top .outline { border-color: #5a635b; font-size: .75rem; min-height: 35px; }
.admin-page .top .inline > a { text-decoration: none; font-size: .8rem; }
.admin-page h2 { font: 500 clamp(1.65rem, 3vw, 2.35rem)/1.1 var(--serif); letter-spacing: -.04em; }
.admin-page h3 { font: 600 1rem/1.3 'Helvetica Neue', Arial, sans-serif; letter-spacing: -.02em; }
.admin-page .section { padding-block: 32px 60px; }
.admin-page .eyebrow { color: #7b6845; margin-bottom: .5rem; font-size: .65rem; }
.admin-page .section-head { align-items: flex-end; padding-bottom: 24px; }
.admin-page .section-head > label { min-width: 175px; font-size: .75rem; }
.admin-page input, .admin-page select, .admin-page textarea { background: white; border-color: #cbd0c6; color: var(--ink); font-size: .875rem; }
.admin-page .gold { background: #272720; border-color: #272720; color: white; }
.admin-page .gold:hover { background: #424137; }
.admin-page .outline { border-color: #bdc5b8; }
.admin-page .tabs { display: flex; flex-wrap: wrap; gap: 0; padding-bottom: 0; margin: 0 0 28px; border-bottom: 1px solid #cdd2c8; }
.admin-page .tabs button { border: 0; border-bottom: 2px solid transparent; padding: .8rem .9rem; margin-bottom: -1px; min-height: 43px; font-size: .75rem; font-weight: 500; }
.admin-page .tabs button[aria-selected=true] { border-bottom-color: #9b793c; color: #513e1d; background: #e8e2d4; }
.admin-page .tabs button:hover { background: #ebece5; }
.panel { padding: 1.25rem; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); margin-top: 1.2rem; }
.auth { max-width: 440px; margin: 40px auto 0; padding: 2rem; }
.auth h2 { margin-bottom: .7rem; }
.auth .muted { margin-bottom: 1.1rem; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; background: var(--panel); border: 1px solid #d7d9cf; }
.metric { display: grid; gap: .65rem; padding: 1.1rem 1.2rem; border-right: 1px solid #e0e1d8; border-bottom: 1px solid #e0e1d8; }
.metric span { color: #71766e; font-size: .875rem; }
.metric strong { font: 400 2rem/1 var(--serif); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th, td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { white-space: nowrap; background: #e9ece4; color: #596252; text-transform: uppercase; letter-spacing: .06em; font-size: .65rem; font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
td .outline { min-height: 31px; padding: .45rem .65rem; font-size: .7rem; }
tbody tr:hover { background: #f3f5ee; }
.admin-page .tag { color: #725925; }
.admin-page dialog { --panel: #fffefa; background: #fffefa; }
.admin-page dialog .dialog-head { background: #fffefa; }
.admin-page dialog .panel { background: #f6f7f0; }
.admin-page .note { background: #ece6d6; border-color: #d0c4a7; }
.admin-page .form-grid.panel { padding: 1.5rem; }
@media (max-width: 900px) {
 .wrap { width: calc(100% - 48px); }
 .hero-grid { gap: 7%; padding-block: 48px 56px; }
 .hero h1 { font-size: clamp(3.2rem, 7vw, 4.7rem); }
 .cover-frame { width: min(100%, 300px); }
 .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .admin-page .tabs { gap: 0; }
 .admin-page .tabs button { font-size: .7rem; padding-inline: .65rem; }
}
@media (max-width: 620px) {
 .wrap { width: calc(100% - 40px); }
 .top .bar { min-height: 106px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 13px; padding-block: 16px; }
 .brand { font-size: 1.35rem; }
 .top nav { justify-content: space-between; width: 100%; gap: .7rem; font-size: .75rem; }
 .top nav .outline { min-height: 34px; padding: .4rem .65rem; font-size: .75rem; }
 .hero-grid { grid-template-columns: 1fr; padding-block: 32px 45px; gap: 34px; }
 .hero .eyebrow { font-size: .63rem; margin-bottom: 1.1rem; }
 .hero h1 { font-size: clamp(3.2rem, 13.5vw, 4.9rem); }
 .hero .byline { font-size: .8rem; margin-top: 1rem; }
 .hero .lede { margin-top: 1rem; font-size: .875rem; line-height: 1.7; }
 .buy-line { width: 100%; justify-content: space-between; gap: .7rem; margin-top: 1.2rem; padding-top: 1.2rem; }
 .buy-line strong { font-size: 1.9rem; }
 .buy-line .gold { min-width: 163px; min-height: 49px; padding-inline: .9rem; font-size: .75rem; }
 .cover-frame { width: min(80%, 280px); margin-right: 12px; }
 .section { padding-block: 40px; }
 .content-header { grid-template-columns: 1fr; gap: 0; }
 h2 { font-size: 2.25rem; }
 .topics, .support-grid { grid-template-columns: 1fr; gap: 1.3rem; }
 .topics { margin-top: 1.4rem; }
 .readers { margin-top: 1.2rem; }
 .section-head { align-items: stretch; flex-direction: column; gap: 1.3rem; }
 .search { width: 100%; }
 .products { grid-template-columns: 1fr; gap: 1.4rem; margin-top: 1.3rem; }
 .product { grid-template-columns: 98px 1fr; gap: 0 1.1rem; }
 .product img { width: 98px; }
 .product h3 { font-size: 1.3rem; }
 .support-grid > div + div { border-left: 0; border-top: 1px solid #d0c6b4; padding: 1.5rem 0 0; margin-top: .5rem; }
 footer .bar { flex-direction: column; align-items: flex-start; gap: .5rem; }
 dialog { padding: 1.1rem; width: calc(100% - 18px); max-height: 94dvh; }
 .dialog-head { top: -1.1rem; }
 .form-grid { grid-template-columns: 1fr; }
 .admin-page .wrap { width: calc(100% - 28px); }
 .admin-page .top .bar { min-height: 90px; gap: .65rem; padding-block: 14px; }
 .admin-page .top .inline { width: 100%; gap: .7rem; }
 .admin-page .section { padding-top: 24px; }
 .admin-page .section-head { align-items: stretch; gap: 18px; }
 .admin-page .section-head > label { max-width: 210px; }
 .admin-page .tabs { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; }
 .admin-page .tabs button { white-space: nowrap; font-size: .75rem; }
 .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .metric { padding: 1rem; }
 .metric strong { font-size: 1.65rem; }
 .metric span { font-size: .7rem; }
 .auth { margin-top: 12px; padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Display the supplied QR at scanning size; the saved file remains the original. */
.qr-window { width: min(100%, 310px); aspect-ratio: 1; position: relative; overflow: hidden; background: white; }
.qr-window .qr-scan { position: absolute; width: 248.71%; max-width: none; height: auto; left: -74.2%; top: -63.55%; }
