:root {
  color-scheme: light;
  --ink: #10222b;
  --ink-soft: #405159;
  --night: #071a23;
  --paper: #f7f3eb;
  --white: #fffdf8;
  --coral: #ef654f;
  --mint: #69c7ae;
  --sun: #f4c953;
  --line: rgba(16, 34, 43, 0.15);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Aptos, "Trebuchet MS", Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--white);
  color: var(--night);
  border-radius: 4px;
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0;
  color: var(--white);
}

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

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  background: var(--white);
  border-radius: 50%;
}

.brand-mark img {
  width: 46px;
  height: 48px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  display: flex;
  min-height: max(560px, 86svh);
  align-items: center;
  overflow: hidden;
  background-color: var(--night);
  background-image: url("/assets/dadamade-books-hero.webp");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  background: rgba(3, 14, 20, 0.38);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 130px 0 74px;
}

.hero-content > * {
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.25rem;
  font-weight: 700;
}

h1 span {
  display: block;
}

.hero-lead {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 500px;
  margin-bottom: 28px;
  color: rgba(255, 253, 248, 0.83);
  font-size: 1.05rem;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  background: var(--coral);
  border: 2px solid var(--coral);
  border-radius: 6px;
  color: #1b1512;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--sun);
  border-color: var(--sun);
}

.books-section,
.about-section,
footer {
  padding-right: max(32px, calc((100% - 1320px) / 2));
  padding-left: max(32px, calc((100% - 1320px) / 2));
}

.books-section {
  padding-top: 92px;
  padding-bottom: 108px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading h2,
.about-intro h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
}

.section-heading > p {
  max-width: 520px;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

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

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

.story-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  margin-bottom: 64px;
  padding: clamp(26px, 4vw, 52px);
  background: #f8efe7;
  border: 1px solid rgba(16, 34, 43, 0.1);
  border-radius: 6px;
}

.story-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #eadbcf;
  border-radius: 4px;
  box-shadow: 0 20px 42px rgba(16, 34, 43, 0.15);
}

.story-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  max-width: 640px;
}

.story-kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin: 8px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 0.98;
}

.story-copy > p:not(.series):not(.story-kicker) {
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.72;
}

.story-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 34, 43, 0.14);
  font-weight: 700;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.book-card {
  min-width: 0;
}

.cover-wrap {
  position: relative;
  aspect-ratio: 210 / 297;
  margin-bottom: 22px;
  overflow: hidden;
  background: #dce4df;
  border-radius: 6px;
  box-shadow: 0 18px 36px rgba(16, 34, 43, 0.14);
}

.cover-wrap::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(16, 34, 43, 0.14);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.book-card:hover .cover-wrap img {
  transform: scale(1.018);
}

.status {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  background: rgba(255, 253, 248, 0.94);
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.series {
  margin-bottom: 7px;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.book-card h3 {
  min-height: 2.2em;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.book-card > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.shelf-more {
  margin: 76px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 92px;
  padding-top: 104px;
  padding-bottom: 108px;
  background: var(--night);
  color: var(--white);
}

.about-intro h2 {
  max-width: 580px;
  margin-bottom: 24px;
}

.about-intro > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 1.08rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-content: center;
}

.principles > div {
  min-width: 0;
  border-top: 3px solid var(--mint);
  padding-top: 18px;
}

.principles span {
  display: block;
  margin-bottom: 24px;
  color: var(--sun);
  font-size: 0.76rem;
  font-weight: 800;
}

.principles h3 {
  margin-bottom: 11px;
  font-size: 1.08rem;
}

.principles p {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.68);
  font-size: 0.9rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: var(--white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 54px;
  height: 56px;
  object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-size: 1rem;
}

.footer-brand span,
footer > p {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

footer > p {
  margin: 0;
}

@media (max-width: 980px) {
  h1 {
    font-size: 4rem;
  }

  .hero-lead {
    font-size: 1.65rem;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 52px;
  }

  .story-feature {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    gap: 38px;
  }

  .section-heading h2,
  .about-intro h2 {
    font-size: 3rem;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 58px;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 36px);
    padding-top: 16px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-mark img {
    width: 41px;
    height: 43px;
  }

  .brand {
    font-size: 1rem;
  }

  nav {
    gap: 16px;
    font-size: 0.78rem;
  }

  nav a:last-child {
    display: none;
  }

  .hero {
    min-height: max(560px, 88svh);
    background-position: 56% center;
  }

  .hero::before {
    background: rgba(3, 14, 20, 0.58);
  }

  .hero-content {
    width: calc(100% - 36px);
    padding-top: 112px;
    padding-bottom: 58px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 2.7rem;
  }

  .hero-lead {
    max-width: 17ch;
    font-size: 1.38rem;
  }

  .hero-copy {
    max-width: 31ch;
    font-size: 0.94rem;
  }

  .books-section,
  .about-section,
  footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .books-section {
    padding-top: 68px;
    padding-bottom: 76px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .section-heading h2,
  .about-intro h2 {
    font-size: 2.4rem;
  }

  .section-heading > p {
    font-size: 0.96rem;
  }

  .book-grid {
    gap: 36px 14px;
  }

  .story-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
    padding: 18px;
  }

  .story-copy h3 {
    font-size: 2.45rem;
  }

  .cover-wrap {
    margin-bottom: 16px;
    box-shadow: 0 12px 24px rgba(16, 34, 43, 0.13);
  }

  .status {
    right: 7px;
    bottom: 7px;
    padding: 5px 6px;
    font-size: 0.55rem;
  }

  .book-card h3 {
    min-height: 2.4em;
    font-size: 1.05rem;
  }

  .book-card > p:last-child {
    font-size: 0.82rem;
  }

  .shelf-more {
    margin-top: 54px;
    padding-top: 26px;
    font-size: 1.4rem;
  }

  .about-section {
    gap: 42px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .principles span {
    margin-bottom: 8px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
