/* ============================================================================
 * Bravest New World — shared design system (v10).
 * ----------------------------------------------------------------------------
 * The same world as the apprun.icu landing page ("The Garden"): daylight
 * paper, forest-green action colour, Fraunces + Inter Tight + IBM Plex Mono,
 * flat soft shadows, hairline rules. No gradients on type, no glass, no neon.
 *
 * Class names are unchanged from v9 so every tool page keeps working; the v9
 * variable names (--olive, --gold, --panel, …) are kept as aliases so the
 * pages' own inline styles follow the palette too.
 * ==========================================================================*/

/* ============================ 1. Tokens ================================== */
:root {
  color-scheme: light;

  /* paper */
  --paper: #f7f9f2;
  --paper-strong: #ffffff;
  --paper-deep: #eef3e8;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;

  /* ink */
  --ink: #22301f;
  --muted: #63715b;
  --faint: #7d8a75;

  /* structure */
  --line: #e0e7d5;
  --line-2: #cdd9bd;
  --line-strong: #c6d3b8;

  /* action — one forest green for everything that acts */
  --accent: #2f6b46;
  --accent-2: #24543a;
  --accent-soft: #e3efe3;

  /* v9 aliases */
  --olive: var(--accent);
  --olive-deep: var(--accent-2);
  --olive-soft: var(--accent-soft);
  --gold: #8a6a49; /* soil: the warm secondary, for genuinely warm things */
  --gold-soft: rgba(138, 106, 73, 0.12);

  --danger: #b0402e;
  --danger-soft: rgba(176, 64, 46, 0.12);

  /* sky + garden (the hero band and the world) */
  --sky-1: #c9e3f0;
  --sky-2: #dbeaf0;
  --sky-3: #eaf2e6;
  --sun-glow: rgba(255, 231, 178, 0.78);
  --leaf-1: #8ec67a;
  --leaf-2: #6fae5e;
  --leaf-3: #4f8f4c;

  /* shape */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(34, 48, 31, 0.05);
  --shadow:
    0 1px 2px rgba(34, 48, 31, 0.05), 0 10px 24px -16px rgba(34, 48, 31, 0.4);
  --shadow-lg:
    0 1px 2px rgba(34, 48, 31, 0.05), 0 24px 52px -24px rgba(34, 48, 31, 0.45);

  --sans:
    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono:
    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Night keeps the same garden, after dark: deep green ink, warm paper text,
   one brighter leaf accent. The tool pages' toggle sets this attribute. */
[data-theme="night"] {
  color-scheme: dark;
  --paper: #131a15;
  --paper-strong: #1a231c;
  --paper-deep: #0e140f;
  --panel: rgba(26, 35, 28, 0.9);
  --panel-solid: #1a231c;

  --ink: #eef2e6;
  --muted: #a7b3a0;
  --faint: #7f8c79;

  --line: rgba(238, 242, 230, 0.13);
  --line-2: rgba(238, 242, 230, 0.19);
  --line-strong: rgba(238, 242, 230, 0.26);

  --accent: #8ec67a;
  --accent-2: #b6dc9f;
  --accent-soft: rgba(142, 198, 122, 0.16);

  --gold: #d9b45c;
  --gold-soft: rgba(217, 180, 92, 0.16);
  --danger: #e08a72;
  --danger-soft: rgba(224, 138, 114, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, 0.7);
}

/* ============================ 2. Base ==================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 16px;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.25s ease,
    color 0.25s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: min(calc(100% - 2rem), 1180px);
  margin: 0 auto;
}

main {
  padding: 1.4rem 0 3rem;
}

/* ============================ 3. Masthead ================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar-inner {
  min-height: 4.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}
.brand:hover img {
  transform: rotate(-6deg) scale(1.05);
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}
.top-link {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.5rem 0.3rem;
  border-radius: 8px;
}
.top-link:hover,
.top-link:focus-visible {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-size: 0.86rem;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}
.nav .i-no {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--faint);
  margin-right: 0.3rem;
}

/* ============================ 4. Hero band =============================== */
.hero-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 84% 4%, var(--sun-glow), transparent 62%),
    linear-gradient(
      180deg,
      var(--sky-1) 0%,
      var(--sky-2) 40%,
      var(--sky-3) 78%,
      var(--paper) 100%
    );
}
[data-theme="night"] .hero-band {
  background:
    radial-gradient(
      70% 60% at 84% 4%,
      rgba(217, 180, 92, 0.18),
      transparent 62%
    ),
    linear-gradient(180deg, #16241f 0%, var(--paper) 100%);
}

/* A tool page has no island of its own, so it borrows the landing's sky as a
   quiet band behind the folio and page head, fading into paper. */
body:has(> .bnw-folio) {
  background-image:
    radial-gradient(70% 60% at 84% 4%, var(--sun-glow), transparent 62%),
    linear-gradient(
      180deg,
      var(--sky-1) 0%,
      var(--sky-2) 40%,
      var(--sky-3) 78%,
      var(--paper) 100%
    );
  background-repeat: no-repeat;
  background-size: 100% 24rem;
}
[data-theme="night"] body:has(> .bnw-folio) {
  background-image:
    radial-gradient(
      70% 60% at 84% 4%,
      rgba(217, 180, 92, 0.14),
      transparent 62%
    ),
    linear-gradient(180deg, #16241f 0%, var(--paper) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 1.2rem 2rem;
  align-items: center;
  padding: 2.5rem 0 2.1rem;
}
.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.hero-copy h1,
.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.07;
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  max-width: 24ch;
  text-wrap: balance;
}
.hero-copy h1 {
  margin-bottom: 1rem;
}
.hero-copy h1 em,
.page-head h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.lede {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
  margin-bottom: 1.5rem;
}
.lede strong {
  color: var(--ink);
  font-weight: 600;
}

/* search — the landing's pill, shared by the hub's tool jump box */
.launch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 30rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid color-mix(in srgb, var(--line-2) 58%, var(--ink));
  border-radius: 999px;
  padding: 0.52rem 0.85rem 0.52rem 1.05rem;
  box-shadow:
    0 1px 0 #fff inset,
    0 3px 0 rgba(255, 255, 255, 0.55),
    0 11px 22px -17px rgba(34, 48, 31, 0.55);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
[data-theme="night"] .launch {
  background: var(--paper-strong);
  box-shadow: none;
}
.launch:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.launch svg {
  position: static;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
  pointer-events: none;
}
.launch input {
  flex: 1;
  min-width: 0;
  width: auto;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.42rem 0;
  font-size: 1rem;
  color: var(--ink);
}
.launch input::placeholder {
  color: var(--muted);
}
.launch kbd {
  position: static;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: var(--paper-deep);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
}

.hero-meta {
  display: flex;
  align-items: baseline;
  gap: 0.7rem 1.1rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.83rem;
}
.hero-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}
.hero-meta span + span {
  position: relative;
  padding-left: 1.1rem;
}
.hero-meta span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
}
.hero-meta b {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---- the world (inline isometric SVG) ---- */
.world {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.world-stage {
  position: relative;
}
.world-plane {
  display: block;
}
.world-haze {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 0;
  width: min(620px, 90vw);
  height: min(620px, 90vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.62),
    rgba(255, 255, 255, 0) 62%
  );
  pointer-events: none;
}
[data-theme="night"] .world-haze {
  display: none;
}
.world-svg {
  display: block;
  width: 100%;
  height: auto;
}
.world-svg path {
  stroke: rgba(22, 38, 28, 0.22);
  stroke-width: 1;
  stroke-linejoin: round;
}
.world-svg ellipse {
  stroke: none;
}
.world-svg .w-base path {
  stroke: rgba(12, 20, 16, 0.3);
}
.world-svg .w-sky path {
  stroke: rgba(96, 126, 140, 0.2);
}
.world-svg .w-island {
  animation: world-float 12s ease-in-out infinite alternate;
}
@keyframes world-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-7px);
  }
}
.world-svg .w-cloud {
  animation: cloud-drift 46s ease-in-out infinite alternate;
}
.world-svg .c2 {
  animation-duration: 58s;
  animation-delay: -14s;
}
@keyframes cloud-drift {
  from {
    transform: translate(-11px, 3px);
  }
  to {
    transform: translate(15px, -4px);
  }
}
.bnw-plot {
  cursor: pointer;
  transform-box: view-box;
  transform-origin: var(--ox, 0) var(--oy, 0);
  transition:
    transform 0.22s var(--ease),
    opacity 0.22s ease;
}
.bnw-plot:hover,
.bnw-plot:focus-visible {
  transform: translateY(-4px);
}
.bnw-plot:focus {
  outline: none;
}
.plot-glow {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bnw-plot:hover .plot-glow,
.bnw-plot:focus-visible .plot-glow {
  opacity: 1;
}
.world-caption {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}
.world-caption .wc-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.world-caption .wc-note {
  color: var(--muted);
  font-size: 0.8rem;
}
.world-caption .wc-hint-touch {
  display: none;
}
@media (hover: none) {
  .world-caption .wc-hint-touch {
    display: inline;
  }
  .world-caption .wc-hint-pointer {
    display: none;
  }
}

/* ============================ 5. Page head (tool pages) ================== */
.page-head {
  padding: 1.6rem 0 1.4rem;
  display: grid;
  gap: 0.6rem;
}
.page-head .eyebrow {
  justify-self: start;
  margin-bottom: 0.2rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--accent-2);
}
.page-head .eyebrow::before {
  display: none;
}
.page-head h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  max-width: 22ch;
}
.page-head p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 66ch;
}

