/* albertkey.com — Southern Gothic noir */
/* self-hosted fonts (SIL Open Font License) */
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/eb-garamond-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/eb-garamond-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/eb-garamond-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Oswald";font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/oswald-latin-300-normal.woff2) format("woff2")}
@font-face{font-family:"Oswald";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/oswald-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Oswald";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/oswald-latin-500-normal.woff2) format("woff2")}

:root {
  --ink: #0c0b0a;
  --ink-2: #14120f;
  --ink-3: #1d1a16;
  --line: #2e2923;
  --bone: #e9e3d6;
  --bone-dim: #b3aa99;
  --ash: #7d7466;
  --rust: #9e3a22;
  --rust-hi: #c4502f;
  --display: "EB Garamond", Garamond, "Times New Roman", serif;
  --label: "Oswald", "Arial Narrow", Impact, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.1875rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
/* film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bone); text-decoration-color: var(--rust); text-underline-offset: .2em; }
a:hover { color: #fff; }
::selection { background: var(--rust); color: #fff; }
:focus-visible { outline: 2px solid var(--rust-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--rust); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- labels ---------- */
.kicker, .label {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 400;
  color: var(--ash);
}
.kicker { color: var(--rust-hi); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,11,10,.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font-family: var(--label);
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--bone);
}
.brand span { color: var(--rust-hi); }
.nav { display: flex; gap: 32px; }
.nav a {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  text-decoration: none;
  color: var(--bone-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--rust); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--bone);
  font-family: var(--label); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem;
  padding: 8px 12px; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
  padding: 96px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* fog + bayou dark */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 72% 38%, rgba(158,58,34,.16), transparent 70%),
    radial-gradient(ellipse 90% 50% at 20% 100%, rgba(233,227,214,.08), transparent 70%),
    linear-gradient(180deg, #0c0b0a 0%, #151310 60%, #0c0b0a 100%);
}
.hero-trees { position: absolute; inset: auto 0 0 0; height: 85%; z-index: -1; opacity: .9; width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: end; }
.hero h1 {
  font-family: var(--label);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: .92;
  font-size: clamp(3.6rem, 11vw, 9rem);
  margin: 18px 0 26px;
}
.hero .tagline {
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--bone-dim);
  max-width: 30ch;
  line-height: 1.35;
  margin: 0 0 36px;
}
.hero-feature { text-decoration: none; display: block; }
.hero-feature img {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05);
  transform: rotate(1.5deg);
  transition: transform .5s ease;
}
.hero-feature:hover img { transform: rotate(0deg) scale(1.02); }
.hero-feature .label { display: block; text-align: right; margin-top: 18px; }
@media (max-width: 820px) {
  .hero { min-height: 0; padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-feature img { margin: 0 auto; max-width: 240px; }
  .hero-feature .label { text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  text-decoration: none;
  padding: 14px 22px;
  border: 1px solid var(--rust);
  background: var(--rust);
  color: #fff;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--rust-hi); border-color: var(--rust-hi); color: #fff; }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--bone-dim); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 48px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.section-head h2 {
  font-family: var(--label); font-weight: 300; text-transform: uppercase;
  letter-spacing: .16em; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0;
}
.section-head a { font-family: var(--label); text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; text-decoration: none; color: var(--bone-dim); white-space: nowrap; }
.section-head a:hover { color: var(--bone); }
@media (max-width: 600px) { section { padding: 64px 0; } }

/* ---------- book grid ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
@media (max-width: 960px) { .shelf { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .shelf { gap: 32px 16px; } }
.book-card { text-decoration: none; display: block; }
.book-card .cover { position: relative; overflow: hidden; background: var(--ink-3); aspect-ratio: 2/3; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.book-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: saturate(.9); }
.book-card:hover .cover img { transform: scale(1.04); filter: saturate(1.05); }
.book-card h3 { font-weight: 500; font-size: 1.3rem; line-height: 1.2; margin: 18px 0 6px; }
.book-card p { margin: 0; color: var(--bone-dim); font-size: 1rem; line-height: 1.45; }
.book-card .label { display: block; margin-top: 10px; }

/* ---------- quote band ---------- */
.band {
  background: var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.band blockquote {
  margin: 0 auto; max-width: 30ch;
  font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.3;
}
.band cite { display: block; margin-top: 24px; font-style: normal; }

/* ---------- two-col prose ---------- */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.split h2 { font-family: var(--label); font-weight: 300; text-transform: uppercase; letter-spacing: .16em; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 0; line-height: 1.15; }
.prose p { margin: 0 0 1.1em; }
.prose p:first-child::first-letter {
  float: left; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; color: var(--rust-hi); font-weight: 500;
}
.prose.plain p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; font-weight: inherit; line-height: inherit; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- page header ---------- */
.page-head { padding: 88px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #16130f, var(--ink)); }
.page-head h1 { font-family: var(--label); font-weight: 300; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; margin: 14px 0 0; }
.page-head p { color: var(--bone-dim); font-style: italic; font-size: 1.3rem; max-width: 40ch; margin: 20px 0 0; }

/* ---------- book detail ---------- */
.book { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start; padding: 72px 0 96px; }
.book-cover img { width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05); }
.book-cover { position: sticky; top: 96px; }
.book h1 { font-family: var(--label); font-weight: 300; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1; margin: 14px 0 12px; }
.book .hook { font-style: italic; font-size: 1.45rem; color: var(--bone-dim); margin: 0 0 36px; line-height: 1.35; }
.book .prose { max-width: 62ch; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 36px 0; }
.meta div span { display: block; }
.meta div span:last-child { font-size: 1.05rem; margin-top: 4px; }
.contents { list-style: none; padding: 0; margin: 0 0 1.5em; counter-reset: c; }
.contents li { counter-increment: c; padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; }
.contents li::before { content: counter(c, upper-roman); font-family: var(--label); color: var(--rust-hi); font-size: .85rem; letter-spacing: .1em; padding-top: 5px; grid-row: span 2; }
.contents strong { font-weight: 500; font-size: 1.2rem; }
.contents em { color: var(--bone-dim); font-size: 1rem; }
.note { background: var(--ink-2); border-left: 2px solid var(--rust); padding: 28px 32px; margin: 48px 0 0; }
.note .prose p { font-size: 1.08rem; }
.note .prose p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; line-height: inherit; font-weight: inherit; }
@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .book-cover { position: static; max-width: 280px; }
}
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 28px 0 0; margin-top: 56px; }
.pager a { text-decoration: none; font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--bone-dim); }
.pager a:hover { color: var(--bone); }

