:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --ink: #22201d;
  --muted: #6d675f;
  --line: #ded7cb;
  --accent: #27676b;
  --accent-dark: #1d4d51;
  --clay: #b96b4d;
  --moss: #6d7d45;
  --shadow: 0 24px 70px rgba(34, 32, 29, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(185, 107, 77, 0.12), transparent 28rem),
    linear-gradient(135deg, #f7f5ef 0%, #eef3ef 48%, #f8efe8 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 32, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 32, 29, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 76%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(222, 215, 203, 0.72);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf0;
  font-size: 13px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  padding: 9px 10px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  background: rgba(39, 103, 107, 0.1);
  color: var(--accent-dark);
  outline: none;
}

main {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 96px) 72px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.92;
}

h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

p {
  line-height: 1.7;
}

.hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.feature-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button {
  padding: 12px 17px;
}

.button.primary {
  background: var(--accent);
  color: white;
}

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

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink);
}

.hero-visual {
  display: grid;
  min-height: 420px;
  place-items: center;
}

.hero-visual img {
  width: min(100%, 440px);
  height: auto;
  border: 1px solid rgba(34, 32, 29, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 96px);
}

.section-heading {
  max-width: 760px;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: 1040px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 18px;
}

.band {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.book-layout p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.feature-link {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(34, 32, 29, 0.08);
  color: var(--ink);
  padding: 16px 18px;
}

.feature-link:hover {
  border-color: rgba(39, 103, 107, 0.38);
  color: var(--accent-dark);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-section p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  text-decoration-color: rgba(109, 103, 95, 0.4);
  text-underline-offset: 4px;
}

.legal-page {
  padding: clamp(52px, 8vw, 92px) clamp(18px, 6vw, 96px);
}

.legal-hero {
  max-width: 780px;
  margin-bottom: 42px;
}

.legal-hero h1 {
  font-size: clamp(46px, 8vw, 88px);
}

.legal-hero p {
  color: var(--muted);
  font-size: 19px;
}

.legal-content {
  max-width: 820px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.legal-content h2 {
  margin-top: 34px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.25;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--muted);
}

.book-hero {
  min-height: auto;
}

.book-card {
  display: grid;
  align-content: space-between;
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(34, 32, 29, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(39, 103, 107, 0.18), transparent 38%),
    linear-gradient(165deg, #fdf6ec 0%, #ccb69d 100%);
  box-shadow: var(--shadow);
  padding: 34px;
}

.book-card span,
.book-card small {
  color: rgba(34, 32, 29, 0.68);
  font-weight: 750;
}

.book-card strong {
  align-self: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.95;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .book-layout,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header,
  .site-footer {
    display: flex;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 300px;
  }

  .text-grid,
  .book-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-block: 14px;
  }

  .brand {
    width: 100%;
  }

  .main-nav a {
    padding-inline: 8px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-visual img {
    width: min(100%, 330px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
