/* ==========================================================
   Hirondelle – new design (2026)
   Ported from new-design/static/css/style.css. Loaded on every page:
   tokens, typography, header, footer and home page components.
   See also redesign-reset.css (standalone pages) and
   redesign-flatsome.css (Flatsome pages).
   ========================================================== */

/* ---------- Design tokens ---------- */
:root {
  --surface: #0e1322;
  --surface-container: #1b1f2f;
  --surface-container-low: #171b2a;
  --surface-container-lowest: #090d1c;
  --surface-card: #0F1633;
  --surface-input: #101830;
  --on-primary: #3f2e00;
  --on-surface: #dee1f7;
  --on-surface-variant: #d0c5b2;
  --text-primary: #F7F6F2;
  --text-secondary: #C8CBD5;
  --text-tertiary: #989fb4;
  --text-muted: #7A8299;
  --border-hairline: #202B4F;

  /* Gold palette */
  --gold: #c6a24b;
  --gold-hover: #e8c267;
  --gold-light: #E0C37B;
  --gold-dim: #8A6D2C;

  --radius: 0.125rem;
  --radius-lg: 0.25rem;
  --radius-full: 0.75rem;

  --font-serif: "Playfair Display", serif;
  --font-sans: "Hanken Grotesk", sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 5rem;
}

/* ---------- Cursor ---------- */
html {
  cursor: url("../img/hirondelle-cursor.png") 4 5, auto;
}

a,
button,
summary,
label,
select,
input[type="submit"],
input[type="button"],
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

/* ---------- Header & footer reset ----------
   Neutralises the base element styles of Flatsome / child style.css
   (lists, margins, buttons, inputs) inside the new header and footer.
   :where() keeps these at the specificity of one class, so component
   rules below still win; inputs need the extra element weight to beat
   Flatsome's input[type=…] rules. */
.site-header,
.site-footer {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:is(.site-header, .site-footer) *,
:is(.site-header, .site-footer) *::before,
:is(.site-header, .site-footer) *::after {
  box-sizing: border-box;
}

:is(.site-header, .site-footer) :where(h2, p, ul, li, form) {
  margin: 0;
  padding: 0;
}

:is(.site-header, .site-footer) :where(h2) {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

:is(.site-header, .site-footer) :where(ul) {
  list-style: none;
}

:is(.site-header, .site-footer) :where(a) {
  color: inherit;
  text-decoration: none;
}

:is(.site-header, .site-footer) :where(img, svg) {
  display: block;
  max-width: 100%;
}

:is(.site-header, .site-footer) :where(button) {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
  cursor: pointer;
}

:is(.site-header, .site-footer) input {
  height: auto;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  outline: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  clip: auto;
  background: var(--gold);
  color: var(--surface-container-lowest);
}

/* ---------- Typography ---------- */
.t-display-hero {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.t-headline-lg {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 40px;
  font-weight: 400;
}

.t-headline-md {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 34px;
  font-weight: 500;
}

.t-quote-lead {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
}

.t-body-lg {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 30px;
  font-weight: 300;
}

.t-body-md {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
}

.t-body-sm {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}

.t-label-nav {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.t-label-caps {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.15em;
  font-weight: 600;
}

/* ---------- Icons (inline SVG, see hirondelle_icon()) ---------- */
.hd-icon {
  flex: none;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.hd-icon-18 {
  font-size: 18px;
}

.hd-icon-20 {
  font-size: 20px;
}

.hd-icon-24 {
  font-size: 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(14, 19, 34, 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    position: absolute;
  }
}

.header-bar {
  height: var(--header-height);
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
}

/* mobile: dropdown panel under the header, opened with .menu-toggle */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border-hairline);
}

.main-nav.is-open {
  display: block;
}

.main-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.375rem 0.75rem;
  color: var(--on-surface-variant);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 200ms var(--ease);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--gold);
}

/* mega menu with the book categories (inc/redesign/mega-menu.php);
   mobile: expands inside the menu panel with .mega-toggle */
.main-nav.is-open {
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.menu-item-mega {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.mega-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  transition: color 200ms var(--ease);
}

.mega-toggle:hover,
.mega-toggle[aria-expanded="true"] {
  color: var(--gold);
}

.mega-toggle .hd-icon {
  transition: transform 200ms var(--ease);
}

.mega-toggle[aria-expanded="true"] .hd-icon {
  transform: rotate(180deg);
}

.mega-menu {
  display: none;
  flex-basis: 100%;
  padding: 0.5rem 0.75rem 1rem;
}

.mega-menu.is-open {
  display: block;
}

.mega-menu-inner {
  display: grid;
  gap: 2rem;
}

.main-nav .mega-menu a {
  display: inline-block;
  padding: 0;
  letter-spacing: normal;
  text-transform: none;
}

.main-nav .mega-menu .mega-col-title {
  color: var(--text-primary);
}

.mega-groups {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.main-nav .mega-menu .mega-group-title {
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mega-links {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.main-nav .mega-links a {
  color: var(--text-secondary);
}

.main-nav .mega-menu a:hover {
  color: var(--gold-hover);
}

/* series dropdown (inc/redesign/series-menu.php), uses .mega-toggle */
.menu-item-dropdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.series-dropdown {
  display: none;
  flex-basis: 100%;
  padding: 0 0.75rem 0.75rem;
}

.series-dropdown.is-open {
  display: block;
}

.main-nav .series-dropdown a {
  padding: 0.375rem 0;
  color: var(--text-secondary);
  letter-spacing: normal;
  text-transform: none;
}

.main-nav .series-dropdown a:hover,
.main-nav .series-dropdown a[aria-current] {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
}

.lang-current {
  color: var(--on-surface-variant);
  font-weight: 600;
  transition: color 200ms var(--ease);
}

.lang-switch:hover .lang-current {
  color: var(--gold);
}

.hd-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  transition: color 200ms var(--ease);
}

.hd-icon-btn:hover,
.hd-icon-btn[aria-expanded="true"] {
  color: var(--gold);
}

.menu-toggle .hd-icon--close,
.menu-toggle[aria-expanded="true"] .hd-icon--menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .hd-icon--close {
  display: block;
}

.header-search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border-hairline);
}

.header-search.is-open {
  display: block;
}

.hd-search-form {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
}

.hd-search-form input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  background: var(--surface-input);
  color: var(--text-primary);
  -webkit-appearance: none;
  appearance: none;
}

.hd-search-form input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.hd-search-form input:focus {
  background: var(--surface-input);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--gold-dim);
  outline: 0;
}

