:root {
  --cream: #FBF6EE;
  --paper: #FFFDF8;
  --sand: #F3EAD9;
  --line: #E4D8C3;
  --ink: #3A3226;
  --muted: #6B5F4F;
  --night: #120E09;
  --night-2: #1C1610;
  --night-line: #2E241A;
  --gold: #C99A45;
  --gold-deep: #8A6119;
  --terracotta: #C1652F;
  --olive: #5E6B33;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 6px; z-index: 10; text-decoration: none; font-weight: 600; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem; background: var(--ink); color: var(--cream); padding: 14px 28px; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
.btn:hover { background: var(--gold-deep); }
.btn.gold { background: var(--gold); color: var(--night); }
.btn.gold:hover { background: #DDB265; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }

/* Header + banner (dark) */
.site-header { background: var(--night); border-bottom: 1px solid var(--night-line); color: #EDE3D0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: #FBF6EE; }
.site-nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: 0.94rem; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; color: #EDE3D0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav a.btn { border-bottom: 0; padding: 10px 20px; color: var(--night); }
.banner { background: #0A0806; display: flex; justify-content: center; }
.banner img { width: 100%; max-width: 1080px; height: auto; }
@media (min-width: 1100px) {
  .banner img { -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
}

/* Sections */
section { padding-block: clamp(44px, 6vw, 80px); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { margin-top: 12px; color: var(--muted); }
.page-title { padding-block: clamp(40px, 6vw, 72px) 0; }
.page-title h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; }
.page-title p { margin-top: 14px; color: var(--muted); max-width: 56ch; font-size: 1.05rem; }

.intro h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 20ch; }
.intro p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Category rows */
.shelves { display: grid; gap: 12px; }
.shelf { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px 26px 20px 0; text-decoration: none; overflow: hidden; transition: border-color .2s ease; }
.shelf:hover { border-color: var(--ink); }
.shelf .spine { align-self: stretch; background: var(--c); margin: -20px 0; }
.shelf h3 { font-size: 1.25rem; }
.shelf p { color: var(--muted); font-size: 0.95rem; margin-top: 3px; }
.shelf .go { font-weight: 600; font-size: 0.92rem; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--c); }

/* Blog list */
.posts { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.post-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-row time { font-size: 0.9rem; color: var(--muted); padding-top: 6px; }
.post-row h3 { font-size: 1.45rem; }
.post-row p { margin-top: 8px; color: var(--muted); max-width: 62ch; }
.post-row:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Article */
.article { max-width: 700px; margin-inline: auto; padding-block: clamp(36px, 6vw, 72px); }
.article .meta { color: var(--muted); font-size: 0.92rem; }
.article h1 { font-size: clamp(2rem, 4.8vw, 3rem); font-weight: 700; margin-top: 10px; }
.article .dek { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); line-height: 1.5; }
.article .body { margin-top: 36px; font-size: 1.06rem; line-height: 1.85; }
.article .body p + p, .article .body p + ol, .article .body ol + p, .article .body h2 + p { margin-top: 18px; }
.article .body h2 { font-size: 1.5rem; margin-top: 40px; }
.article .body ol { padding-left: 1.3rem; }
.article .body li { margin-top: 14px; padding-left: 6px; }
.article .body li::marker { font-family: var(--serif); font-weight: 700; color: var(--gold-deep); }
.article .cta { margin-top: 44px; padding: 26px 28px; background: var(--sand); border-left: 5px solid var(--gold); border-radius: 0 12px 12px 0; }
.article .cta p { color: var(--ink); }
.article .cta .actions { margin-top: 16px; }
.back { display: inline-block; margin-top: 40px; font-weight: 600; font-size: 0.94rem; }

/* Products */
.cat { padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.cat:first-of-type { border-top: 0; }
.cat .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.cat h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); border-left: 6px solid var(--c); padding-left: 16px; }
.cat .blurb { margin: 12px 0 0 22px; color: var(--muted); max-width: 58ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card .art { aspect-ratio: 4 / 3; background: var(--c); display: flex; align-items: flex-end; padding: 16px 18px; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.card .art.dark { color: var(--night); }
.card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.card .info { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.card a.link { font-weight: 600; font-size: 0.92rem; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--c); }
.included { background: var(--sand); }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.part { padding: 24px 28px 6px 0; }
.part + .part { padding-left: 28px; border-left: 1px solid var(--line); }
.part h3 { font-size: 1.2rem; }
.part p { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }
.fineprint { margin-top: 26px; font-size: 0.9rem; color: var(--muted); }

/* About */
.about .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.about h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.about p { max-width: 62ch; }
.about p + p { margin-top: 16px; }

/* Footer (dark) */
.site-footer { background: var(--night); color: #D9CDB9; padding-block: 40px; font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .line { max-width: 46ch; }
.site-footer .links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.site-footer a { color: var(--gold); }
.site-footer .copy { width: 100%; padding-top: 22px; border-top: 1px solid var(--night-line); color: #9C8F7A; font-size: 0.85rem; }
.site-footer :focus-visible { outline-color: var(--gold); }

@media (max-width: 860px) {
  .parts { grid-template-columns: 1fr; }
  .part, .part + .part { padding: 22px 0 6px; border-left: 0; }
  .part + .part { border-top: 1px solid var(--line); }
  .about .wrap { grid-template-columns: 1fr; gap: 18px; }
  .shelf { grid-template-columns: 12px 1fr; }
  .shelf .go { grid-column: 2; }
  .post-row { grid-template-columns: 1fr; gap: 4px; }
  .post-row time { padding-top: 0; }
}
@media (max-width: 560px) {
  .site-nav a.hide-sm { display: none; }
  .site-nav { gap: 6px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shelf, .btn { transition: none; }
}

/* Phones: crop the banner to its centre so the name and categories stay readable */
@media (max-width: 700px) {
  .banner img { height: 215px; object-fit: cover; object-position: 50% 50%; }
}

.cat .head:last-child { margin-bottom: 0; }
