/* Layout for readyornotdad.com. Tokens and components come from the Ready or Not Dad design system (tokens.css, components.css). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--amber); color: var(--night); padding: 8px 14px; border-radius: var(--radius-md); font-weight: 800; z-index: 20; }
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section, .band { padding-block: var(--space-6); }
.band { background: var(--bg-raised); }
.heading { margin: 6px 0 0; text-wrap: balance; font-size: clamp(30px, 5vw, 44px); }
.title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.section__lede { max-width: 62ch; color: var(--fg-muted); margin: 12px 0 0; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(14,22,38,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: 12px; }
.top__logo img { height: 40px; width: auto; }
.top__nav { display: flex; gap: var(--space-4); font-weight: 800; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--fg-muted); }
.top__nav a:hover { color: var(--fg); }

/* hero */
.hero { padding-block: var(--space-5) var(--space-6); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.hero__title { margin: 14px 0 0; font-weight: 800; font-size: clamp(40px, 6.2vw, 68px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.hero__title .ron-hl { display: inline; color: var(--night); padding: 0 8px; background: linear-gradient(var(--amber), var(--amber)) 0 60% / 100% 78% no-repeat; border-radius: var(--radius-sm); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__title .ron-hl::before { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .ron-hl { animation: ron-bgsweep .5s .2s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes ron-bgsweep { from { background-size: 0% 78%; } to { background-size: 100% 78%; } }
}
.hero__lede { margin: 22px 0 0; max-width: 58ch; color: var(--fg-muted); font-size: 19px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__stack { justify-self: center; display: flex; flex-direction: column; align-items: flex-start; }
.hero__stat { max-width: 330px; padding: 22px 28px 28px; }
.hero__stat .ron-card__stat { font-size: 112px; }
.hero__stat .ron-card__sub { font-size: 20px; }
.hero__tags { margin-top: -12px; }

/* steps */
.steps { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.step { display: flex; width: 100%; padding-top: 26px; }
.step__body { font-weight: 500; font-size: 17px; line-height: 1.45; }
.step__body .ron-hl { display: inline; font-weight: 800; padding: 0 3px; background: linear-gradient(transparent 45%, var(--amber) 45%, var(--amber) 95%, transparent 95%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.step__body .ron-hl::before { display: none; }
.steps { padding-left: 18px; }
.step__link { font-weight: 800; font-size: 16px; text-decoration: none; border-bottom: 3px solid var(--amber); margin-top: 4px; }

/* episodes */
.eps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.ep { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ep__thumb { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--bg-raised); box-shadow: var(--shadow-web); }
.ep__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ep__thumb:hover img { transform: scale(1.03); }
.ep__chip { position: absolute; left: 10px; top: 10px; }
.ep__take { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.45; }
.ep__watch { margin: 0; font-size: 14px; font-weight: 800; }
.ep__watch a { text-decoration: none; border-bottom: 2px solid var(--amber); }

/* handouts */
.hos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.ho { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--space-4); background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: var(--space-4); }
.ho__img { display: block; border-radius: 8px; overflow: hidden; background: #FFFFFF; box-shadow: var(--shadow-web); transform: rotate(-2deg); align-self: start; }
.ho__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ho__body p { margin: 0; color: var(--fg-muted); font-size: 16px; line-height: 1.45; }
.ho__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.ho__short { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--fg); font-family: var(--font-mono); font-weight: 700; font-size: 13px; border-bottom: 2px dashed var(--line); }
.ho__short:hover { border-bottom-color: var(--amber); }
.ho__short.is-copied { color: var(--amber); }

/* signup */
.list { display: flex; justify-content: center; }
.signup { width: 100%; max-width: 680px; padding: 32px 36px 36px; gap: 10px; }
.signup__title { margin: 0; font-weight: 800; font-size: clamp(28px, 4vw, 38px); line-height: 1.0; letter-spacing: -0.03em; text-wrap: balance; }
.signup__sub { margin: 0; font-weight: 500; font-size: 17px; color: #3A4252; }
.signup__row { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 8px; }
.signup__row .ron-input { flex: 1 1 240px; min-width: 0; }
.signup__msg { margin: 0; min-height: 1.4em; font-weight: 800; font-size: 16px; }
.signup__msg.is-error { color: var(--on-card-alert); }
.signup.is-done .signup__row { display: none; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: var(--space-5); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3) var(--space-5); align-items: center; }
.foot__sign { margin: 0; font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.05; letter-spacing: -0.03em; }
.foot__hot { color: var(--ember); }
.foot__social { display: flex; gap: var(--space-4); font-weight: 800; }
.foot__social a { text-decoration: none; border-bottom: 2px solid var(--amber); }
.foot__fine { grid-column: 1 / -1; margin: 0; color: var(--fg-muted); font-size: 14px; }

@media (max-width: 1000px) {
  .eps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 760px) {
  .section, .band { padding-block: 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stack { justify-self: start; }
  .hero__stat .ron-card__stat { font-size: 88px; }
  .hos { grid-template-columns: minmax(0, 1fr); }
  .eps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .top__nav { display: none; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .ho { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3); }
  .signup { padding: 24px 20px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ep__thumb img, .ron-btn { transition: none; }
}
