:root {
  --bg: #0e0d0c;
  --bg-2: #171513;
  --ink: #f3ede4;
  --muted: #a39a8c;
  --line: #2b2723;
  --accent: #e8a65d;
  --accent-2: #d4623b;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(232,166,93,.13), transparent 60%),
                    radial-gradient(700px 500px at -10% 40%, rgba(212,98,59,.09), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* nav */
header.site {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(14,13,12,.72);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .01em; }
.brand span { color: var(--accent); }
nav.tabs { display: flex; gap: 4px; }
nav.tabs a {
  padding: 8px 16px; border-radius: 999px; font-size: .92rem; color: var(--muted);
  transition: color .2s, background .2s;
}
nav.tabs a:hover { color: var(--ink); background: var(--bg-2); }
nav.tabs a[aria-current="page"] { color: var(--bg); background: var(--accent); font-weight: 500; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 12px; font: inherit; }

/* hero */
.hero { padding: clamp(64px, 12vw, 150px) 0 80px; }
.eyebrow { color: var(--accent); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 {
  font-family: var(--serif); font-weight: 600; line-height: 1.02;
  font-size: clamp(2.8rem, 9vw, 6.5rem); margin: 18px 0 24px; letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero p.lede { max-width: 56ch; color: var(--muted); font-size: 1.15rem; }
.cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 500;
  border: 1px solid var(--line); transition: transform .15s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn.primary:hover { background: #f0b676; }

/* sections */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.block h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 28px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, border-color .2s;
}
a.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .thumb {
  aspect-ratio: 16/10; border-radius: 10px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(232,166,93,.25), rgba(212,98,59,.18)), var(--bg);
  border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: .85rem;
}
.card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; margin-top: 14px; font-size: .75rem; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }

/* page header */
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.01em; }
.page-head p { color: var(--muted); max-width: 60ch; margin-top: 12px; }
.prose { max-width: 68ch; color: #d8d0c4; }
.prose p + p { margin-top: 1.1em; }
.two-col { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: start; }
.portrait {
  aspect-ratio: 4/5; border-radius: var(--radius); border: 1px dashed var(--line);
  background: linear-gradient(160deg, rgba(232,166,93,.2), rgba(212,98,59,.12)), var(--bg-2);
  display: grid; place-items: center; color: var(--muted);
}
.list { list-style: none; padding: 0; display: grid; gap: 10px; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.list li span { color: var(--muted); }

/* flipbook */
.book-frame {
  margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; height: min(82vh, 860px); box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.book-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.book-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

/* contact */
form.contact { display: grid; gap: 16px; max-width: 560px; }
form.contact label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
form.contact input, form.contact textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  color: var(--ink); font: inherit;
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

footer.site { margin-top: auto; border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .88rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

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

@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav.tabs { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  nav.tabs.open { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .book-frame { height: 70vh; }
}
