/* Design tokens — Penny Schilling / Talking About Bruno */
:root {
  --color-bg: #1b1714;
  --color-bg-section: #211b16;
  --color-bg-card: #2a231c;
  --color-text: #f3eadb;
  --color-text-muted: #b7a891;
  --color-gold: #c9a227;
  --color-accent: #a6293c;
  --color-border: rgba(243, 234, 219, 0.13);
  --color-border-light: rgba(243, 234, 219, 0.22);
  --font-serif: "Times New Roman", Times, Georgia, serif;
  --font-sans: "Karla", system-ui, sans-serif;
  --container-max: 1180px;
  --content-narrow: 1100px;
  --header-height: 84px;
  --radius: 2px;
  --gutter: 40px;
  --section-pad: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.content-narrow {
  max-width: var(--content-narrow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text);
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #8f2233;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-text-muted);
  background: rgba(243, 234, 219, 0.05);
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(27, 23, 20, 0.86);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.19px;
  line-height: 30.4px;
  color: var(--color-text);
  padding-left: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li + li {
  margin-left: 34px;
}

.nav-list a {
  font-size: 14.5px;
  line-height: 23.2px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-text);
}

.btn-nav {
  margin-left: 34px;
  min-height: 43px;
  padding-inline: 18px;
  font-weight: 400;
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
  min-height: 639px;
}

.hero-eyebrow {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 30.4px;
  color: var(--color-gold);
}

.hero-title {
  margin: 0 0 32px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.84px;
  color: var(--color-text);
}

.hero-lead {
  margin: 0 0 40px;
  max-width: 565px;
  font-size: clamp(16px, 2.2vw, 18.5px);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions .btn {
  min-height: 56px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-book-frame {
  position: relative;
  width: min(100%, 518px);
  aspect-ratio: 518 / 639;
  height: auto;
  max-height: min(639px, 70vh);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  pointer-events: none;
}

.hero-book-img {
  position: absolute;
  width: 252.19%;
  height: 136.31%;
  max-width: none;
  left: -76.09%;
  top: -18.47%;
}

/* Three parts */
.three-parts {
  padding: var(--section-pad) 0;
}

.section-title {
  margin: 0 0 30px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  color: var(--color-text);
  text-transform: capitalize;
}

.section-intro {
  margin: 0 0 58px;
  max-width: 524px;
  font-size: 16.5px;
  line-height: 26.4px;
  color: var(--color-text-muted);
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  background: rgba(243, 234, 219, 0.13);
}

.part-card {
  padding: 44px clamp(24px, 4vw, 38px) 48px;
  background: var(--color-bg);
  min-height: 258px;
}

.part-card + .part-card {
  border-left: 1px solid var(--color-border);
}

.part-label {
  margin: 0 0 13px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-gold);
}

.part-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 25px;
  line-height: 40px;
  color: var(--color-text);
}

.part-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 24.8px;
  color: var(--color-text-muted);
}

/* Quote */
.quote-section {
  padding: var(--section-pad) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(
      ellipse 461px 70px at 15% 30%,
      rgba(201, 162, 39, 0.16) 0%,
      rgba(201, 162, 39, 0) 55%
    ),
    var(--color-bg-section);
}

.quote-section .container {
  padding-inline: clamp(20px, 5vw, var(--gutter));
}

.pull-quote {
  margin: 0 auto 32px;
  max-width: 991px;
  padding: 0;
  border: none;
}

.pull-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.32;
  color: var(--color-text);
}

.quote-attribution {
  margin: 0;
  font-size: 14.5px;
  line-height: 23.2px;
  letter-spacing: 0.29px;
  color: var(--color-text-muted);
}

/* About */
.about-section {
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 444px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.about-photo {
  margin: 0;
}

.about-photo-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 444 / 452;
  min-height: 280px;
  max-height: 452px;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  background: linear-gradient(163.5deg, var(--color-bg-card) 0%, var(--color-bg-section) 100%);
}

.about-photo-img {
  position: absolute;
  width: 112.97%;
  height: 111.85%;
  max-width: none;
  left: -9.99%;
  top: -6.65%;
  object-fit: cover;
}

.about-photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 4.069%,
    rgba(0, 0, 0, 0) 60.814%
  );
  pointer-events: none;
}

.about-caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 22.4px;
  color: var(--color-text-muted);
  z-index: 2;
}

.about-title {
  margin: 0 0 48px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.18;
  color: var(--color-text);
  text-transform: capitalize;
}

.about-text {
  margin: 0 0 36px;
  font-size: 16.5px;
  line-height: 26.4px;
  color: var(--color-text-muted);
  max-width: 566px;
}

.about-link {
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-gold);
  transition: opacity 0.2s;
}

