/* Dads Digging Out — one-page site
   Headings: Oswald. Body: Source Sans 3.
   Local files in assets/fonts are the primary source so the page
   stays fast and works offline; Google Fonts in the HTML is a fallback. */

@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/Oswald-Variable.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Italic-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b1730;
  --bg-alt: #10203c;
  --bg-card: #152744;
  --bg-photo: #1a2e4e;
  --text: #f3f1ec;
  --muted: #b8becc;
  --faint: #8e95a8;
  --line: rgba(232, 236, 245, 0.14);
  --line-strong: rgba(232, 236, 245, 0.24);
  --accent: #e8782c;
  --accent-hover: #f08a42;
  --accent-text: #0b1730;
  --header-h: 4.25rem;
  --wrap: 68rem;
  --narrow: 42rem;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  background: var(--bg);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 8.2vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  max-width: 20ch;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.nobr {
  white-space: nowrap;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}


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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(11, 23, 48, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.82rem, 3.4vw, 0.98rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  margin-right: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.wordmark-mark {
  display: block;
  width: 2.6rem;
  height: auto;
  flex: none;
}

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

.nav {
  display: none;
  gap: 1.35rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

/* Buttons
   --------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-small {
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* Hero
   --------------------------------------------- */

.hero {
  padding: 3.5rem 0 4.25rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(232, 120, 44, 0.10), transparent 42%),
    var(--bg);
}

.hero-copy {
  max-width: 46rem;
  padding-top: 1rem;
}

.wordmark-hero {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.hero-logo {
  display: block;
  width: clamp(13rem, 42vw, 19rem);
  height: auto;
  margin: 0 0 1.6rem -0.4rem;
}

.hero-sub {
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 28em;
  margin-bottom: 2rem;
}

/* Sections
   --------------------------------------------- */

.section {
  padding: 3.75rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.55rem;
}

.lede {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

/* Why + photos
   --------------------------------------------- */

.why-copy p {
  color: var(--text);
  max-width: 40rem;
}

.why-intro {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.portrait,
.then-now figure {
  margin: 0;
}

/* Keep the gym portrait from going full-bleed when the why section stacks */
.portrait {
  max-width: 22rem;
}

.portrait .frame,
.then-now .then .frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-photo);
  aspect-ratio: 4 / 5;
}

.then-now .now .frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-photo);
  aspect-ratio: 1 / 1;
}

.portrait img,
.then-now img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait img {
  object-position: center 25%;
}

.then-now .then img {
  object-position: center 10%;
}

.then-now .now img {
  object-position: center 45%;
}

.portrait figcaption,
.then-now figcaption {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.55rem;
}

.then-now {
  display: grid;
  gap: 0.85rem;
}

/* Weeks grid
   --------------------------------------------- */

.weeks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.weeks li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  min-width: 0;
}

.week-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.weeks h3 {
  font-size: 1.15rem;
}

.weeks p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Cards
   --------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.55rem;
}

.coming-soon {
  border-left: 3px solid var(--accent);
  max-width: 42rem;
}

/* Books + launch signup
   --------------------------------------------- */

.books-launch {
  display: grid;
  gap: 2rem;
}

.book-list {
  display: grid;
  gap: 0.85rem;
}

.book-list .coming-soon {
  max-width: none;
}

.book-list .card p:last-child {
  margin-bottom: 0;
}

.book-card .price {
  margin: 0.5rem 0 1rem;
}

.book-subtitle {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin: -0.35rem 0 0.75rem;
}

.book-cover {
  margin: -1.5rem -1.4rem 1.15rem;
  padding: 1.1rem 1.15rem 0;
  background: #081224;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.book-cover img {
  display: block;
  height: auto;
  width: 100%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.btn-book {
  align-self: stretch;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 0.7rem 0.9rem;
}

/* Merch
   --------------------------------------------- */

.merch-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.merch-item {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.merch-photo {
  background: #d9d9d9;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.merch-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merch-photo-sticker {
  background: #f3f1ec;
  padding: 1rem;
}

.merch-item figcaption {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 0.85rem 0.85rem;
}

.merch-cta {
  margin-top: 1.5rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.85rem 0 0;
}

#program .lede {
  margin-bottom: 1rem;
}

.invite {
  color: var(--text);
  max-width: 42rem;
  margin: 0 0 1.35rem;
  line-height: 1.65;
}

#program .price {
  margin: 0 0 2rem;
}


.notify-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.55rem;
  align-self: start;
}

.notify-col h2 {
  max-width: none;
}

.notify-col .lede {
  margin-bottom: 1.25rem;
}

.notify-col .signup-form {
  max-width: none;
  flex-direction: column;
}

