:root {
  --ink: #1b1917;
  --ink-soft: #514c46;
  --paper: #f3eee5;
  --paper-deep: #e8e0d4;
  --surface: #fffdf8;
  --line: #d8d0c4;
  --mist: #d8d5cf;
  --stone: #8b8881;
  --accent: #6f4d37;
  --accent-dark: #4e3323;
  --focus: #b45f28;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --max: 1280px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

.author-link {
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
}

.author-link:hover,
.author-link:focus-visible {
  text-decoration-color: currentColor;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.prototype-bar {
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 1rem;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(243, 238, 229, 0.96);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.brand img {
  width: 172px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 1.7vw, 1.7rem);
}

.main-nav a,
.header-tools a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.4rem;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.catalogue-link {
  padding: 0.58rem 0.85rem;
  border: 1px solid var(--ink);
}

.publisher-bar {
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, var(--surface));
}

.publisher-bar-inner {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.publisher-bar-label {
  letter-spacing: 0.02em;
}

.publisher-bar-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.publisher-bar a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.16em;
}

.publisher-bar a:hover,
.publisher-bar a:focus-visible {
  text-decoration-thickness: 2px;
}

.publisher-language {
  color: var(--ink-soft);
  font-weight: 400;
}

.publisher-bar-separator {
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}

.icon-button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  cursor: pointer;
}

.icon-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.cart-button [data-cart-count] {
  position: absolute;
  right: -0.1rem;
  top: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.65rem;
  line-height: 17px;
}

.menu-button {
  display: none;
}

.mobile-nav-only {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(820px, calc(100svh - 115px));
  background: #ddd8cf;
}

.hero-landscape {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 28%, rgba(255,255,255,0.82), transparent 26%),
    linear-gradient(118deg, #ddd9d1 0%, #c7c5c0 47%, #b3b1ab 100%);
}

.hero-landscape::before {
  content: "";
  position: absolute;
  inset: 46% -6% -20%;
  background:
    linear-gradient(166deg, transparent 0 30%, rgba(91,92,88,0.30) 30.2% 46%, transparent 46.2%),
    linear-gradient(18deg, transparent 0 42%, rgba(244,241,233,0.42) 42.2% 58%, transparent 58.2%),
    linear-gradient(150deg, #8e918d 0 16%, #b7b7b2 16.2% 42%, #767b78 42.2% 66%, #a8a6a0 66.2%);
  opacity: 0.68;
  filter: saturate(0.4);
}

.hero-landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.28), transparent 48%, rgba(29,27,24,0.08));
}

.mist {
  position: absolute;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  filter: blur(32px);
}

.mist-one {
  width: 54%;
  left: -8%;
  top: 43%;
}

.mist-two {
  width: 40%;
  right: 5%;
  top: 18%;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 56%;
  border-top: 1px solid rgba(28,29,27,0.16);
}

.dock-line {
  position: absolute;
  bottom: 8%;
  width: 38%;
  height: 1px;
  background: rgba(24,24,22,0.24);
  transform-origin: left;
}

.dock-one {
  left: 0;
  transform: rotate(-10deg);
}

.dock-two {
  right: 0;
  transform: rotate(11deg);
}

.hero-inner {
  width: min(calc(100% - 3rem), var(--max));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(430px, 1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.book-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  isolation: isolate;
  perspective: 1400px;
  background: #17282b;
  box-shadow: 0 28px 70px rgba(27, 28, 26, 0.24);
}

.featured-cover-link {
  color: inherit;
  text-decoration: none;
}

.featured-cover-link .book-object {
  transition: transform 220ms ease, filter 220ms ease;
}

.featured-cover-link:hover .book-object,
.featured-cover-link:focus-visible .book-object {
  transform: translateY(-7px) rotateZ(-1deg);
  filter: drop-shadow(32px 38px 28px rgba(19,24,24,0.34));
}

.book-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 18, 21, 0.02), rgba(7, 18, 21, 0.22)),
    var(--hero-book-background, url("../images/hero/o-misterio-de-edwin-drood-background-v1.webp")) center / cover no-repeat;
}

.book-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 52% 45%, transparent 38%, rgba(4, 11, 13, 0.28) 100%);
  pointer-events: none;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-stage.has-ambient::before {
  background: none;
}

.book-object {
  position: relative;
  z-index: 2;
  width: min(540px, 94%);
  aspect-ratio: 1;
  transform: rotateZ(-1deg);
  filter: drop-shadow(28px 32px 24px rgba(39,38,35,0.22));
}

.hero-book-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-shadow {
  position: absolute;
  z-index: 1;
  width: 390px;
  max-width: 78%;
  height: 80px;
  bottom: 7%;
  border-radius: 50%;
  background: rgba(34,33,31,0.35);
  filter: blur(23px);
  transform: rotate(-4deg);
}

.hero-copy {
  max-width: 650px;
  padding: 2rem 0;
}

.eyebrow,
.section-kicker,
.card-kicker {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-byline a {
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}

.hero-byline a:hover,
.hero-byline a:focus-visible {
  text-decoration-color: currentColor;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.3rem, 6.4vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.062em;
  line-height: 0.91;
}

.hero-lead {
  max-width: 34ch;
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.45;
}

.hero-story {
  max-width: 58ch;
  margin: 1.15rem 0 0;
  color: #34322e;
  font-size: 0.98rem;
  line-height: 1.62;
}

.hero-invitation {
  max-width: 50ch;
  margin: 1rem 0 0;
  font-weight: 700;
  line-height: 1.5;
}

.hero-note {
  max-width: 48ch;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-light {
  background: var(--surface);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100% - var(--max)) / 2));
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
}

