/* Atelier RenAIssance — v2: Renaissance atelier theme */

:root {
  --paper: #f3ead6;
  --paper-deep: #eaddc0;
  --vellum: #f7f0dc;
  --ink: #2e2317;
  --ink-soft: #5c4b33;
  --oxblood: #71291f;
  --oxblood-deep: #531c15;
  --gilt: #a3803d;
  --line: rgba(46, 35, 23, .30);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0 0.09 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--oxblood); text-decoration-color: rgba(113, 41, 31, .45); }
a:hover { color: var(--oxblood-deep); text-decoration-color: currentColor; }

/* ---------- masthead ---------- */

.masthead { text-align: center; padding: 2.6rem 1.25rem 0; }

.wordmark {
  font-family: "IM Fell English SC", "EB Garamond", serif;
  font-size: clamp(30px, 4.6vw, 42px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .015em;
}
.wordmark .ai { color: var(--oxblood); }

.masthead .strap {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: .15rem;
}

.rule-double {
  border: 0;
  height: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 56rem;
  margin: 1.4rem auto 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.6rem;
  padding: .85rem 1rem 0;
}
.site-nav a {
  font-family: "IM Fell English SC", serif;
  font-size: 16.5px;
  letter-spacing: .07em;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: .1rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--oxblood); }
.site-nav a.active { color: var(--oxblood); border-bottom-color: var(--gilt); }

/* ---------- layout ---------- */

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.4rem; }
main.wrap { padding-bottom: 3rem; }

section { margin-top: 3.2rem; }

h1, h2, h3 { font-family: "IM Fell English", serif; font-weight: 400; line-height: 1.18; }
h2 { font-size: 27px; margin-bottom: .9rem; }
h2::after {
  content: "";
  display: block;
  width: 3.2rem;
  border-bottom: 2px solid var(--gilt);
  margin-top: .45rem;
}
p + p { margin-top: 1rem; }

.kicker {
  font-family: "IM Fell English SC", serif;
  font-size: 15px;
  letter-spacing: .18em;
  color: var(--oxblood);
}

.orn { text-align: center; color: var(--gilt); font-size: 22px; margin: 2.6rem 0 0; }

/* ---------- hero ---------- */

.hero { text-align: center; margin-top: 3.6rem; }
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  max-width: 24ch;
  margin: .9rem auto 0;
}
.hero .lede {
  max-width: 37rem;
  margin: 1.3rem auto 0;
  font-size: 21px;
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */

.cta {
  display: inline-block;
  font-family: "IM Fell English SC", serif;
  font-size: 18px;
  letter-spacing: .05em;
  color: var(--vellum);
  background: var(--oxblood);
  padding: .75em 1.9em;
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--oxblood-deep);
}
.cta:hover { background: var(--oxblood-deep); color: var(--vellum); }
.cta.ghost {
  background: transparent;
  color: var(--oxblood);
  border: 1px solid var(--oxblood);
  box-shadow: none;
}
.cta.ghost:hover { background: rgba(113, 41, 31, .07); color: var(--oxblood-deep); }

/* ---------- craft trio ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-top: 1.6rem;
}
.trio h3 {
  font-family: "IM Fell English SC", serif;
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--oxblood);
  margin-bottom: .4rem;
}
.trio p { font-size: 17.5px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .trio { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ---------- panels & publication rows ---------- */

.panel {
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 4px;
  background: rgba(247, 240, 220, .55);
  padding: 2rem;
  margin-top: 1.4rem;
}
.panel.centred { text-align: center; }

.pub-row {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}
.pub-row .mini-cover { flex: 0 0 132px; }
.pub-row h3 { font-size: 24px; }
.pub-row .byline { font-style: italic; color: var(--ink-soft); margin: .2rem 0 .7rem; }
.pub-row .more { display: inline-block; margin-top: .8rem; font-family: "IM Fell English SC", serif; letter-spacing: .05em; }
@media (max-width: 540px) {
  .pub-row { flex-direction: column; }
}

.status-tag {
  display: inline-block;
  font-family: "IM Fell English SC", serif;
  font-size: 13.5px;
  letter-spacing: .12em;
  color: var(--oxblood);
  border: 1px solid rgba(113, 41, 31, .5);
  border-radius: 2px;
  padding: .1em .7em;
  margin-bottom: .6rem;
}

/* ---------- cover face (shared: 3D book + mini cover) ---------- */

.coverface {
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, #f8f1dd, #ecdfba 62%, #f3e8cb);
  border-radius: inherit;
  display: flex;
  box-shadow: inset 0 0 46px rgba(122, 90, 40, .22);
  container-type: inline-size;
  overflow: hidden;
}
.coverframe {
  flex: 1;
  margin: 7%;
  border: 1px solid rgba(163, 128, 61, .9);
  outline: 1px solid rgba(163, 128, 61, .55);
  outline-offset: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 6% 7%;
}
.cf-imprint {
  font-family: "IM Fell English SC", serif;
  font-size: 6.4cqi;
  letter-spacing: .16em;
  color: #6b5433;
}
.cf-imprint .ai { color: var(--oxblood); }
.cf-mid { margin-top: 4%; }
.cf-title {
  font-family: "IM Fell English SC", serif;
  font-size: 11.5cqi;
  line-height: 1.14;
  color: #33261a;
}
.cf-orn { color: var(--gilt); font-size: 7cqi; margin: 3% 0; }
.cf-sub {
  font-style: italic;
  font-size: 5.3cqi;
  line-height: 1.3;
  color: #5c4b33;
  max-width: 26ch;
}
.cf-author {
  font-family: "IM Fell English SC", serif;
  font-size: 8cqi;
  letter-spacing: .14em;
  color: var(--oxblood);
}