.search-submit {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  color: var(--gold);
  transition: color 200ms var(--ease);
}

.search-submit:hover {
  color: var(--gold-hover);
}

/* Flatsome pages: room for the fixed header */
#wrapper {
  padding-top: var(--header-height);
}

/* ---------- Main ---------- */
.site-main {
  width: 100%;
  padding-top: var(--header-height);
}

.page-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--on-surface);
}

.container {
  max-width: 80rem;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: rgba(138, 109, 44, 0.4);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 6rem;
}

.ornament img {
  width: 17rem;
  max-width: 90vw;
  height: auto;
  opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.85;
}

.hero-inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-cover-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.cover {
  position: relative;
  display: block;
}

.cover-aura {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to top right, rgba(232, 194, 103, 0.2), rgba(198, 162, 75, 0.1), transparent);
  border-radius: 1rem;
  filter: blur(40px);
  opacity: 0.7;
  transition: opacity 700ms var(--ease);
}

.cover:hover .cover-aura {
  opacity: 1;
}

.cover-lift {
  position: relative;
  transition: transform 700ms var(--ease);
}

.cover:hover .cover-lift {
  transform: translateY(-0.5rem);
}

.cover-frame {
  position: relative;
  max-width: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(198, 162, 75, 0.25);
}

.cover-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1.01);
}

.cover-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.75rem;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.cover-rim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.125rem;
  background: linear-gradient(to right, var(--gold-dim), var(--gold-light), var(--gold-dim));
  opacity: 0.6;
  pointer-events: none;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  color: var(--gold);
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--gold);
  border-radius: var(--radius-full);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

.hero-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-title {
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.hero-author {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gold);
  opacity: 0.95;
}

.excerpt {
  position: relative;
  padding: 0.25rem 0 0.5rem 2rem;
  margin-bottom: 1.25rem;
}

.excerpt::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0;
  bottom: 0.2rem;
  width: 1px;
  background: rgba(198, 162, 75, 0.35);
}

.excerpt-lead {
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
}

