/* how-it-works.html (1 Dec 2026): publishing with RH GoldenWolf, step by step, where the cover editor used to be on
   the public website. Built from the site's own pieces (page-head, diary, stop-seal, paper-card, placeholder);
   this file only lays out the road of eight steps, their pictures and the strip of stops under the heading.
   Phones (760px and down): one column, the picture small in the corner of each card. Loaded before site-gilded.css. */

/* The stops under the heading: a quick way down the page */
.hiw-strip { list-style: none; margin: clamp(30px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.hiw-strip a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 12px; border-radius: 14px;
  color: #efe5cf; text-decoration: none; font: 500 14px/1.2 var(--sans); text-align: center;
  border: 1px solid rgba(240,211,140,.22); background: rgba(255,255,255,.04);
  transition: background-color .25s, border-color .25s, transform .25s var(--ease, ease);
}
.hiw-strip b { font: 600 20px/1 var(--serif); color: var(--gold-hi); }
.hiw-strip a:hover { background: rgba(240,211,140,.1); border-color: rgba(240,211,140,.45); transform: translateY(-2px); }
.hiw-strip a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* The road: a seal, the step on paper, and its picture */
.hiw-road { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(26px, 3.4vw, 44px); }
.hiw-road::before { content: ""; position: absolute; left: 25px; top: 30px; bottom: 30px; border-left: 2px dashed rgba(110,31,44,.35); }
.hiw-step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) clamp(150px, 16vw, 200px); gap: 0 clamp(18px, 2.6vw, 36px); align-items: start; scroll-margin-top: 96px; }
.hiw-step .stop-seal { margin-top: 18px; }
.hiw-body {
  position: relative; padding: clamp(22px, 2.6vw, 32px) clamp(20px, 2.8vw, 34px);
  background: var(--paper); color: var(--text-dark);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 24px 40px -26px rgba(60,40,15,.6);
}
.hiw-where { margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lo); }
.hiw-body h3 { margin-top: 8px; font-size: clamp(27px, 2.6vw, 34px); line-height: 1.1; color: var(--burgundy); }
.hiw-body > p:not(.hiw-where) { margin-top: 12px; max-width: 62ch; color: var(--text-dark-muted); }
.hiw-body a:not(.btn) { color: var(--burgundy); }
.hiw-points { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 62ch; }
.hiw-points li { position: relative; padding-left: 26px; color: var(--text-dark-muted); }
.hiw-points li::before { content: "✦"; position: absolute; left: 4px; top: 0; color: var(--gold-lo); font-size: 13px; }
.hiw-fact { font-weight: 500; color: var(--text-dark) !important; }
.hiw-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px !important; }
.hiw-link { font-size: 15.5px; }

/* The sums in "Set the price": each one a dashed box until the owner fills it in */
.hiw-sums { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; max-width: 680px; }
.hiw-sums div { padding: 10px 14px 12px; border: 1px solid rgba(138,106,42,.25); border-radius: 6px; background: rgba(201,162,74,.06); }
.hiw-sums dt { font: 600 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-lo); }
.hiw-sums dd { margin: 6px 0 0; color: var(--text-dark); }

/* The pictures: simple line drawings in a paper medallion */
.hiw-pic {
  margin: 0; width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fffaf0, #f1e4c4 70%, #e6d3a6); border: 1px solid #d3bd86;
  box-shadow: 0 20px 36px -26px rgba(60,40,15,.8), inset 0 0 0 6px rgba(255,255,255,.35);
  color: var(--burgundy);
}
.hiw-pic svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hiw-pic--cover svg rect:nth-of-type(2) { fill: rgba(110,31,44,.12); }

/* Three promises */
.hiw-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); margin-top: clamp(52px, 7vw, 84px); }
.hiw-promises .paper-card h3 { font-size: 26px; }
.hiw-promises .paper-card a { color: var(--burgundy); }

/* The end: ready when you are */
.hiw-end-inner { max-width: 820px; text-align: center; }
.hiw-end h2 { font-size: clamp(38px, 5vw, 60px); }
.hiw-end h2 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.hiw-end .lede { margin: 18px auto 0; }
.hiw-end .lede a { color: var(--gold-hi); }
.hiw-end .hero-actions { justify-content: center; margin-top: 30px; }

@media (max-width: 1100px) {
  .hiw-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hiw-promises { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hiw-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .hiw-strip a { min-height: 56px; padding: 8px 2px 10px; font-size: 13px; }
  .hiw-road::before { left: 21px; }
  .hiw-step { grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; }
  .hiw-step .stop-seal { width: 44px; height: 44px; margin-top: 14px; }
  .hiw-step .stop-seal b { font-size: 15px; }
  .hiw-body { padding: 20px 18px 22px; }
  .hiw-body h3 { padding-right: 70px; }
  .hiw-where { padding-right: 70px; }
  .hiw-pic { position: absolute; right: 10px; top: -12px; width: 72px; z-index: 1; }
  .hiw-sums { grid-template-columns: 1fr; }
  .hiw-links .btn { width: 100%; justify-content: center; }
  .hiw-end .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hiw-strip a { transition: none; } .hiw-strip a:hover { transform: none; } }
