/* hiroendo.com: one stylesheet for every page. Written for readers of about 70 on a phone or a tablet:
   large type, strong contrast, big buttons, short lines. Fonts are served from /assets/fonts (OFL). */

@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/literata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/literata-latin-400-italic.woff2") format("woff2"); }

:root {
  --ink: #1f1c19;          /* body text on white: about 16:1 */
  --soft: #4a433c;         /* second text: about 9:1 on white, 8:1 on paper */
  --paper: #f6f1e7;        /* the cover's warm paper */
  --line: #d6cdbf;
  --kaki: #9e3b1f;         /* persimmon, darkened for text: about 7:1 on white */
  --kaki-bright: #b4472a;  /* the book's persimmon, for marks only */
  --pine: #1f4a3b;         /* buttons: white text about 10:1 */
  --pine-dark: #163629;
  --pine-tint: #e6efea;
  --amber-tint: #fff3d6;
  --focus: #1a5fd0;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --head: "Poppins", "Segoe UI", Arial, sans-serif;
  --serif: "Literata", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.25rem/1.6 var(--body); }
@media (min-width: 56em) { body { font-size: 1.3125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--pine-dark); }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: 2.35rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.3rem; font-weight: 600; }
@media (min-width: 56em) { h1 { font-size: 3.2rem; } h2 { font-size: 2.3rem; } h3 { font-size: 1.4rem; } }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 0.6em 1em; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40em) { .wrap { padding: 0 1.5rem; } }
.narrow > * { max-width: 40rem; }
p.narrow { max-width: 40rem; }
.section { padding: 3rem 0; }
@media (min-width: 56em) { .section { padding: 4.5rem 0; } }
.section.paper { background: var(--paper); }
.kicker { font: 600 0.95rem/1.3 var(--head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--kaki); margin: 0 0 0.6em; }
.lead { font-size: 1.15em; }

/* header */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { font: 800 1.3rem/1 var(--head); color: var(--ink); text-decoration: none; padding: 0.5rem 0; }
.top nav a { font: 600 1.05rem/1 var(--head); color: var(--pine); padding: 0.9rem 0.25rem; display: inline-block; }

/* buttons */
.btn { display: block; width: 100%; max-width: 26rem; min-height: 4rem; padding: 1rem 1.5rem; border-radius: 0.75rem;
  background: var(--pine); color: #fff; border: 3px solid var(--pine); font: 600 1.3rem/1.3 var(--head); text-align: center; text-decoration: none; }
.btn:hover { background: var(--pine-dark); border-color: var(--pine-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--pine); }
.btn.ghost:hover { background: var(--pine-tint); color: var(--pine-dark); }
.btn .sub { display: block; font: 400 1rem/1.3 var(--body); margin-top: 0.2em; opacity: 0.95; }
.btn + .btn, .btn + .after-btn { margin-top: 1rem; }
.after-btn { font-size: 1.05rem; color: var(--soft); margin: 0.9rem 0 0; max-width: 26rem; }

/* hero */
.hero { padding: 2rem 0 3rem; background: var(--paper); }
.hero .grid { display: grid; gap: 1.25rem 1rem; align-items: center; grid-template-columns: 1fr 6.5rem; grid-template-areas: "title cover" "rest rest"; }
.hero .title h1 { font-size: 2.05rem; }
.hero .title { grid-area: title; } .hero .title h1 { margin-bottom: 0.25em; } .hero .rest { grid-area: rest; }
.hero .cover { grid-area: cover; width: 100%; box-shadow: 0 0.6rem 1.6rem rgba(40, 30, 20, 0.22); border-radius: 0.2rem; }
.hero .promise { font-size: 1.2em; line-height: 1.5; margin-bottom: 0.8em; }
.hero .by { font: 600 1.15rem/1.3 var(--head); color: var(--soft); margin: 0; }
.status { background: #fff; border-left: 6px solid var(--kaki-bright); border-radius: 0.4rem; padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; font-size: 1.05em; }
.status strong { color: var(--kaki); }
@media (min-width: 56em) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero .title h1 { font-size: 3.2rem; }
  .hero .grid { grid-template-columns: 22rem 1fr; grid-template-areas: "cover title" "cover rest"; gap: 1.5rem 4rem; align-items: end; }
  .hero .rest { align-self: start; }
  .hero .cover { width: 100%; max-width: none; }
}

/* the picture strip under the top block: three across even on a phone, so it adds well under half a screen */
.strip { padding: 1.5rem 0; }
@media (min-width: 56em) { .strip { padding: 3rem 0; } }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40em) { .rooms { gap: 1.75rem; } }
.rooms img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.4rem; background: var(--paper); }
@media (min-width: 40em) { .rooms img { aspect-ratio: 3 / 2; } }
.rooms .cap { font-size: 1rem; line-height: 1.3; color: var(--soft); margin: 0.5rem 0 0; }
@media (min-width: 56em) { .rooms .cap { font-size: 1.1rem; } }

