/* ------------------------------------------------------------------
   Authorship Press — public site
   Site-only layout. The visual language (tokens, base type, buttons,
   cards, pills, header/footer chrome) comes from ../shared/, loaded
   before this file by every page. This file holds what only the
   public site needs: the serif type system, nav links, the path
   sequence, and the CTA rows.

   Type roles, per the brand: serif for the book (page, headings,
   prose, card titles), sans for the work (nav, buttons, meta lines,
   footer, captions). The serif is Iowan Old Style on Apple devices,
   Palatino/Georgia elsewhere — the stack lives in brand.css.
------------------------------------------------------------------- */

/* Body is a column so the footer sits at the bottom of short pages. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main {
  flex: 1;
}

/* --------------------------------------------------------- type system */

body {
  font-family: var(--serif);
}

/* Block rhythm: the shared base reset zeroes element margins, so the
   page's spacing lives here. Element specificity (0,0,1) keeps this
   below every class below. */
main > * + * {
  margin-top: 16px;
}

main h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  max-width: 24ch;
  margin-top: 8px;
}

main h1 em {
  font-style: italic;
}

/* The line under the headline carries the offer. */
main h1 + p {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 46ch;
}

main h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin-top: 48px;
}

main h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-top: 30px;
}

main p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.72;
  max-width: 66ch;
}

main p strong,
main li strong {
  color: var(--ink);
  font-weight: 600;
}

main ul,
main ol:not(.path) {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.68;
  padding-left: 24px;
  max-width: 64ch;
  display: grid;
  gap: 9px;
}

main li::marker {
  color: var(--accent);
}

main a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Sans stays on the chrome: nav, buttons, and meta lines. */
.nav-link,
.button,
.button-quiet,
.cta-note,
.footer-inner,
.path-time,
.step-body {
  font-family: var(--sans);
}

/* --------------------------------------------------------------- header */

/* The shared header gap is tuned for the portal's dense nav; the site's
   three items need air between the links and the Apply button. */
.header-nav {
  gap: 6px;
}

.header-nav .button {
  margin-left: 14px;
}

/* --------------------------------------------------------------- picture */

.figure {
  margin-top: 30px;
}

.figure img {
  display: block;
  width: 100%;
  height: min(56vh, 540px);
  object-fit: cover;
  object-position: 50% 42%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------------ wordmark */

.wordmark {
  font-size: 21px;
}

/* ------------------------------------------------------------------ cards */

.card-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.008em;
}

.step-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--gold);
}

.step-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------------- the path */

/* The whole path, in order: gold italic numerals, serif step names,
   tracked sans times. Hairlines between rows, no table. */
.path {
  list-style: none;
  margin-top: 30px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.path li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
}

.path-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
}

.path-name {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.path-desc {
  grid-column: 2;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.path-time {
  grid-column: 3;
  grid-row: 1;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .path li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .path-time {
    grid-column: 2;
    grid-row: auto;
    margin-top: 4px;
  }
}

/* ------------------------------------------------------------------ CTA */

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.cta-row .button {
  font-size: 14px;
  padding: 12px 28px;
  text-decoration: none;
}

.cta-note {
  font-size: 13.5px;
  color: var(--muted-soft);
}

/* --------------------------------------------------------------- footer */

.footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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