/* ============================ 6. Sections =============================== */
.section {
  padding: 0 0 3rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--mono);
}
.section-kicker::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
}
.note,
.muted,
.hero p {
  color: var(--muted);
}
.section-head .note {
  font-size: 0.9rem;
  max-width: 30ch;
  text-align: right;
}

/* the ruled folio under a tool's masthead, and the hub's below the hero */
.folio,
.bnw-folio {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}
.bnw-folio {
  width: min(calc(100% - 2rem), 1180px);
  margin: 0 auto;
}
.folio em,
.bnw-folio em {
  font-style: normal;
  color: var(--accent-2);
}

/* ============================ 7. Tool cards ============================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem 1rem;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s var(--ease);
}
.tool-card:hover,
.tool-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tool-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tool-card .ic {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.tool-card .ic svg {
  width: 18px;
  height: 18px;
}
.tool-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.tool-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.tool-card .use {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}
.tool-card .use strong {
  display: block;
  color: var(--faint);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tool-card .go {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tool-card:hover .go {
  color: var(--accent-2);
}

/* ============================ 8. Principles ============================= */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.p-card {
  padding: 1.05rem 1.15rem;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.p-card strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.45rem;
}
.p-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================ 9. Controls =============================== */
.actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.72rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--paper-strong);
  color: var(--muted);
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s,
    transform 0.18s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}
