:root {
  --cream: #f6efe6;
  --paper: #fbf7f1;
  --ink: #1c1612;
  --ink-soft: #3d342c;
  --rust: #8f3514;
  --rust-deep: #6e260c;
  --gold: #d4a84b;
  --muted: #5c534c;
  --shadow: 0 12px 28px rgba(28, 22, 18, 0.18);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

a {
  color: var(--rust);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rust-deep);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  border-radius: 0.25rem;
}

.skip:focus {
  top: 0.75rem;
}

/* Hero */
.hero {
  background: var(--rust-deep);
  color: var(--cream);
  padding: 3.25rem 1.25rem 3rem;
  text-align: center;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.25rem;
}

.hero__mark img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.7rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 8.5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 800;
}

.hero__lede {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--cream);
}

.hero__rule {
  width: 3.5rem;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 1.15rem auto 1.15rem;
}

/* Layout */
main {
  padding: 0 1.25rem 3rem;
}

.section {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.75rem 0 0;
}

.section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--rust-deep);
}

.section__intro {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

/* Books */
.books {
  display: grid;
  gap: 1.5rem;
}

.book {
  background: var(--paper);
  border: 1px solid rgba(28, 22, 18, 0.1);
  border-radius: 0.85rem;
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.book__cover {
  width: 100%;
  border-radius: 0.4rem;
  box-shadow: 0 6px 16px rgba(28, 22, 18, 0.16);
  background: #e8dccb;
}

.book h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
}

.book__line {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.coming-soon {
  margin-top: auto;
  appearance: none;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--ink-soft);
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: not-allowed;
}

.coming-soon:disabled {
  opacity: 1;
}

/* TikTok */
.tiktok-card {
  background: var(--paper);
  border: 1px solid rgba(28, 22, 18, 0.1);
  border-radius: 0.85rem;
  padding: 1.25rem 1.2rem 1.4rem;
}

.tiktok-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  margin-top: 0.75rem;
  background: var(--rust);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.4rem;
}

.tiktok-link:hover {
  background: var(--rust-deep);
  color: var(--cream);
}

.tiktok-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* About */
.about p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.about p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

@media (min-width: 720px) {
  .hero {
    padding: 4.25rem 1.5rem 3.75rem;
  }

  .books {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
  }

  main {
    padding: 0 1.5rem 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
