/* The Roast My Ad section and its menu link on the home page (LOCAL BUILD 2026-11-19, not live). The words are written
   into index.html by tools/build-roast.js from the copy project's web-copy.json ("home"); this file only draws them. */

/* the menu link: last in the menu, with a small tag beside the name. Flat, as the rest of the header. */
.nav-pills .nav-roast { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.nav-tag { display: inline-block; padding: 2px 7px 1px; border-radius: var(--r-pill); background: var(--burnt-tint); color: var(--burnt-on-tint);
  font-weight: 800; font-size: 9.5px; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; }
/* the menu is hidden on a phone, so the link stands alone in the header there */
.nav-roast-phone { display: none; }
@media (max-width: 700px) {
  .nav-roast-phone { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 2px; font-weight: 700; font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap; }
}
@media (max-width: 380px) {
  .nav-roast-phone { font-size: 12px; gap: 5px; }
}

/* ---- the section ------------------------------------------------------------------------------------------------------
   Why this one band departs from DESIGN.md ("burnt is ACTION only"): it is the game's surface on the home page, and the
   game's colour is ember, the burnt family, on every surface it has (Andrej, 19 Nov: the charcoal band "looks weird
   because 2 sections above is the same color"). The ground is var(--burnt-dark): cream on it is 5.78:1, paper 6.14:1.
   Everything else follows the ruling of 19 Nov late: flat, one framed object (the card), no shadow, no glow, no tilt. */
.home-roast { margin-top: var(--section-pad); padding: 112px 0; background: var(--burnt-dark); color: var(--cream); }
.home-roast-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: center; }
.home-roast-copy { min-width: 0; }
.home-roast-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-weight: 800; font-size: 12px; line-height: 1.5; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); }
.home-roast-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); display: block; }
.home-roast-copy h2 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.03; letter-spacing: -0.01em; color: var(--cream); text-wrap: balance; max-width: 13em; }
.home-roast-body { margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: var(--cream); max-width: 34em; }
.home-roast-steps { list-style: none; counter-reset: step; margin: 0 0 32px; padding: 20px 0 0; border-top: 1px solid rgba(247, 239, 221, .35); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 38em; }
.home-roast-steps li { counter-increment: step; position: relative; padding-top: 42px; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--cream); }
.home-roast-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--cream);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 400; font-size: 16px; color: var(--cream); }
/* on ember, the action is a paper pill with ink words */
.home-roast-go { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; background: var(--paper); color: var(--ink); }
.home-roast-go:hover { background: #fff; color: var(--ink); }
.home-roast-arrow { font-size: 18px; line-height: 1; transition: transform 150ms cubic-bezier(.22, 1, .36, 1); }
.home-roast-go:hover .home-roast-arrow { transform: translateX(3px); }
.home-roast a:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* the example: the one framed object, flat */
.home-roast-stage { min-width: 0; }
.home-roast-card { margin: 0; padding: 24px 24px 22px; background: var(--paper); color: var(--ink); border-radius: var(--r-panel); }
.home-roast-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.home-roast-label { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.home-roast-heat { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.home-roast-pips { display: inline-flex; gap: 1px; color: var(--burnt-dark); }
.home-roast-pips svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.home-roast-pasted { margin: 0; padding-bottom: 14px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; color: var(--ink-body); overflow-wrap: break-word; }
.home-roast-k { display: block; margin: 0 0 4px; font-family: var(--font-ui); font-weight: 800; font-size: 10px; line-height: 1.5; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }
.home-roast-score { margin: 0; padding-top: 14px; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 12px; }
.home-roast-n { font-family: var(--font-display); font-size: 76px; line-height: .86; letter-spacing: -0.03em; color: var(--ink); }
.home-roast-of { align-self: flex-end; margin-left: -8px; font-family: var(--font-display); font-size: 24px; color: var(--ink-dim); }
.home-roast-band { padding: 7px 14px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); font-weight: 800; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.home-roast-line { margin: 14px 0 0; font-family: var(--font-display); font-size: 21px; line-height: 1.28; color: var(--ink); overflow-wrap: break-word; }
.home-roast-loss { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.home-roast-lossrow { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.home-roast-check { min-width: 0; overflow-wrap: anywhere; }
.home-roast-pts { flex-shrink: 0; min-width: 46px; text-align: center; padding: 3px 9px; border-radius: 8px; background: var(--burnt-tint); color: var(--burnt-on-tint); font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.2; }
.home-roast-loss blockquote { margin: 0; padding: 2px 6px; display: inline; border-radius: 4px; background: var(--highlight); color: var(--ink); font-size: 15px; line-height: 1.55; font-weight: 600; overflow-wrap: break-word;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; quotes: "\201C" "\201D"; }
.home-roast-loss blockquote::before { content: open-quote; }
.home-roast-loss blockquote::after { content: close-quote; }

/* the card rises in once, when the band comes into view. The script sets is-waiting only when it can watch for that and
   motion is wanted, so with no script, or for reduced motion, the card is simply there, still. */
.home-roast.is-waiting .home-roast-card { opacity: 0; transform: translateY(24px); }
.home-roast.is-waiting.is-in .home-roast-card { opacity: 1; transform: none; transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  .home-roast-card, .home-roast-arrow { transition: none; }
  .home-roast-go:hover .home-roast-arrow { transform: none; }
}

@media (max-width: 900px) {
  .home-roast { padding: 72px 0; }
  .home-roast-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .home-roast-stage { max-width: 480px; }
}
@media (max-width: 640px) {
  .home-roast-copy h2 { font-size: clamp(32px, 9vw, 40px); }
  .home-roast-body { font-size: 17px; }
  .home-roast-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-roast-steps li { padding: 4px 0 0 44px; min-height: 30px; }
  .home-roast-go { display: flex; width: 100%; }
  .home-roast-card { padding: 18px; }
  .home-roast-n { font-size: 64px; }
  .home-roast-line { font-size: 19px; }
}
