:root {
  --bg: #faf7f0;
  --bg-soft: #f3ede1;
  --surface: rgba(255,255,255,0.72);
  --surface-strong: #ffffff;
  --text: #3b342d;
  --muted: #6f665d;
  --line: rgba(54, 86, 61, 0.14);
  --brand: #245a35;
  --brand-soft: #dce9df;
  --brand-deep: #184226;
  --accent: #8f7659;
  --shadow: 0 20px 50px rgba(53, 39, 23, 0.08);
  --radius: 24px;
  --container: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 50px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(220,233,223,0.9), transparent 28%),
    linear-gradient(180deg, #fcfaf5 0%, var(--bg) 100%);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: .75rem 1rem; border-radius: 0 0 12px 12px;
}
.skip-link:focus { left: 1rem; z-index: 1000; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(250,247,240,0.84);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; font-weight: 700; letter-spacing: .01em; }
.brand img { width: 160px; height: 72px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a {
  padding: .45rem .2rem; position: relative; color: var(--muted); font-weight: 500;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: center; transition: transform .22s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--brand); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle {
  display: none; background: transparent; border: 0; padding: 0; width: 44px; height: 44px; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--brand); margin: 5px auto; border-radius: 999px;
}
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: clamp(3.5rem, 7vw, 7rem) 0 4rem;
}
.eyebrow {
  margin: 0 0 .85rem; color: var(--brand); font-size: .92rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); letter-spacing: -.03em; }
h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.5rem; }
.lead {
  font-size: 1.12rem; color: var(--muted); max-width: 56ch; margin: 1.25rem 0 0;
}
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button, .text-link, .contact-item {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.3rem;
  border-radius: 999px; font-weight: 700; border: 1px solid transparent;
}
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(36, 90, 53, 0.18); }
.button-primary:hover, .button-primary:focus-visible { transform: translateY(-1px); background: var(--brand-deep); }
.text-link { color: var(--brand); font-weight: 700; align-self: center; }
.text-link:hover, .text-link:focus-visible { transform: translateY(-1px); }
.hero-art { display: grid; justify-items: center; gap: 1rem; }
.logo-frame {
  width: min(100%, 420px); aspect-ratio: 4 / 3;
}
.logo-frame img { width: 100%; height: 100%; object-fit: contain; }
.art-caption { color: var(--muted); font-size: .95rem; }
.books-section, .contact-section { padding: 5.5rem 0; }
.about-section { padding: 5rem 0; }
.section-heading {
  display: grid; grid-template-columns: 1fr .85fr; gap: 1.5rem 2rem; align-items: end; margin-bottom: 2rem;
}
.section-heading p:last-child { margin: 0; color: var(--muted); }
.book-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem;
}
.book-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius); padding: 1.1rem;
  box-shadow: var(--shadow); display: grid; gap: 1.15rem;
}
.book-card:hover { transform: translateY(-2px); }
.book-cover-image, .book-cover.placeholder {
  border-radius: 20px; overflow: hidden; background: var(--bg-soft);
}
.book-cover-image img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center;
}
.book-cover.placeholder {
  min-height: 420px; display: grid; place-content: center; justify-items: center; gap: .6rem;
  text-align: center; padding: 1.5rem;
  background: linear-gradient(160deg, #f6efe4, #efe5d5);
  color: #7d6954;
}
.cover-winter { background: linear-gradient(160deg, #edf3f6, #dfe7ee); color: #526879; }
.cover-small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.cover-decor { font-size: 2rem; color: rgba(36, 90, 53, .7); }
.cover-note { font-size: .92rem; opacity: .85; }
.book-info { padding: .25rem .15rem .35rem; }
.book-label {
  margin: 0 0 .45rem; color: var(--brand); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
}
.book-info p:last-child { margin-bottom: 0; color: var(--muted); }
.small-note { color: var(--muted); margin-top: 1rem; }
.about-section {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
}
.about-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1.45rem; font-weight: 700;
}
.contact-inner {
  display: grid; grid-template-columns: 1fr .95fr; gap: 2rem; align-items: start;
}
.contact-links { display: grid; gap: 1rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: center; background: var(--surface); padding: 1rem 1.1rem;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-item:hover, .contact-item:focus-visible { transform: translateY(-1px); border-color: var(--brand); }
.contact-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.contact-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.contact-icon svg {
  width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-icon .icon-dot { fill: currentColor; stroke: none; }
.contact-item > div { min-width: 0; overflow-wrap: anywhere; }
.contact-item strong { display: block; }
.contact-item > div > span { color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--line); padding: 1.4rem 0 1.8rem; background: rgba(255,255,255,.42);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .96rem;
}
.footer-inner a { color: var(--brand); font-weight: 600; }
.footer-button {
  border: 0; padding: 0; background: none; color: var(--brand); font: inherit;
  text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 200;
  max-width: 900px; margin: 0 auto; padding: 1.5rem; border: 1px solid var(--line);
  border-radius: 20px; background: var(--bg); box-shadow: var(--shadow);
  max-height: calc(100dvh - 2rem); overflow-y: auto;
}
.cookie-copy h2 { font-size: 1.4rem; }
.cookie-copy p { margin: .75rem 0; }
#cookie-status:empty { display: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.cookie-choice { background: var(--brand); color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.cookie-choice:hover { background: var(--brand-deep); }
.cookie-choice:focus-visible, .footer-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.privacy-dialog {
  width: min(calc(100% - 2rem), 720px); max-height: calc(100dvh - 2rem); overflow-y: auto;
  padding: 2rem; border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg); color: var(--text);
}
.privacy-dialog h2 { font-size: 1.7rem; }
.privacy-dialog h3 { font-size: 1.15rem; line-height: 1.3; margin-top: 1.5rem; }
.privacy-dialog a { color: var(--brand); text-decoration: underline; }
.privacy-dialog::backdrop { background: rgba(24, 66, 38, .4); }
@media (max-width: 860px) {
  .hero, .section-heading, .contact-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .hero-art { order: -1; }
  .book-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 40px; }
  .menu-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 1rem; right: 1rem; top: calc(100% + .75rem); display: none; flex-direction: column;
    align-items: stretch; background: rgba(255,255,255,.95); padding: .75rem; border-radius: 18px;
    border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem .4rem; }
  .header-inner { min-height: 78px; }
  .about-section { grid-template-columns: 1fr; }
  .books-section, .about-section, .contact-section { padding: 4rem 0; }
}
