@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --dark: #100e11;
  --surface: #191519;
  --paper: #eee9e6;
  --muted: #bfb4b8;
  --crimson: #e58b9a;
  --crimson-border: #995565;
  --gold: #c5a477;
  --line: #eee9e629;
  --serif: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--dark); color: var(--paper); font: 15px/1.65 "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover, .book summary:hover { color: var(--crimson); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--crimson); outline-offset: 5px; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); z-index: 2; background: var(--surface); padding: .6rem; }
.skip:focus { transform: none; }
header, footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem max(6vw, 1rem); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font: 600 1.25rem var(--serif); letter-spacing: .12em; }
.brand b { font-weight: inherit; }
.emblem {
  display: block;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url(emblem.png) center / contain no-repeat;
  mask: url(emblem.png) center / contain no-repeat;
}
.brand-icon { flex: none; width: 28px; color: #b97886; }
.seal-icon { width: min(48%, 64px); color: var(--gold); }
nav { display: flex; gap: clamp(.8rem, 4vw, 3rem); align-items: center; }
nav a, footer > a:last-child { font-size: .77rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 600; }
.hero {
  --hero-position: 60% 48%;
  --hero-scrim: linear-gradient(90deg, #100e11f2, #100e11c9 28%, #100e1140 74%),
                linear-gradient(0deg, var(--dark), transparent 28%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(570px, 78vh, 850px);
  padding: 5rem max(7vw, 1.25rem);
  background: var(--dark);
  border-bottom: 1px solid var(--line);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  z-index: -2;
  background: url(citadel.png) var(--hero-position) / cover no-repeat;
  transform-origin: var(--hero-position);
}
.hero::after {
  z-index: -1;
  background: var(--hero-scrim);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero::before { transition: transform 650ms ease; }
  .hero:hover::before { transform: scale(1.065); }
}
.eyebrow { color: var(--crimson); font-size: .7rem; letter-spacing: .21em; text-transform: uppercase; font-weight: 700; margin: 0 0 .75rem; }
h1, h2, h3 { font-family: var(--serif); line-height: .94; font-weight: 500; margin: 0; }
h1 { font-size: clamp(6rem, 12vw, 12rem); letter-spacing: -.055em; }
h1 em { color: #dfd5d8; font-weight: 400; }
.lead { color: #ded5d7; font-size: 1.08rem; margin: 1.7rem 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .lead-reveal > span {
    animation: reveal-word 180ms ease both;
    animation-delay: calc(300ms + var(--word-index) * 300ms);
  }
  @keyframes reveal-word {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
.section { padding: clamp(3.5rem, 8vw, 7rem) max(7vw, 1.25rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.section-head > p, .upcoming p:last-child, .book details p { color: var(--muted); }
h2 { font-size: clamp(3.4rem, 7vw, 6.25rem); letter-spacing: -.045em; }
.books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.book { display: grid; grid-template-columns: minmax(95px, 34%) 1fr; border: 1px solid var(--line); background: var(--surface); }
.cover { position: relative; display: grid; place-items: center; min-height: 220px; color: var(--muted); }
.ash { color: var(--gold); background: radial-gradient(ellipse, #4a222b, #29191f 57%, var(--dark)); }
.bell { background: radial-gradient(ellipse, #392a34, #201922 55%, var(--dark)); }
.cover::before, .cover::after { content: ""; position: absolute; inset: 9%; border: 1px solid #bb79885c; }
.cover::after { inset: 13%; border-color: var(--line); }
.cover span { font: 4.1rem Georgia, serif; }
.book-copy { padding: clamp(.9rem, 2.5vw, 2rem); align-self: center; }
.book h3 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); margin-bottom: 1rem; }
.book details p { margin: .7rem 0 0; }
.book summary { color: var(--muted); cursor: pointer; font-size: .8rem; }
.upcoming { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: radial-gradient(ellipse at 78% 50%, #2c1921, var(--surface) 55%, var(--dark)); border-block: 1px solid var(--line); }
.seal { display: grid; place-items: center; flex: none; width: clamp(3rem, 16vw, 12rem); aspect-ratio: 1; margin-right: 5%; border: 1px solid var(--crimson-border); outline: 1px solid var(--line); outline-offset: 5px; border-radius: 50%; }
footer { border: 0; }
@media (max-width: 760px) {
  .books { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; gap: 0; }
  .hero { --hero-position: 65% center; }
  .seal { margin-right: 0; }
}
@media (max-width: 460px) {
  header { padding: .9rem .8rem; }
  .brand { font-size: .95rem; gap: .25rem; }
  .brand-icon { width: 20px; }
  nav a { font-size: .65rem; letter-spacing: .055em; }
  .hero { min-height: 530px; }
  h1 { font-size: clamp(4.8rem, 21vw, 6rem); }
  .cover { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
