:root {
  --wine: #5a1216;
  --wine-deep: #3d0f12;
  --gold: #c5a059;
  --gold-soft: rgba(197, 160, 89, 0.14);
  --cream: #fdfaf5;
  --cream-deep: #f5efe4;
  --paper: rgba(255, 255, 255, 0.72);
  --ink: #2c1810;
  --ink-soft: #64554a;
  --ink-muted: #998a7f;
  --line: rgba(44, 24, 16, 0.11);
  --line-soft: rgba(44, 24, 16, 0.06);
  --shadow-sm: 0 8px 20px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 24px 60px rgba(44, 24, 16, 0.12);
  --shadow-lg: 0 50px 100px rgba(0, 0, 0, 0.18);
  --ok: #2f7357;
  --error: #a93a2f;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --container: min(72rem, calc(100vw - 52px));
  --reading: 38rem;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(48rem 30rem at 92% 12%, rgba(197, 160, 89, 0.09), transparent 56%),
    radial-gradient(38rem 24rem at 8% 82%, rgba(90, 18, 22, 0.06), transparent 50%),
    linear-gradient(180deg, #fffdf8 0%, #fdfaf5 48%, #f6f0e5 100%);
}

h1,
h2,
h3,
h4,
h5,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[x-cloak] {
  display: none !important;
}

/* Shared layout */
.container,
.top-nav-inner,
.hero-shell {
  width: var(--container);
  margin-inline: auto;
}

.top-nav,
.hero-section,
.manifesto-section,
.book-section,
.quote-section,
.news-section,
.author-section,
.contact-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.book-grid,
.author-grid,
.contact-shell,
.footer-main {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

.manifesto-section,
.book-section,
.news-section,
.author-section,
.contact-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

/* Typography */
.hero-eyebrow,
.section-kicker,
.quote-source,
.news-meta,
.footer-meta,
.btn,
.text-link,
.contact-lines strong,
.admin-status {
  font-family: var(--font-mono);
}

.hero-title,
.manifesto-title,
.section-title,
.quote-text,
.news-copy h3,
.footer-note,
.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.section-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1.08;
  font-style: italic;
}

.book-body,
.book-detail,
.author-body,
.contact-body {
  max-width: var(--reading);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.book-body,
.author-quote,
.contact-body {
  margin-top: 1rem;
}

/* Decorative background */
.floating-numbers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-number {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.8;
  color: var(--gold);
  transition: transform 10s ease-in-out;
}

.floating-number-a {
  top: 15%;
  left: 10%;
  font-size: clamp(5rem, 12vw, 9rem);
  opacity: 0.03;
}

.floating-number-b {
  top: 65%;
  left: 84%;
  font-size: clamp(7rem, 16vw, 12rem);
  opacity: 0.04;
}

.floating-number-c {
  top: 41%;
  left: 69%;
  font-size: clamp(4rem, 10vw, 8rem);
  opacity: 0.02;
}

.floating-number-d {
  top: 80%;
  left: 14%;
  font-size: clamp(5rem, 12vw, 9rem);
  opacity: 0.03;
}

.is-scrolled .floating-number {
  transform: translateY(-20px);
}

/* Navigation */
.top-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 320ms ease, box-shadow 320ms ease, backdrop-filter 320ms ease;
}

.top-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(44, 24, 16, 0.06);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.8rem 0;
  transition: padding 320ms ease;
}