.editorial-intro {
  background: var(--surface);
}

.intro-grid h2,
.section-heading h2,
.catalogue h2,
.newsletter h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.2vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro-grid h2 {
  max-width: 17ch;
}

.intro-grid > div > p {
  max-width: 52ch;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.18rem;
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading > p:last-child {
  max-width: 46ch;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.split-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.split-heading h2 {
  max-width: 14ch;
}

.discovery {
  background: var(--paper);
}

.discovery-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.discovery-panel {
  min-height: 510px;
  padding: clamp(2rem, 4vw, 4rem);
}

.discovery-panel + .discovery-panel {
  border-left: 1px solid var(--line);
}

.themes-panel {
  background: var(--ink);
  color: #fff;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}

.panel-heading span {
  color: var(--stone);
  font-size: 0.72rem;
}

.panel-heading h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.theme-list,
.type-cloud {
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-list > li > button,
.theme-list > li > a {
  appearance: none;
  display: flex;
  width: 100%;
  padding: 1.05rem 0;
  background: transparent;
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.type-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.type-cloud button,
.type-cloud a {
  appearance: none;
  display: inline-block;
  padding: 0.7rem 1rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.theme-list button:hover,
.theme-list button:focus-visible,
.theme-list a:hover,
.theme-list a:focus-visible {
  padding-left: 0.45rem;
}

.type-cloud button:hover,
.type-cloud button:focus-visible,
.type-cloud a:hover,
.type-cloud a:focus-visible {
  background: var(--ink);
  color: #fff;
}

.types-panel > p {
  max-width: 37ch;
  margin-top: 4rem;
  color: var(--ink-soft);
  font-family: var(--serif);
}

.books {
  background: var(--surface);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3.2rem);
}

.book-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.book-cover-link,
.book-title-link {
  text-decoration: none;
}

.book-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  margin: 0 auto 2rem;
  background: #201d19;
  box-shadow: 0 22px 38px rgba(35,31,27,0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.book-visual::before,
.book-visual::after {
  position: absolute;
  content: "";
  inset: 0;
}

.book-visual::before {
  z-index: -2;
  background-position: center;
  background-size: cover;
  transform: scale(1.025);
  transition: transform 600ms ease;
}

.book-visual::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 44%, transparent 28%, rgba(12,10,8,0.12) 74%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(8,7,6,0.18));
}

.book-visual--memory::before {
  background-image: url("../images/selection/a-memoria-e-o-tempo-background-v1.webp");
}

.book-visual--experiences::before {
  background-image: url("../images/selection/experiencias-ocultas-background-v1.webp");
}

.book-visual--inquisition::after {
  display: none;
}

.mini-cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 88%;
  height: 90%;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(18px 24px 18px rgba(0,0,0,0.38));
  transform: translateY(0);
  transition: transform 180ms ease, filter 180ms ease;
}

.mini-cover--scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.book-cover-link:hover .book-visual,
.book-cover-link:focus-visible .book-visual {
  transform: translateY(-7px);
  box-shadow: 20px 30px 34px rgba(35,31,27,0.22);
}

.book-cover-link:hover .book-visual::before,
.book-cover-link:focus-visible .book-visual::before {
  transform: scale(1.055);
}

.book-cover-link:hover .mini-cover:not(.mini-cover--scene),
.book-cover-link:focus-visible .mini-cover:not(.mini-cover--scene) {
  transform: translateY(-4px) scale(1.015);
  filter: drop-shadow(20px 28px 20px rgba(0,0,0,0.46));
}

.book-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.book-meta .book-taxonomy {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-meta h3 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 600;
}

.book-meta .book-summary {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
}

.book-author-link {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.book-authors {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  align-items: baseline;
}

.book-title-link:hover,
.book-title-link:focus-visible {
  text-decoration: underline;
}

.book-author-link span {
  margin-left: 0.25rem;
}

.stories {
  background: var(--paper-deep);
}

.authors {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* Alphabetical books and authors indexes */
.collection-index {
  min-height: 70vh;
  background: var(--surface);
}

.collection-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.collection-index-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.collection-index-header h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4rem, 11vw, 9rem);
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.collection-index-header > div > p:last-child {
  max-width: 62ch;
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.collection-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 3vw, 3rem);
}

.collection-grid--books,
.collection-grid--authors {
  align-items: start;
}

.collection-book-card,
.collection-author-card {
  min-width: 0;
}

.collection-book-cover-link,
.collection-book-copy a,
.collection-author-link {
  text-decoration: none;
}

.collection-book-cover {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 0 1.35rem;
  padding: clamp(0.8rem, 2vw, 1.4rem);
  background: var(--paper-deep);
  border: 1px solid rgba(27,25,23,0.08);
}

.collection-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(35,31,27,0.18));
  transition: transform 180ms ease;
}

.collection-book-cover-link:hover img,
.collection-book-cover-link:focus-visible img {
  transform: translateY(-4px);
}

.collection-book-copy h2,
.collection-author-card h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.18;
}

