/* Covers by Ai-me. Colours are the shop's own (the logo: warm ink black and antique gold), plus the cream of its
   lettering and the wood of a bookshop shelf. No gradients, glows or glass; one accent (gold). */
:root {
  --ink: #1A1613;
  --ink-raised: #231D19;
  --ink-field: #15110E;
  --line: #3B312A;
  --wood: #5E4130;
  --wood-top: #7A5641;
  --cream: #F0E8DA;
  --cream-dim: #B8AC98;
  --gold: #D6B478;
  --gold-deep: #B8955A;
  --error: #E8A08A;
  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --body: "Literata", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body);
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; color: var(--gold); }
p { margin: 0 0 1em; }
.small { font-size: .92rem; color: var(--cream-dim); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 5; }
.skip:focus { left: 8px; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font-family: var(--display); font-size: 1.2rem; }
.brand img { border-radius: 6px; }

/* hero */
.hero { padding-top: clamp(28px, 7vw, 88px); padding-bottom: clamp(24px, 4vw, 40px); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.7rem); max-width: 15ch; margin-bottom: .35em; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.25rem); max-width: 40em; color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 1.6em; }
.button {
  display: inline-block; background: var(--gold); color: var(--ink); border: 0; border-radius: 4px;
  font: 600 1rem/1 var(--body); padding: 15px 22px; text-decoration: none; cursor: pointer;
  transition: background .15s ease;
}
.button:hover { background: var(--cream); color: var(--ink); }
.button[disabled] { opacity: .6; cursor: wait; }
.quiet { color: var(--cream); }
.promo { margin-top: 1.4em; color: var(--cream-dim); font-size: .98rem; }
.promo b { color: var(--gold); font-weight: 600; letter-spacing: .04em; }

/* the drift: two rows of real covers that slide a little as the page scrolls (decoration; the grid below is the
   real list). Without motion (prefers-reduced-motion) the rows simply scroll sideways by hand. */
.drift { overflow: hidden; padding: clamp(12px, 3vw, 28px) 0 clamp(40px, 7vw, 84px); display: grid; gap: clamp(10px, 1.4vw, 16px); }
.drift-row { display: flex; gap: clamp(10px, 1.4vw, 16px); width: max-content; will-change: transform; }
.drift-row a { flex: 0 0 auto; width: clamp(92px, 10vw, 132px); }
.drift-row img { width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  .drift { overflow-x: auto; }
  .drift-row { transform: none !important; }
}