/* ---------- list on books page ---------- */
.catalog { display: grid; gap: 0; }
.catalog-item { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); align-items: center; }
.catalog-item img { box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.catalog-item h2 { font-family: var(--label); font-weight: 300; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 10px 0 10px; line-height: 1.05; }
.catalog-item h2 a { text-decoration: none; }
.catalog-item p { color: var(--bone-dim); max-width: 60ch; margin: 0 0 24px; }
@media (max-width: 640px) {
  .catalog-item { grid-template-columns: 110px 1fr; gap: 20px; padding: 36px 0; align-items: start; }
  .catalog-item p { font-size: 1rem; }
  .catalog-item .btn-row .btn { padding: 10px 14px; font-size: .7rem; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-card { border: 1px solid var(--line); padding: 32px; background: var(--ink-2); }
.contact-card h2 { font-family: var(--label); font-weight: 400; text-transform: uppercase; letter-spacing: .16em; font-size: 1rem; margin: 0 0 12px; }
.contact-card p { color: var(--bone-dim); font-size: 1.05rem; margin: 0 0 20px; }
.contact-card a.mail { font-size: 1.1rem; word-break: break-all; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: #090807; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot p { color: var(--ash); font-size: .98rem; margin: 12px 0 0; max-width: 40ch; }
.foot ul { list-style: none; padding: 0; margin: 12px 0 0; }
.foot li { margin: 6px 0; }
.foot li a { text-decoration: none; color: var(--bone-dim); font-size: 1rem; }
.foot li a:hover { color: var(--bone); }
.fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.fine span, .fine a { font-family: var(--label); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--ash); text-decoration: none; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