.top-nav.is-scrolled .top-nav-inner {
  padding: 1rem 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--wine);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav-links a {
  opacity: 0.72;
  transition: opacity 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-btn,
.mobile-close {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn {
  display: none;
  font-size: 1.55rem;
}

.mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 2rem;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(253, 250, 245, 0.98);
  backdrop-filter: blur(14px);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.mobile-menu-symbols {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: rgba(44, 24, 16, 0.42);
}

.menu-open {
  overflow: hidden;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}

.hero-backdrop-a {
  top: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: rgba(197, 160, 89, 0.08);
}

.hero-backdrop-b {
  left: -10%;
  bottom: -10%;
  width: 40%;
  height: 50%;
  background: rgba(90, 18, 22, 0.05);
}

.hero-center-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: min(40vw, 24rem);
  line-height: 1;
  color: rgba(44, 24, 16, 0.03);
  pointer-events: none;
  user-select: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-frame {
  position: relative;
}

.hero-intro {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.hero-stem {
  width: 1px;
  height: 4.2rem;
  margin: 0 auto 2rem;
  background: linear-gradient(180deg, transparent, rgba(197, 160, 89, 0.78));
}

.hero-eyebrow {
  max-width: 34rem;
  margin: 0 auto 1.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(44, 24, 16, 0.58);
}

.hero-title {
  max-width: 10.5ch;
  margin: 0 auto;
  font-size: clamp(3.8rem, 9vw, 7.8rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-title-line {
  display: block;
}

.hero-title-line + .hero-title-line {
  margin-top: 0.02em;
}

.hero-title-prefix,
.hero-title-suffix,
.hero-title-join {
  font-style: normal;
}

.hero-title-join {
  display: inline-block;
  margin-right: 0.12em;
  color: var(--ink);
}

.hero-word {
  font-style: italic;
  font-weight: 400;
}

.hero-word-minus {
  color: var(--wine);
}

.hero-word-mirakel {
  color: var(--gold);
}

.hero-subtitle {
  max-width: 42rem;
  margin: 1.6rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(44, 24, 16, 0.74);
}

.hero-text {
  max-width: 38rem;
  margin: 1rem auto 0;
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.hero-text-secondary {
  font-style: italic;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  opacity: 0.3;
  animation: bob 1.8s ease-in-out infinite;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 3rem;
  background: #20140e;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

/* Manifesto */
.manifesto-shell {
  display: grid;
  gap: 4rem;
}

.manifesto-intro {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.manifesto-symbols {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: rgba(44, 24, 16, 0.09);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  font-style: italic;
  letter-spacing: 0.08em;
  opacity: 0.65;
  transform: translateY(-0.2rem);
}

.manifesto-title {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 5.3vw, 4.8rem);
  line-height: 1.08;
}

.manifesto-body {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  font-size: 1.14rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.manifesto-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.manifesto-card {
  padding: 0 1rem 0 0;
}

.manifesto-card-step {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.manifesto-card p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.75;
  color: rgba(44, 24, 16, 0.72);
}

/* Book */
.book-grid {
  grid-template-columns: minmax(18rem, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
}

.book-stage {
  position: relative;
  max-width: 27rem;
  margin: 0 auto;
}

.book-stage-plate {
  position: absolute;
  inset: 0;
  background: #efe8dd;
  transform: rotate(-2deg) scale(1.05);
  transition: transform 800ms ease;
}

.book-art:hover .book-stage-plate {
  transform: rotate(0deg) scale(1.03);
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(44, 24, 16, 0.08);
  background: #f0e8dc;
}

.book-cover {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4.5;
  box-shadow: var(--shadow-lg);
  transition: transform 700ms ease;
}

.book-art:hover .book-cover {
  transform: scale(1.03);
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-stage-detail {
  position: absolute;
  right: 1.4rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  gap: 1.1rem;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.book-copy,
.author-copy {
  max-width: 36rem;
}

.book-detail {
  margin-top: 0.9rem;
  font-style: italic;
}

.book-feature-list {
  display: grid;
  gap: 1.2rem;
  margin: 2rem 0;
}

.book-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.book-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(44, 24, 16, 0.04);
  color: var(--gold);
  font-size: 0.82rem;
}

.book-feature h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.book-feature p {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(44, 24, 16, 0.68);
}

/* Quote */
.quote-section {
  position: relative;
  padding: clamp(6rem, 11vw, 9rem) 0;
  background: #f9f7f2;
  overflow: hidden;
}

.quote-background-number {
  position: absolute;
  top: -3rem;
  left: -2rem;
  font-family: var(--font-display);
  font-size: min(26vw, 20rem);
  line-height: 1;
  color: rgba(44, 24, 16, 0.02);
  font-style: italic;
  pointer-events: none;
  user-select: none;
}

.quote-shell {
  max-width: 54rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  opacity: 0.12;
  color: var(--ink);
}

.quote-text {
  max-width: 46rem;
  margin: 1.5rem auto 0;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.42;
  font-style: italic;
}

.quote-source {
  margin-top: 1.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

/* News */
.news-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(245, 239, 228, 0.52)),
    var(--cream);
}

.news-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.news-heading {
  position: sticky;
  top: 7rem;
}

.news-heading .section-title {
  font-style: normal;
}

.news-heading .btn {
  margin-top: 1.4rem;
}

.news-list {
  display: grid;
  gap: 0;
  grid-column: 2;
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 1px solid var(--line);
}

.news-meta {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.news-meta time,
.news-meta span {
  display: block;
}

.news-meta span {
  color: rgba(44, 24, 16, 0.48);
}

.news-copy h3 {
  max-width: 13ch;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.news-copy p {
  max-width: 34rem;
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.78;
}

.news-copy a {
  color: var(--ink);
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.news-copy a:hover,
.news-copy a:focus-visible {
  color: var(--wine);
}

.news-delete {
  position: absolute;
  top: 1.6rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(44, 24, 16, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.news-delete:hover,
.news-delete:focus-visible {
  border-color: rgba(90, 18, 22, 0.38);
  color: var(--wine);
  transform: translateY(-1px);
}

.news-empty {
  grid-column: 2;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-style: italic;
}

/* Author */
.author-grid {
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
}

.author-image-wrap {
  position: relative;
}

.author-frame-outline {
  position: absolute;
  inset: -1rem;
  border: 1px solid rgba(44, 24, 16, 0.12);
  transform: translate(1rem, 1rem);
  transition: transform 700ms ease;
}

.author-image-wrap:hover .author-frame-outline {
  transform: translate(0, 0);
}

.author-image {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  filter: grayscale(1);
  transition: filter 900ms ease;
}

.author-image-wrap:hover .author-image {
  filter: grayscale(0);
}

.author-quote {
  max-width: 34rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  line-height: 1.65;
  color: rgba(44, 24, 16, 0.76);
  font-style: italic;
}

.author-body {
  margin-top: 1rem;
}

.author-link {
  margin-top: 1.3rem;
}

/* Contact */
.contact-section {
  padding-bottom: 0;
}

.contact-shell {
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  align-items: start;
  padding: 0 0 5rem;
}

.contact-copy .section-title {
  font-style: normal;
}

.contact-lines {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-lines p {
  display: grid;
  gap: 0.25rem;
  color: var(--ink-soft);
}

.contact-lines strong {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-form-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(44, 24, 16, 0.08);
  box-shadow: var(--shadow-sm);
}

.contact-success {
  color: var(--wine);
  font-size: 0.92rem;
}

/* Forms and buttons */
.form-input {
  width: 100%;
  border: 1px solid rgba(44, 24, 16, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.form-input::placeholder {
  color: rgba(44, 24, 16, 0.46);
}

.form-input:focus-visible {
  outline: none;
  background: #fff;
  border-color: rgba(197, 160, 89, 0.72);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.14);
}

.form-textarea {
  min-height: 9rem;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 1rem 1.8rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.45;
  transform: none;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 24px 40px rgba(90, 18, 22, 0.16);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #4a1114;
}

.btn-outline,
.text-link {
  background: transparent;
  color: var(--ink);
}

.btn-outline {
  border-color: rgba(44, 24, 16, 0.18);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: rgba(197, 160, 89, 0.48);
}

.btn-dark {
  background: var(--wine-deep);
  color: #fff;
}

.btn-sm {
  padding: 0.55rem 0.8rem;
  font-size: 0.56rem;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.15rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 160ms ease;
}

.text-link::after {
  content: "›";
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  opacity: 1;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(4px);
}

/* Footer */
.site-footer {
  padding: 5rem 0 1.6rem;
  background: linear-gradient(180deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: #fff;
}

.footer-main {
  grid-template-columns: minmax(0, 1.4fr) minmax(10rem, 0.7fr) minmax(12rem, 0.9fr);
  align-items: start;
}

.footer-brand-block {
  max-width: 26rem;
}

.footer-note {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.08em;
}

.footer-blurb {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.footer-meta {
  display: grid;
  gap: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.footer-admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.site-footer .btn-primary {
  background: linear-gradient(180deg, #cda962, #b58e45);
  color: var(--wine-deep);
}

.site-footer .btn-primary:hover,
.site-footer .btn-primary:focus-visible {
  background: linear-gradient(180deg, #d7b46d, #c29a4f);
}

.site-footer .btn-outline:hover,
.site-footer .btn-outline:focus-visible {
  border-color: rgba(197, 160, 89, 0.6);
}

.site-footer .admin-status {
  color: rgba(255, 255, 255, 0.58);
}

/* Editing and overlays */
.control-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.editable {
  outline: 1px dashed rgba(197, 160, 89, 0.72);
  outline-offset: 3px;
}

.image-overlay {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  gap: 0.35rem;
}

.edit-mode::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(197, 160, 89, 0.6);
  pointer-events: none;
}

/* Modals */
.login-modal,
.media-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 12, 10, 0.56);
  backdrop-filter: blur(8px);
}

.login-modal-panel,
.media-picker-panel,
.confirm-modal-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #521419, #3f1115);
  color: #fff8ef;
  box-shadow: var(--shadow-lg);
}

.login-modal-panel,
.media-picker-panel {
  width: min(43rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem;
}

.confirm-modal-panel {
  width: min(30rem, calc(100vw - 2rem));
  padding: 1.15rem;
}

.login-modal-panel .form-input,
.media-picker-panel .form-input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.login-modal-panel .form-input::placeholder,
.media-picker-panel .form-input::placeholder {
  color: rgba(255, 243, 223, 0.58);
}

.login-modal-panel .form-input:focus-visible,
.media-picker-panel .form-input:focus-visible {
  border-color: rgba(197, 160, 89, 0.62);
  background: rgba(255, 255, 255, 0.12);
}

.login-modal-panel .btn-outline,
.media-picker-panel .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.modal-title {
  font-size: 2rem;
  line-height: 1.02;
}

.modal-copy,
.confirm-modal-copy {
  color: rgba(255, 248, 239, 0.82);
}

.modal-copy {
  margin-top: 0.45rem;
}

.confirm-modal-copy {
  margin-top: 0.6rem;
}

.login-form {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.95rem;
}

.modal-actions,
.confirm-modal-actions {
  display: flex;
  gap: 0.5rem;
}

.confirm-modal-actions {
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Media picker */
.media-picker-panel {
  width: min(52rem, calc(100vw - 2rem));
}

.media-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.media-picker-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.62rem;
  margin-top: 0.9rem;
}

.media-picker-status {
  margin-top: 0.8rem;
  opacity: 0.8;
}

.media-picker-status-error {
  color: #ffb8ae;
}

.media-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
  margin-top: 0.86rem;
}

.media-picker-item {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.34rem;
  text-align: left;
  cursor: pointer;
}

.media-picker-item.is-current {
  border-color: var(--gold);
}

.media-picker-item img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: 5px;
}

.media-picker-item-name {
  display: block;
  margin-top: 0.32rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
}

/* Toasts and motion */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
}

.toast-message {
  padding: 0.58rem 0.82rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  box-shadow: var(--shadow-sm);
}

.toast-message.is-ok {
  background: var(--ok);
}

.toast-message.is-error {
  background: var(--error);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  :root {
    --container: min(72rem, calc(100vw - 42px));
  }

  .manifesto-cards,
  .book-grid,
  .news-shell,
  .author-grid,
  .contact-shell,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .news-heading {
    position: static;
  }

  .news-list,
  .news-empty {
    grid-column: auto;
  }

  .book-stage {
    max-width: 24rem;
  }

  .footer-brand-block {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: inline-block;
  }

  .hero-section {
    min-height: auto;
    padding-top: 8rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 28px, 72rem);
  }

  .top-nav-inner {
    padding: 1.2rem 0;
  }

  .brand-name {
    letter-spacing: 0.24em;
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .manifesto-section,
  .book-section,
  .quote-section,
  .news-section,
  .author-section {
    padding: 4.5rem 0;
  }

  .contact-shell {
    padding-bottom: 4rem;
  }

  .contact-form-panel {
    padding: 1.15rem;
  }

  .modal-actions,
  .media-picker-actions {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .media-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1.55rem 0;
  }

  .news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
  }

  .news-copy h3 {
    max-width: 15ch;
  }
}

@media (max-width: 520px) {
  .floating-number-b,
  .floating-number-c,
  .hero-center-number {
    display: none;
  }

  .quote-text {
    font-size: 1.8rem;
  }

  .media-picker-grid {
    grid-template-columns: 1fr;
  }
}