/* the work: every cover, with a genre filter */
.work { padding-bottom: clamp(48px, 8vw, 96px); scroll-margin-top: 16px; }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 32px; }
.work-head p { max-width: 34em; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.filters button {
  font: 400 .95rem/1 var(--body); color: var(--cream-dim); background: transparent; border: 1px solid var(--line);
  border-radius: 4px; padding: 9px 13px; cursor: pointer;
}
.filters button:hover { color: var(--cream); border-color: var(--cream-dim); }
.filters button[aria-pressed="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 26px 18px; }
.grid li[hidden] { display: none; }
.grid a { display: block; color: var(--cream-dim); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.grid img { width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 2px; margin-bottom: 8px; transition: transform .2s ease; }
.grid a:hover img, .grid a:focus-visible img { transform: translateY(-4px); }
.grid a:hover span { color: var(--cream); }
.sold-note { margin-top: 28px; }

/* custom */
.custom { padding-bottom: clamp(48px, 8vw, 96px); }
.custom-text { border-left: 2px solid var(--gold-deep); padding-left: clamp(18px, 3vw, 32px); max-width: 44em; }
.price { color: var(--cream-dim); }
.price b { color: var(--gold); font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin-right: 6px; }

/* the list */
.list { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding-bottom: clamp(48px, 8vw, 96px); }
.list p { color: var(--cream-dim); }
.list-form { display: grid; gap: 16px; }
.list-done { color: var(--gold); margin: 0; }

/* nav */
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font-size: .95rem; }
.nav a { color: var(--cream); text-decoration: none; }
.nav a:hover { color: var(--gold); }

/* two kinds, how it goes, finished */
.kinds, .plainly { padding-bottom: clamp(48px, 8vw, 96px); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 1.2em; }
.two > div { padding-right: clamp(20px, 4vw, 48px); }
.two > div + div { padding-left: clamp(20px, 4vw, 48px); padding-right: 0; border-left: 1px solid var(--line); }
.kinds-lead { color: var(--cream-dim); max-width: 44em; }
.how-h { margin-top: clamp(32px, 5vw, 56px); color: var(--cream); font-size: 1.5rem; }
.how { margin: 1em 0 0; padding-left: 1.3em; max-width: 44em; }
.how li { margin-bottom: .9em; padding-left: .3em; }
.how li::marker { color: var(--gold); font-family: var(--display); }
.how strong { font-weight: 600; }
.arrow::after { content: " \2192"; }
.plainly p { max-width: 44em; color: var(--cream-dim); }

/* the request */
.request-wrap { background: var(--ink-raised); border-top: 2px solid var(--gold-deep); padding: clamp(44px, 7vw, 88px) 0; margin-bottom: clamp(48px, 8vw, 96px); }
.request { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.request-side p { color: var(--cream-dim); }
.request-side p:first-of-type { color: var(--cream); }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: .95rem; font-weight: 600; padding: 0; }
.field i { font-weight: 400; color: var(--cream-dim); font-style: normal; }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--cream);
  background: var(--ink-field); border: 1px solid var(--line); border-radius: 4px; padding: 12px 13px;
}
textarea { resize: vertical; min-height: 7.5em; }
select { appearance: none; padding-right: 36px; background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D6B478' stroke-width='1.6'/%3E%3C/svg%3E"); }
input::placeholder, textarea::placeholder { color: #7D7262; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 1px var(--gold); }
[aria-invalid="true"] { border-color: var(--error); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; margin-top: 8px; }
.choice:has(input:checked) { border-color: var(--gold); }
.choice input, .consent input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--gold); flex: 0 0 auto; }
.choice b { display: block; font-weight: 600; }
.choice span { color: var(--cream-dim); font-size: .97rem; }
.choice b { color: var(--cream); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; cursor: pointer; }
.err { color: var(--error); font-style: normal; font-size: .9rem; min-height: 0; }
.err:empty { display: none; }
.form-error { color: var(--error); margin: 0; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts { min-height: 65px; }
.thanks h2 { color: var(--gold); }
.thanks:focus { outline: none; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--cream-dim); font-size: .95rem; }
.foot p { margin: 0; }

/* plain pages: privacy, terms, unsubscribe */
.narrow { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.narrow h1 { font-size: clamp(2rem, 5vw, 3rem); }
.narrow h2 { font-size: 1.5rem; margin-top: 1.8em; }
.narrow li { margin-bottom: .5em; }
.narrow .mark a { font-family: var(--display); color: var(--cream); text-decoration: none; font-size: 1.15rem; }
.updated { color: var(--cream-dim); font-size: .95rem; }

@media (max-width: 760px) {
  .two, .request, .row2, .list { grid-template-columns: 1fr; }
  .two > div, .two > div + div { padding: 0; border: 0; }
  .two > div + div { margin-top: 1.6em; padding-top: 1.6em; border-top: 1px solid var(--line); }
  .nav { font-size: .9rem; gap: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 20px 12px; }
  .brand span { font-size: 1.05rem; }
}

/* catalog designs on request (2026-10-04): the tile is a button that opens the reserve dialog */
.catalog .grid button.reserve { all: unset; display: block; cursor: pointer; color: var(--cream-dim); font-size: .88rem; line-height: 1.35; }
.catalog .grid button.reserve:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.catalog .grid button.reserve:hover img { transform: translateY(-4px); }
.catalog .grid button.reserve b { display: block; color: var(--gold); font-weight: 600; margin-top: 2px; }
.reserve-box { max-width: 520px; width: calc(100% - 32px); border: 1px solid var(--cream-dim); background: var(--ink); color: var(--cream); padding: clamp(18px, 4vw, 32px); border-radius: 4px; }
.reserve-box::backdrop { background: rgba(0, 0, 0, .65); }
.reserve-box h2 { margin-top: 0; }
