/* Fleet Street Books gift cards: the shop's colours and type (fleet/public/fleet-overrides.css) */
@font-face { font-family: 'ABC Diatype'; src: url('assets/ABCDiatype-Regular.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Family Light'; src: url('assets/family-light.woff2') format('woff2'); font-weight: 300; font-display: swap; }

:root {
  --fg: #0b2590;        /* ink blue */
  --page: #fffdfa;      /* cream */
  --band: #c2d8e9;      /* pale blue */
  --accent: #ffe5ad;    /* highlight yellow */
  --tint: color-mix(in srgb, var(--fg) 6%, var(--page));
  --error: #a3190f;
  --head: 'Family Light', Georgia, serif;
  --body: 'ABC Diatype', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter: 30px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--fg); font: 400 16px/1.6 var(--body); }
a { color: var(--fg); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: the shop's pale blue band and logo */
/* The banner, the same size as the shop's header (measured on fleetstreetbooks.co.nz, 26 Nov 2026): on a laptop
   289px tall, the logo 110px tall at 30px from the left and 79px down, and a row along the bottom (the shop's
   menu row) holding "Back to the shop"; on a phone, the shop's 92px phone bar with the logo centred. */
.band { position: relative; background: var(--band); height: 289px; }
.logo { position: absolute; left: var(--gutter); top: 79px; display: block; width: 288px; aspect-ratio: 480 / 183; background: var(--fg);
  -webkit-mask: url('assets/logo-white.png') no-repeat left / contain; mask: url('assets/logo-white.png') no-repeat left / contain; }
.band .back { position: absolute; left: var(--gutter); top: 239px; height: 48px; display: flex; align-items: center;
  font-size: 14px; text-decoration: none; color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer; }
.band .back:hover { text-decoration: underline; }
.band .back[hidden] { display: none; }
.band .back .arrow { display: none; }
@media (max-width: 767px) {
  .band { height: 92px; }
  .logo { left: 50%; top: 21px; width: 173px; transform: translateX(-50%); -webkit-mask-position: center; mask-position: center; }
  .band .back { left: 21px; top: 0; height: 92px; }
  .band .back .words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .band .back .arrow { display: inline; font-size: 22px; line-height: 1; }
  .band button.back .words { position: static; width: auto; height: auto; clip: auto; }   /* Sign out stays in words */
}

main { max-width: 1240px; padding: 48px var(--gutter) 96px; }   /* from the same 30px gutter as the logo, like the shop */
h1 { font: 300 40px/1.1 var(--head); margin: 0 0 12px; }
h2 { font: 300 24px/1.2 var(--head); margin: 0 0 16px; }
.lead { margin: 0 0 40px; }   /* one line on a laptop (26 Nov 2026: was held to 34em, which wrapped its last word) */
.small { font-size: 13px; line-height: 1.5; }
.muted { opacity: .75; }

/* the shop page: the form beside the cart */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 48px; } }

fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
legend, .label { display: block; font-size: 12px; letter-spacing: .72px; text-transform: uppercase; margin: 0 0 10px; padding: 0; }

.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .kinds { grid-template-columns: 1fr; } }
.kind { position: relative; display: block; border: 1px solid var(--fg); padding: 18px 20px 20px; cursor: pointer; background: var(--page); transition: background-color .2s; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind strong { display: block; font: 300 22px/1.2 var(--head); margin: 0 0 6px; }
.kind span { display: block; font-size: 14px; line-height: 1.5; }
.kind:has(input:checked) { background: var(--fg); color: var(--page); }
.kind:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 3px; }

.amounts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.amounts label { position: relative; }
.amounts input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.amounts .chip { display: inline-block; min-width: 72px; text-align: center; padding: 9px 14px; border: 1px solid var(--fg); cursor: pointer; }
.amounts input:checked + .chip { background: var(--fg); color: var(--page); }
.amounts input:focus-visible + .chip { outline: 2px solid var(--fg); outline-offset: 3px; }
.other { display: inline-flex; align-items: center; border-bottom: 1px solid var(--fg); padding: 0 4px; }
.other input { width: 84px; border: 0; background: transparent; padding: 8px 4px; }
.other input:focus { outline: none; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.fields .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; margin: 0 0 4px; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--fg); background: transparent; padding: 8px 0; border-radius: 0; }
.field textarea { border: 1px solid var(--fg); padding: 10px 12px; min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 2px 0 var(--fg); }
.field textarea:focus { box-shadow: inset 0 0 0 1px var(--fg); }
.count { float: right; font-size: 12px; opacity: .75; }

