/* Iron Yogi — hand-built to match the look of the original ironyogi.com.
   Measured against the live page at 1280px wide (2026-09-14): a white two-column hero with
   the book photo on the left, the press band below it, both closed by slanted dividers. */

:root {
  --name-grey: #aeb8b8;
  --tagline-grey: #737a7a;
  --ink: rgba(15, 15, 15, 0.8);
  --ink-soft: #333;
  --phone: #71b784;
  --email: #c577ce;
  --panel-light: #87b5db;
  --panel-dark: #67a4e5;
  --slate: #345168;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #fff;
  color: var(--ink-soft);
  font-family: "Open Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }

/* ─── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.hero-photo {
  min-height: 1038px;
  background: url("book-hero-wide.jpg") 50% 50% / cover no-repeat;
}

.hero-content {
  display: flex;
  flex-direction: column;
  padding-bottom: 100px;            /* the slanted divider sits in this band */
}

.intro { padding: 20px 6% 0; }

.name {
  padding-bottom: 10px;
  font: 900 36px/1.2 Lato, Arial, sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--name-grey);
}

.tagline {
  padding-bottom: 10px;
  font: 700 17px/29px Lato, Arial, sans-serif;
  letter-spacing: 1px;
  color: var(--tagline-grey);
}

.book-title {
  margin-top: 32px;
  padding-bottom: 10px;
  font: 900 46px/59.8px Lato, Arial, sans-serif;
  color: var(--ink);
}

.book-subtitle {
  padding-bottom: 10px;
  font: 400 26px/26px Lato, Arial, sans-serif;
  color: var(--ink-soft);
}

/* Contact pills — each centred in its own quarter of the page, like the original. */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-top: 42px;
}
.contact-cell { display: flex; justify-content: center; padding: 0 5px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font: 900 14px/23.8px Lato, Arial, sans-serif;
  letter-spacing: 2px;
  transition: filter .2s ease, transform .2s ease;
}
.pill:hover, .pill:focus-visible { filter: brightness(1.06); transform: translateY(-1px); }
.pill-phone { background: var(--phone); min-height: 56px; padding: 8px 25px; }
.pill-email { background: var(--email); min-height: 72px; padding: 10px 26px; width: 100%; max-width: 283px; flex-direction: column; }

/* Credentials — two blue panels, white check-circle bullets. */
.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 231px;
  min-height: 343px;
}

.cred-col { list-style: none; padding: 20px 0 0 20px; color: #fff; }
.cred-light { background: var(--panel-light); }
.cred-dark { background: var(--panel-dark); }

.cred-col > li {
  position: relative;
  max-width: 300px;
  padding-left: 47px;
}
.cred-col > li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff var(--check) 50% 55% / 11px 11px no-repeat;
}
.cred-light { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5.2-5.4' fill='none' stroke='%2387b5db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cred-dark { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5.2-5.4' fill='none' stroke='%2367a4e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.cred-col h3 {
  padding-bottom: 10px;
  font: 900 20px/28px Lato, Arial, sans-serif;
  color: #fff;
}

.cred-sub {
  list-style: disc;
  padding: 0 0 23px 17px;
  font: 400 17px/26px "Open Sans", Arial, sans-serif;
}
.cred-sub li { margin: 0; }

/* ─── Slanted dividers ──────────────────────────────────────────────── */

.slant {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  display: block;
}
.slant-hero polygon { fill: var(--slate); }
.slant-press polygon { fill: var(--panel-light); }
.slant-press .slant-soft { fill-opacity: .5; }

/* ─── Press band ────────────────────────────────────────────────────── */

.press {
  position: relative;
  padding: 64px 20px 128px;
  background-color: var(--slate);
  background-image:
    linear-gradient(var(--slate) 5%, rgba(219, 219, 219, 0) 100%),
    url("press-bg-wide.jpg");
  background-size: cover, cover;
  background-position: 50% 50%, 50% 50%;
}

.press-row { display: flex; justify-content: center; align-items: center; }
.press-row-4 { gap: 58px; }
.press-row-4 img { width: 219px; }
.press-row-3 { gap: 60px; margin-top: 40px; }
.press-row-3 img { width: 320px; }

/* ─── Gentle entrance, like the original's fade-ins ─────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .intro, .contact, .credentials, .press-row {
    animation: rise .9s ease both;
  }
  .contact { animation-delay: .15s; }
  .credentials { animation-delay: .3s; }
  .press-row-3 { animation-delay: .15s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ─── Mid-size screens: the press logos wrap instead of overflowing ─── */

@media (max-width: 1200px) {
  .press-row { flex-wrap: wrap; row-gap: 30px; }
  .press-row-4 img { width: 17vw; min-width: 150px; }
  .press-row-3 img { width: 24vw; min-width: 200px; }
}

/* ─── Tablets and phones: one column, same order as the original ───── */

@media (max-width: 980px) {
  .hero { display: block; }

  .hero-photo {
    min-height: 0;
    aspect-ratio: 2000 / 1334;
    background-image: url("book-hero-narrow.jpg");
    background-size: contain;
    background-position: 50% 0;
  }

  .hero-content { padding-bottom: 100px; }

  .intro { padding: 36px 24px 0; text-align: center; }
  .name { font-size: 30px; letter-spacing: 3px; }
  .tagline { font-size: 15px; }
  .book-title { font-size: 38px; margin-top: 24px; }
  .book-subtitle { font-size: 22px; }

  .contact {
    grid-template-columns: 1fr;
    row-gap: 32px;
    margin-top: 44px;
    padding: 0 24px;
  }
  .contact-cell { padding: 0; }
  .pill-label { display: none; }
  .pill-email .pill-label { display: none; }
  .pill {
    font-size: 20px;
    letter-spacing: 2.5px;
    min-height: 54px;
    padding: 8px 26px;
  }
  .pill-phone { min-width: 72%; }
  .pill-email { max-width: none; width: auto; min-height: 54px; }

  .credentials { grid-template-columns: 1fr; margin-top: 56px; min-height: 0; }
  .cred-col { padding: 22px 22px 14px; }
  .cred-col h3 { font-size: 18px; line-height: 26px; }
  .cred-sub { font-size: 15px; line-height: 24px; }

  .press {
    padding: 56px 24px 130px;
    background-image:
      linear-gradient(var(--slate) 5%, rgba(219, 219, 219, 0) 100%),
      url("press-bg-narrow.jpg");
  }
  .press-row, .press-row-4, .press-row-3 {
    flex-direction: column;
    gap: 22px;
    margin-top: 0;
  }
  .press-row-3 { margin-top: 22px; }
  .press-row-4 img, .press-row-3 img { width: min(78vw, 300px); min-width: 0; }
}
