/* Relaunch extras. Uses the tokens from styles.css. Covers only what the approved mockup does not:
   post body elements, the archive, Contact, Speaking and Press, and a few small helpers. */

.hero picture { display: contents; }

/* Post and page body: elements that exist in older posts */
.article-body { overflow-wrap: break-word; }
.article-body > *:first-child { margin-top: 0; }
.article-body h3 { font-weight: 600; font-size: 24px; line-height: 1.25; margin: 32px 0 10px; }
.article-body h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; margin: 24px 0 8px; }
.article-body ol { color: var(--ink-soft); }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent); }
.article-body a:hover { color: var(--accent-hover); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.article-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--ink-soft); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; margin: 24px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.article-body pre, .article-body code { font-size: 15px; overflow-x: auto; }
.article-end-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 500; }
.article figure img { height: auto; }
.page-figure img { max-width: 360px; }

/* Update section: second button on dark */
.update-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.update-actions .btn { margin-top: 0; }
.btn-outline-light { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }
.update :focus-visible { outline-color: var(--paper); }
.proof :focus-visible, .story-now :focus-visible { outline-color: var(--paper); }

/* Archive */
.archive-intro { margin: 12px 0 28px; color: var(--muted); }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.archive-list time { flex: 0 0 150px; font-size: 15px; color: var(--muted); }
.archive-list a { flex: 1 1 320px; min-width: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; padding: 4px 0; }