/* ---------- desk scene: the standing book ---------- */

.scene {
  margin-top: 2.6rem;
  background-color: #20180f;
  background-image: radial-gradient(58% 48% at 50% 30%, rgba(226, 196, 128, .30), rgba(226, 196, 128, 0) 70%);
  padding-top: clamp(2.4rem, 7vw, 4.2rem);
}
.book-wrap {
  display: flex;
  justify-content: center;
  perspective: 1500px;
  margin-bottom: -44px;
  position: relative;
  z-index: 2;
}
.book {
  position: relative;
  width: min(320px, 74vw);
  aspect-ratio: 300 / 440;
  transform-style: preserve-3d;
  transform: rotateY(19deg) rotateX(2deg);
}
.b-front {
  position: absolute; inset: 0;
  transform: translateZ(23px);
  border-radius: 3px 8px 8px 3px;
}
.b-back {
  position: absolute; inset: 0;
  transform: translateZ(-23px);
  background: linear-gradient(150deg, #4d3a22, #3a2b17);
  border-radius: 8px 3px 3px 8px;
}
.b-spine {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 46px;
  transform: translateX(-23px) rotateY(-90deg);
  background: linear-gradient(to right, #54201a, #7a3026 48%, #481a14);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.b-spine span {
  writing-mode: vertical-rl;
  font-family: "IM Fell English SC", serif;
  font-size: 12.5px;
  letter-spacing: .22em;
  color: #ecd6a0;
  white-space: nowrap;
}
.b-pages {
  position: absolute; top: 4px; bottom: 4px; right: 0;
  width: 46px;
  transform: translateX(23px) rotateY(90deg);
  background: repeating-linear-gradient(to right, #f6efdb 0 1.5px, #d9ceae 1.5px 3px);
  border-radius: 0 3px 3px 0;
}
.desk {
  height: 130px;
  background: linear-gradient(#543f27, #3c2c1a 55%, #2b1f12);
  border-top: 1px solid rgba(230, 200, 135, .22);
  position: relative;
  z-index: 1;
}
.desk-shadow {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-47%);
  width: min(430px, 84vw);
  height: 48px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 68%);
}

/* ---------- book page content ---------- */

.title-block { text-align: center; margin-top: 3rem; }
.title-block h1 { font-size: clamp(32px, 4.6vw, 46px); }
.title-block .subtitle { font-style: italic; font-size: 20px; color: var(--ink-soft); margin-top: .4rem; }
.title-block .credits { font-family: "IM Fell English SC", serif; font-size: 15.5px; letter-spacing: .1em; color: var(--oxblood); margin-top: .8rem; }

blockquote {
  margin: 2.6rem auto 0;
  max-width: 34rem;
  text-align: center;
  font-style: italic;
  font-size: 21px;
}
blockquote::before {
  content: "\201C";
  display: block;
  font-family: "IM Fell English", serif;
  font-size: 64px;
  color: var(--gilt);
  line-height: .4;
  margin-bottom: 1.1rem;
}
blockquote footer { font-style: normal; font-size: 16px; color: var(--ink-soft); margin-top: .9rem; }

.notice { text-align: center; }
.notice h2::after { margin-left: auto; margin-right: auto; }
.notice .cta { margin-top: 1.1rem; }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.gallery figure {
  background: #fdf8ea;
  padding: 11px 11px 9px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(46, 35, 23, .22);
}
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption {
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: .5rem;
}
.credit-line { font-size: 16px; font-style: italic; color: var(--ink-soft); }

/* ---------- about ---------- */

.dropcap::first-letter {
  font-family: "IM Fell English", serif;
  font-size: 3.3em;
  float: left;
  line-height: .82;
  padding: .06em .14em 0 0;
  color: var(--oxblood);
}

ol.steps { margin: 1.2rem 0 0 1.3rem; }
ol.steps li { margin-top: .9rem; padding-left: .3rem; }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(234, 221, 192, .5);
}
.cta-band h2::after { margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 34rem; margin: 0 auto; color: var(--ink-soft); }
.cta-band .cta { margin-top: 1.4rem; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 4rem;
  padding: 2.2rem 1.4rem 2.6rem;
  text-align: center;
  font-size: 16px;
  color: var(--ink-soft);
}
.site-footer .wordmark { font-size: 21px; }
.site-footer .rule-double { margin: 1.1rem auto 1.3rem; max-width: 30rem; }
.site-footer nav { margin-top: .5rem; font-size: 15px; }
.site-footer nav a { color: var(--ink-soft); margin: 0 .7rem; }
.site-footer p + p { margin-top: .5rem; }
