:root {
  color-scheme: light;
  --ink: #1b312a;
  --muted: #465e53;
  --forest: #153a32;
  --gold: #efbd5b;
  --paper: #fffcf6;
  --line: #d3ded5;
  font: 16px/1.58 "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 20px;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #825312; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; z-index: 1; background: white; padding: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { color: #fffaf0; background: var(--forest); }
.header-layout { display: flex; justify-content: space-between; align-items: center; gap: 12px 30px; min-height: 73px; flex-wrap: wrap; }
.wordmark { font-family: Georgia, serif; font-weight: 700; font-size: 1.65rem; letter-spacing: -.05em; text-decoration: none; }
.wordmark span { color: var(--gold); }
nav { display: flex; align-items: center; gap: clamp(13px, 3vw, 36px); flex-wrap: wrap; }
nav a { font-size: .94rem; padding-block: 9px; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { background: radial-gradient(ellipse at 82% 36%, #f6e8ac 0%, #f7efcd 24%, #edf1e4 63%, #e7efe4 100%); }
.hero-layout { min-height: 600px; padding-block: 58px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); gap: clamp(28px, 6vw, 92px); align-items: center; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.04em; font-weight: 500; line-height: 1.02; }
h1 { font-size: clamp(3.2rem, 6vw, 5.7rem); max-width: 740px; }
h1 em { font-weight: 400; color: #35654d; }
h2 { font-size: clamp(2.15rem, 4vw, 3.62rem); }
.hero-copy > p { max-width: 490px; margin-top: 21px; font-size: clamp(1.045rem, 2vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 26px 30px; }
.button { display: inline-flex; min-height: 47px; font: inherit; font-weight: 660; font-size: .95rem; padding: 10px 17px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; cursor: pointer; text-decoration: none; text-align: center; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: #24574a; }
.secondary { border-color: #839d89; background: transparent; color: var(--forest); }
.secondary:hover { background: #ffffff8c; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 17px; border-top: 1px solid #b7c8b7; }
.facts dt { font-weight: 700; }
.facts dd { color: var(--muted); font-size: .875rem; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { margin-bottom: 24px; }
.section-head p, .contact p { color: var(--muted); margin-top: 12px; }
.sample-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 3vw, 26px); }
.sample { min-width: 0; background: #ebefe6; padding: clamp(8px, 2.2vw, 23px); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.sample:hover, .sample:focus-visible { border-color: #607e66; }
.sample img { width: 100%; aspect-ratio: 17 / 22; object-fit: contain; background: white; border-radius: 3px; }
.sample strong { display: block; padding-top: 12px; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.editions { background: #e9efe5; }
.edition-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 12px; overflow: hidden; }
.edition-list li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; background: #fcfdf8; min-width: 0; padding: 14px; }
.edition-cover { display: block; border-radius: 3px; }
.edition-cover img { border-radius: 3px; aspect-ratio: 17 / 22; object-fit: contain; }
.edition-list h3 { font-family: Georgia, serif; font-size: 1.2rem; line-height: 1.18; margin-block: 3px 5px; overflow-wrap: anywhere; }
.edition-list p, .edition-list span { color: var(--muted); font-size: .875rem; }
.edition-list span { overflow-wrap: anywhere; }
.contact { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: clamp(21px, 4vw, 40px); background: #f5ebd7; border-radius: 14px; }
.contact h2 { font-size: clamp(1.9rem, 3.65vw, 3rem); }
dialog { width: min(92vw, 640px); max-height: 94dvh; padding: 16px; border: none; border-radius: 12px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #14251dc9; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dialog-heading h2 { font-size: clamp(1.4rem,4vw,2rem); }
dialog img { max-height: 75dvh; margin-inline: auto; object-fit: contain; }
@media (max-width: 850px) {
  .edition-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-layout { min-height: auto; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .header-layout { padding-block: 10px; gap: 0 16px; }
  .hero-layout { display: grid; grid-template-columns: 1fr; padding-block: 42px; }
  .sample-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sample strong { font-size: .925rem; padding-top: 8px; }
  .edition-list { grid-template-columns: 1fr; }
  .edition-list li { grid-template-columns: 72px 1fr; }
}
.edition-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 24px; }
.edition-picker[hidden], .edition-preview[hidden] { display: none; }
.edition-picker label { font-weight: 670; }
.edition-picker select { min-height: 46px; max-width: 100%; color: var(--forest); background: white; border: 1px solid #839d89; border-radius: 8px; padding: 8px 32px 8px 12px; font: inherit; }
.edition-picker select:focus-visible { outline: 3px solid #825312; outline-offset: 3px; }
.edition-preview:not([hidden]) + .edition-preview:not([hidden]) { margin-top: 40px; }
.edition-preview h3 { font: 600 1.35rem/1.2 Georgia, serif; margin-bottom: 14px; }
.edition-preview h3 span { font: 400 .9rem/1.2 "Aptos", "Segoe UI", system-ui, sans-serif; color: var(--muted); }
.edition-samples { display: block; width: fit-content; color: var(--forest); font-size: .9rem; font-weight: 650; padding-block: 4px; text-underline-offset: 3px; }

.header-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 26px;
  padding-block: 13px;
}
.section-nav { justify-content: flex-end; gap: 3px clamp(13px, 3vw, 31px); }
.language-nav {
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid #ffffff3d;
}
.language-nav .page-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fffaf0;
  font-size: .89rem;
  text-decoration: none;
}
.page-language[aria-current] { border-color: #efbd5b; color: #fff; background: #ffffff19; }
.page-language:hover { background: #ffffff26; }
.site-header a:focus-visible { outline-color: var(--gold); }
.flag { font: 1.15rem/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

.cover-carousel { width: min(100%, 358px); margin-inline: auto; min-width: 0; }
.cover-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #8ca494 #f5efe0;
  border-radius: 8px;
}
.cover-track:focus-visible { outline: 3px solid #825312; outline-offset: 3px; }
.cover-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  padding: 6px 17px 12px;
}
.cover-slide img {
  width: 100%;
  aspect-ratio: 17 / 22;
  object-fit: contain;
  border-radius: 4px 11px 11px 4px;
  box-shadow: 4px 6px 0 #f7f1dc, 6px 8px 0 #b6a166, 0 11px 15px #23362125;
}
.cover-slide figcaption { margin-top: 14px; font-size: .94rem; color: var(--muted); text-align: center; }
.cover-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 16px 0; }
.cover-controls[hidden] { display: none; }
.cover-controls .button { padding-inline: 12px; }
.cover-position { flex-shrink: 0; font-size: .87rem; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 620px) {
  .header-layout { grid-template-columns: 1fr; gap: 3px; }
  .section-nav, .language-nav { justify-content: flex-start; }
  .language-nav { gap: 3px; }
  .language-nav .page-language { padding-inline: 6px; }
  .cover-carousel { width: min(100%, 304px); }
}
