@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* Type system taken from the book covers:
   Barlow Condensed = the author-name face on every cover.
   Barlow = its plain sibling for reading. */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --grey: #595959;
  --rule: #DADADA;
  --panel: #F0F0F0;
  --accent: #173B87;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

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

/* Keep sections clear of the sticky header when a door or link jumps to them */
section[id] { scroll-margin-top: 72px; }

a { color: inherit; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.masthead-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  list-style: none;
}

.masthead nav a {
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.masthead nav a[aria-current="page"] { border-bottom-color: var(--black); }
.masthead nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.masthead-name:hover { color: var(--accent); }

.masthead-name.reveal { transition: opacity 0.25s ease; }
.masthead-name.reveal.is-hidden { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .masthead-name.reveal { transition: none; }
}

/* ---------- Shared type ---------- */

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.005em;
}

.h-section {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 0.9;
}

.lede {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.45;
}

.muted { color: var(--grey); }

.prose { max-width: 36em; }
.prose p + p { margin-top: 1em; }
.prose strong { font-weight: 600; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--text);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 16px 26px;
  text-decoration: none;
  border: 2px solid var(--black);
  cursor: pointer;
}

.btn:hover { background: var(--accent); border-color: var(--accent); }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.link:hover { color: var(--accent); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* ---------- Home hero ---------- */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 clamp(24px, 4vw, 64px);
  padding-top: 8px;
}

.hero-portrait img {
  width: 100%;
  height: min(86vh, 920px);
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-text {
  align-self: end;
  padding-bottom: 8px;
}

.hero-name {
  font-size: clamp(80px, 12.8vw, 190px);
  margin-left: -0.04em;
}

.hero-tagline {
  text-wrap: balance;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-text .lede {
  margin-top: 32px;
  max-width: 24em;
}

.hero-text .actions { margin-top: 32px; }

/* ---------- Featured book ---------- */

.feature {
  background: var(--panel);
  margin-top: clamp(80px, 10vw, 136px);
  padding: clamp(48px, 6vw, 88px) 0;
}

.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px clamp(24px, 5vw, 80px);
  align-items: center;
}

.feature-cover img {
  width: 100%;
  max-width: 400px;
}

.feature-status { font-weight: 600; color: var(--accent); }

.feature h2 {
  font-size: clamp(72px, 9vw, 140px);
  margin-top: 8px;
  margin-left: -0.03em;
}

.feature .book-lede { margin-top: 24px; }

.feature .prose { margin-top: 16px; }

.feature .actions { margin-top: 32px; }

/* ---------- Director / Author doors ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(20px, 3vw, 48px);
  margin-top: 40px;
  max-width: 640px;
}

.door {
  display: block;
  text-decoration: none;
  border-top: 4px solid var(--black);
  padding-top: 14px;
}

.door-word {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 0.95;
}

.door-note {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--grey);
}

.door:hover { border-top-color: var(--accent); }
.door:hover .door-word { color: var(--accent); }

/* ---------- Book shelves ---------- */

.shelf { padding-top: clamp(96px, 12vw, 160px); }

.shelf-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: 40px;
}

.shelf-head p { max-width: 30em; }

.shelf-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}

.book-tile a { text-decoration: none; display: block; }

.book-tile img {
  width: 100%;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}

.book-tile h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1;
  margin-top: 18px;
}

.book-tile a:hover h3 { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.book-tile p {
  font-size: 16px;
  color: var(--grey);
  margin-top: 6px;
}

.book-tile .out { color: var(--accent); font-weight: 600; }

/* ---------- Films ---------- */

.films { padding-top: clamp(96px, 12vw, 160px); }

.film-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px clamp(24px, 4vw, 64px);
}

.film-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 20px clamp(16px, 2vw, 28px);
  align-items: start;
}

.film-poster { display: block; }

.film-poster img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
}

.film-card h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 0.95;
}

.film-card h3 a { text-decoration: none; }
.film-card h3 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.film-card .genre { margin-top: 6px; font-size: 16px; color: var(--grey); }

