:root {
  /* Palette sampled from the Resurfaced cover */
  --sand: #fff3dd;
  --sky-light: #d9f2fd;
  --lagoon: #52bffa;
  --cyan: #8fe9fb;
  --ocean: #023d4d;
  --teal: #10697b;
  --gold: #f9a84f;
  --brown: #a95c0a;
  --ink: #0b2a33;
  --white: #ffffff;
  --line: 2px solid var(--ocean);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Work Sans", system-ui, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: "Racing Sans One", "Work Sans", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.1;
  color: var(--ocean);
}

a { color: inherit; }

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--lagoon); color: var(--ocean); }
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px; flex-wrap: wrap;
}
.logo { font-family: "Racing Sans One", sans-serif; font-size: 1.7rem; letter-spacing: .02em; text-decoration: none; }
.logo span { color: var(--white); }
.nav ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
.nav ul a { text-decoration: none; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.nav ul a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--gold);
  color: var(--ocean);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  border: 2px solid var(--ocean);
  border-radius: 0;
  transition: background .15s, color .15s;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--teal); color: var(--white); }
.btn.teal { background: var(--lagoon); }
.btn.teal:hover { background: var(--teal); color: var(--white); }
.btn.grape { background: var(--cyan); }
.btn.grape:hover { background: var(--teal); color: var(--white); }
.btn.sun { background: var(--gold); }
.btn.sun:hover { background: var(--teal); color: var(--white); }

/* Hero */
.hero { background: var(--sky-light); padding: 90px 0; }
.hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p { font-size: 1.1rem; margin-bottom: 18px; max-width: 36em; }
.hero p.hero-actions { margin: 28px 0 0; }
.hero .btn { margin-right: 8px; margin-bottom: 8px; }

.photo {
  aspect-ratio: 1 / 1; background: var(--gold); border: 2px solid var(--ocean);
  outline: 3px solid var(--gold); outline-offset: 8px;
  display: grid; place-items: center;
  overflow: hidden; max-width: 340px; width: 100%; justify-self: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: 80px 0; }
.section-title { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 6px; }
.section-sub { margin-bottom: 40px; color: var(--ocean); opacity: .85; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 600; }

/* Cards */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.books-grid.single { grid-template-columns: minmax(220px, 300px) 1fr; align-items: start; }
.book {
  background: var(--white); border: var(--line); border-radius: 0;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.books-grid.single .book:first-child { padding: 12px; }
.book h3 { font-size: 2rem; }
.tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--brown); }
.buy { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.buy .btn { padding: 10px 18px; font-size: .78rem; }

.cover {
  aspect-ratio: 2 / 3; background: var(--lagoon); color: var(--ocean);
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-family: "Racing Sans One", sans-serif; font-size: 2.4rem;
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.has-img { aspect-ratio: auto; padding: 0; display: block; }
.cover.has-img img { height: auto; display: block; }

.video { position: relative; aspect-ratio: 16 / 9; border: var(--line); overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.book.feature { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 56px; }
.book.feature > div:not(.video) { display: flex; flex-direction: column; gap: 14px; }
.poster { width: 100%; height: auto; display: block; border: var(--line); }

.awards { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.awards li { font-size: .9rem; padding-left: 18px; position: relative; }
.awards li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--gold); border: 1px solid var(--ocean); }

.subhead { font-size: 2.2rem; margin-bottom: 24px; color: var(--ocean); }

.quote { border-left: 3px solid var(--lagoon); padding-left: 12px; font-style: italic; }
.quote span { display: block; font-style: normal; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }

/* Films */
.films { background: var(--lagoon); }
.films .section-sub { opacity: 1; }

/* Press */
#press { background: var(--sky-light); }

/* Footer */
footer { background: var(--lagoon); color: var(--ocean); padding: 28px 0; text-align: center; font-size: .85rem; letter-spacing: .06em; font-weight: 600; }

@media (max-width: 760px) {
  .hero .container, .book.feature, .books-grid.single { grid-template-columns: 1fr; }
  .hero .photo { order: -1; max-width: 260px; }
  .poster { max-width: 220px; }
  section { padding: 56px 0; }
  .nav ul { gap: 16px; }
}
