/* ===== Junicode (variable + TTF fallback) ===== */

/* Normal / bold (Roman) */

/* ===== Fraunces (self-hosted, SOFTWONK variable font) ===== */

/* Fraunces 72pt SuperSoft — used everywhere as "Fraunces" */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces/Fraunces_72pt_SuperSoft-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces/Fraunces_72pt_SuperSoft-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces/Fraunces_72pt_SuperSoft-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces/Fraunces_72pt_SuperSoft-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces/Fraunces_72pt_SuperSoft-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces/Fraunces_72pt_SuperSoft-Thin.ttf") format("truetype");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

/* Fraunces 72pt SuperSoft — Light */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces/Fraunces_72pt_SuperSoft-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Junicode";
  src:
    url("fonts/junicode/JunicodeVF-Roman.woff2") format("woff2-variations"),
    url("fonts/junicode/Junicode-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Junicode";
  src:
    url("fonts/junicode/JunicodeVF-Roman.woff2") format("woff2-variations"),
    url("fonts/junicode/Junicode-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Italic / bold italic */
@font-face {
  font-family: "Junicode";
  src:
    url("fonts/junicode/JunicodeVF-Italic.woff2") format("woff2-variations"),
    url("fonts/junicode/Junicode-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Junicode";
  src:
    url("fonts/junicode/JunicodeVF-Italic.woff2") format("woff2-variations"),
    url("fonts/junicode/Junicode-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

/* Prevent tiny horizontal overflow causing side-to-side drift on mobile */
html,
body {
  overflow-x: hidden;
}

/* Prefer clip where supported (avoids creating a scrollable overflow area) */
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f0e7;
  color: #0E0E10;
  font-family: "Fraunces", serif;
}

/* ===== NAV ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: #f6f0e7;
  z-index: 999;
}

.nav-inner {
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 20px;
}

.brand {
  font-size: 48px;
  line-height: 1;
  text-decoration: none;
  color: #0E0E10;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #0E0E10;
  font-size: 26px;
  line-height: 1;
}

.nav-links a:hover {
  opacity: 0.6;
}

main {
  padding-top: 90px;
}

/* ===== HERO PATH OVERLAY (FIXED) ===== */
/* fixed overlay hero – as before */
.hero-scroll {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  height: calc(100vh - 90px);
  pointer-events: none;
  z-index: 5;
}

.hero-sticky {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.path-hero {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.path-hero svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* BLANK SPACE that the animation uses for its scroll */
.hero-spacer {
  height: 140vh;
}

.path-hero text {
  fill: #0E0E10;
  font-family: "Junicode", serif;
  font-size: 100px;
  letter-spacing: 0;
}

/* ===== MOBILE HERO (fallback text for small screens) ===== */

.hero-mobile-line--main {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.25;
}

.hero-mobile-line--sub {
  margin-top: 1.5rem;
  font-size: clamp(18px, 4.2vw, 24px);
  font-style: italic;
}

/* ===== GENERIC PAGE SECTIONS ===== */
.page-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 20px;
  scroll-margin-top: 100px;
}

.page-section:first-of-type {
  margin-top: 4rem;
}

.section-inner {
  max-width: 900px;
  width: min(100%, 900px);
}

.section-inner h2 {
  font-size: clamp(40px, 5vw, 70px);
  margin-bottom: 1rem;
}

.section-inner p {
  font-size: 1.25rem;
}

/* ===== GENERIC FADE-IN FOR SECTIONS (driven by JS, same as ABOUT) ===== */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

/* this class is no longer used by JS, but keeping it does no harm */
.fade-section.fade-section--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ABOUT SECTION ===== */
/* about starts hidden; JS fades it in */
.about-section {
  min-height: 50vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 20px;
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

.about-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-content {
  display: flex;
  gap: 6rem;
  align-items: flex-start;
  width: 100%;
}

.about-portrait {
  width: 300px;
  min-height: 420px;
  overflow: hidden;
  flex: 0 0 300px;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.about-copy {
  flex: 1 1 auto;
  max-width: none;
}

.about-title {
  font-family: "Fraunces", serif;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 1.4rem;
  color: #0e0e10;
}

.about-desc {
  font-family: "Junicode", serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  color: #0e0e10;
}

/* ===== BOOKS BANNER (SVG) ===== */
.books-banner-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 4rem 0 0;
  margin: 0;
}

.books-banner-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-start;
}

.books-heading {
  position: relative;
  display: inline-block;
  margin: 0;
  margin-left: calc(300px + 3rem);
  font-family: "Fraunces", serif;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  color: #0e0e10;
  scroll-margin-top: 110px;
}

/* padded text block so Books sits nicely inside */
.books-heading-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0em 0em 0em 0em;
}

.books-heading::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 28rem;
  height: 6rem;
  background-image: url("svg/bookmark/bookmark-04.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: translate(-18%, -60%) rotate(-5deg);
  transform-origin: center center;
}

/* make the books panel only as tall as it needs */
#books-section.page-section {
  min-height: auto;
  display: block;
  padding: 4rem 0 4rem;
}

.books-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.books-content {
  display: flex;
  gap: 6rem;
  align-items: flex-start;
  width: 100%;
}

.book-cover {
  width: 300px;
  min-height: 420px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 300px;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-copy {
  flex: 1 1 auto;
  max-width: none;
}

.book-title {
  font-family: "Fraunces", serif;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 1.4rem;
  color: #0e0e10;
}

.book-desc {
  font-family: "Junicode", serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #0e0e10;
}

.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E2463C;
  color: #FDFAF5;
  text-decoration: none;
  border-radius: 10px;
  width: 435px;
  height: 85px;
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.book-button:hover {
  filter: brightness(0.9);
}

.books-content.projects-inner .book-button {
  background: #E2463C;
  color: #FDFAF5;
  width: 235px;
}

.books-content.book-bowie .book-button {
  background: #E2463C;
  color: #FDFAF5;
  width: 235px;
}

/* ===== HOOD / ECOMMERCE PROJECT SECTION (uses books containers) ===== */

#projects-hood.page-section {
  min-height: auto;
  display: block;
  padding: 10rem 0 4rem;
}

.hood-section {
  background-color: #EFE9E0;
  background-image: url("images/HoodGroup.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%;
}

/* push the copy column to the right within the shared books layout */
.hood-content {
  justify-content: flex-end;
}

.hood-copy {
  text-align: left;
}

/* subheading under the main title */
.hood-subtitle {
  font-family: "Fraunces", serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1.4rem;
  color: #0e0e10;
}

/* HOOD logo behaves like a cover but doesn't get cropped oddly */
.book-cover.hood-logo {
  background: transparent;
  border: none;
}

.book-cover.hood-logo img {
  object-fit: contain;
}

/* ===== CONTACT / ENQUIRY SECTION ===== */

.contact-section {
  padding: 10rem 0 5rem;
}

/* books-inner already sets width + horizontal padding */
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* two-column row */
.contact-content {
  align-items: flex-start;
}

.contact-copy {
  flex: 1 1 50%;
  max-width: 620px;
}

/* heading now stands alone above the row */
.contact-heading {
  margin: 0;
  max-width: 920px;
}

.contact-body {
  margin: 0;
}

/* form layout */

.contact-form {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d2d0cb;
  border-radius: 4px;
  background: #fdfaf5;
  font-family: "Junicode", serif;
  font-size: 20px;
  line-height: 1.3;
  color: #0e0e10;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #9f9c94;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #0f7297;
  box-shadow: 0 0 0 2px rgba(15, 114, 151, 0.15);
}

.contact-textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.contact-submit {
  align-self: flex-start;
}

/* visually hidden labels for accessibility */
.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;
}

/* Remove default button border and shadow */
button,
.book-button {
  border: none;
  box-shadow: none;
}

/* Optional: keep a custom focus ring for accessibility */
button:focus-visible,
.book-button:focus-visible {
  outline: 3px solid #0F7297;
  outline-offset: 3px;
}

/* full-width dark strip */
.book-bowie-band {
  width: 100%;
  padding: 4rem 0 4rem;
  background: #121214;
}

/* inner content stays aligned like other books */
.books-content.book-bowie {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0px 20px;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  color: #F6F0E7;
}

/* text column */
.books-content.book-bowie .book-copy {
  flex: 1 1 auto;
}

.books-content.book-bowie .book-title--light,
.books-content.book-bowie .book-desc--light {
  color: #F6F0E7;
}

/* dark image frame on the right */
.book-cover--bowie {
  width: 360px;
  min-height: 420px;
  background: #121214;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 360px;
}

.book-cover--bowie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Full-bleed divider (robust on iOS) */
.full-bleed-divider {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  margin: 0;
  line-height: 0;
  overflow: hidden;
}

/* Force the image to be viewport-wide and centred */
.full-bleed-divider img {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
  margin: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== PROJECTS / LIBERTY SECTION ===== */

.projects-band {
  width: 100%;
  padding: 10rem 0 4rem;
  background-color: #8FD3DC;
  background-image: url("svg/Liberty_Owl.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

.projects-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
}

.projects-copy {
  max-width: 680px;
  text-align: left;
}

/* Bowie: add a top black band above the p15 extract (all breakpoints) */
.bowie-page .bowie-extract--p15 {
  padding-top: 3rem;
  background: #000;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  /* HOOD section */
  #projects-hood.page-section {
    padding: 5rem 0;
  }

  .hood-section {
    background-position: left center;
    background-size: auto 100%;
  }

  .hood-content {
    justify-content: center;
  }

  .hood-copy {
    max-width: 100%;
  }

  /* HOOD logo: scale wider on <=1100px */
  #projects-hood .book-cover.hood-logo {
    width: 65vw;
    max-width: 75vw;
    flex: 0 0 auto;
    min-height: 0;
    margin: 0 auto 1rem;
  }

  /* let the logo image define the height (no empty "cover" space) */
  #projects-hood .book-cover.hood-logo img {
    height: auto;
    object-fit: contain;
  }

  #about.page-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* About: remove extra bottom padding on the description at <=1100px */
  .about-desc {
    margin-bottom: 0;
  }

  /* Hero tweaks */
  .path-hero svg {
    transform: translateY(15vh);
  }

  .hero-spacer {
    height: 35vh;
  }

  .path-hero text {
    font-size: 100px;
    text-anchor: middle;
  }

  /* Stack layouts + tighten spacing (About + all book sections) */
  .about-content,
  .books-content,
  .books-content.book-bowie {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .about-copy,
  .books-content .book-copy,
  .books-content.book-bowie .book-copy {
    width: 100%;
  }

  .about-portrait,
  .book-cover,
  .book-cover--bowie {
    margin: 0 auto 1rem;
  }

  /* About: match the standard 20px gutters on both sides */
  .about-inner {
    padding: 0 20px;
  }

  /* Books banner */
  .books-banner-inner {
    justify-content: center;
  }

  .books-heading {
    margin-left: 0;
    width: auto;
    text-align: center;
    display: inline-block;
  }

  .books-heading::before {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 25rem;
    height: 7.5rem;
    transform: translate(-42%, -50%) rotate(-5deg);
    transform-origin: center center;
    background-size: 100% 100%;
  }

  /* Projects band */
  .projects-band {
    background-position: center right;
    background-size: 120% auto;
    padding: 5rem 0;
  }

  .projects-inner {
    justify-content: flex-start;
  }

  .projects-copy {
    max-width: 100%;
  }

  /* Contact */
  .contact-content {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-form {
    width: 100%;
  }

  .contact-submit {
    align-self: center;
  }

  .contact-copy {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .book-bowie-band {
    padding: 5rem 0;
  }

  #contact.page-section {
    padding: 5rem 0;
  }

  /* Bowie cover: keep height, widen the window so we reveal more of the cover */
  .book-cover--bowie {
    width: 77vw;
    max-width: 462px;
    flex: 0 0 auto;
  }
}

@media (max-width: 960px) {
  .brand {
    font-size: 32px;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 20px;
  }
}

/* Projects: de-zoom Liberty owl between 700px and 1100px */
@media (max-width: 1100px) and (min-width: 701px) {
  .projects-band {
    background-size: auto 90%;
    background-position: right center;
  }
}

@media (max-width: 700px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }

  main {
    padding-top: 120px;
  }

  .book-button {
    width: 100%;
  }

  /* note: this overrides the 1100px value */
  /* Hero: bigger on small screens */
  .path-hero text {
    font-size: 125px;
  }

  /* Hero: reduce left/right empty space by scaling the SVG up */
  .path-hero svg {
    transform: translateY(15vh) scale(1);
    transform-origin: top center;
  }

  .projects-band {
    background-size: auto 80%;
    background-position: right center;
  }
}

@media (min-width: 1101px) {
  /* Bowie: slightly narrower text column, more space for the cover */
  .books-content.book-bowie .book-copy {
    flex: 0 1 70%;
    max-width: 70%;
  }

  .books-content.book-bowie .book-cover--bowie {
    flex: 0 0 40%;
    max-width: 40%;
  }
}

@media (max-width: 540px) {
  /* Bowie cover frame has BOTH classes: .book-cover + .book-cover--bowie */
  .books-content.book-bowie .book-cover.book-cover--bowie {
    min-height: 0;
    flex: 0 0 auto;
    height: auto;
    margin: 0 auto 0rem;
    width: 85vw;
    max-width: 508px;
  }

  /* Ensure the image doesn't try to stretch to a stale height */
  .books-content.book-bowie .book-cover.book-cover--bowie img {
    height: auto;
  }

  /* Full-bleed divider: deliberately overdraw edges to avoid iOS rounding gaps */
  .full-bleed-divider {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw + 4px);
    margin: 0;
    line-height: 0;
    overflow: hidden;
  }

  .full-bleed-divider img,
  .full-bleed-divider svg {
    display: block;
    width: calc(100vw + 4px);
    max-width: none;
    height: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ===== THE BOWIE MAN DETAIL PAGE ===== */

body.bowie-page {
  background: #000;
  color: #f6f0e7;
  --subpage-nav-offset: 74px;

  /* easy tweak points */
  --bowie-banner-pad-y-desktop: 4rem;
  --bowie-banner-pad-y-tablet: 3rem;
  --bowie-banner-pad-y-mobile: 2rem;
}

/* ===== SIGN HERE DETAIL PAGE ===== */

body.sign-page {
  background: #f6f0e7;
  color: #0e0e10;
  --subpage-nav-offset: 74px;

  /* tweak points */
  --sign-brand-bg: #F2664F;
  --sign-banner-pad-y-desktop: 4rem;
  --sign-banner-pad-y-tablet: 3rem;
  --sign-banner-pad-y-mobile: 2rem;
  --sign-intro-pad-top-mobile: 0rem;
  --sign-intro-pad-bottom-mobile: 2rem;
}

/* Remove homepage hero gap on subpages */
body.bowie-page main,
body.sign-page main,
body.liberty-page main {
  padding-top: var(--subpage-nav-offset);
}

/* ---------- Top banner ---------- */

.bowie-banner {
  width: 100%;
  background: #000;
  padding-top: var(--bowie-banner-pad-y-desktop);
  padding-bottom: var(--bowie-banner-pad-y-desktop);
}

.bowie-banner__picture,
.bowie-banner__picture img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  line-height: 0;
}

/* ---------- Intro (single centred framing note) ---------- */

.bowie-intro {
  background: #000;
  padding: 4rem 0;
}

/* reuse homepage inner spacing, but force a single-column layout here */
.bowie-page .bowie-intro .projects-inner {
  display: block;
}

.bowie-page .bowie-intro .projects-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.bowie-page .bowie-intro .book-title {
  color: #f6f0e7;
  margin: 0 0 1rem;
  text-align: center;
}

.bowie-page .bowie-intro .book-desc {
  color: #f6f0e7;
  margin: 0;
}

.bowie-page .bowie-intro .bowie-intro__desc {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Extracts ---------- */

.bowie-reader {
  width: 100%;
  background: #000;
}

.bowie-extract {
  width: 100%;
  margin: 0;
  padding: 0;
}

.bowie-extract__spread,
.bowie-extract__page {
  margin: 0;
  line-height: 0;
}

.bowie-extract__spread img,
.bowie-extract__page img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

/* Desktop / larger screens: show the full spread */
.bowie-extract__spread {
  display: block;
}

.bowie-extract__pages {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .bowie-banner {
    padding-top: var(--bowie-banner-pad-y-tablet);
    padding-bottom: var(--bowie-banner-pad-y-tablet);
  }

  .bowie-intro {
    padding: 4rem 0 4rem;
  }

  .bowie-extract__spread {
    display: none;
  }

  .bowie-extract__pages {
    display: block;
    width: 100%;
  }

  .bowie-extract__page + .bowie-extract__page {
    margin-top: 0;
  }

  /* Bowie: add a top black band above the p15 extract (<=1100px) */
  .bowie-page .bowie-extract--p15 {
    padding-top: 2rem;
    background: #000;
  }
}

@media (max-width: 700px) {
  .bowie-banner {
    padding-top: var(--bowie-banner-pad-y-mobile);
    padding-bottom: var(--bowie-banner-pad-y-mobile);
  }

  .bowie-intro {
    padding: 2rem 0 4rem;
  }

  .bowie-page .bowie-intro .projects-copy {
    max-width: 680px;
  }
}

/* ---------- Top banner ---------- */

.sign-banner {
  width: 100%;
  background: var(--sign-brand-bg);
  padding: var(--sign-banner-pad-y-desktop) 0;
}

.sign-banner__picture,
.sign-banner__picture img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  line-height: 0;
}

/* ---------- Intro (single centred framing note) ---------- */

.sign-intro {
  background: var(--sign-brand-bg);
  padding: 0 0 4rem;
  color: #fff;
}

/* reuse homepage inner spacing, but force a single-column layout here */
.sign-page .sign-intro .projects-inner {
  display: block;
}

.sign-page .sign-intro .projects-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.sign-page .sign-intro .book-title {
  margin: 0 0 1rem;
  text-align: center;
  color: #fff;
}

.sign-page .sign-intro .book-desc {
  margin: 0;
  color: #fff;
}

.sign-page .sign-intro a {
  color: #fff;
}

/* Space between “Published…” and the CTA line
   (needs higher specificity because .book-desc margin is reset above) */
.sign-page .sign-intro .book-desc.sign-intro__meta {
  margin-bottom: 2rem;
}

/* optional: keep links tight */
.sign-page .sign-intro .book-desc.sign-intro__links {
  margin-top: 0;
}

/* ---------- Extracts ---------- */

.sign-reader {
  width: 100%;
  background: #f6f0e7;
}

.sign-extract {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Two pages side-by-side on desktop */
.sign-extract__pair {
  width: 100%;
  display: flex;
  gap: 0;
}

.sign-extract__page {
  flex: 1 1 50%;
  margin: 0;
  line-height: 0;
}

.sign-extract__page img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .sign-banner {
    padding: var(--sign-banner-pad-y-tablet) 0;
  }

  .sign-intro {
    padding: 2rem 0 2.5rem;
  }

  /* stack pages vertically */
  .sign-extract__pair {
    flex-direction: column;
  }

  .sign-extract__page {
    flex: 0 0 auto;
  }
}

@media (max-width: 700px) {
  .sign-banner {
    padding: var(--sign-banner-pad-y-mobile) 0;
  }

  .sign-page .sign-intro .projects-copy {
    max-width: 680px;
  }

  .sign-intro {
    padding-top: var(--sign-intro-pad-top-mobile);
    padding-bottom: var(--sign-intro-pad-bottom-mobile);
  }
}

/* ===== LIBERTY PAGE ===== */

body.liberty-page {
  background: #f6f0e7;
  color: #0e0e10;
  --subpage-nav-offset: 74px;
}

body.liberty-page .liberty-hero {
  position: relative;
  top: -1px;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

body.liberty-page .liberty-hero__inner {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 4.5rem 20px 0;
  text-align: center;
  transform: translateX(-50%);
}

body.liberty-page .liberty-hero__media {
  position: relative;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}

body.liberty-page .liberty-hero__title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(60px, 6.8vw, 108px);
  line-height: 0.95;
  font-weight: 400;
  white-space: nowrap;
  color: #0e0e10;
}

body.liberty-page .liberty-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
}

body.liberty-page .liberty-feature,
body.liberty-page .liberty-section {
  padding-top: 5rem;
  padding-bottom: 0;
}

body.liberty-page .liberty-feature__content,
body.liberty-page .liberty-section__content {
  align-items: flex-start;
}

body.liberty-page .liberty-media {
  flex: 0 0 42%;
  max-width: 460px;
  margin: 0;
  line-height: 0;
}

body.liberty-page .liberty-media img {
  display: block;
  width: 100%;
  height: auto;
}

body.liberty-page .liberty-support {
  flex: 0 0 38%;
}

body.liberty-page .liberty-support__label {
  margin: 0 0 1rem;
  font-family: "Fraunces", serif;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

body.liberty-page .liberty-support__text,
body.liberty-page .liberty-section__single .book-desc,
body.liberty-page .liberty-feature .book-desc,
body.liberty-page .liberty-section .book-desc {
  margin-bottom: 0;
}

body.liberty-page .liberty-section__content {
  justify-content: space-between;
}

body.liberty-page .liberty-section__single {
  max-width: 900px;
}

body.liberty-page .liberty-poem-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

body.liberty-page .liberty-poem {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

body.liberty-page .liberty-poem__title {
  margin: 0 0 1.25rem;
  font-family: "Junicode", serif;
  font-size: 24px;
  line-height: 1.3;
}

body.liberty-page .liberty-poem__text {
  margin: 0;
  font-family: "Junicode", serif;
  font-size: 24px;
  line-height: 1.55;
}

@media (min-width: 1900px) {
  body.liberty-page .liberty-hero__inner {
    padding: 6.5rem 20px 0;
  }
}

@media (max-width: 1100px) {
  body.liberty-page .books-inner {
    padding-left: 0;
    padding-right: 0;
  }

  body.liberty-page .liberty-hero__inner {
    padding: 1.5rem 20px 0;
  }

  body.liberty-page .liberty-hero__title {
    font-size: clamp(52px, 7vw, 82px);
  }

  body.liberty-page .liberty-hero {
    background: #ffffff;
  }

  body.liberty-page .liberty-hero__media img {
    opacity: 0.55;
  }

  body.liberty-page .liberty-feature,
  body.liberty-page .liberty-section {
    padding-top: 4rem;
  }

  body.liberty-page .liberty-media,
  body.liberty-page .liberty-support {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  body.liberty-page .liberty-poem-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 700px) {
  body.liberty-page .liberty-hero__inner {
    padding: 2rem 20px 0;
  }

  body.liberty-page .liberty-hero__title {
    font-size: clamp(40px, 10.5vw, 60px);
    white-space: normal;
  }

  body.liberty-page .liberty-poem__title,
  body.liberty-page .liberty-poem__text {
    font-size: 22px;
  }
}

@media (max-width: 500px) {
  body.liberty-page .liberty-hero__inner {
    padding: 0.4rem 20px 0;
  }
}

@media (max-width: 647px) {
  .top-nav {
    height: auto;
    min-height: 74px;
    padding-bottom: 12px;
  }

  .nav-inner {
    height: auto;
    min-height: 74px;
    align-content: center;
  }

  body.bowie-page,
  body.sign-page,
  body.liberty-page {
    --subpage-nav-offset: 86px;
  }
}

@media (min-width: 961px) {
  .top-nav {
    padding-bottom: 1px;
  }

  body.bowie-page,
  body.sign-page,
  body.liberty-page {
    --subpage-nav-offset: 75px;
  }
}

/* ===== TEMP: LIBERTY CLEAN PLUM GRADIENT TEST ===== */

body.liberty-page main {
  position: relative;
  background: linear-gradient(
    180deg,
    #4b2050 0%,
    #55275a 38%,
    #63305f 68%,
    #7a4668 100%
  );
  color: #ffffff;
}

body.liberty-page .book-title,
body.liberty-page .book-desc,
body.liberty-page .liberty-poem__title,
body.liberty-page .liberty-poem__text,
body.liberty-page .liberty-quote {
  color: #ffffff;
}

/* ===== TEMP: HOMEPAGE LIBERTY PROJECT PLUM TEST ===== */

body:not(.bowie-page):not(.sign-page):not(.liberty-page) .projects-band {
  background-image:
    url("svg/Liberty_Owl.svg"),
    linear-gradient(
      180deg,
      #4b2050 0%,
      #55275a 38%,
      #63305f 68%,
      #7a4668 100%
    );
  background-repeat: no-repeat, no-repeat;
  background-position: right center, center center;
  background-size: auto 100%, cover;
}

body:not(.bowie-page):not(.sign-page):not(.liberty-page) .projects-band .book-title,
body:not(.bowie-page):not(.sign-page):not(.liberty-page) .projects-band .book-desc {
  color: #ffffff;
}

/* ===== TEMP: MOBILE / TABLET LIBERTY OWL OPACITY ONLY ===== */

@media (max-width: 1100px) {
  body:not(.bowie-page):not(.sign-page):not(.liberty-page) .projects-band {
    position: relative;
    isolation: isolate;
    background-image: linear-gradient(
      180deg,
      #4b2050 0%,
      #55275a 38%,
      #63305f 68%,
      #7a4668 100%
    );
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
  }

  body:not(.bowie-page):not(.sign-page):not(.liberty-page) .projects-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("svg/Liberty_Owl.svg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 80%;
    opacity: 0.45;
    pointer-events: none;
  }

  body:not(.bowie-page):not(.sign-page):not(.liberty-page) .projects-band .projects-inner {
    position: relative;
    z-index: 1;
  }
}

/* ===== LIBERTY HERO POEM ===== */

body.liberty-page .liberty-hero-poem {
  --liberty-hero-poem-gap: 1.5rem; /* easy tweak point */
  width: min(100%, 760px);
  margin: var(--liberty-hero-poem-gap) auto 0;
  text-align: center;
}

body.liberty-page .liberty-hero-poem__line {
  display: block;
  font-family: "Junicode", serif;
  font-size: 24px;
  line-height: 1.35;
  font-style: italic;
  color: #0e0e10;
  opacity: 0;
  transition: opacity 1.6s ease;
}

body.liberty-page .liberty-hero-poem__line + .liberty-hero-poem__line {
  margin-top: 0.15rem;
}

body.liberty-page .liberty-hero-poem__line.is-visible {
  opacity: 1;
}

@media (max-width: 1100px) {
  body.liberty-page .liberty-hero-poem {
    width: min(100%, 680px);
    margin-top: 1rem;
  }
}

@media (max-width: 700px) {
  body.liberty-page .liberty-hero-poem {
    width: min(100%, 92vw);
    margin-top: 0.85rem;
  }

  body.liberty-page .liberty-hero-poem__line {
    font-size: 22px;
    line-height: 1.32;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.liberty-page .liberty-hero-poem__line {
    opacity: 1;
    transition: none;
  }
}

/* ===== SITE FOOTER ===== */

.site-footer {
  padding: 2rem 20px 2.25rem;
  background: #f6f0e7;
}

.site-footer__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.15rem;
  flex-wrap: wrap;
  text-align: center;
}

.site-footer__copyright {
  font-family: "Junicode", serif;
  font-size: 16px;
  line-height: 1.2;
  color: #0e0e10;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0F7297;
  text-decoration: none;
}

.site-footer__social:hover {
  opacity: 0.7;
}

.site-footer__social:focus-visible {
  outline: 2px solid #0F7297;
  outline-offset: 4px;
  border-radius: 4px;
}

.site-footer__icon {
  display: block;
  width: 18px;
  height: 18px;
}