/* ===========================================================================
   HOMUNCULUS CABINET — site stylesheet
   ---------------------------------------------------------------------------
   You almost never need to touch this file. The few things worth changing are
   at the very top, in the :root block: the colours and the maximum page width.
   Everything below that is layout, and it is safe to leave alone.
   =========================================================================== */

:root {
  --ink:      #f3ede2;   /* main text — warm ivory */
  --dim:      #b9b0a0;   /* quieter text */
  --faint:    #7d766a;   /* captions, footer */
  --bg:       #101010;   /* page background — near black, same as the cover */
  --panel:    #17171a;   /* slightly lifted blocks */
  --accent:   #c4a056;   /* gold rules and links */
  --accent-2: #e0c07d;   /* gold on hover */
  --line:     #2b2a27;   /* hairlines */
  --measure:  68rem;     /* maximum width of the page content */
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

/* --- shared layout -------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 3.5rem 0; }
.rule-gold {
  border: 0; height: 1px; background: var(--accent);
  width: 5rem; margin: 2rem auto;
}

/* --- headings ------------------------------------------------------------- */
h1, h2, h3, .caps {
  font-family: "Cinzel", "EB Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 3rem 0 1rem; }
h3 { font-size: 1.05rem; margin: 2rem 0 .6rem; letter-spacing: 0.10em; }
.eyebrow {
  font-family: "Cinzel", Georgia, serif;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem;
}
.lede { font-size: 1.28rem; color: var(--dim); }
.small { font-size: .95rem; color: var(--faint); }

/* --- header and navigation ------------------------------------------------ */
.site-head {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  position: sticky; top: 0; z-index: 10;
  background: rgba(16,16,16,.94);
  backdrop-filter: blur(6px);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand span {
  font-family: "Cinzel", Georgia, serif; font-size: .82rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
}
.site-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-nav a {
  font-family: "Cinzel", Georgia, serif; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* --- hero ----------------------------------------------------------------- */
.hero { padding: 5rem 0 3.5rem; text-align: center; }
.hero img.mark { width: 128px; margin: 0 auto 2rem; }
.hero img.wardrobe { height: 300px; width: auto; margin: 0 auto 2.5rem; }
@media (max-width: 600px) { .hero img.wardrobe { height: 200px; } }
.hero h1 { letter-spacing: .12em; }
.hero p { max-width: 36rem; margin: 1.25rem auto 0; color: var(--dim); }

/* --- the book block ------------------------------------------------------- */
.book {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 3rem; align-items: start; padding: 1rem 0;
}
.book .cover-shot {
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .book { grid-template-columns: 1fr; gap: 2rem; }
  .book .cover-shot { max-width: 230px; margin: 0 auto; }
}

/* --- buttons -------------------------------------------------------------- */
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.btn {
  display: inline-block; padding: .62rem 1.35rem;
  font-family: "Cinzel", Georgia, serif; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--accent); color: var(--accent);
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--accent); color: #101010; }
.btn-quiet { border-color: var(--line); color: var(--dim); }
.btn-quiet:hover { background: var(--line); color: var(--ink); }
.btn-disabled { border-color: var(--line); color: var(--faint); pointer-events: none; }

/* --- quote ---------------------------------------------------------------- */
blockquote {
  margin: 2.5rem 0; padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--accent);
  font-style: italic; color: var(--dim); font-size: 1.2rem;
}
blockquote cite {
  display: block; margin-top: .8rem; font-style: normal;
  font-family: "Cinzel", Georgia, serif; font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}

/* --- cards ---------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 1.6rem 1.5rem; }
.card h3 { margin-top: 0; color: var(--ink); }
.card p { margin-bottom: 0; color: var(--dim); font-size: 1.02rem; }
.card .status {
  font-family: "Cinzel", Georgia, serif; font-size: .64rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: .5rem;
}

/* --- lists ---------------------------------------------------------------- */
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--dim); }
ul.plain li:last-child { border-bottom: 0; }

/* --- tables --------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
th {
  font-family: "Cinzel", Georgia, serif; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
td { color: var(--dim); }

/* --- figures -------------------------------------------------------------- */
figure { margin: 2.5rem 0; }
figcaption { font-size: .9rem; color: var(--faint); margin-top: .7rem; }

/* --- footer --------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 5rem; padding: 2.5rem 0 4rem;
  color: var(--faint); font-size: .92rem;
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-foot a { color: var(--dim); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot .imprint {
  font-family: "Cinzel", Georgia, serif; font-size: .7rem;
  letter-spacing: .22em; text-transform: uppercase;
}

/* --- accessibility -------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #101010; padding: .6rem 1rem; z-index: 99;
}
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
