:root {
  --bg: #dbe4e1;
  --bg-soft: #edf3f1;
  --paper: #fffefd;
  --paper-strong: #cfdcd8;
  --text: #15202b;
  --muted: #475463;
  --line: rgba(27, 36, 48, 0.12);
  --accent: #183247;
  --accent-2: #9f5b43;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(32, 52, 71, 0.08);
}
* { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
  }
  [id] {
    scroll-margin-top: 7rem;
  }
  .anchor-marker {
    display: block;
    height: 0;
  }
  #oeuvres::before {
    content: "";
    display: block;
    height: 7rem;
    margin-top: -7rem;
    visibility: hidden;
    pointer-events: none;
  }
  body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(159, 91, 67, 0.14), transparent 26%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.no-wrap { white-space: nowrap; }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(233, 241, 239, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 1rem;
}
.brand {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand span { color: var(--accent-2); }
.nav-links {
  display: flex; gap: 1.1rem; flex-wrap: wrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.hero { padding: 6rem 0 3rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
}
.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-family: Arial, Helvetica, sans-serif;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.98;
  margin: 0.5rem 0 1rem;
  max-width: 10ch;
}
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.hero-kicker {
  color: var(--text);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.hero-card, .card {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(29, 26, 23, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
    padding: 0;
    min-height: 0;
    overflow: hidden;
  }
  .hero-card-media {
    aspect-ratio: 1.04 / 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(241, 231, 213, 0.72));
    overflow: hidden;
  }
  .hero-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
  .hero-card-copy {
    padding: 1.25rem 1.4rem 1.5rem;
  }
  .hero-card-copy .eyebrow {
    margin-top: 0;
  }
  .hero-card-copy p:last-child {
    margin-bottom: 0;
  }
  .hero-card-copy p:not(.eyebrow) {
    font-size: 0.98rem;
    color: var(--muted);
  }
  .cta-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.3rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .85rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.button-primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(23, 19, 17, 0.12);
}
.button-secondary {
  border-color: rgba(29, 26, 23, 0.18);
  color: var(--text);
  background: rgba(255, 253, 248, 0.7);
}
.button-disabled {
  background: rgba(29, 26, 23, 0.08);
  border-color: rgba(29, 26, 23, 0.12);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}
.button-small {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.section { padding: 2.5rem 0 5rem; }
.section h2 { font-size: clamp(2rem, 3vw, 3.4rem); margin: 0 0 .7rem; line-height: 1.05; }
.section-lead { color: var(--muted); max-width: 68ch; margin: 0 0 1.5rem; font-size: 1.06rem; }
.section-lead-wide { max-width: 132ch; }
.narrow { max-width: 860px; }
.intro-band { padding-top: 0.5rem; }
.intro-band .container,
.manifesto-section .container { text-align: center; }
.intro-band .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.paper-choice-section {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
}
.paper-choice-section .container {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.paper-choice-section p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 76ch;
}
.paper-choice-section p:last-child {
  margin-bottom: 0;
}
.author-grid, .book-grid {
  display: grid; gap: 1.25rem;
}
.author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.author-books-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 360px));
  justify-content: start;
}
.author-books-grid .book-card .content {
  text-align: center;
  align-items: center;
}
.author-books-grid .book-card h3 {
  text-transform: uppercase;
}
.latest-books-grid .book-card h3 {
  text-transform: uppercase;
}
.author-books-grid .book-card .content > p:not(.eyebrow):not(.muted) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  width: min(100%, 28ch);
  margin-left: auto;
  margin-right: auto;
  min-height: calc(1.6em * 3);
}
.author-books-grid .book-card .actions {
  justify-content: center;
  width: 100%;
}
.author-card, .book-card { overflow: hidden; }
.book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.author-card .media, .book-card .media {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #f5ecdc 0%, #e8d3ad 100%);
  position: relative;
}
.book-card .media {
    flex: 0 0 auto;
  }
.book-media-sticker {
    position: absolute;
    top: 1rem;
    left: -2.8rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10.2rem;
    padding: 0.42rem 0.9rem;
    background: #ffd84d;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(21, 32, 43, 0.18);
    transform: rotate(-36deg);
    transform-origin: center;
  }
