/* Guidezest's own page (first made 16 November 2026 as OhLiana's; renamed 17 November). John's colours, measured from his logo:
   dark #17351f, name green #0d7847, bright #108f5d, mid #117646, lime #84c443. */
:root {
  --dark: #17351f; --green: #0d7847; --bright: #108f5d; --mid: #117646; --lime: #84c443;
  --bg: #fbfaf4; --raised: #ffffff; --ink: #17251e; --soft: #4d5f55; --line: #dfe6d9; --tint: #eef4e6;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Avenir Next Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1a14; --raised: #17251e; --ink: #f3f5e9; --soft: #b4c3b6; --line: #2a3d31; --tint: #142119; --green: #84c443; --dark: #f3f5e9; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1.125rem; line-height: 1.6; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--round); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; padding: .6rem 1rem; background: var(--raised); border-radius: 0 0 12px 0; }
.skip:focus { left: 0; z-index: 20; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }
section { scroll-margin-top: 5rem; }
main > section.wrap, main > section > .wrap { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow { font-family: var(--round); font-size: .9rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .8rem; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22ch; }
h2.center { max-width: 26ch; }
.sub { margin-top: 1rem; max-width: 46ch; font-size: 1.2rem; color: var(--soft); }
.prose { display: grid; gap: 1.1rem; font-size: 1.2rem; }
.prose strong { font-family: var(--round); font-size: 1.35rem; color: var(--green); }

/* the top */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: .7rem max(1.25rem, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand img { width: 10.5rem; height: auto; }
.top-nav { display: flex; gap: 1.4rem; margin-left: auto; font-family: var(--round); font-weight: 600; font-size: 1rem; }
.top-nav a { text-decoration: none; color: var(--soft); padding: .4rem 0; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.4rem; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: #fff; font-family: var(--round); font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--green) 80%, transparent); }
.btn.quiet { background: transparent; color: var(--green); }
.btn.light { background: #f3f5e9; border-color: #f3f5e9; color: #17351f; }
@media (prefers-color-scheme: dark) { .btn { color: #0f1a14; } .btn.quiet { color: var(--green); } }
.top .btn { min-height: 2.6rem; padding: .35rem 1rem; font-size: .95rem; }
@media (max-width: 860px) { .top-nav { display: none; } .top .btn { margin-left: auto; } }

/* the opening */
.hero { width: min(76rem, 100% - 2.5rem); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
.hero h1 span { color: var(--green); }
.lede { margin-top: 1.4rem; font-size: clamp(1.15rem, 1.9vw, 1.4rem); max-width: 38ch; color: var(--soft); }
.hero-acts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-points { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .45rem; font-family: var(--round); font-weight: 600; font-size: 1.02rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; }
.hero-points li::before { content: ""; flex: none; width: .75rem; height: .75rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 28%, transparent); }
.hero-art svg { width: 100%; }
.orbit { fill: none; stroke: var(--line); stroke-width: 2; }
.orbit.o2 { stroke-dasharray: 3 10; stroke-linecap: round; }
.b-dark { fill: #17351f; } .b-mid { fill: #117746; } .b-bright { fill: #0f8e5d; } .b-lime { fill: #83c342; }
@media (prefers-color-scheme: dark) { .b-dark { fill: #f3f5e9; } .b-mid { fill: #178a55; } .b-bright { fill: #2bb57d; } }
.chip { fill: var(--raised); stroke: var(--line); stroke-width: 2; }
.chip.lime { fill: color-mix(in srgb, var(--lime) 30%, var(--raised)); stroke: var(--lime); }
.chips text { font-family: var(--round); font-weight: 700; font-size: 19px; text-anchor: middle; fill: var(--ink); }
.chips .small + text { font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .chips > g { animation: bob 7s ease-in-out infinite; }
  .hero-art .chips > g:nth-child(2n) { animation-delay: -2.3s; } .hero-art .chips > g:nth-child(3n) { animation-delay: -4.1s; }
  @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
}
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-art { order: -1; width: min(24rem, 100%); margin-inline: auto; } }

/* bands and columns */
.band { background: var(--tint); border-block: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.two-col.flip { align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Life and Work */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.side { padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 28px; border: 1px solid var(--line); background: var(--raised); display: grid; gap: .9rem; align-content: start; }
.side.life { background: linear-gradient(160deg, color-mix(in srgb, var(--lime) 16%, var(--raised)), var(--raised) 60%); }
.side.work { background: linear-gradient(160deg, color-mix(in srgb, var(--bright) 14%, var(--raised)), var(--raised) 60%); }
.side-art { width: 5.5rem; height: 5.5rem; }
.side-art .ring { fill: none; stroke: var(--green); stroke-width: 7; }
.side-art .ring.thin { stroke: var(--lime); stroke-width: 5; stroke-dasharray: 5 9; stroke-linecap: round; }
.side-art .dot { fill: var(--lime); }
.side-art .bar { fill: var(--green); } .side-art .bar.lime { fill: var(--lime); }
.side h3 { font-size: 1.35rem; color: var(--soft); font-weight: 600; }
.side h3 span { display: block; font-size: 2.4rem; font-weight: 700; color: var(--green); }
.side ul, .rules ul { margin: .3rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-family: var(--round); font-weight: 600; font-size: 1.02rem; }
.side li { display: flex; gap: .6rem; align-items: baseline; }
.side li::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); transform: translateY(-.1rem); }
@media (max-width: 760px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* modules */
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr)); gap: .9rem; margin-top: 2.6rem; }
.mods article { padding: 1.3rem 1.3rem 1.4rem; border-radius: 22px; border: 1px solid var(--line); background: var(--raised); display: grid; gap: .45rem; align-content: start; transition: transform .15s ease, border-color .15s ease; }
.mods article:hover { transform: translateY(-2px); border-color: var(--green); }
.mods span { font-size: 1.9rem; line-height: 1; }
.mods h3 { font-size: 1.22rem; }
.mods p { font-size: 1rem; color: var(--soft); line-height: 1.5; }
.mods .yours { border: 2px dashed var(--green); background: color-mix(in srgb, var(--lime) 14%, var(--raised)); }

/* the companion */
.comp-art svg { width: min(26rem, 100%); margin-inline: auto; }
.bub.you { fill: var(--green); } .bub.them { fill: var(--raised); stroke: var(--line); stroke-width: 2; }
.line { fill: rgba(255, 255, 255, .78); } .line.d { fill: color-mix(in srgb, var(--soft) 45%, transparent); }
.who { fill: var(--lime); }
@media (prefers-color-scheme: dark) { .line { fill: rgba(15, 26, 20, .7); } }

/* steps */
.steps { list-style: none; margin: 2.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.steps li { position: relative; padding: 1.5rem 1.3rem 1.5rem; border-radius: 22px; background: var(--raised); border: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.num { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--green); color: var(--bg); font-family: var(--round); font-weight: 700; font-size: 1.3rem; }
.steps h3 { font-size: 1.3rem; margin-top: .3rem; }
.steps p { font-size: 1.02rem; color: var(--soft); line-height: 1.5; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* rules */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 1.6rem 2.2rem; margin-top: 2.8rem; }
.rules article { padding-left: 1.1rem; border-left: 4px solid var(--lime); display: grid; gap: .35rem; }
.rules h3 { font-size: 1.25rem; }
.rules p { font-size: 1.04rem; color: var(--soft); line-height: 1.5; }

/* the close */
.close { background: #17351f; color: #f3f5e9; }
.close .wrap { padding-block: clamp(3.5rem, 9vw, 6.5rem); display: grid; gap: 1.3rem; justify-items: center; }
/* The width is set on the picture, which is the thing the grid lays out. Set on the image alone, a percentage has
   nothing to measure against and falls back to 300 px, which is why this logo used to come out smaller than asked. */
.close picture { display: block; width: min(30rem, 88%); }
.close img { display: block; width: 100%; height: auto; }
.close h2 { color: #f3f5e9; max-width: 20ch; }
.close p { max-width: 44ch; font-size: 1.2rem; color: #cfe0d0; }
.close .fine { font-size: .92rem; color: #9fb5a3; margin-top: .6rem; }
.close .fine a { color: #d7e6d2; text-decoration: underline; text-underline-offset: .15em; }
.top .btn { white-space: nowrap; }
@media (max-width: 480px) { .brand img { width: 8.5rem; } .top .btn { font-size: .88rem; padding-inline: .8rem; } }
/* Room around the picture, so a label that drifts up or sideways is never cut at the edge. */
.hero-art svg { overflow: visible; }

/* The mark in motion (John's ask, 16 November 2026). On arrival its four blades sweep in from the middle, one after
   another, and close into the ring. After that the ring turns very slowly, rings of light widen out from it like an
   aura, and a small light travels round each orbit. All of it is still for anyone who has asked for less movement. */
.pulse { fill: none; stroke: var(--lime); stroke-width: 3; opacity: 0; }
.travel circle { fill: var(--lime); } .travel.t2 circle { fill: var(--bright); } .travel.t3 circle { fill: var(--green); }
@media (prefers-reduced-motion: reduce) { .travel { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .mark .turn { transform-origin: 0 0; animation: mark-turn 90s linear infinite; }
  /* The sweep-in starts only once the page is really being drawn (the `live` mark is set on the first frame), so
     the mark is never left hidden where nothing is moving: a background tab, a printout, a preview picture. */
  .mark .blade { transform-origin: 0 0; }
  .live .mark .blade { animation: mark-gather 1.6s cubic-bezier(.2, .85, .25, 1.08) both; }
  .mark .blade:nth-child(1) { animation-delay: .15s; } .mark .blade:nth-child(2) { animation-delay: .35s; } .mark .blade:nth-child(3) { animation-delay: .55s; } .mark .blade:nth-child(4) { animation-delay: .75s; }
  @keyframes mark-gather { from { transform: rotate(-160deg) scale(.12); opacity: 0; } 55% { opacity: 1; } to { transform: rotate(0deg) scale(1); opacity: 1; } }
  @keyframes mark-turn { to { transform: rotate(360deg); } }
  .pulse { transform-origin: 0 0; animation: mark-aura 6s ease-out infinite; animation-delay: 1.6s; }
  .pulse.p2 { animation-delay: 3.6s; } .pulse.p3 { animation-delay: 5.6s; }
  @keyframes mark-aura { 0% { transform: scale(.92); opacity: 0; stroke-width: 5; } 12% { opacity: .5; } 100% { transform: scale(2.65); opacity: 0; stroke-width: 1; } }
  .travel { transform-origin: 0 0; animation: mark-turn 42s linear infinite; }
  .travel.t2 { animation-duration: 66s; animation-direction: reverse; } .travel.t3 { animation-duration: 100s; }
  .orbit.spin { transform-origin: 0 0; animation: mark-turn 240s linear infinite reverse; }
}

/* 3.87: opened from the home-screen app, the page runs up under the status bar (the clock and battery), and the
   device blurs whatever sits there. The header's own row now starts below the status bar, so only its plain
   background is under it; anchor links stop a little lower for the same reason. */
.top { padding-top: calc(.7rem + env(safe-area-inset-top, 0px)); }
html { scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }
.skip:focus { top: env(safe-area-inset-top, 0px); }
