/* Grand Library look (DM Sans body, Instrument Serif headings, warm white fields, olive buttons with 2px corners)
   in a calm, narrow help-desk layout. */
:root {
	--ink: #0b0b0b;
	--ink-2: #3d3d3d;
	--muted: #6f6b66;
	--paper: #ffffff;
	--wash: #f6f4f2;
	--field: #f5f2ef;
	--line: #e6e2dd;
	--olive: #808000;
	--olive-dark: #6b6b00;
	--error: #8b0000;
	--body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--heading: 'Instrument Serif', 'Times New Roman', serif;
	color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 15px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button { font: inherit; color: inherit; }

/* Top bar: logo only, plus a way back */
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; padding-inline: 40px; border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; text-decoration: none; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.logo img { width: 190px; height: auto; }
.bar-end { justify-self: end; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Banner, as on the store's Contact page */
.banner { position: relative; height: 240px; overflow: hidden; background: #1a140e; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .55), rgb(0 0 0 / .2)); }
.banner-inner { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; }
.banner-inner span { color: #fff; font: 400 clamp(36px, 5vw, 52px)/1 var(--heading); letter-spacing: -.01em; }

/* Narrow centred column */
.desk { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 64px 24px 80px; }
.eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); }
h1 { margin: 0 0 14px; font: 400 clamp(36px, 6vw, 48px)/1.05 var(--heading); letter-spacing: -.01em; }
.lede { margin: 0 0 36px; color: var(--ink-2); font-size: 16px; }

/* Topic cards */
.topics { display: grid; gap: 10px; }
.topic { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: border-color .15s, background .15s; }
.topic:hover { border-color: var(--ink); }
.topic:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.topic .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 2px; background: var(--wash); }
.topic .ico svg { width: 20px; height: 20px; }
.topic b { display: block; font-weight: 500; font-size: 15px; }
.topic small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.topic .go { margin-left: auto; color: var(--muted); }
.direct { margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.direct a, .privacy a, .hint a { color: var(--olive); text-underline-offset: 3px; }

/* Form */
.change { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 26px; padding: 0; background: none; border: 0; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.change:hover { color: var(--ink); }
.notice { margin: -12px 0 30px; padding: 14px 16px; background: var(--wash); border-left: 3px solid var(--olive); font-size: 14px; }
form { display: grid; gap: 26px; }
#fields { display: grid; gap: 26px; }
.field, .group { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > .label, .group > legend { padding: 0; font-size: 14px; font-weight: 500; }
.group > legend { margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.contact { gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact > legend { float: left; width: 100%; margin-bottom: 0; font: 400 24px/1.1 var(--heading); }
.contact > legend + * { clear: both; }
.privacy { margin: 0; font-size: 12.5px; color: var(--muted); }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea {
	width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--field); border-radius: 0;
	background: var(--field); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: #b3aca4; background: #fff; }
input::placeholder, textarea::placeholder { color: #8b867f; opacity: 1; }
select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
textarea { resize: vertical; line-height: 1.55; }
.count { justify-self: end; margin-top: -4px; font-size: 12px; color: var(--muted); }
.invalid input, .invalid select, .invalid textarea { border-color: var(--error) !important; }

/* Choice pills (chips, multi, yes/no) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 10px 16px; border: 1px solid #d6d1cb; border-radius: 2px; font-size: 14px; transition: background .15s, border-color .15s, color .15s; }
.pills label:hover span { border-color: var(--ink); }
.pills input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }

/* Stars */
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars input { position: absolute; opacity: 0; }
.stars label { padding: 2px; color: #d3cec7; cursor: pointer; transition: color .12s, transform .12s; }
.stars label svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.stars label.on { color: var(--olive); }
.stars label:active { transform: scale(.9); }
.stars input:focus-visible + label { outline: 2px solid var(--olive); outline-offset: 1px; }
.stars output { margin-left: 10px; font-size: 13px; color: var(--muted); }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--olive); flex-shrink: 0; }

/* Photos */
.drop { position: relative; display: grid; place-items: center; gap: 4px; padding: 22px; border: 1px dashed #cfc9c2; background: var(--wash); text-align: center; font-size: 14px; cursor: pointer; transition: border-color .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--ink); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop small { color: var(--muted); font-size: 12.5px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs figure { position: relative; margin: 0; width: 76px; height: 76px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.thumbs button { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; }
.error { margin: 0; padding: 12px 14px; background: #fbeeee; color: var(--error); font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 16px 28px; border: 1px solid var(--olive); border-radius: 2px; background: var(--olive); color: #fff; font: 500 14px var(--body); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.button:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.button[disabled] { opacity: .6; cursor: wait; }
.button.ghost { background: transparent; color: var(--ink); border-color: #cfc9c2; }
.button.ghost:hover { border-color: var(--ink); background: transparent; }
#send { width: 100%; }

/* Done */
#done { outline: none; }
.tick { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: var(--olive); color: #fff; }
.tick svg { width: 24px; height: 24px; stroke-width: 2; }
.ref { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; background: var(--wash); border: 1px solid var(--line); }
.ref span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ref strong { font-weight: 600; font-size: 18px; letter-spacing: .06em; }
.copy { margin-left: auto; padding: 6px 12px; background: none; border: 1px solid #cfc9c2; border-radius: 2px; font-size: 12px; cursor: pointer; }
.small { margin: 10px 0 34px; font-size: 13px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer: one quiet line */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 40px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 640px) {
	.banner { height: 170px; }
	.bar { height: 60px; padding-inline: 16px; }
	.back span, .bar-end { display: none; }
	.back svg { width: 22px; height: 22px; }
	.logo img { width: 160px; }
	.desk { padding: 40px 20px 60px; }
	.lede { font-size: 15px; margin-bottom: 28px; }
	.topic { padding: 16px; gap: 14px; }
	.topic .ico { width: 38px; height: 38px; }
	.actions .button { width: 100%; }
	.foot { padding: 18px 20px; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