.collection-book-copy h2 a:hover,
.collection-book-copy h2 a:focus-visible,
.collection-author-link:hover h2,
.collection-author-link:focus-visible h2 {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.collection-book-authors {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.collection-book-authors a {
  text-decoration: underline;
  text-decoration-color: rgba(27,25,23,0.28);
  text-underline-offset: 0.2em;
}

.collection-author-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0 0 1.35rem;
  background: var(--paper-deep);
  box-shadow: 0 18px 38px rgba(35,31,27,0.12);
}

.collection-author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 220ms ease;
}

.collection-author-link:hover img,
.collection-author-link:focus-visible img {
  transform: scale(1.025);
}

.collection-empty {
  max-width: 52ch;
  font-family: var(--serif);
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .collection-index-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .collection-count {
    white-space: normal;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-book-card,
  .collection-author-card {
    width: min(330px, 100%);
    margin: 0 auto;
  }
}

.author-section-intro {
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.home-author-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
}

.home-author-card {
  min-width: 0;
}

.home-author-portrait-link,
.home-author-copy a {
  text-decoration: none;
}

.home-author-portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  margin: 0 0 1.35rem;
  background: radial-gradient(circle at 35% 22%, rgba(255,255,255,0.7), transparent 25%), linear-gradient(145deg, #ded4c6, #877566);
  box-shadow: 0 18px 38px rgba(35,31,27,0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 240ms ease;
}

.home-author-placeholder {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.08em;
  color: rgba(27,25,23,0.68);
}

.home-author-portrait-link:hover .home-author-portrait,
.home-author-portrait-link:focus-visible .home-author-portrait {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(35,31,27,0.2);
}

.home-author-portrait-link:hover img,
.home-author-portrait-link:focus-visible img {
  transform: scale(1.025);
}

.home-author-copy h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.16;
}

.home-author-copy h3 a:hover,
.home-author-copy h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-author-copy p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.author-index-list {
  max-width: 720px;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.author-index-list a {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}

.author-index-list a:hover span:first-child,
.author-index-list a:focus-visible span:first-child {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (max-width: 900px) {
  .home-author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .home-author-grid { grid-template-columns: 1fr; }
  .home-author-card { width: min(360px, 100%); margin: 0 auto; }
}

.reflection {
  overflow: hidden;
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 5vw, 4.5rem);
  background: var(--paper-deep);
}

.delphi-installation {
  width: min(820px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 34px 34px rgba(47, 38, 28, 0.18));
}

.delphi-temple {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #5a493a;
  border: 1px solid rgba(54,41,28,0.58);
  box-shadow:
    inset 0 0 70px rgba(15,12,9,0.2),
    0 26px 70px rgba(47,38,28,0.2);
}

.delphi-temple-image {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: auto;
  max-width: none;
  height: 137%;
  object-fit: contain;
  transform: translateX(-50%);
  user-select: none;
}

.delphi-temple::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 67%, transparent 0 15%, rgba(18,14,10,0.13) 72%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(20,16,12,0.12));
  pointer-events: none;
}

