:root {
  --ink: #0e0c0a;
  --panel: #171310;
  --gold: #c9a36a;
  --gold-2: #e8d3a4;
  --paper: #f6f1e8;
  --muted: #9a9084;
  --line: rgba(201, 163, 106, 0.28);
  --serif: "Alegreya", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: #1b1612;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: #0a0908;
  color: #cfc6b8;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: .06em;
  padding: 8px 16px;
}
.topbar a { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14,12,10,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { color: var(--paper); display: flex; flex-direction: column; }
.brand small { color: var(--gold); letter-spacing: .22em; text-transform: uppercase; font-size: 10px; }
.brand strong { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: #ddd4c6; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid transparent; padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-color: var(--gold); }
.menu-toggle {
  display: none;
  background: var(--gold);
  color: #1a140e;
  border: 1px solid #8d6c38;
  padding: 8px 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  position: relative; min-height: 82vh; display: grid; place-items: center start;
  color: var(--paper); background: #0e0c0a; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .42; filter: saturate(.7);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,6,.82) 10%, rgba(10,8,6,.35) 70%);
}
.hero-copy { position: relative; z-index: 2; padding: 80px 0; max-width: 640px; }
.kicker { color: var(--gold); font-style: italic; font-family: var(--serif); font-size: 20px; }
h1,h2,h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); margin: 8px 0 10px; }
.gold { color: var(--gold-2); font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); margin: 0 0 18px; }
.lede { color: #e8e0d4; max-width: 560px; }
.hero-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.portrait-wrap { position: relative; z-index: 2; justify-self: end; }
.portrait {
  width: min(340px, 70vw); aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; border: 4px solid rgba(201,163,106,.45);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}

button,
.btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}
.btn,
button.btn,
a.btn,
label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid #8d6c38;
  background: var(--gold);
  color: #1a140e;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover,
button.btn:hover,
a.btn:hover,
label.btn:hover {
  background: #e8d3a4;
  color: #1a140e;
  border-color: #c9a36a;
}
.btn.dark,
a.btn.dark,
button.btn.dark {
  background: #1a140e;
  color: #f6f1e8;
  border-color: #1a140e;
}
.btn.dark:hover,
a.btn.dark:hover,
button.btn.dark:hover {
  background: #3a3228;
  color: #f6f1e8;
  border-color: #3a3228;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero .btn,
.page-hero .btn {
  background: var(--gold);
  color: #1a140e;
  border-color: #e8d3a4;
}

.admin-shell .btn,
.admin-shell button.btn,
.admin-shell a.btn,
.admin-shell label.btn {
  background: var(--gold);
  color: #1a140e;
  border-color: #8d6c38;
}
.admin-shell .btn:hover {
  background: #e8d3a4;
  color: #1a140e;
}

section { padding: 80px 0; }
.eyebrow { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); }

.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.book-card {
  background: #fff; border: 1px solid rgba(27,22,18,.08); padding: 18px;
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start;
}
.book-card img { width: 150px; box-shadow: 0 16px 30px rgba(0,0,0,.2); }
.book-card h3 { margin: 0 0 6px; font-size: 28px; }
.meta { color: #6d6458; font-size: 14px; }
.status {
  display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--gold); color: #8a6a32; padding: 3px 8px; margin-bottom: 8px;
}

.page-hero {
  background: #0e0c0a; color: var(--paper); padding: 88px 0 56px; position: relative; overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 8px 0 8px; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.split img { width: 100%; }

.blog-list { display: grid; gap: 8px; }
.blog-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.blog-item img,
.post-image {
  width: 150px;
  height: auto;
  box-shadow: 0 16px 30px rgba(0,0,0,.2);
  background: #fff;
}
.blog-item time { color: #8a6a32; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; display: block; margin-bottom: 8px; }
.blog-item h3 { margin: 0 0 8px; font-size: 28px; }
article.post { max-width: 760px; }
article.post p { white-space: pre-wrap; }
.admin-preview { width: 150px; margin-top: 8px; box-shadow: 0 8px 18px rgba(0,0,0,.25); }

form { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(27,22,18,.16);
  background: #fff;
  color: #1a140e;
  padding: 12px 14px;
  font-family: inherit;
  font-size: inherit;
}
textarea { min-height: 140px; }

.site-footer { background: #0e0c0a; color: #cfc6b8; padding: 52px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.site-footer h3 { color: var(--gold); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.legal { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: #8c8378; }
.legal a { color: var(--gold); }

.admin-shell { min-height: 100vh; background: #14110e; color: var(--paper); }
.admin-wrap { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.admin-card { background: #1c1814; border: 1px solid var(--line); padding: 22px; margin-bottom: 18px; }
.admin-card h2 { margin-top: 0; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.list-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(201,163,106,.15);
}
.notice { background: #efe4d0; color: #3b3224; padding: 14px 16px; border-left: 3px solid var(--gold); margin-bottom: 22px; }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 110px;
    background: #0e0c0a; flex-direction: column; padding: 16px 24px 24px;
  }
  .nav-links.open { display: flex; }
  .hero-layout, .book-grid, .split, .footer-grid, .blog-item { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 1fr; }
  .portrait-wrap { justify-self: start; }
}