.film-card p { font-size: 17px; margin-top: 12px; }

.film-card .actions { margin-top: 16px; gap: 10px 24px; }

.film-card .link { font-size: 16px; }

/* ---------- Commercials and content ---------- */

.content-strip { padding-top: clamp(96px, 12vw, 160px); }

.content-strip .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(24px, 4vw, 64px);
  align-items: start;
}

.reel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.reel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.content-strip .lede { margin-top: 20px; }

.credits { margin-top: 28px; font-size: 17px; }

.credits div + div { margin-top: 16px; }

.credits dt { font-weight: 600; }

.credits dd { color: var(--grey); }

.content-strip .actions { margin-top: 32px; }

.content-strip .more-links { margin-top: 20px; }

/* ---------- Newsletter band ---------- */

.newsletter {
  background: var(--black);
  color: var(--white);
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(64px, 8vw, 112px) 0;
}

.newsletter .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(24px, 4vw, 64px);
  align-items: end;
}

.newsletter p { max-width: 28em; }

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signup label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.signup input {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--text);
  font-size: 18px;
  padding: 14px 16px;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.signup input::placeholder { color: #9A9A9A; }

.signup .btn {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.signup .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

.signup-status { margin-top: 14px; font-size: 16px; min-height: 1.6em; }

/* ---------- Footer ---------- */

.site-foot { padding: 40px 0 48px; font-size: 16px; }

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.site-foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }

.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Book page ---------- */

.book-page .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(24px, 5vw, 80px);
  align-items: start;
  padding-top: 24px;
}

.book-page-cover {
  position: sticky;
  top: 90px;
}

.book-page-cover img {
  width: 100%;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}

.back {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--grey);
}

.back:hover { color: var(--accent); text-decoration: underline; }

.book-title { margin-top: 20px; }

.book-title .pre {
  display: block;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
}

.book-title .main {
  display: block;
  font-size: clamp(72px, 9vw, 140px);
  margin-left: -0.03em;
}

.book-facts { margin-top: 20px; font-size: 17px; color: var(--grey); }

.book-lede {
  margin-top: 40px;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.35;
  font-weight: 600;
  max-width: 22em;
}

.book-page .prose { margin-top: 28px; }

.book-page .actions { margin-top: 44px; }

.more-books { padding-top: clamp(96px, 12vw, 160px); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap,
  .shelf-head,
  .films .wrap,
  .content-strip .wrap,
  .newsletter .wrap,
  .feature .wrap,
  .book-page .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-portrait img { height: auto; aspect-ratio: 4 / 5; max-height: 72vh; }
  .hero-text { padding-top: 28px; }
  .hero-name { font-size: clamp(76px, 26vw, 150px); }

  .book-page-cover { position: static; max-width: 340px; }
  .feature-cover img { max-width: 260px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .masthead-name { font-size: 22px; }
  .masthead nav a { font-size: 16px; }
  .masthead nav ul { gap: 4px 18px; }
  .shelf-books {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .shelf-books::-webkit-scrollbar { display: none; }
  .shelf-books .book-tile { flex: 0 0 64%; scroll-snap-align: start; }
  .book-tile h3 { font-size: 22px; }
  .book-tile p { font-size: 15px; }
  .book-title .main { font-size: clamp(52px, 18vw, 88px); }
}

/* =========================================================
   Inner pages
   ========================================================= */

.page-head { padding-top: clamp(40px, 6vw, 88px); }

.page-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.86;
  margin-left: -0.03em;
}

.page-head .lede { margin-top: 24px; max-width: 32em; }

.block { padding-top: clamp(72px, 9vw, 128px); }

/* ---------- Books page ---------- */

.series-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(24px, 4vw, 64px);
  align-items: end;
}

.series-head p { max-width: 30em; }

.book-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}

.book-row img {
  width: 100%;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}

.book-row h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.9;
}

.book-row h3 a { text-decoration: none; }
.book-row h3 a:hover { color: var(--accent); }