/* who it is for */
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding-left: 2.6rem; margin: 0 0 1rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--pine); }
.ticks li::after { content: ""; position: absolute; left: 0.55rem; top: 0.42em; width: 0.45rem; height: 0.8rem; border: solid #fff; border-width: 0 0.2rem 0.2rem 0; transform: rotate(45deg); }

/* parts */
.parts { display: grid; gap: 1rem; margin: 2rem 0; padding: 0; list-style: none; }
@media (min-width: 44em) { .parts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 70em) { .parts { grid-template-columns: 1fr 1fr 1fr; } }
.part { background: #fff; border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.2rem 1.3rem 1rem; }
.part .pn { font: 600 0.95rem/1.2 var(--head); color: var(--kaki); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.3em; }
.part h3 { margin: 0 0 0.5em; }
.part ul { margin: 0; padding-left: 1.2em; font-size: 1.05rem; color: var(--soft); }
.part li { margin: 0 0 0.35em; }
/* the three guides (threeGuides, user 2026-10-07): each guide's parts under its name, in its colour (darkened for text) */
.guide-block { --g: var(--pine); border-left: 6px solid var(--g); padding: 0.2rem 0 0 1rem; margin: 2.25rem 0 0; }
.guide-block.g2 { --g: #243f78; } .guide-block.g3 { --g: var(--kaki); }
.guide-block .gn { font: 600 0.95rem/1.2 var(--head); color: var(--g); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.3em; }
.guide-block h3 { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.2em; }
.guide-block .gmeta { color: var(--soft); margin: 0; }
.guide-block .parts { margin: 1rem 0 0; }
.part h4 { font: 600 1.3rem/1.15 var(--head); margin: 0 0 0.5em; }
@media (min-width: 56em) { .guide-block { padding-left: 1.5rem; } .guide-block h3 { font-size: 1.9rem; } .part h4 { font-size: 1.4rem; } }
.guide-block + h3 { margin-top: 2.5rem; }
.faq .files { margin: 0 0 1em; padding-left: 1.3em; }
.faq .files li { margin: 0 0 0.35em; }
/* the main picture of the set (user, 2026-10-08, second version): the three covers stepping down like stairs, each
   480 of the picture's 1136 px; its shadows are in the picture, on the hero's paper colour */
.hero .grid.set { grid-template-columns: 1fr 9.5rem; }
.hero .cover.set { box-shadow: none; border-radius: 0; }
/* A phone 390 px wide or more: the picture as large as it can be while the heading beside it keeps 10rem and one more
   line at most, so the whole Buy button stays on an 844 px screen (it ends at 812 at 390 x 844); up to 13rem.
   Narrower phones keep 9.5rem, as before. */
@media (min-width: 24.375em) and (max-width: 55.99em) { .hero .grid.set { grid-template-columns: 1fr clamp(9.5rem, 100% - 11rem, 13rem); } }
/* On a computer screen: 28.5rem to 32rem (48% of the row between), so each cover is at least 12rem wide (13.5rem at
   1280 and 1440, where the text beside it keeps 31rem), centred top to bottom against the text beside it. */
@media (min-width: 56em) { .hero .grid.set { grid-template-columns: clamp(28.5rem, 48%, 32rem) 1fr; } .hero .cover.set { align-self: center; } }
.backmatter { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 44em) { .backmatter { grid-template-columns: 1fr 1fr; } }
.backmatter li { background: var(--pine-tint); border-radius: 0.75rem; padding: 1.1rem 1.3rem; }
.backmatter strong { display: block; font: 600 1.2rem/1.3 var(--head); color: var(--pine); margin-bottom: 0.2em; }

/* a look inside: eight pages, two across on a phone and four across on a desktop, so no row has one alone */
.pages { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 56em) { .pages { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; } }
.pages a { display: block; text-decoration: none; color: var(--ink); cursor: zoom-in; }
.pages img { border: 1px solid var(--line); border-radius: 0.3rem; box-shadow: 0 0.3rem 0.9rem rgba(40, 30, 20, 0.12); background: #fff; }
.pages .cap { display: block; font-size: 1.02rem; line-height: 1.4; margin-top: 0.6rem; }
.look-action { margin-top: 2.5rem; }

/* the larger page, in a panel over the guide page (assets/pages.js): the panel fills the screen on a dimmed
   background and scrolls on its own; the page behind does not move. Pinch zoom is left alone. */
html.viewer-open { overflow: hidden; }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(20, 17, 14, 0.88); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.viewer::backdrop { background: transparent; }
.viewer-top, .viewer-nav { background: rgba(20, 17, 14, 0.9); }
.viewer-top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 0.75rem 1rem; }
.viewer-page { margin: 0 auto; max-width: 900px; }
.viewer-page img { width: 100%; height: auto; background: #fff; }
.viewer-page figcaption { font-size: 1.1rem; line-height: 1.4; text-align: center; padding: 0.8rem 1rem 0; }
.viewer-nav { position: sticky; bottom: 0; display: flex; justify-content: center; gap: 1rem; padding: 1rem; }
.viewer-btn { min-height: 3rem; padding: 0.7rem 1.2rem; border: 2px solid #fff; border-radius: 0.6rem; background: #fff; color: var(--pine);
  font: 600 1.1rem/1.2 var(--head); cursor: pointer; box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.35); }
.viewer-btn:hover { background: var(--pine-tint); color: var(--pine-dark); }
.viewer :focus-visible { outline: 4px solid #ffd27a; outline-offset: 3px; }
@media (min-width: 56em) { .viewer-top { padding: 1rem 1.5rem; } .viewer-page figcaption { font-size: 1.2rem; } }

/* the note for a visitor still deciding (assets/note.js, on-sale mode; user 2026-10-08): one card in the middle of the
   screen over the dimmed, blurred page; on a 390 x 844 phone the whole card fits without scrolling inside it (the
   picture is smaller there); on a shorter screen the card scrolls rather than run off it */
html.note-open { overflow: hidden; }
.hiro-note { width: min(31rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); margin: auto; padding: 1.25rem 1.25rem 0.75rem;
  border: 0; border-radius: 1rem; background: var(--paper); color: var(--ink); box-shadow: 0 1.25rem 3rem rgba(20, 15, 10, 0.35);
  overflow-y: auto; overscroll-behavior: contain; } /* the paper colour of the pictures, so no box shows around them */
.hiro-note::backdrop { background: rgba(31, 28, 25, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.note-pic { height: 8rem; width: auto; margin: 0 auto 0.5rem; }
.hiro-note .kicker { font-size: 0.9rem; margin: 0 0 0.3rem; }
.hiro-note h2 { font-size: 1.5rem; margin: 0 0 0.4rem; }
.hiro-note p { font-size: 1.05rem; line-height: 1.45; margin: 0 0 0.75em; }
.hiro-note .ticks { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.35; }
.hiro-note .ticks li { padding-left: 2.2rem; margin: 0 0 0.45rem; }
.hiro-note .ticks li::before { width: 1.4rem; height: 1.4rem; top: 0; }
.hiro-note .ticks li::after { left: 0.5rem; top: 0.22rem; width: 0.4rem; height: 0.72rem; }
.hiro-note .btn { max-width: none; }
.note-close { position: absolute; top: 0.5rem; right: 0.5rem; width: 3rem; height: 3rem; padding: 0; border: 2px solid var(--line);
  border-radius: 50%; background: #fff; color: var(--ink); font: 400 2rem/1 var(--body); cursor: pointer; }
.note-close:hover { background: var(--pine-tint); }
.note-keep { display: block; min-height: 3rem; margin: 0.35rem auto 0; padding: 0.6rem 1.25rem; border: 0; background: none;
  color: var(--pine); font: 600 1.15rem/1.3 var(--head); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.note-keep:hover { color: var(--pine-dark); }
@media (min-width: 40em) { .hiro-note { padding: 1.75rem 2rem 1rem; } .note-pic { height: 10rem; margin-bottom: 0.75rem; } .hiro-note .kicker { font-size: 0.95rem; } .hiro-note h2 { font-size: 1.85rem; } .hiro-note p { font-size: 1.15rem; } }
/* a little movement as it opens, only for those who have not asked their device for less motion */
@media (prefers-reduced-motion: no-preference) {
  .hiro-note[open] { animation: note-in 0.25s ease-out; }
  .hiro-note[open]::backdrop { animation: note-dim 0.25s ease-out; }
}
@keyframes note-in { from { opacity: 0; transform: translateY(0.75rem); } }
@keyframes note-dim { from { opacity: 0; } }

/* every rule gives you */
.gives { counter-reset: g; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 56em) { .gives { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; } }
.gives li { counter-increment: g; position: relative; padding: 0 0 0 3.6rem; min-height: 2.6rem; }
.gives li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--kaki-bright); color: #fff; font: 800 1.2rem/2.6rem var(--head); text-align: center; }
.gives strong { display: block; font: 600 1.25rem/1.3 var(--head); margin-bottom: 0.15em; }

/* Hiro's note */
.note { display: grid; gap: 1.75rem; align-items: start; }
.note .photo { width: 62%; max-width: 17rem; border-radius: 1rem; }
.note .letter { font-family: var(--serif); font-size: 1.05em; line-height: 1.65; }
.note .letter p { margin-bottom: 1.1em; }
.note .sign { font: 600 1.25rem/1.4 var(--head); }
@media (min-width: 56em) { .note { grid-template-columns: 17rem 1fr; gap: 3.5rem; } .note .photo { width: 100%; } }

/* the Rule 10 chapter block, shown only when that setting is on (the site's files never name it) */
.free { display: grid; gap: 1.75rem; align-items: center; }
.free .thumb { width: 55%; max-width: 15rem; border: 1px solid var(--line); border-radius: 0.3rem; box-shadow: 0 0.4rem 1.2rem rgba(40, 30, 20, 0.15); }
@media (min-width: 56em) { .free { grid-template-columns: 15rem 1fr; gap: 3.5rem; } .free .thumb { width: 100%; } }

/* price */
.price-card { background: #fff; border: 3px solid var(--pine); border-radius: 1rem; padding: 1.5rem 1.25rem; max-width: 34rem; }
@media (min-width: 40em) { .price-card { padding: 2rem 2.25rem; } }
.price-card .what { font: 600 1.2rem/1.35 var(--head); margin: 0 0 1rem; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0 0 0.25rem; }
.price-row .now { font: 800 3.4rem/1 var(--head); color: var(--ink); }
.price-row .label { font: 600 1.15rem/1.3 var(--head); color: var(--kaki); }
.price-regular { font-size: 1.1rem; color: var(--soft); margin: 0 0 1.25rem; }
.price-regular s { text-decoration-thickness: 2px; }
.price-card .ticks { margin: 1rem 0 1.5rem; }

/* questions */
.faq { max-width: 44rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 0; position: relative; font: 600 1.25rem/1.35 var(--head); min-height: 3.75rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--pine-tint); color: var(--pine); font: 600 1.6rem/2.2rem var(--head); text-align: center; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 1rem; }

/* home page */
.home-hero { display: grid; gap: 1.75rem; align-items: center; }
.home-hero .photo { width: 55%; max-width: 15rem; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 50%; }
@media (min-width: 56em) { .home-hero { grid-template-columns: 17rem 1fr; gap: 3.5rem; } .home-hero .photo { width: 100%; max-width: 17rem; } }
.books { display: grid; gap: 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 56em) { .books { grid-template-columns: 1fr 1fr; } }
.book { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; align-items: start; }
@media (min-width: 40em) { .book { grid-template-columns: 9.5rem 1fr; padding: 1.5rem; } }
.book img { border-radius: 0.2rem; box-shadow: 0 0.3rem 0.9rem rgba(40, 30, 20, 0.18); }
.book h3 { margin-bottom: 0.3em; }
.book p { font-size: 1.05rem; }
.book .tag { display: inline-block; font: 600 0.95rem/1.3 var(--head); color: var(--kaki); margin-bottom: 0.6rem; }
.book .btn { min-height: 3.5rem; font-size: 1.15rem; padding: 0.8rem 1rem; white-space: nowrap; grid-column: 1 / -1; }

/* footer */
.foot { background: #2a2622; color: #f1ece4; padding: 2.5rem 0 3rem; font-size: 1.05rem; }
.foot a { color: #fff; }
.foot p { margin: 0 0 0.8em; max-width: 46rem; }
.foot .copy { font: 600 1.1rem/1.4 var(--head); }
.placeholder { background: #fff3a8; color: #3a2a00; padding: 0 0.25em; border-radius: 0.2em; }
.foot .placeholder { color: #3a2a00; }