.about-link:hover,
.about-link:focus-visible {
  opacity: 0.85;
  text-decoration: underline;
}

/* Press */
.press-section {
  background: var(--color-bg-section);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(48px, 8vw, 78px) 0;
}

.press-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.press-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.35;
  color: var(--color-text);
  max-width: 440px;
}

.press-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 24.8px;
  color: var(--color-text-muted);
  max-width: 440px;
}

.btn-press {
  min-height: 56px;
  flex-shrink: 0;
}

/* Notify */
.notify-section {
  padding: var(--section-pad) 0 48px;
}

.notify-title {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.14;
  color: var(--color-text);
}

.notify-lead {
  margin: 0 0 36px;
  max-width: 445px;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--color-text-muted);
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: min(460px, 100%);
}

.form-field {
  flex: 1 1 200px;
  min-width: 0;
}

.notify-form input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 17px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
}

.notify-form input::placeholder {
  color: var(--color-text-muted);
}

.notify-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.notify-form input.is-invalid {
  border-color: #e07070;
}

.field-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #e07070;
}

.btn-submit {
  flex-shrink: 0;
  min-width: 115px;
  height: 48px;
  padding-inline: 23px;
}

.form-status {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--color-gold);
  max-width: 460px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--content-narrow);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-nav a {
  font-size: 14px;
  line-height: 22.4px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-text);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  line-height: 20.8px;
  color: var(--color-text-muted);
}

/* ——— Responsive ——— */

/* Laptop / small desktop (≤1440px) */
@media (max-width: 1440px) {
  :root {
    --gutter: 32px;
    --section-pad: 88px;
  }

  .hero-grid {
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: auto;
  }

  .hero-book-frame {
    max-width: min(420px, 42vw);
  }
}

/* Tablet landscape (≤1024px) */
@media (max-width: 1024px) {
  :root {
    --gutter: 28px;
    --section-pad: 72px;
    --header-height: 72px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    padding: 24px var(--gutter);
    gap: 24px;
    background: rgba(27, 23, 20, 0.98);
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    visibility: hidden;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list li + li {
    margin-left: 0;
    margin-top: 4px;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  .btn-nav {
    margin-left: 0;
    width: 100%;
    min-height: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero-visual {
    order: -1;
    min-height: auto;
  }

  .hero-book-frame {
    max-width: min(380px, 85vw);
    max-height: 55vh;
    margin-inline: auto;
  }

  .hero-content {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-eyebrow,
  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .part-card + .part-card {
    border-left: none;
    border-top: none;
  }

  .part-card:nth-child(2) {
    border-left: 1px solid var(--color-border);
  }

  .part-card:nth-child(3) {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .about-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .about-content {
    text-align: left;
  }

  .about-text {
    max-width: none;
  }

  .press-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-press {
    width: 100%;
    max-width: 320px;
  }

  .quote-section {
    background:
      radial-gradient(
        ellipse 80% 40% at 50% 35%,
        rgba(201, 162, 39, 0.16) 0%,
        rgba(201, 162, 39, 0) 55%
      ),
      var(--color-bg-section);
  }
}

/* Tablet portrait (≤768px) */
@media (max-width: 768px) {
  :root {
    --gutter: 24px;
    --section-pad: 64px;
  }

  .logo {
    font-size: 17px;
    line-height: 1.4;
  }

  .hero-title br {
    display: none;
  }

  .parts-grid {
    grid-template-columns: 1fr;
  }

  .part-card + .part-card,
  .part-card:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .part-card:first-child {
    border-top: none;
  }

  .part-card {
    min-height: auto;
  }

  .pull-quote p {
    text-wrap: balance;
  }

  .quote-attribution {
    padding-inline: 8px;
    text-wrap: balance;
  }

  .about-title br {
    display: none;
  }

  .notify-title br {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-copy {
    text-wrap: balance;
    max-width: 100%;
  }
}

/* Mobile (≤390px) */
@media (max-width: 390px) {
  :root {
    --gutter: 20px;
    --section-pad: 56px;
    --header-height: 68px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
    justify-content: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-book-frame {
    max-width: 100%;
    max-height: 50vh;
  }

  .section-intro {
    margin-bottom: 40px;
  }

  .notify-form {
    flex-direction: column;
  }

  .form-field {
    flex: 1 1 100%;
    width: 100%;
  }

  .btn-submit {
    width: 100%;
  }

  .btn-press {
    max-width: none;
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

/* Small mobile (≤320px) */
@media (max-width: 320px) {
  :root {
    --gutter: 16px;
    --section-pad: 48px;
  }

  .btn {
    padding-inline: 18px;
    font-size: 14px;
  }

  .part-card {
    padding-block: 32px;
  }

  .hero-grid {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .press-section {
    padding-block: 40px;
  }
}