.author-card {
    display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
}
.author-card .media {
  width: 220px;
  min-height: 220px;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
}
.author-card .media svg {
  width: 100%;
  height: 100%;
}
.author-card .media img,
.book-card .media img,
.sidebar-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zoom-trigger {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.zoom-trigger:hover,
.zoom-trigger:focus-visible {
  background: #fff;
}
.author-card .content, .book-card .content { padding: 1.25rem; }
.author-card .content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.book-card .content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.book-card .content > .actions {
  margin-top: auto;
}
.author-card .content {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.author-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -0.1rem;
  margin-bottom: 0.45rem;
}
.author-book-count {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(29, 26, 23, 0.04);
  border: 1px solid rgba(29, 26, 23, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-family: Arial, Helvetica, sans-serif;
}
.author-card .content > * {
  max-width: 100%;
}
.author-card-heading h3 {
  margin: 0;
}
.author-card .muted {
  margin-bottom: 0;
}
.author-card-actions {
  margin-top: auto;
  padding-top: 1rem;
}
.author-card .button {
  width: 100%;
  max-width: 260px;
}
.author-card h3, .book-card h3 { margin: .2rem 0 .5rem; line-height: 1.2; }
.muted { color: var(--muted); }
.meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.badge {
  display: inline-flex; align-items: center; padding: .35rem .6rem; border-radius: 999px;
  background: rgba(29, 26, 23, 0.04);
  border: 1px solid rgba(29, 26, 23, 0.08);
  color: var(--muted);
  font-size: .82rem;
  font-family: Arial, Helvetica, sans-serif;
}
.author-hero { padding: 3rem 0 2rem; }
.author-page-head {
  margin-bottom: 1.75rem;
}
.author-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.author-page-heading .badge {
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}
.book-detail-author-badge {
  flex-direction: column;
  align-items: center;
  min-width: 7rem;
}
.book-detail-author-badge span {
  display: block;
  white-space: nowrap;
}
.author-page-head h1 {
  margin: 0.25rem 0 0.6rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}
.author-story {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.author-story-media {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}
.author-story-media video,
.author-story-media img,
.author-story-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-story-copy {
  min-width: 0;
}
.author-story-copy h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.author-story-copy p {
    margin: 0.7rem 0;
  }
  .book-detail-hero .container {
    display: grid;
    gap: 1.75rem;
  }
  .book-detail-story {
    align-items: stretch;
  }
  .book-detail-cover {
    aspect-ratio: 3 / 4;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(22, 45, 67, 0.06);
  }
  .book-detail-cover img,
  .book-detail-cover svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
  .book-detail-cover .zoom-trigger {
    right: 0.85rem;
    bottom: 0.85rem;
  }
  .book-detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .book-detail-copy h2 {
    margin-top: 0;
  }
  .book-detail-meta {
    color: var(--accent-2);
    font-weight: 600;
  }
  .book-detail-keywords {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
  }
  .book-detail-keyword {
    background: rgba(22, 45, 67, 0.08);
    border-color: rgba(22, 45, 67, 0.1);
    color: var(--color-text);
  }
  .book-detail-actions,
  .book-detail-backlinks {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .book-detail-lower {
    display: grid;
    gap: 1.5rem;
  }
  .book-detail-related .author-page-head {
    margin-bottom: 1rem;
  }
  .book-card .actions {
    margin-top: auto;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
  align-items: center;
}
.book-card-compact .content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.95rem;
  }
.home-book-index {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-card-compact .actions {
    margin-top: 0;
    justify-content: center;
    width: 100%;
  }
  .book-card-compact .author-join-link {
    margin: 0;
  }
  .book-card-compact .author-join-link a {
    font-weight: 700;
    text-decoration: none;
  }
.book-card-compact .button {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.book-card-compact .button-primary {
  width: auto;
}
.book-card-reserved .content {
  text-align: center;
}
.book-card-reserved h3 {
  margin-bottom: 0.35rem;
}
.author-join-link {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.author-join-link a {
  color: var(--muted);
}
.author-join-link a:hover,
.author-join-link a:focus-visible {
  color: var(--text);
}
.all-books-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.latest-releases-section {
  padding-bottom: 1.5rem;
}
.latest-books-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.inline-highlight-link {
  display: inline-block;
  margin: 0 0.15rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.18);
}
.inline-highlight-link:hover,
.inline-highlight-link:focus-visible {
  background: #163fb2;
  color: #fff;
}
@media (max-width: 1100px) {
  .latest-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .latest-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .latest-books-grid {
    grid-template-columns: 1fr;
  }
}
.projects-section { padding-top: 1rem; }
.projects-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: center;
}
.projects-copy .section-lead {
  max-width: 54ch;
}
.projects-media {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}
.projects-media video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}
.projects-card {
  padding: 2.25rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(183, 138, 63, 0.14), rgba(255, 253, 248, 0.9)),
    var(--paper);
  border: 1px solid rgba(29, 26, 23, 0.08);
  box-shadow: var(--shadow);
}
.contest-home-section {
  padding-top: 0;
}
.contest-panel,
.contest-author-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 226, 118, 0.72), transparent 34%),
    radial-gradient(circle at bottom right, rgba(232, 165, 76, 0.42), transparent 36%),
    linear-gradient(135deg, rgba(255, 231, 140, 0.94), rgba(255, 248, 214, 0.96) 48%, rgba(250, 225, 139, 0.92));
  border: 1px solid rgba(167, 112, 20, 0.28);
  box-shadow:
    0 20px 42px rgba(189, 137, 39, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.contest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 260px;
  gap: 1.5rem;
  align-items: center;
}
.contest-layout-visual-left {
  grid-template-columns: 260px minmax(0, 1.35fr);
}
.contest-copy {
  min-width: 0;
}
.contest-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contest-visual img {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(22, 45, 67, 0.16));
}
.contest-panel::before,
.contest-author-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 55%);
  pointer-events: none;
}
.contest-panel > *,
.contest-author-box > * {
  position: relative;
  z-index: 1;
}
.contest-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}
.contest-author-links .button {
  min-width: 0;
}
.contest-author-box {
  margin: 0 0 1.8rem;
}
.contest-intro {
  max-width: 90ch;
  margin: 0.9rem 0 1rem;
}
.contest-steps {
  margin: 0;
  padding-left: 1.35rem;
}
.contest-steps li {
  margin: 0 0 0.85rem;
  padding-left: 0.15rem;
}
.contest-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(84, 57, 8, 0.18);
  color: rgba(35, 27, 18, 0.82);
}
.contest-highlight {
  display: inline-block;
  padding: 0.18em 0.5em 0.22em;
  margin-left: 0.2em;
  border-radius: 999px;
  border: 1px solid rgba(135, 48, 18, 0.22);
  background: linear-gradient(135deg, rgba(255, 244, 210, 0.96), rgba(255, 216, 126, 0.96));
  color: #9f3412;
  box-shadow:
    0 8px 18px rgba(167, 84, 22, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}
.manifesto-section {
  padding-top: 0;
}
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(228, 237, 234, 0.92);
}
.site-footer a { color: var(--text); }
.footer-social {
  margin: 1.8rem auto 0;
  max-width: 760px;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(29, 26, 23, 0.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(159, 91, 67, 0.18), rgba(248, 250, 249, 0.94));
  box-shadow: var(--shadow);
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-social::before {
  content: "💡";
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 8px 20px rgba(23, 19, 17, 0.12);
  animation: footer-glow 1.8s ease-in-out infinite;
}
.footer-social a {
  font-weight: 700;
}
@keyframes footer-glow {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(23, 19, 17, 0.12), 0 0 0 rgba(255, 204, 64, 0);
    transform: scale(1);
    filter: brightness(0.95);
  }
  50% {
    box-shadow: 0 8px 20px rgba(23, 19, 17, 0.14), 0 0 24px rgba(255, 204, 64, 0.65);
    transform: scale(1.06);
    filter: brightness(1.15);
  }
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 0.5rem;
}
.footer-grid > div {
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(29, 26, 23, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(241, 231, 213, 0.72));
  text-align: center;
}
.footer-title {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}
.footer-grid p {
  margin: 0.45rem 0;
}
.footer-grid > div p:not(.footer-title) {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}
.footer-legal-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.4rem 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}
.footer-legal-links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 26, 23, 0.18);
}
.footer-legal {
  margin-top: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  text-align: center;
}
.legal-section {
  padding-top: 3rem;
}
.legal-copy {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.legal-copy h1 {
  margin-bottom: 0.8rem;
}
.legal-copy h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
}
.legal-copy p {
  margin: 0 0 1rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 8, 7, 0.82);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 92vw;
  max-height: 92vh;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  width: auto;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}