.book-row .hook { margin-top: 14px; font-weight: 600; font-size: 20px; line-height: 1.35; max-width: 26em; }

.book-row .summary { margin-top: 10px; max-width: 36em; }

.status { margin-top: 16px; font-size: 17px; color: var(--grey); }
.status.is-out { color: var(--accent); font-weight: 600; }

.book-row .actions { margin-top: 20px; }

/* ---------- Films page ---------- */

.film-block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 28px clamp(24px, 4vw, 64px);
  align-items: start;
}

.film-block h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.9;
}

.film-block h2 a { text-decoration: none; }
.film-block h2 a:hover { color: var(--accent); }

.film-block .genre { margin-top: 8px; color: var(--grey); font-size: 17px; }
.film-block .summary { margin-top: 18px; }
.film-block .facts { margin-top: 14px; color: var(--grey); font-size: 17px; }
.film-block .actions { margin-top: 20px; }

/* ---------- Video grids ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 36px);
  list-style: none;
}

.video-tile h2 {
  font-family: var(--text);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin-top: 12px;
}

.video-tile h2 a { text-decoration: none; }
.video-tile h2 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.single-video > * { max-width: 1100px; }
.single-video h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.92;
  margin-top: 28px;
}
.single-video .summary { margin-top: 14px; color: var(--grey); max-width: 36em; }
.single-video .actions { margin-top: 20px; }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(24px, 5vw, 80px);
  align-items: start;
}

.about-photo img { width: 100%; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(24px, 5vw, 80px);
  align-items: start;
}

.contact-details p + p { margin-top: 10px; }
.contact-details .email { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field label { font-weight: 600; font-size: 16px; }

.field input,
.field textarea {
  font-family: var(--text);
  font-size: 18px;
  padding: 12px 14px;
  border: 2px solid var(--black);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.contact form .btn { margin-top: 24px; }

.form-status { margin-top: 14px; font-size: 17px; min-height: 1.6em; }

/* ---------- Bonus chapter ---------- */

.bonus > * { max-width: 40em; }
.bonus .note {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--panel);
}

@media (max-width: 860px) {
  .series-head,
  .book-row,
  .film-block,
  .about,
  .contact { grid-template-columns: minmax(0, 1fr); }
  .book-row img { max-width: 240px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-photo { max-width: 420px; }
}

@media (max-width: 560px) {
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

.book-facts .is-out { color: var(--accent); font-weight: 600; }

/* ---------- Posters on the Films page and film pages ---------- */

.film-block .reel { margin-top: 28px; }

.set-photo { margin-top: clamp(32px, 4vw, 56px); }

.set-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 0% 100%;
}

.set-photo figcaption { margin-top: 10px; font-size: 16px; color: var(--grey); }

.film-page .book-title .main { font-size: clamp(64px, 7.5vw, 120px); }

.film-page-reel { margin-top: 32px; }

.film-page .prose { margin-top: 28px; }

.film-page .actions { margin-top: 24px; }

@media (max-width: 860px) {
  .film-cards { grid-template-columns: minmax(0, 1fr); }
  .film-block .film-poster { max-width: 300px; }
}

@media (max-width: 560px) {
  .film-card { grid-template-columns: minmax(0, 1fr); }
  .film-card .film-poster { max-width: 260px; }
  .set-photo img { aspect-ratio: 3 / 2; }
  .film-page .book-title .main { font-size: clamp(48px, 15vw, 72px); }
}

/* ---------- Reader quotes ---------- */

.quotes { margin-top: 32px; display: grid; gap: 20px; max-width: 34em; }

.quote { border-left: 3px solid var(--black); padding-left: 18px; }

.quote blockquote p { font-size: 20px; font-weight: 500; line-height: 1.4; }

.quote figcaption { margin-top: 6px; font-size: 16px; color: var(--grey); }

.feature .quotes { margin-top: 24px; }

@media (max-width: 560px) { .quote blockquote p { font-size: 18px; } }