.purchase {
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* "More about the book": gold circle that expands behind the label on hover */
.circle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 1.25rem 0 3.5rem;
}

.circle-btn .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 1.625rem;
}

.circle-btn .circle .arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  margin: auto;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.circle-btn .circle .arrow::before {
  position: absolute;
  content: "";
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid var(--surface-container-lowest);
  border-right: 0.125rem solid var(--surface-container-lowest);
  transform: rotate(45deg);
}

.circle-btn .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.circle-btn:hover .circle,
.circle-btn:focus-visible .circle {
  width: 100%;
}

.circle-btn:hover .circle .arrow,
.circle-btn:focus-visible .circle .arrow {
  background: var(--surface-container-lowest);
  transform: translate(1rem, 0);
}

.circle-btn:hover .button-text,
.circle-btn:focus-visible .button-text {
  color: var(--surface-container-lowest);
}

/* ---------- Catalog ---------- */
.catalog {
  width: 100%;
  padding: 5rem 1.5rem;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: all 500ms var(--ease);
  container-type: inline-size;
  min-width: 0;
}

.book-card-body {
  --card-pad-x: 0.75rem;
  padding: 1.5rem var(--card-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-art {
  position: relative;
  width: 100%;
  height: 400px;
  height: min(400px, calc((100cqw - 2 * var(--card-pad-x, 0.75rem)) * 1.36));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: transform 500ms var(--ease);
}

.book-card:hover .book-art {
  transform: translateY(-0.625rem);
}

.book-art .cover-frame {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: inline-flex;
}

.book-art .cover-frame img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
}

.book-meta {
  width: 100%;
  text-align: left;
}

.index-catalog .book-meta {
  text-align: center;
}

.book-title {
  color: var(--text-primary);
  transition: color 200ms var(--ease);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.book-card:hover .book-title {
  color: var(--gold);
}

.book-author {
  margin-top: 0.25rem;
  color: var(--text-secondary);
}

.catalog-link-wrap {
  margin-top: 3rem;
  text-align: center;
}

.catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 200ms var(--ease);
}

.catalog-link:hover {
  color: var(--gold-hover);
}

.catalog-link .hd-icon {
  transition: transform 200ms var(--ease);
}

.catalog-link:hover .hd-icon {
  transform: translateX(0.25rem);
}

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative;
  width: 100%;
  padding: 6rem 0 2rem;
  overflow: hidden;
}

.manifesto-inner {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.manifesto-quote-block {
  margin-bottom: 2.5rem;
}

.manifesto-quote {
  color: var(--text-primary);
  line-height: 1.625;
}

.manifesto-divider {
  width: 5rem;
  margin: 2rem auto;
  background: rgba(138, 109, 44, 0.3);
}

.manifesto-text {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.625;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-hairline);
  text-align: left;
}

.pillar-label {
  display: block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.pillar-title {
  display: block;
  font-size: 20px;
  line-height: 1.375;
  font-weight: 400;
}

.feature-link {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: all 200ms var(--ease);
}

.feature-link .pillar-label {
  color: var(--gold);
  transition: color 200ms var(--ease);
}

.feature-link:hover .pillar-label {
  color: var(--gold-hover);
}

.feature-link .pillar-title {
  color: var(--text-secondary);
  transition: color 200ms var(--ease);
}

.feature-link:hover .pillar-title {
  color: var(--text-primary);
}

.feature-link .hd-icon {
  margin-top: 5px;
  transition: all 200ms var(--ease);
}

.feature-link:hover .hd-icon {
  transform: translateX(5px);
  color: var(--text-tertiary);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  width: 100%;
  padding-top: 6rem;
  background: var(--surface-container-lowest);
  color: var(--text-tertiary);
  overflow: hidden;
}

.site-footer .t-body-sm {
  font-size: 14px;
}

.footer-bottom.t-label-caps {
  letter-spacing: 1px;
}

.footer-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.footer-about {
  margin-bottom: 1.5rem;
  line-height: 1.625;
}

.footer-loc {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
}

.footer-loc span {
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-col {
  padding-top: 9px;
}

.footer-heading {
  margin-bottom: 20px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-links li {
  display: flex;
  align-items: center;
}

.footer-links a {
  color: var(--text-tertiary);
  transition: color 200ms var(--ease);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-news-text {
  margin-bottom: 0.75rem;
}

.news-form {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.news-hp {
  position: absolute;
  left: -9999px;
}

.news-field {
  position: relative;
}

.news-field input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  background: var(--surface-input);
  border-radius: 0;
  color: var(--text-primary);
}

.news-field input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.news-field input:focus {
  box-shadow: 0 0 0 1px var(--gold-dim);
}

.news-submit {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  color: var(--gold);
  transition: color 200ms var(--ease);
}

.news-submit:hover {
  color: var(--gold-hover);
}

.news-message {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.footer-legal a {
  transition: color 200ms var(--ease);
}

.footer-legal a:hover {
  color: var(--gold);
}

/* ---------- Cookie notice (Cookie Notice plugin) ----------
   The plugin prints its colours as inline styles, hence !important. */
#cookie-notice {
  background-color: var(--surface-container-lowest) !important;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-sans);
}

#cookie-notice .cookie-notice-container {
  color: var(--text-secondary) !important;
  font-size: 14px;
  letter-spacing: 0.02em;
}

#cookie-notice .cn-link,
#cookie-notice .cn-link:hover {
  color: var(--gold);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

#cookie-notice .cn-link:hover {
  color: var(--gold-hover);
}

#cookie-notice .cn-button {
  background-color: var(--gold) !important;
  color: var(--surface-container-lowest) !important;
  border-radius: var(--radius);
  padding: 0.6em 1.4em;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  transition: background-color 200ms var(--ease);
}