.button { display: inline-block; border: 0; background: var(--fg); color: var(--page); padding: 13px 26px; cursor: pointer; text-decoration: none; font-size: 16px; line-height: 1.2; }
.button:hover { opacity: .88; }
.button[disabled] { opacity: .4; cursor: default; }
.button.quiet { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.link { border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; font-size: 14px; }

.error { color: var(--error); margin: 12px 0 0; font-size: 14px; min-height: 1.5em; }
.note { background: var(--accent); padding: 12px 16px; margin: 0 0 32px; }

/* the cart */
.cart { border-top: 2px solid var(--fg); padding-top: 20px; position: sticky; top: 24px; }
@media (max-width: 900px) { .cart { position: static; } }
.cart ol { list-style: none; margin: 0 0 16px; padding: 0; }
.cart li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--band); font-size: 14px; line-height: 1.45; }
.cart li .what { font-size: 16px; }
.cart li .price { text-align: right; }
.cart li .remove { grid-column: 2; justify-self: end; }
.cart .empty { font-size: 14px; opacity: .75; padding: 4px 0 16px; }
.total { display: flex; justify-content: space-between; font: 300 24px/1.2 var(--head); margin: 8px 0 24px; }
.cart .fields { grid-template-columns: 1fr; gap: 16px; margin: 0 0 24px; }
.cart .button { width: 100%; }
.secure { font-size: 13px; margin: 12px 0 0; opacity: .75; text-align: center; }

/* thank-you page */
.done { max-width: 36em; }
.done p { margin: 0 0 16px; }

/* staff */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 0 0 32px; }
.toolbar input[type=search] { flex: 1 1 260px; border: 0; border-bottom: 1px solid var(--fg); background: transparent; padding: 8px 0; }
.toolbar input[type=search]:focus { outline: none; box-shadow: 0 2px 0 var(--fg); }
.toggle { display: inline-flex; border: 1px solid var(--fg); }
.toggle button { border: 0; background: none; padding: 7px 14px; cursor: pointer; font-size: 14px; }
.toggle button[aria-pressed=true] { background: var(--fg); color: var(--page); }
.order { border-top: 2px solid var(--fg); padding: 18px 0 8px; margin: 0 0 32px; }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin: 0 0 12px; }
.order-head h2 { margin: 0; }
.gc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 16px 32px; padding: 16px 0; border-top: 1px solid var(--band); }
@media (max-width: 760px) { .gc { grid-template-columns: 1fr; } }
.gc .msg { white-space: pre-line; border-left: 2px solid var(--band); padding-left: 12px; margin: 8px 0 0; font-size: 14px; }
.gc .act .fields { grid-template-columns: 1fr 120px; gap: 12px 16px; margin: 0 0 12px; }
.gc .act .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .72px; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--fg); margin-right: 8px; }
.tag.done { background: var(--fg); color: var(--page); }
.signin { max-width: 360px; }

/* The footer, the same as the shop's (measured on fleetstreetbooks.co.nz, 26 Nov 2026): a fine ink rule on the
   gutters, the wordmark and visit details on the left, the policy links right-aligned on the right, every
   line 14px on a 26px rhythm in a softened ink, then the credit line. On a phone: wordmark, links, visit
   details, one under the other. */
.site-foot { margin: 0 var(--gutter); padding-top: 21px; border-top: 1px solid var(--fg);   /* 1px rule + 21px = the shop's 22px */ color: rgba(11, 37, 144, .78); font-size: 14px; line-height: 18px; }
.site-foot p { margin: 0; }
.site-foot a { color: inherit; text-decoration: none; transition: color .15s ease; }
.site-foot a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo links" "visit links"; column-gap: 40px; row-gap: 8px; }
.foot-logo { grid-area: logo; line-height: 0; }
.foot-logo a { display: inline-block; }
.wordmark { display: block; width: 200px; aspect-ratio: 757 / 69; background: var(--fg);
  -webkit-mask: url('assets/footer-wordmark.png') no-repeat left / contain; mask: url('assets/footer-wordmark.png') no-repeat left / contain; }
.foot-visit, .foot-links { display: grid; row-gap: 8px; align-content: start; }
.foot-visit { grid-area: visit; }
.foot-links { grid-area: links; text-align: right; }
.pin { display: inline-block; width: 12px; height: 14px; margin-left: 6px; vertical-align: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'><path d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.5A2.5 2.5 0 1 1 6 3.5a2.5 2.5 0 0 1 0 5z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'><path d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.5A2.5 2.5 0 1 1 6 3.5a2.5 2.5 0 0 1 0 5z'/></svg>") no-repeat center / contain; }
.foot-credit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin: 18px 0; }
.rp { display: inline-flex; align-items: baseline; gap: .4em; white-space: nowrap; }
.rp-mark { position: relative; top: .22em; display: inline-block; height: .95em; aspect-ratio: 1281 / 228; }
.rp-mark::before { content: ''; position: absolute; inset: 0; background: var(--fg); opacity: .78;
  -webkit-mask: url('assets/round-peg-wordmark.png') no-repeat left / contain; mask: url('assets/round-peg-wordmark.png') no-repeat left / contain; }
.rp-mark::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% + .14em); height: 2px; background: var(--band); }
.rp:hover { text-decoration: none !important; }
@media (max-width: 767px) {
  .site-foot { margin: 0 45px; padding-top: 19px; }
  .foot-grid { grid-template-columns: 1fr; grid-template-areas: "logo" "links" "visit"; row-gap: 12px; }
  .foot-links { text-align: left; }
  .foot-credit { justify-content: flex-start; }
}
