@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ivory: #f8f6ef;
  --olive: #353e2c;
  --sage: #e5ebdf;
  --muted: #505b4a;
  --line: #dce3d8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--olive); font: 1rem/1.55 'DM Sans', system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #244c3b; outline-offset: 4px; }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: grid; text-decoration: none; }
.brand strong { font-size: 1.2rem; }
.brand span { font-size: .875rem; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
nav a { display: grid; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.intro { text-align: center; padding-block: clamp(24px, 6vw, 68px) clamp(22px, 4vw, 40px); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 7vw, 4.5rem); letter-spacing: -.06em; line-height: 1.05; }
.intro p { margin-top: 8px; color: var(--muted); font-size: clamp(1.125rem, 3vw, 1.5rem); }
.collection { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 22px; }
.book { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cover { display: grid; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: clamp(215px, 37vw, 340px); padding: 20px; background: var(--sage); }
.cover img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 4px 7px 14px #353e2c36; }
.book-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(17px, 3vw, 28px); }
.type { color: var(--muted); font-size: .875rem; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.13; letter-spacing: -.035em; }
.actions { display: flex; flex-wrap: wrap; width: 100%; gap: 8px; margin-top: auto; padding-top: 7px; }
.button { display: grid; flex: 1 1 145px; place-items: center; min-height: 46px; padding: 8px; border: 1px solid var(--olive); border-radius: 6px; text-align: center; text-decoration: none; font-size: .875rem; font-weight: 700; }
.button:hover { background: var(--sage); }
.primary { background: var(--olive); color: #fff; }
.primary:hover { background: #244c3b; }
.holiday { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; margin-block: clamp(30px, 6vw, 64px); overflow: hidden; border-radius: 14px; background: var(--sage); }
.holiday img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.holiday div { padding: clamp(20px, 4vw, 42px); }
.holiday p { margin-top: 12px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { flex-wrap: wrap; gap: 2px; padding-block: 8px; }
  nav { column-gap: 12px; }
  .holiday { grid-template-columns: 1fr; }
  .holiday img { height: 220px; }
}