.btn-secondary {
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 82%, #000);
  border-color: color-mix(in srgb, var(--danger) 82%, #000);
  color: #fff;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  transition: border-color 0.25s;
}
.panel:hover {
  border-color: var(--line-strong);
}
label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.92rem;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--paper-strong);
}
textarea {
  min-height: 5rem;
  resize: vertical;
}

/* quiet text button for low-emphasis actions inside panels/decks */
.text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.2rem;
  transition:
    color 0.15s,
    background 0.15s;
}
.text-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.text-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.text-btn.danger:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

/* ============================ 10. Footer ================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.82rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-nav a {
  color: var(--muted);
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

/* the "from the author's desk" note carried by the tool pages */
.desk-note {
  border-top: 1px solid var(--line);
  margin-top: 1.1rem;
  padding: 0.85rem 0.2rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 70ch;
}
.desk-note a {
  color: var(--ink);
}
.desk-note a:hover,
.desk-note a:focus-visible {
  color: var(--accent);
}
.desk-note-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.25rem;
}
.desk-note strong {
  color: var(--ink);
}
.desk-note-cta {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ============================ 11. Utilities ============================= */
.hidden {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================ 12. Responsive ============================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
  .hero-copy h1 {
    max-width: 26ch;
  }
  .world {
    max-width: 560px;
    margin: 0 auto;
  }
}
@media (max-width: 720px) {
  .topbar-inner,
  .section-head,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .folio,
  .bnw-folio {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .section-head .note {
    text-align: left;
    max-width: 46ch;
  }
}
@media (max-width: 480px) {
  .tools-grid,
  .principles {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .world-svg .w-island,
  .world-svg .w-cloud {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
