/* Lily's New World — single page, no build step */

:root {
  --cream: #fbf6ec;
  --cream-deep: #f3ead8;
  --ink: #26311f;
  --ink-soft: #4d5a45;
  --rose: #b5445a;
  --leaf: #3f6b4a;
  --leaf-deep: #2c4a34;
  --line: #ddd0b8;
  --max: 1060px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
}

.wordmark {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.95rem;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--rose);
}

.nav-buy {
  color: var(--rose) !important;
  font-weight: 700;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.eyebrow {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 14px;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  line-height: 0.98;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.bang { color: var(--rose); }

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 34em;
}

.lede + .lede { margin-top: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--leaf-deep);
  color: #fffdf7;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--leaf-deep);
  transition: background 0.15s ease, color 0.15s ease;
}

.button:hover,
.button:focus-visible {
  background: #1f3626;
  border-color: #1f3626;
}

.button.ghost {
  background: transparent;
  color: var(--leaf-deep);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: var(--cream-deep);
}

/* Cover */

.cover-slot { perspective: 1200px; }

.cover-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px 14px 14px 6px;
  transform: rotate(2.5deg);
  box-shadow:
    0 2px 0 #b99a63,
    0 22px 40px -18px rgba(38, 49, 31, 0.45);
}

/* Details strip */

.strip {
  background: var(--leaf-deep);
  color: #f4efe2;
  padding: 26px 24px;
}

.strip dl {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.strip dt {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

.strip dd {
  margin: 0;
  font-size: 1rem;
}

/* Sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px;
}

.section.tinted {
  max-width: none;
  background: var(--cream-deep);
}

.section.tinted > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head { max-width: 30em; margin-bottom: 34px; }

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.prose { max-width: 36em; }
.prose p { margin: 0 0 18px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

/* Look inside */

.spreads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.spreads figure { margin: 0; }

.spreads img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 34px -20px rgba(38, 49, 31, 0.5);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Buy */

.buy { text-align: center; }

.buy-inner { max-width: 34em; margin: 0 auto; }

.buy p { color: var(--ink-soft); }

.small {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 56px;
  text-align: center;
}

.site-footer .wordmark { display: block; margin-bottom: 8px; }

/* Focus */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

/* Responsive */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; }
  .cover-slot { max-width: 340px; }
  .strip dl { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .cards { grid-template-columns: 1fr; }
  .spreads {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .spreads figure { flex: 0 0 78%; scroll-snap-align: start; }
  .site-header nav { gap: 16px; font-size: 0.9rem; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .site-header { flex-wrap: wrap; justify-content: center; }
  .section { padding: 56px 20px; }
  .hero { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
