:root {
  color-scheme: light;
  --bg: #f5f0e6;
  --ink: #1b1c1d;
  --muted: #5b676f;
  --brand: #1f5b5c;
  --brand-dark: #133a3c;
  --accent: #b9772d;
  --card: #ffffff;
  --line: rgba(19, 58, 60, 0.12);
  --shadow: 0 18px 40px rgba(20, 30, 35, 0.12);
  --radius: 18px;
  --max: 1100px;
  --font-serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Gill Sans", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(31, 91, 92, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(185, 119, 45, 0.18), transparent 35%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(245, 240, 230, 0.8));
  z-index: -1;
}

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

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

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--card);
  color: var(--brand-dark);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.skip:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(245, 240, 230, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.lang-btn {
  width: 38px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.lang-btn span {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 58, 60, 0.35);
}

.lang-btn.active {
  border-color: rgba(31, 91, 92, 0.6);
  box-shadow: 0 8px 18px rgba(31, 91, 92, 0.2);
}

.hero {
  padding: 60px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 14px;
  color: var(--brand-dark);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 91, 92, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(19, 58, 60, 0.2);
}

.btn.small {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.portrait {
  width: 120px;
  height: 160px;
  border-radius: 18px;
  object-fit: cover;
}

.section {
  padding: 40px 0;
}

.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-text h2,
.section-head h2,
.site-footer h2 {
  font-family: var(--font-serif);
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.about-text p {
  color: var(--muted);
  margin-top: 0;
}

.about-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.logo-wide {
  max-width: 240px;
}

.label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--brand);
  font-weight: 700;
}

.about-meta p {
  margin: 6px 0 14px;
  color: var(--muted);
}

.section-books {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  margin-top: 6px;
  color: var(--muted);
}

.book-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.cta-panel {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.cta-panel h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.book-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
}

.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.book-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.book-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-serif);
}

.availability,
.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  color: var(--brand-dark);
}

.site-footer {
  padding: 36px 0 60px;
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.muted {
  color: var(--muted);
}

.legal details {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.legal details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
  }

  .portrait {
    width: 100%;
    height: auto;
    max-height: 300px;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .lang-btn,
  .btn {
    transition: none;
  }
}