.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: 200px minmax(0, 1fr); }
  .author-card .media {
    width: 200px;
    min-height: 200px;
    height: 100%;
  }
  .projects-layout { grid-template-columns: 1fr; }
  .author-story {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .nav {
    padding: .75rem 0;
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-links {
    width: 100%;
    font-size: .95rem;
    justify-content: flex-start;
    gap: 0.7rem 1rem;
    row-gap: 0.45rem;
  }
  .hero { padding-top: 3.2rem; }
  .cta-row .button {
    width: 100%;
  }
  .section { padding-bottom: 4rem; }
  .hero-card,
  .projects-card { padding: 1.4rem; }
  .contest-author-links .button {
    width: 100%;
  }
  .contest-layout {
    grid-template-columns: 1fr;
  }
  .contest-layout-visual-left {
    grid-template-columns: 1fr;
  }
  .contest-visual {
    order: -1;
  }
  .contest-visual img {
    max-width: 180px;
  }
  .author-card { grid-template-columns: 1fr; }
  .author-card .media { aspect-ratio: 1 / 1; }
  .author-card .media {
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .author-card .button {
    max-width: none;
  }
  .author-card-heading {
    align-items: flex-start;
  }
  .author-story {
      grid-template-columns: 1fr;
      padding: 1rem;
    }
    .book-detail-cover {
      max-width: 340px;
      margin: 0 auto;
    }
    .author-page-heading {
      flex-direction: column;
      align-items: flex-start;
    }
  .author-story-media {
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
  }
  .lightbox-dialog {
    max-width: 96vw;
  }
}
@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }
  .brand {
    font-size: 1.2rem;
  }
  .nav-links {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    gap: 0.5rem 0.8rem;
  }
  .section h2 {
    line-height: 1.08;
  }
  .hero p,
  .section-lead {
    font-size: 1rem;
  }
  .book-card .actions,
  .book-card-compact .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .book-card .button,
  .book-card-compact .button {
    width: 100%;
    max-width: none;
    white-space: normal;
    text-align: center;
  }
  .author-card-heading {
    flex-direction: column;
    gap: 0.5rem;
  }
  .author-book-count {
    align-self: flex-start;
  }
  .blog-article-top {
    grid-template-columns: 1fr;
  }
  .blog-article-cover {
    max-width: 220px;
    width: 100%;
    margin: 0 auto;
  }
}
.seo-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .seo-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .seo-links-grid {
    grid-template-columns: 1fr;
  }
}
.seo-link-card,
.faq-item,
.blog-card,
.blog-article {
  position: relative;
  padding: 1.5rem;
}
.blog-card {
  overflow: hidden;
  cursor: pointer;
}
.blog-card .book-media-sticker {
  top: 1.15rem;
  left: -2.55rem;
}
.faq-list,
.blog-articles {
  display: grid;
  gap: 1rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
    margin-top: 1.5rem;
  }
