/* VESSELBORN shop. Shares the codex and Chronicle palette; the covers carry the page. */
:root {
  --ink: #050506;
  --panel: #0d0d0f;
  --rule: #1f1f23;
  --text: #cfcfcf;
  --dim: #8a8a90;
  --bright: #ececec;
  --brass: #8b7355;
  --brass-hi: #b39a76;
  --measure: 34rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink); color: var(--text);
  font: 17px/1.7 Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.cover-img { width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }

.page-bg { position: fixed; inset: 0; z-index: -1; background: url('/assets/images/backgrounds/IMG_0252.webp') center / cover no-repeat; }
.page-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,6,.9), rgba(5,5,6,.97) 55%, var(--ink)); }

/* Navigation matches the codex and Chronicle */
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 2rem; padding: .95rem 1rem; background: rgba(5,5,6,.9); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-nav a { color: var(--dim); text-decoration: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--bright); }

/* Catalog head */
.shop-head { max-width: 1060px; margin: 0 auto; padding: 5rem 1.5rem 3.5rem; }
.shop-head h1 { font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; color: var(--bright); letter-spacing: .01em; }
.shop-head p { max-width: var(--measure); margin-top: 1.1rem; color: var(--dim); font-size: 1.05rem; }

main { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem 5rem; }
.sec-h { font-weight: 400; font-size: 1.05rem; color: var(--brass-hi); padding-bottom: .7rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }

/* Read now: each title gets a full row, cover first */
.shelf-now { margin-bottom: 5rem; }
.feature { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 2.5rem; align-items: center; padding: 1.5rem 0 2.5rem; }
.feature + .feature { border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.feature-cover { display: block; }
.feature-cover .cover-img { box-shadow: 0 1.5rem 3rem rgba(0,0,0,.6), -1px 0 0 rgba(255,255,255,.06); }
.kind { color: var(--brass-hi); font-size: .9rem; font-style: italic; }
.feature h3 { font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; color: var(--bright); margin: .2rem 0 .7rem; }
.feature h3 a { text-decoration: none; }
.feature h3 a:hover { color: #fff; }
.line { max-width: var(--measure); color: var(--text); }
.price { margin: 1.2rem 0 1.4rem; color: var(--bright); font-size: 1.15rem; }
.price .fmt { color: var(--dim); font-size: .85rem; margin-left: 1rem; }

.btn { display: inline-block; padding: .8rem 1.6rem; border: 1px solid var(--brass); color: var(--bright); text-decoration: none; font-size: .95rem; letter-spacing: .03em; transition: background .2s, color .2s; }
.btn:hover { background: var(--brass); color: var(--ink); }
.btn-quiet { border-color: #34343a; color: var(--text); }
.btn-quiet:hover { background: transparent; border-color: var(--brass-hi); color: var(--bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* The shelf: covers standing side by side */
.shelf { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 2.5rem 1.75rem; }
.shelf a { display: block; text-decoration: none; }
.shelf .cover-img, .shelf .cover-type { transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 1rem 2rem rgba(0,0,0,.55); }
.shelf a:hover .cover-img, .shelf a:hover .cover-type, .shelf a:focus-visible .cover-type, .shelf a:focus-visible .cover-img { transform: translateY(-6px); box-shadow: 0 1.6rem 2.6rem rgba(0,0,0,.7); }
.shelf .cover-img { width: 100%; height: auto; }
.shelf-title { display: block; margin-top: .9rem; color: var(--bright); font-size: .98rem; line-height: 1.35; }
.shelf-kind { display: block; color: var(--dim); font-size: .85rem; font-style: italic; margin-top: .15rem; }

/* Typeset covers in the editions' charcoal house style, for titles without art yet */
.cover-type {
  position: relative; aspect-ratio: 800 / 1136; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
  padding: 12% 10%;
  background: radial-gradient(120% 80% at 50% 20%, #2a2a2e 0%, #18181b 55%, #0f0f11 100%);
  color: #e6e1d8;
}
.cover-type::before { content: ''; position: absolute; inset: 5.5%; border: 1px solid rgba(179,154,118,.45); pointer-events: none; }
.ct-mark { font-size: .55rem; letter-spacing: .42em; color: var(--brass-hi); padding-left: .42em; }
.ct-title { font-size: 1.05rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.ct-kind { font-size: .6rem; font-style: italic; color: #a39d93; }
.cover-large .ct-mark { font-size: .8rem; }
.cover-large .ct-title { font-size: clamp(1.4rem, 3vw, 2rem); }
.cover-large .ct-kind { font-size: .85rem; }

/* Item page */
.item { padding-top: 2.5rem; }
.crumb { font-size: .9rem; margin-bottom: 2rem; }
.crumb a { color: var(--dim); text-decoration: none; }
.crumb a::before { content: '‹ '; }
.crumb a:hover { color: var(--bright); }
.item-grid { display: grid; grid-template-columns: minmax(0, 23rem) 1fr; gap: 3.5rem; align-items: start; margin-bottom: 5rem; }
.item-cover { position: sticky; top: 5rem; }
.item-cover .cover-img { width: 100%; height: auto; box-shadow: 0 2rem 4rem rgba(0,0,0,.65), -1px 0 0 rgba(255,255,255,.06); }
.item-text h1 { font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; color: var(--bright); margin: .25rem 0 .5rem; }
.byline { color: var(--dim); }
.buy { margin: 1.75rem 0 2.25rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.buy .price { margin: 0 0 1.1rem; font-size: 1.35rem; }
.buy-note, .soon-note { margin-top: 1rem; color: var(--dim); font-size: .92rem; max-width: var(--measure); }
.soon-note a, .in-codex a, .era-link a { color: var(--bright); text-decoration: none; border-bottom: 1px solid var(--brass); }
.soon-note a:hover, .in-codex a:hover, .era-link a:hover { border-bottom-color: var(--bright); }
.about { max-width: var(--measure); }
.about p + p { margin-top: 1.1rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.75rem; margin: 2.25rem 0; font-size: .95rem; max-width: var(--measure); }
.details dt { color: var(--dim); }
.details dd { color: var(--text); }
.in-codex { max-width: var(--measure); padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.in-codex h2 { font-weight: 400; font-size: 1.05rem; color: var(--brass-hi); margin-bottom: .6rem; }
.in-codex p { line-height: 1.9; }
.era-link { margin-top: .8rem; color: var(--dim); font-size: .95rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2.25rem 1.5rem 2.75rem; text-align: center; color: var(--dim); font-size: .9rem; }
.site-foot .legal { margin-top: .6rem; font-size: .75rem; color: #55555b; }
.site-foot a { color: #77777d; text-decoration: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shop-head { padding: 3rem 1rem 2.5rem; }
  main { padding: 0 1rem 4rem; }
  .feature { grid-template-columns: 7.5rem 1fr; gap: 1.25rem; align-items: start; }
  .feature .btn { padding: .7rem 1.2rem; }
  .item-grid { grid-template-columns: 1fr; gap: 2rem; }
  .item-cover { position: static; max-width: 16rem; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
  .site-nav { gap: .35rem 1.1rem; }
  .site-nav a { font-size: .72rem; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .shelf .cover-img, .shelf .cover-type, .btn { transition: none; }
}