/* Contact */
.routes { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 20px; }
.route { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.route h2 { font-weight: 600; font-size: 24px; line-height: 1.2; }
.route p { margin: 0 0 6px; color: var(--muted); }
.route .btn { overflow-wrap: anywhere; }
.contact-social { color: var(--muted); }
.contact-social a { padding: 10px 0; }

/* Speaking and Press */
.sp-h { font-weight: 600; font-size: 28px; line-height: 1.2; margin: 48px 0 12px; }
.sp-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sp-topics > li { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.sp-topics h3 { font-weight: 600; font-size: 20px; line-height: 1.25; }
.sp-topics p { margin: 6px 0 0; color: var(--muted); }
.sp-list { margin: 0; padding-left: 22px; color: var(--ink-soft); }
.sp-list li { margin-bottom: 6px; }
.sp-list a { padding: 6px 0; display: inline-block; }
.sp-downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-who { font-size: 14px; color: var(--muted); }
.sp-takeaways-label { margin: 14px 0 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.sp-takeaways { list-style: disc; margin: 6px 0 0; padding-left: 20px; color: var(--ink-soft); }
.sp-takeaways li { margin-bottom: 4px; border: 0; padding: 0; }
.sp-topics .sp-takeaways-label { color: var(--ink); }
.yt-lite { display: grid; gap: 24px; margin: 16px 0 8px; }
.yt-lite-item { margin: 0; }
.yt-lite-frame { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: var(--radius); overflow: hidden; }
.yt-lite-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-lite-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite-frame button {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px;
  border: 0; border-radius: 12px; cursor: pointer; color: #fff;
  background: #cc0000; font: 600 13px/1 inherit; letter-spacing: 0.02em;
}
.yt-lite-frame button:hover, .yt-lite-frame button:focus-visible { background: #e00; }
.yt-lite-item figcaption { margin-top: 10px; }
.yt-lite-item figcaption a { font-weight: 600; }
.yt-lite-item figcaption span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (min-width: 800px) {
  .yt-lite { grid-template-columns: 1fr 1fr; gap: 28px; }
}

.after-post > p { margin: 0; }

/* Press logos: official SVGs, rendered in one neutral tone */
.press-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px; }
.press-logos li { margin: 0; }
.press-logos a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; text-decoration: none; }
.proof .press-logos a { font-size: 0; padding: 6px 0; }
.press-logo { display: block; width: auto; max-width: 100%; }
.press-logo--sq, .press-logo--st { height: 36px; }
.press-logo--wm { height: 30px; }
.press-logos--dark .press-logo { filter: brightness(0) invert(1); opacity: .95; transition: opacity .15s; }
.press-logos--dark a:hover .press-logo { opacity: 1; }
.press-logos li::marker { content: ""; }
.press-logos--light { margin-bottom: 8px; }
.press-logos--light .press-logo { filter: brightness(0); opacity: .62; transition: opacity .15s; }
.press-logos--light a:hover .press-logo { opacity: .95; }
.proof .wrap { gap: 4px 36px; }
.proof .press-logos { gap: 0 32px; }
@media (max-width: 640px) {
  .press-logo--sq, .press-logo--st { height: 28px; }
  .press-logo--wm { height: 24px; }
  .press-logos, .proof .press-logos { gap: 0 24px; }
}

/* Button padding (relaunch override of the mockup sizes) */
.btn { padding: 16px 28px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn-small { padding: 14px 24px; min-height: 48px; font-size: 16px; }
.signup-row .btn { height: auto; min-height: 52px; padding: 16px 28px; }
.hero-actions, .update-actions, .sp-downloads { display: flex; flex-wrap: wrap; gap: 16px; }
.update-actions { margin-top: 8px; }
.update .btn { margin-top: 0; }
/* Buttons that sit inside rules for plain links (nav, story cards) */
.site-nav a.btn, .story a.btn { padding: 16px 28px; font-weight: 600; }
.site-nav a.btn-small { padding: 14px 24px; font-size: 16px; }
.story a.btn { margin-top: auto; }
.story .story-now a.btn { margin-top: 20px; }

/* ==========================================================================
   Mobile v2 (<= 640px). Matches the "Homepage, mobile" and "Post template, mobile" mockup frames.
   Tokens: ink #14171A, muted #454B52, line #E3E5E8, wash #F3F4F6, accent #1D3FCF, radius 10px / 6px.
   Buttons keep Victor's 16px 28px padding and are full width, at least 52px tall.
   ========================================================================== */
.nav-toggle { display: none; }

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.6; }
  .wrap { padding-left: 20px; padding-right: 20px; }

  /* Buttons: full width, 16px 28px padding, 52px tall */
  .btn, .btn-small, .signup-row .btn, .site-nav a.btn, .story a.btn, .site-nav a.btn-small {
    padding: 16px 28px; min-height: 52px; font-size: 17px; width: 100%;
  }

  /* Header: wordmark and a 44px menu button */
  .site-header .wrap { flex-wrap: wrap; align-items: center; gap: 0 12px; padding-top: 12px; padding-bottom: 12px; }
  .wordmark { font-size: 19px; padding: 10px 0; }
  .js .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; margin: 0;
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  }
  .nav-toggle[aria-expanded="true"] { border-color: var(--ink); }
  .nav-toggle svg { display: block; }
  .site-nav { flex: 0 0 100%; gap: 0 20px; }
  .js .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
  .js .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; padding: 10px 0; }
  .site-nav a.btn { justify-content: center; margin: 8px 0 4px; }

  /* Hero: eyebrow, headline, lede, stacked buttons, 4:5 headshot */
  .hero .wrap { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 28px; padding-top: 36px; padding-bottom: 44px; }
  .hero-copy { flex: none; gap: 18px; }
  .hero-role { font-size: 15px; }
  .hero h1 { font-size: 36px; line-height: 1.08; letter-spacing: -0.02em; }
  .hero-lede { font-size: 17px; line-height: 1.55; }
  .hero-actions { flex-direction: column; flex-wrap: nowrap; gap: 10px; margin-top: 4px; }
  .hero picture { display: block; }
  .hero-photo { flex: none; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 5; object-fit: cover; }

  /* As seen on: dark band, label, logos in two columns */
  .proof .wrap { padding-top: 28px; padding-bottom: 24px; gap: 10px; }
  .proof-label { font-size: 14px; }
  .proof .press-logos { gap: 0 16px; }
  .proof .press-logos a { min-height: 44px; padding: 10px 0; }

  /* Sections */
  .section .wrap { padding-top: 56px; padding-bottom: 56px; }
  .section-head { margin-bottom: 28px; gap: 8px; }
  .section-head h2, .signup-copy h2 { font-size: 30px; line-height: 1.1; }
  .section-head p { margin-top: 8px; }

  /* Story cards */
  .story { grid-template-columns: 1fr; gap: 14px; }
  .story li { padding: 24px; gap: 10px; }
  .story-num { font-size: 14px; }
  .story h3 { font-size: 22px; }
  .story a { padding: 10px 0; }
  .story a.btn { align-self: stretch; margin-top: 6px; }
  .story .story-now a.btn { margin-top: 6px; }

  /* Selected writing: cards, then the archive link as an outlined button */
  #writing .wrap { display: flex; flex-direction: column; gap: 24px; }
  #writing .section-head { display: contents; }
  #writing .section-head h2 { order: 0; }
  #writing .posts { order: 1; grid-template-columns: 1fr; gap: 12px; }
  #writing .section-head > a {
    order: 2; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
    min-height: 52px; padding: 16px 28px; font-weight: 600; font-size: 17px; line-height: 1.2;
    color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  }
  #writing .section-head > a:hover { background: var(--ink); color: var(--paper); }
  .post-card { padding: 20px; gap: 6px; }
  .post-kind { font-size: 13px; }
  .post-title { font-size: 18px; line-height: 1.3; }

  /* Build notes */
  .signup { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px; }
  .signup-copy, .signup-form { flex: none; }
  .signup-copy p { margin-top: 18px; }
  .signup-form label { font-size: 15px; }
  .signup-row { flex-direction: column; flex-wrap: nowrap; gap: 12px; }
  .signup-row input { flex: none; width: 100%; height: 52px; font-size: 17px; }
  .signup-row .btn { height: auto; }

  /* Footer: tagline, then links in two columns */
  .site-footer .wrap { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; padding-top: 28px; padding-bottom: 40px; font-size: 15px; }
  .site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .site-footer a { padding: 11px 0; }

  /* Post template */
  .article { padding: 32px 20px 40px; font-size: 17px; line-height: 1.65; }
  .article-kind { font-size: 15px; margin: 0 0 12px; }
  .article h1 { font-size: 31px; line-height: 1.12; letter-spacing: -0.02em; }
  .article-meta { margin: 12px 0 0; font-size: 14px; line-height: 1.5; }
  .summary { margin: 20px 0 0; padding: 20px; }
  .summary h2 { font-size: 14px; }
  .summary p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; }
  .article figure { margin: 20px 0 0; }
  .article-body { margin-top: 20px; }
  .article-body h2 { font-size: 24px; line-height: 1.2; margin: 28px 0 20px; }
  .article-body h3 { font-size: 20px; margin: 28px 0 12px; }
  .article-body p, .article-body ul, .article-body ol { margin: 0 0 20px; }
  .article-body > *:first-child { margin-top: 0; }
  .update { margin-top: 28px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
  .update p, .update h2 { margin: 0; }
  .update-date { font-size: 14px; }
  .update h2 { font-size: 24px; line-height: 1.2; }
  .update-actions { flex-direction: column; flex-wrap: nowrap; gap: 10px; margin-top: 4px; }

  /* After the post */
  .after-post { padding: 0 20px 48px; gap: 24px; }
  .author { flex-wrap: nowrap; gap: 16px; padding-top: 24px; }
  .author img { width: 56px; height: 56px; flex: none; }
  .author-text { flex: 1 1 0; font-size: 15px; }
  .author-text p { margin: 0; }
  .signup-box { padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
  .signup-box h2 { font-size: 22px; }
  .signup-box > p { margin: 0; font-size: 15px; line-height: 1.5; }
  .signup-box .signup-form { gap: 12px; }
  .signup-box .signup-form label { margin-top: 4px; }
  .related h2 { font-size: 20px; margin-bottom: 12px; }
  .related ul { grid-template-columns: 1fr; gap: 12px; }
  .related a { padding: 16px 18px; font-size: 16px; line-height: 1.35; }
}

/* Speaking request form */
.sp form[name="speaking-request"] { display: flex; flex-direction: column; gap: 8px; max-width: var(--measure); margin-top: 16px; }
.sp form[name="speaking-request"] label { font-weight: 600; font-size: 15px; margin-top: 10px; }
.sp form[name="speaking-request"] input,
.sp form[name="speaking-request"] select,
.sp form[name="speaking-request"] textarea {
  width: 100%; min-width: 0; padding: 12px 16px; font: inherit; color: var(--ink);
  border: 1.5px solid #6B7280; border-radius: var(--radius-sm); background: var(--paper);
}
.sp form[name="speaking-request"] input, .sp form[name="speaking-request"] select { min-height: 52px; }
.sp form[name="speaking-request"] textarea { resize: vertical; }
.sp form[name="speaking-request"] .btn { align-self: flex-start; margin-top: 18px; }
.sp h3 { font-weight: 600; font-size: 18px; line-height: 1.3; margin: 20px 0 4px; }
.sp-topics h3 { margin: 0; font-size: 20px; }
.sp-sub { margin: 2px 0 8px; font-weight: 600; color: var(--ink-soft); }
