:root { --bg: #f7f4ee; --ink: #1d1d1b; --muted: #6b675f; --line: #ddd6c9; --accent: #23382c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3, .brand { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 500; line-height: 1.2; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9; }
.bar { background: var(--accent); color: var(--bg); text-align: center; font-size: 13px; padding: 6px 12px; letter-spacing: .04em; }

header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { font-size: 28px; text-decoration: none; letter-spacing: .02em; }
header nav { display: flex; gap: 20px; font-size: 15px; }
header nav a { text-decoration: none; }
header nav a:hover { text-decoration: underline; }

main { min-height: 60vh; padding-bottom: 64px; }
.hero { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 88px 0; margin-bottom: 48px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 16ch; margin: 8px auto 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); margin: 0; }
.btn { display: inline-block; background: var(--accent); color: var(--bg); border: 0; padding: 14px 28px; font: inherit; font-size: 15px; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.btn:hover { opacity: .9; }
.muted, .small, .form-note, .methods { color: var(--muted); }
.small, .form-note { font-size: 14px; }
.methods { font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
.card { text-decoration: none; }
.card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--line); }
.card .name { display: block; margin-top: 10px; }
.card .price { color: var(--muted); }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 64px; text-align: center; }

.crumbs { font-size: 14px; color: var(--muted); margin: 16px 0 24px; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pdp img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.price { font-size: 20px; }
form.add label { display: block; margin: 14px 0 6px; font-size: 14px; }
select, input[type=number] { font: inherit; padding: 10px; border: 1px solid var(--line); background: #fff; }
select { min-width: 200px; }
input[type=number] { width: 90px; }
form.add .btn { display: block; margin-top: 20px; width: 100%; }
.msg { min-height: 1.6em; font-size: 14px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 36px; font-size: 22px; }
table { border-collapse: collapse; width: 100%; margin: 12px 0 24px; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
blockquote.form { border-left: 3px solid var(--line); margin: 0; padding: 12px 16px; background: #fff; white-space: pre-line; }

.lines { list-style: none; padding: 0; margin: 0 0 24px; }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line input { width: 70px; padding: 4px 6px; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; color: var(--muted); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0 0 24px; }
.totals dd { margin: 0; text-align: right; }
.totals .total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
#cart .totals { max-width: 420px; margin-left: auto; }
.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.checkout aside h2 { margin-top: 0; }
fieldset { border: 1px solid var(--line); padding: 16px; margin: 0 0 20px; }
.option { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }

footer.site { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; background: #efeae1; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
footer h2 { font-size: 16px; margin: 0 0 8px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 4px 0; }
footer .legal { margin-top: 32px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .pdp, .checkout { grid-template-columns: 1fr; gap: 24px; }
  header nav { gap: 14px; }
  .hero { padding: 56px 0; }
}