.blog-pagination-link {
    margin-left: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
.blog-pagination-button {
  min-width: 2.8rem;
  height: 2.8rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 45, 67, 0.18);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.blog-pagination-button:hover,
.blog-pagination-button:focus-visible {
  border-color: rgba(22, 45, 67, 0.38);
  background: rgba(22, 45, 67, 0.06);
  transform: translateY(-1px);
}
.blog-pagination-button.is-active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
  box-shadow: 0 10px 24px rgba(22, 45, 67, 0.18);
}
  .blog-card h2,
.blog-article h2,
.faq-item h2 {
    margin-top: 0;
  }
.blog-page-title {
    margin: 0 0 1rem;
    text-align: center;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.98rem;
    color: var(--accent-2);
    font-family: Arial, Helvetica, sans-serif;
  }
.blog-article-top {
  display: grid;
  grid-template-columns: minmax(0, 7.25rem) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}
.blog-article-copy > p:first-of-type {
  margin-top: 0;
}
.blog-article-cover {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(22, 45, 67, 0.12);
}
.blog-article-cover img,
.blog-article-cover svg {
  display: block;
  width: 100%;
  height: auto;
}
.blog-article-cover .zoom-trigger {
  bottom: 0.6rem;
  right: 0.6rem;
}
.blog-card-actions,
.blog-article-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
  .blog-article p:last-child,
.faq-item p:last-child,
  .seo-link-card p:last-child {
    margin-bottom: 0;
  }
.floating-top-button {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 60;
    min-width: 3.5rem;
    height: 3.5rem;
    padding: 0 1rem;
    border: 1px solid rgba(22, 45, 67, 0.16);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.96);
    color: var(--color-text);
    box-shadow: 0 16px 30px rgba(22, 45, 67, 0.18);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
  }
.floating-top-button.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
.floating-top-button:hover,
.floating-top-button:focus-visible {
    background: #fff;
    transform: translateY(-2px);
  }
  @media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-article-top {
    grid-template-columns: 1fr;
  }
  .blog-article-cover {
      max-width: 8.5rem;
    }
    .blog-pagination-link {
      width: 100%;
      margin-left: 0;
      margin-top: 0.25rem;
    }
  }

.cookie-consent {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.cookie-consent-copy p:last-child {
  margin-bottom: 0;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .button {
    flex: 1;
  }
}