.delphi-inscription {
  position: absolute;
  z-index: 2;
  top: 14.5%;
  left: 50%;
  width: 94%;
  margin: 0;
  color: rgba(77, 80, 70, 0.96);
  font-family: "Herculanum", "Copperplate", "Copperplate Gothic Light", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(0.9rem, 3.9vw, 2.6rem);
  font-variant: small-caps;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px rgba(255,255,255,0.34);
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.reflection-content {
  position: absolute;
  z-index: 3;
  top: 59.6%;
  left: 50%;
  width: 37%;
  height: 50.5%;
  min-height: 0;
  padding: clamp(0.65rem, 1.6vw, 1.15rem);
  display: grid;
  place-items: center;
  background: rgba(57, 58, 50, 0.94);
  border: 1px solid rgba(26, 21, 17, 0.86);
  box-shadow: 0 16px 34px rgba(16, 12, 8, 0.3);
  text-align: center;
  transform: translate(-50%, -50%);
}

.reflection-quote {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reflection-quote > p {
  max-width: 100%;
  margin: 0 auto;
  color: #fff3bd;
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.32;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.reflection-quote > p::before {
  content: "“";
}

.reflection-quote > p::after {
  content: "”";
}

.reflection-quote footer {
  margin-top: clamp(0.6rem, 1.4vw, 1rem);
  color: #f0e7d5;
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reflection-quote footer a {
  font-weight: 700;
}

.reflection-quote cite {
  font-family: var(--serif);
}

.reflection-button {
  width: 100%;
  height: 100%;
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: clamp(0.65rem, 1.6vw, 1rem);
  justify-content: center;
  background: transparent;
  color: #fffdf6;
  border: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.2;
  cursor: pointer;
}

.reflection-button-label {
  display: block;
}

.reflection-click-symbol {
  width: clamp(2.6rem, 5vw, 3.4rem);
  height: clamp(2.6rem, 5vw, 3.4rem);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 253, 246, 0.72);
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.reflection-button:hover {
  color: #fff0ad;
  text-shadow: 0 0 12px rgba(255, 222, 134, 0.45);
}

.reflection-button:hover .reflection-click-symbol,
.reflection-button:focus-visible .reflection-click-symbol {
  background: rgba(255, 240, 173, 0.12);
  border-color: #fff0ad;
  transform: translateY(2px);
}

.reflection-button:focus-visible {
  outline: 2px solid #fff0ad;
  outline-offset: -4px;
}

.reflection-quote[hidden],
.reflection-button[hidden] {
  display: none;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .reflection-quote > p {
    background-image: linear-gradient(90deg, #fff1a8 0%, #9be4e5 28%, #fff6c9 51%, #ffc177 74%, #f39a83 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.story-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: clamp(2rem, 6vw, 6rem);
}

.story-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.story-image {
  min-height: 470px;
  background:
    linear-gradient(30deg, transparent 0 44%, rgba(255,255,255,0.16) 44.3% 58%, transparent 58.3%),
    radial-gradient(circle at 30% 25%, #d4c6b3, transparent 22%),
    linear-gradient(145deg, #6d6255, #302c27);
  filter: saturate(0.45);
}

.story-feature h3,
.story-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.22;
}

.story-feature h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.story-feature > div:last-child > p:not(.card-kicker) {
  color: var(--ink-soft);
}

.story-list article {
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.story-list h3 {
  font-size: 1.42rem;
}

.story-list h3 a {
  text-decoration: none;
}

.story-list h3 a:hover {
  text-decoration: underline;
}

.story-list article > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.catalogue {
  background: var(--surface);
}

.catalogue-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: clamp(3rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  align-items: center;
  background: var(--ink);
  color: #fff;
}

.catalogue-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(30deg, transparent 48%, #fff 49% 50%, transparent 51%),
    linear-gradient(150deg, transparent 48%, #fff 49% 50%, transparent 51%);
  background-size: 82px 48px;
}

.catalogue-copy,
.catalogue-object {
  position: relative;
  z-index: 1;
}

.catalogue-copy h2 {
  max-width: 12ch;
}

.catalogue-copy > p:not(.section-kicker) {
  max-width: 44ch;
  margin: 2rem 0;
  color: rgba(255,255,255,0.74);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.catalogue-card .section-kicker {
  color: rgba(255,255,255,0.58);
}

.catalogue-object {
  min-height: 360px;
}

.catalogue-sheet {
  position: absolute;
  width: min(300px, 70%);
  aspect-ratio: 0.72;
  left: 50%;
  top: 50%;
  padding: 2rem;
  background: #f4efe6;
  color: var(--ink);
  box-shadow: 26px 32px 42px rgba(0,0,0,0.34);
}

.sheet-back {
  transform: translate(-38%, -52%) rotate(8deg);
  opacity: 0.55;
}

.sheet-front {
  transform: translate(-57%, -48%) rotate(-5deg);
}

.sheet-front img {
  width: 78%;
}

.sheet-front p {
  margin: 5rem 0 0;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.sheet-front span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.newsletter {
  background: var(--paper);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.newsletter h2 {
  max-width: 12ch;
}

.newsletter-inner > div > p:last-child {
  max-width: 46ch;
  color: var(--ink-soft);
  font-family: var(--serif);
}

.newsletter-form > label:first-child,
.search-dialog label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.search-dialog .form-row {
  display: flex;
  gap: 0.7rem;
}

.search-dialog .form-row input {
  min-width: 0;
  flex: 1;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
}

.consent-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.consent-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.form-status {
  min-height: 1.5em;
  margin-bottom: 0;
  font-size: 0.82rem;
}

.contact-panel {
  max-width: var(--max);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  background: #f1ece3;
  color: var(--ink);
  border-top: 4px solid var(--accent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.contact-panel .section-kicker {
  color: var(--accent-dark);
}

.contact-panel h2 {
  max-width: 11ch;
  margin: 0.35rem 0 1.4rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.contact-introduction > p:not(.section-kicker) {
  max-width: 42ch;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 0.22em;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

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

.contact-field {
  margin: 0;
}

.contact-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  background: #fffdfa;
  color: var(--ink);
  border: 1px solid rgba(35, 31, 27, 0.44);
  border-radius: 0;
  font: inherit;
}

.contact-field input {
  min-height: 50px;
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-field [aria-invalid="true"] {
  border-color: #8d2525;
  box-shadow: 0 0 0 2px rgba(141, 37, 37, 0.14);
}

.contact-trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-form-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.contact-form-actions p {
  max-width: 48ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.contact-notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: #fffdfa;
  border-left: 4px solid var(--accent);
  color: var(--ink);
}

.contact-notice--error {
  border-left-color: #8d2525;
}

.contact-notice p,
.contact-notice ul {
  margin: 0;
}

.contact-notice ul {
  padding: 0.45rem 0 0 1.2rem;
}

.site-footer {
  padding: clamp(4rem, 8vw, 7rem) max(1.5rem, calc((100% - var(--max)) / 2)) 2rem;
  background: #171615;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 0.7fr);
  gap: 3rem;
}

.footer-brand img {
  width: 220px;
  padding: 0.8rem;
  background: #f5f2ea;
}

.footer-brand p {
  color: rgba(255,255,255,0.62);
  font-family: var(--serif);
}

.footer-grid h2 {
  margin: 0 0 1.3rem;
  color: rgba(255,255,255,0.52);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel h2 {
    max-width: 14ch;
  }
}

@media (max-width: 520px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-form-actions .button {
    width: 100%;
  }
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid a {
  margin-bottom: 0.65rem;
  color: rgba(255,255,255,0.86);
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.56);
  font-size: 0.76rem;
}

.search-dialog {
  width: min(720px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 25px 80px rgba(0,0,0,0.28);
}

.search-dialog::backdrop {
  background: rgba(20,18,16,0.68);
  backdrop-filter: blur(3px);
}

.search-dialog-inner {
  position: relative;
  padding: clamp(2rem, 7vw, 5rem);
}

.search-dialog h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.dialog-close {
  position: absolute;
  right: 1rem;
  top: 0.7rem;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
}

.search-help {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.search-results {
  display: grid;
  gap: 0;
  max-height: min(48vh, 430px);
  margin-top: 1.75rem;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.search-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.search-result img {
  width: 50px;
  height: 68px;
  object-fit: contain;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result strong {
  font-family: var(--serif);
  font-size: 1rem;
}

.search-result span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.search-result-price {
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 700;
}

.search-empty {
  padding: 1.5rem 0;
  color: var(--ink-soft);
  font-family: var(--serif);
}

.search-page .section-heading h1 { max-width: 18ch; margin: 0; font-size: clamp(2.6rem, 6vw, 6rem); letter-spacing: -0.055em; line-height: 0.98; }
.search-page-results { border-top: 1px solid var(--line); }
.search-page-card { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: clamp(1.3rem, 4vw, 3rem); align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.search-page-image { width: 100%; aspect-ratio: 2 / 3; display: grid; place-items: center; overflow: hidden; background: var(--paper-deep); text-decoration: none; }
.search-page-image img { width: 100%; height: 100%; object-fit: contain; }
.search-page-image span { font-family: var(--serif); font-size: 3rem; color: var(--ink-soft); }
.search-page-type { margin: 0 0 0.3rem; color: var(--ink-soft); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.search-page-card h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 2rem); }
.search-page-card h2 a { text-decoration: none; }
.search-page-card h2 a:hover { text-decoration: underline; }
.search-page-card p:not(.search-page-type, .search-page-price) { max-width: 70ch; margin: 0.7rem 0 0; color: var(--ink-soft); font-family: var(--serif); }
.search-page-price { white-space: nowrap; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.search-page-empty { min-height: 30vh; font-family: var(--serif); font-size: 1.2rem; }
.taxonomy-editions .section-heading h1 { margin: 0; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -0.06em; line-height: 0.94; }
.taxonomy-description { max-width: 60ch; font-family: var(--serif); font-size: 1.12rem; }
.taxonomy-editions .book-meta h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
@media (max-width: 650px) { .search-page-card { grid-template-columns: 78px minmax(0, 1fr); } .search-page-price { grid-column: 2; margin: 0; } }

@media (max-width: 1240px) {
  .header-inner {
    grid-template-columns: 170px auto 1fr;
  }

  .menu-button {
    display: inline-flex;
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-button::before,
  .menu-button::after,
  .menu-button span[aria-hidden="true"] {
    content: "";
    position: absolute;
    width: 24px;
    height: 1px;
    background: var(--ink);
  }

  .menu-button::before { transform: translateY(-7px); }
  .menu-button::after { transform: translateY(7px); }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 1.5rem max(1.5rem, calc((100% - var(--max)) / 2));
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .mobile-nav-only {
    display: block;
  }

  .header-tools {
    justify-self: end;
  }

  .hero-inner {
    grid-template-columns: minmax(330px, 0.8fr) 1fr;
    gap: 3rem;
  }

  .book-stage {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .header-inner {
    width: min(calc(100% - 2rem), var(--max));
    min-height: 76px;
    grid-template-columns: 150px 42px 1fr;
    gap: 0.5rem;
  }

  .brand img {
    width: 140px;
  }

  .catalogue-link {
    display: none;
  }

  .publisher-bar-inner {
    width: min(calc(100% - 2rem), var(--max));
    min-height: 0;
    padding: 0.48rem 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.2rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: min(calc(100% - 2rem), var(--max));
    min-height: auto;
    padding: 3rem 0 5rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .book-stage {
    width: min(600px, 100%);
    min-height: 0;
  }

  .book-object {
    width: min(520px, 92vw);
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-grid,
  .discovery-panels,
  .story-grid,
  .newsletter-inner,
  .catalogue-card {
    grid-template-columns: 1fr;
  }

  .discovery-panel + .discovery-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .discovery-panel {
    min-height: 0;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .book-visual {
    width: min(420px, 100%);
  }

  .story-feature {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 360px;
  }

  .delphi-installation {
    width: min(680px, 100%);
  }

  .catalogue-card {
    padding: 3rem 1.5rem;
  }

  .catalogue-object {
    min-height: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .prototype-bar {
    padding: 0.35rem 0.6rem;
    font-size: 0.62rem;
  }

  .header-inner {
    grid-template-columns: 128px 40px 1fr;
  }

  .brand img {
    width: 122px;
  }

  .header-tools {
    gap: 0.1rem;
  }

  .publisher-bar-inner {
    align-items: flex-start;
    font-size: 0.7rem;
  }

  .publisher-bar-label {
    flex-basis: 100%;
  }

  .publisher-bar-links {
    flex-wrap: wrap;
    column-gap: 0.45rem;
    row-gap: 0.18rem;
  }

  .publisher-bar-separator {
    display: none;
  }

  .book-stage {
    min-height: 0;
  }

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

  .hero-actions,
  .search-dialog .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-image {
    min-height: 290px;
  }

  .delphi-inscription {
    width: 94%;
    font-size: clamp(0.78rem, 4vw, 0.95rem);
    letter-spacing: 0.08em;
  }

  .delphi-temple {
    aspect-ratio: 2 / 3;
  }

  .reflection-content {
    top: 59.6%;
    width: 45%;
    height: 50.5%;
    min-height: 0;
    padding: 0.65rem 0.55rem;
  }

  .reflection-quote > p {
    font-size: clamp(0.76rem, 3.5vw, 0.96rem);
    line-height: 1.3;
  }

  .reflection-quote footer {
    margin-top: 0.55rem;
    font-size: 0.66rem;
  }

  .reflection-button {
    gap: 0.65rem;
    font-size: clamp(0.86rem, 4vw, 1.05rem);
  }

  .reflection-click-symbol {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.35rem;
  }

  .catalogue-object {
    min-height: 340px;
  }

  .catalogue-sheet {
    width: min(230px, 75%);
    padding: 1.4rem;
  }

  .sheet-front p {
    margin-top: 3.5rem;
    font-size: 2.3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* WordPress integration */
.search-glyph {
  position: relative;
  width: 1rem;
  height: 1rem;
  display: block;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: -0.3rem;
  bottom: -0.18rem;
  width: 0.45rem;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
}

.cart-glyph {
  position: relative;
  width: 1.15rem;
  height: 0.8rem;
  display: block;
  border: 1.5px solid currentColor;
  border-top: 0;
  transform: skew(-8deg);
}

.cart-glyph::before,
.cart-glyph::after {
  content: "";
  position: absolute;
  bottom: -0.38rem;
  width: 0.2rem;
  height: 0.2rem;
  background: currentColor;
  border-radius: 50%;
}

.cart-glyph::before { left: 0.15rem; }
.cart-glyph::after { right: 0.15rem; }

.site-footer span:not(.sr-only) {
  display: block;
  margin-bottom: 0.55rem;
}

.entry-content {
  max-width: 74ch;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Multilingual catalogue extensions */
.language-home .book-stage::before {
  background-image: var(--hero-book-background, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.language-home .book-object {
  width: 74%;
  height: 88%;
  aspect-ratio: auto;
  transform: rotate(-1deg);
}

.language-home .hero-book-image {
  object-fit: contain;
}

.hero--egypt,
.hero--egypt .hero-landscape {
  background: linear-gradient(125deg, #e6d8bd 0%, #c9a46b 52%, #7f5c39 100%);
}

.hero--egypt .hero-landscape::before {
  background:
    radial-gradient(circle at 23% 28%, rgba(255,248,224,0.72), transparent 24%),
    linear-gradient(160deg, transparent 49%, rgba(83,57,34,0.22) 50% 63%, transparent 64%);
  filter: none;
}

.hero--egypt .book-stage {
  background: linear-gradient(145deg, #342216, #8c673b 64%, #d6b06d);
}

.hero--carver,
.hero--carver .hero-landscape {
  background: linear-gradient(125deg, #d8c4ad 0%, #9d765d 48%, #4b3028 100%);
}

.hero--carver .hero-landscape::before {
  background:
    radial-gradient(circle at 24% 30%, rgba(250,231,198,0.45), transparent 26%),
    linear-gradient(160deg, transparent 48%, rgba(41,25,20,0.3) 49% 68%, transparent 69%);
  filter: none;
}

.hero--carver .book-stage {
  background: linear-gradient(145deg, #120f0e, #4a2b24 58%, #a2602e);
}

.book-visual--catalog::before,
.book-visual--catalogue::before {
  background: var(--selection-bg, linear-gradient(145deg, #25211e, #7a654f 58%, #d7c6a7));
}

.hero--catalogue,
.hero--catalogue .hero-landscape {
  background: linear-gradient(125deg, #e4ded3 0%, #c7b9a7 52%, #786a5d 100%);
}

.hero--catalogue .book-stage {
  background: linear-gradient(145deg, #211e1b, #66574a 58%, #cabda9);
}

.international-theme-copy {
  max-width: 30ch;
  margin: 3rem 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.5;
}

.themes-panel .international-theme-copy {
  color: rgba(255,255,255,0.82);
}

.international-edition-visual {
  background: linear-gradient(145deg, #2d2823, #886a4f 58%, #d6c3a4);
}

.book-detail-subtitle,
.book-detail-contributors {
  max-width: 48ch;
  color: var(--ink-soft);
}

.book-detail-subtitle {
  margin: -0.4rem 0 1.1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.book-detail-contributors {
  margin: -0.3rem 0 1.4rem;
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .language-home .book-object {
    width: 78%;
    height: 90%;
  }

  .search-result {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .search-result-price {
    grid-column: 2;
  }
}

/* Editorial streams: Em torno dos livros and Agenda. */
.editorial-home-section,
.event-home-section,
.editorial-archive,
.editorial-single {
  background: var(--surface);
}

.book-videos { background: var(--surface); }
.book-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.8rem); }
.book-video-grid figure { margin: 0; border: 1px solid var(--line); background: var(--paper); }
.book-video-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #211c18; }
.book-video-grid figcaption { padding: .9rem 1rem 1rem; font-weight: 700; }

@media (max-width: 760px) {
  .book-video-grid { grid-template-columns: 1fr; }
}

.editorial-home-grid,
.editorial-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.editorial-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  border: 1px solid var(--line);
}

.editorial-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #44382d;
}

.editorial-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.story-feed-card .editorial-card-image {
  background: linear-gradient(145deg, #e7ddce, #b9a892);
}

.story-feed-card .editorial-card-image img {
  padding: 1.25rem;
  object-fit: contain;
  filter: drop-shadow(12px 16px 12px rgba(35, 31, 27, 0.24));
}

.editorial-card-image:hover img {
  transform: scale(1.025);
}

.editorial-card-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 7rem);
  font-style: italic;
}

.editorial-card-copy {
  display: flex;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
}

.editorial-card-copy h2,
.editorial-card-copy h3,
.event-feed-copy h2,
.event-feed-copy h3 {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.editorial-card-copy h2 a,
.editorial-card-copy h3 a,
.event-feed-copy h2 a,
.event-feed-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.editorial-card-copy > p:not(.card-kicker),
.event-feed-copy > p:not(.card-kicker) {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.editorial-card-actions { display: flex; flex-wrap: wrap; gap: 0.65rem 1.15rem; margin-top: auto; }
.editorial-external-link { color: var(--accent-dark); }

.editorial-card-relations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
}

.editorial-card-relations a {
  color: var(--muted);
  text-underline-offset: 0.2em;
}

.event-home-list,
.event-archive-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.event-feed-card {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.22fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}

.event-feed-card--cancelled {
  opacity: 0.68;
}

.event-date-block {
  align-self: start;
  color: var(--accent-dark);
}

.event-date-block time {
  display: flex;
  align-items: baseline;
  flex-direction: column;
}

.event-date-block strong {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 0.8;
}

.event-date-block span {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: clamp(2rem, 6vw, 5rem);
  color: var(--muted);
  font-size: 0.82rem;
}

.editorial-breadcrumbs a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.information-page {
  width: min(calc(100% - 3rem), 1180px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.information-article {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-top: clamp(2.5rem, 6vw, 5.5rem);
}

.information-header {
  align-self: start;
  min-width: 0;
  position: sticky;
  top: 2rem;
}

.information-header h1 {
  margin: 0.5rem 0 1.25rem;
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 3.8vw, 4.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.information-lead {
  max-width: 34rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.55;
}

.information-updated {
  margin-top: 1.4rem;
  color: var(--stone);
  font-size: 0.82rem;
}

.information-review {
  margin-top: 1.25rem;
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 0.88rem;
}

.information-sections section {
  padding: 0 0 2.3rem;
  border-bottom: 1px solid var(--line);
}

.information-sections section + section { padding-top: 2.3rem; }

.information-sections h2,
.information-sources h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 1.08;
}

.information-sections p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.information-sections p + p { margin-top: 1rem; }

.information-sources {
  grid-column: 2;
  padding-top: 2.5rem;
}

.information-sources ul {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.information-sources a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

@media (max-width: 760px) {
  .information-article { grid-template-columns: 1fr; }
  .information-header { position: static; }
  .information-sources { grid-column: 1; }
}

.editorial-archive-header,
.editorial-single-header {
  width: min(100%, 880px);
  margin-bottom: clamp(2.5rem, 7vw, 6rem);
}

.editorial-archive-header h1,
.editorial-single-header h1 {
  max-width: 18ch;
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.editorial-archive-header > p:last-child,
.editorial-single-lead {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.55;
}
.editorial-single-subtitle { margin: 1.25rem 0 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.3; }
.editorial-single-byline { margin: 1rem 0 0; font-weight: 700; }
.editorial-single-byline a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.editorial-single-provenance { max-width: 68ch; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.55; }
.editorial-single-bibliography { max-width: 72ch; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.editorial-single-bibliography h2 { font-size: 1.25rem; }

.editorial-empty {
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--paper);
  border-left: 3px solid var(--accent);
}

.editorial-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: -0.35rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.editorial-single-meta a {
  color: inherit;
}

.editorial-source-action { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.25rem; margin-top: 1.5rem; }
.editorial-source-action p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.82rem; }

.editorial-single-image,
.editorial-single-content,
.event-facts,
.editorial-connections {
  width: min(100%, 960px);
}

.editorial-single-image {
  margin: 0 0 clamp(2rem, 6vw, 5rem);
}

.editorial-single-image img {
  display: block;
  width: 100%;
  height: auto;
}

.editorial-local-video {
  width: min(100%, 960px);
  margin: 0 0 clamp(2rem, 6vw, 5rem);
}

.editorial-local-video video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #171512;
}

.editorial-local-video figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
}

.editorial-single-content {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.76;
}

.editorial-single-content > * {
  max-width: 70ch;
}

.editorial-single-content h2,
.editorial-single-content h3 {
  margin-top: 2.2em;
  font-family: var(--sans);
  letter-spacing: -0.03em;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2rem, 6vw, 5rem);
}

.event-facts > div {
  padding: 1.25rem;
  background: var(--paper);
  border-top: 2px solid var(--accent);
}

.event-facts p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-connections {
  display: grid;
  gap: 3rem;
  margin-top: clamp(4rem, 10vw, 8rem);
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.editorial-connections h2 {
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.editorial-book-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.editorial-related-cover {
  display: block;
  width: min(100%, 180px);
  aspect-ratio: 2 / 3;
  background: var(--paper);
}

.editorial-related-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.editorial-book-links h3 {
  margin: 0.8rem 0 0;
  font-family: var(--sans);
  font-size: 1rem;
}

.editorial-book-links h3 a {
  color: inherit;
}

.editorial-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.editorial-author-links a {
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.pagination .nav-links {
  display: flex;
  gap: 0.45rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
}

@media (max-width: 820px) {
  .editorial-home-grid,
  .editorial-archive-grid {
    grid-template-columns: 1fr;
  }

  .editorial-card {
    display: grid;
    grid-template-columns: minmax(9rem, 0.75fr) minmax(0, 1fr);
  }

  .editorial-card-image {
    height: 100%;
    aspect-ratio: auto;
  }

  .event-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .editorial-card,
  .event-feed-card {
    grid-template-columns: 1fr;
  }

  .editorial-card-image {
    aspect-ratio: 16 / 10;
  }

  .event-date-block time {
    align-items: baseline;
    flex-direction: row;
    gap: 0.65rem;
  }

  .event-date-block strong {
    font-size: 3rem;
  }

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

/* Private, low-friction WooCommerce cart and checkout */
.commerce-shell {
  background: var(--surface);
}

.commerce-shell > .section-heading {
  max-width: var(--max);
  margin: 0 auto;
}

.commerce-shell .section-heading > h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

/* The order-confirmation page carries several operational headings. Keep
 * them clear, but subordinate them to the order itself rather than letting
 * the editorial display scale dominate a receipt. */
body.woocommerce-checkout .commerce-shell > .section-heading > h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.commerce-content .woocommerce-order h2,
.commerce-content .woocommerce-order-details__title,
.commerce-content .woocommerce-customer-details h2,
.commerce-content .woocommerce-bacs-bank-details h2 {
  margin: 2.6rem 0 1.15rem;
  font-size: clamp(1.85rem, 3.2vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.commerce-content .woocommerce-order > h2:first-child {
  margin-top: 0;
}

.commerce-intro {
  max-width: 52ch;
  margin: 1.5rem 0 3.5rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.12rem;
}

.commerce-content {
  max-width: none;
  font-family: var(--sans);
  font-size: 1rem;
}

.woocommerce-notices-wrapper,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  margin: 0 0 2rem;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  padding: 1rem 1.2rem;
  background: var(--paper);
  border-left: 4px solid var(--accent);
  list-style-position: inside;
}

.woocommerce-cart-form {
  max-width: 100%;
  overflow-x: auto;
}

.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  border-top: 1px solid var(--ink);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 1rem 0.8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.woocommerce table.shop_table th {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.woocommerce table.shop_table img {
  width: 76px;
  height: 106px;
  object-fit: contain;
}

.woocommerce .product-name a {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.woocommerce .quantity input,
.woocommerce .input-text,
.woocommerce select,
.woocommerce .select2-container .select2-selection {
  min-height: 48px;
  padding: 0.68rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
}

.woocommerce .quantity input {
  width: 76px;
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #payment #place_order {
  min-height: 48px;
  padding: 0.78rem 1.2rem;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #payment #place_order:hover {
  background: var(--accent-dark);
  color: #fff;
}

.woocommerce a.remove {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}

.woocommerce a.remove:hover,
.woocommerce a.remove:focus-visible {
  background: var(--ink);
  color: #fff !important;
}

.woocommerce .actions .coupon {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
}

.woocommerce .cart-collaterals {
  margin-top: 3rem;
}

.woocommerce .cart_totals {
  width: min(100%, 540px);
  margin-left: auto;
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.woocommerce .wc-proceed-to-checkout a {
  display: flex;
  width: 100%;
  justify-content: center;
}

.woocommerce .cart-empty {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin-inline: auto;
  gap: 2rem;
}

body.woocommerce-checkout .col2-set > .col-1,
body.woocommerce-checkout .col2-set > .col-2 {
  width: auto;
  float: none;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}

.woocommerce form .form-row {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  float: none;
}

.woocommerce-checkout .form-row-wide,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper .form-row {
  grid-column: 1 / -1;
}

.woocommerce form .form-row label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.woocommerce form .form-row .select2-container .select2-selection {
  display: flex;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
}

.woocommerce-checkout-review-order {
  max-width: 760px;
  margin: 3rem auto 0;
}

.woocommerce-checkout #payment {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--paper);
}

.woocommerce-checkout #payment ul.payment_methods {
  margin: 0;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.woocommerce-checkout #payment .place-order {
  margin: 1.5rem 0 0;
  padding: 0;
}

.woocommerce-checkout #payment #place_order {
  width: 100%;
}

.woocommerce .required {
  color: #8a2f1d;
}

@media (max-width: 760px) {
  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .woocommerce-checkout .form-row-wide,
  .woocommerce-checkout .woocommerce-additional-fields__field-wrapper .form-row {
    grid-column: auto;
  }

  .woocommerce .actions .coupon {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