.notify-col .form-note {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--faint);
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.card h3 {
  font-size: 1.35rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.card-photo {
  margin: -1.5rem -1.4rem 1.15rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg-photo);
  aspect-ratio: 4 / 3;
}

.card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-photo-contain {
  background: #d9d9d9;
}

.card-photo-contain img {
  object-fit: contain;
  object-position: center;
}

.cards {
  display: grid;
  gap: 0.85rem;
}

.text-link {
  align-self: flex-start;
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.support-story {
  max-width: 42rem;
  margin: 0 0 2rem;
}

.support-story p {
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}

.funding-list {
  margin-top: 2.25rem;
  padding: 1.5rem 1.4rem 1.55rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.funding-list h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  max-width: none;
  margin-bottom: 0.85rem;
}

.funding-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.funding-list li {
  color: var(--text);
  padding: 0.55rem 0 0.55rem 0.95rem;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}

.text-link::after {
  content: " →";
}

/* Signup
   --------------------------------------------- */

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.25rem;
  max-width: 36rem;
}

.signup-form input[type="email"] {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.signup-form input::placeholder {
  color: var(--faint);
}

.form-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1rem;
}

.form-note[hidden] {
  display: none;
}

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

#contact .lede,
#signup .lede,
#why .why-copy,
#books h2,
#workbook h2 {
  max-width: 42rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
}

.contact-email a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.contact-email a:hover {
  color: var(--accent-hover);
}

.social {
  color: var(--muted);
  font-size: 1rem;
}

.social em {
  font-style: italic;
  color: var(--faint);
}

.social .dot {
  margin: 0 0.45rem;
  color: var(--faint);
}

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

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: #081224;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.crisis {
  color: var(--text);
  margin: 0;
}

.crisis a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.copyright {
  color: var(--faint);
  font-size: 0.92rem;
  margin: 0;
}

/* Breakpoints
   --------------------------------------------- */

@media (min-width: 640px) {
  .wrap {
    width: min(100% - 3rem, var(--wrap));
  }

  .hero {
    padding: 5.5rem 0 6.25rem;
  }

  .hero-copy {
    padding-top: 2rem;
  }

  .section {
    padding: 5rem 0;
  }

  .then-now {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .weeks {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .book-list {
    grid-template-columns: 1fr 1fr;
  }

  .book-cover {
    /* Shared well sized to the 8.5×11 workbook, so the 5.5×8.5 journal sits at true trim. */
    aspect-ratio: 8.5 / 11.6;
  }

  .book-cover-journal img {
    width: calc(100% * 5.5 / 8.5);
  }

  .merch-grid {
    grid-template-columns: 1fr 1fr;
  }

  .signup-form {
    flex-direction: row;
    align-items: stretch;
  }

  .signup-form input[type="email"] {
    flex: 1 1 auto;
  }
}

@media (min-width: 900px) {
  .books-launch {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 2rem;
    align-items: start;
  }

  .nav {
    display: flex;
  }

  .merch-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .why-intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    align-items: start;
  }

  .portrait {
    max-width: none;
  }

  .weeks {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Week 9 fills the last row instead of leaving two empty columns */
  .weeks li:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto 1fr;
    column-gap: 1.25rem;
    align-items: baseline;
  }

  .weeks li:last-child .week-num,
  .weeks li:last-child h3 {
    margin-bottom: 0;
  }


  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  html, body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header {
    position: static;
    backdrop-filter: none;
  }

  /* Letter width is under the 900px desktop breakpoint; keep the
     why photos in a two-column layout so the gym portrait doesn't
     swallow a whole printed page. */
  .why-intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.5rem;
    align-items: start;
  }

  .portrait {
    max-width: none;
  }

  .then-now {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .hero {
    padding: 2.25rem 0 2.5rem;
    min-height: calc(100vh - var(--header-h) - 2px);
    display: flex;
    align-items: center;
  }

  .section {
    padding: 2.15rem 0;
  }

  .why-top,
  .then-now,
  .portrait,
  .then-now figure,
  .book-cover {
    aspect-ratio: 8.5 / 11.6;
    max-height: 3in;
    padding: 0.55rem 0.55rem 0;
  }

  .book-cover-journal img {
    width: calc(100% * 5.5 / 8.5);
  }

  .book-list .card,
  .book-card,
  .notify-col,
  .merch-item,
  .cards,
  .card,
  .card-photo,
  .funding-list,
  .support-story,
  .invite {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #support {
    break-before: page;
    page-break-before: always;
  }

  .site-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #contact {
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
  }

  .books-launch {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 1.5rem;
    align-items: start;
  }

  .book-list {
    grid-template-columns: 1fr 1fr;
  }

  .merch-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #merch,
  .merch-grid,
  .merch-cta {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