#cookie-notice .cn-button:hover {
  background-color: var(--gold-hover) !important;
  box-shadow: none;
}

#cookie-notice .cn-close-icon::before,
#cookie-notice .cn-close-icon::after {
  background-color: var(--text-tertiary);
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .main-nav,
  .main-nav.is-open {
    display: flex;
    position: static;
    padding: 0;
    background: none;
    border: 0;
  }

  .main-nav,
  .main-nav.is-open {
    align-self: stretch;
    max-height: none;
    overflow: visible;
  }

  .main-nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  /* desktop: full-width panel under the header, on hover or with .mega-toggle;
     the item spans the header height so the pointer can reach the panel */
  .menu-item-mega {
    align-self: stretch;
    flex-wrap: nowrap;
  }

  .mega-toggle {
    width: 1.5rem;
    margin-left: -0.5rem;
  }

  .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 2.5rem 1.5rem 3rem;
    background: var(--surface);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  }

  .menu-item-mega:hover > .mega-menu {
    display: block;
  }

  .menu-item-mega:hover > .mega-toggle {
    color: var(--gold);
  }

  .mega-menu-inner {
    max-width: 80rem;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .mega-col + .mega-col {
    padding-left: 3rem;
    border-left: 1px solid var(--border-hairline);
  }

  /* desktop: small panel under the item, on hover or with .mega-toggle */
  .menu-item-dropdown {
    position: relative;
    align-self: stretch;
    flex-wrap: nowrap;
  }

  .series-dropdown {
    position: absolute;
    top: 100%;
    left: -0.75rem;
    min-width: 14rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  }

  .menu-item-dropdown:hover > .series-dropdown {
    display: block;
  }

  .menu-item-dropdown:hover > .mega-toggle {
    color: var(--gold);
  }

  .main-nav .series-dropdown a {
    white-space: nowrap;
  }

  .mega-groups {
    margin-top: 1.5rem;
  }

  .menu-toggle {
    display: none;
  }

  .t-display-hero {
    font-size: 56px;
    line-height: 64px;
  }

  .t-headline-lg {
    font-size: 38px;
    line-height: 1.625;
  }

  .t-quote-lead {
    font-size: 22px;
    line-height: 34px;
  }

  .ornament {
    margin-bottom: 10rem;
  }

  .cover-frame {
    max-width: 390px;
  }

  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-card-body {
    --card-pad-x: 1rem;
    padding: 2rem var(--card-pad-x);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .header-bar {
    padding: 0 3rem;
  }

  .mega-menu {
    padding: 3rem;
  }

  .mega-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .header-actions {
    gap: 1.5rem;
  }

  .hero {
    padding: 6rem 3rem;
  }

  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
  }

  .hero-cover-col {
    grid-column: span 5;
  }

  .hero-text-col {
    grid-column: span 7;
  }

  .manifesto {
    padding: 8rem 0 2rem;
  }

  .book-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .footer-inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
