/* perreault.io: the Editorial look (Batch 3) with Deep green blocks (Batch 7). See docs\status.md. */

:root {
  --bg: #F7F5F0;
  --ink: #1C1B19;
  --ink-2: #3D3A35;
  --muted: #5E5A53;
  --rule: #DDD8CE;
  --accent: #24453C;
  --accent-hover: #16302A;
  --green: #24453C;
  --green-deep: #1A332C;
  --sage: #DCE6DE;
  --stage: #E8EDE9;
  --btn-bg: #24453C;
  --btn-ink: #FFFFFF;
  --btn-hover: #16302A;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 32px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  padding: 10px 16px;
  background: var(--ink);
  color: #FFFFFF;
  z-index: 10;
}
.skip-link:focus { top: 8px; color: #FFFFFF; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }

/* Color blocks. Each block resets the shared colors, so everything inside it adapts. */

.band, .site-header {
  background: var(--green);
  color: #F7F5F0;
  --ink: #F7F5F0;
  --ink-2: #E3EAE4;
  --muted: #C9D6CF;
  --rule: #4A6A60;
  --accent: #F7F5F0;
  --accent-hover: #FFFFFF;
  --btn-bg: #F7F5F0;
  --btn-ink: #24453C;
  --btn-hover: #FFFFFF;
}
.section--alt {
  background: var(--sage);
  --ink-2: #33392F;
  --muted: #4A5A4F;
  --rule: #C3CFC6;
}

/* Header and footer */

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 4px 28px;
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.site-nav { grid-area: nav; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: 15px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.nav-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--ink); color: var(--green); }

.site-footer {
  background: var(--green-deep);
  color: #B9C8C0;
  --accent: #B9C8C0;
  --accent-hover: #FFFFFF;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding-block: 16px;
  font-size: 14px;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Type */

.eyebrow {
  margin: 0 0 24px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.serif-title { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; }
.lede { margin: 28px 0 0; max-width: 32em; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.note { font-size: 15px; color: var(--muted); }

/* Buttons and links. Underlines slide in on hover. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  background: linear-gradient(currentColor, currentColor) no-repeat 26px calc(100% - 14px) / 0 2px var(--btn-bg);
  color: var(--btn-ink);
  font: 500 17px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-size .3s ease, background-color .2s ease;
}
.btn:hover { background-color: var(--btn-hover); background-size: calc(100% - 52px) 2px; color: var(--btn-ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.site-nav a, .text-link {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(50% + 0.8em) / 0 1px;
  text-decoration: none;
  transition: background-size .3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"], .text-link:hover { background-size: 100% 1px; }
.btn-quiet {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 15px var(--sans);
  cursor: pointer;
}
.btn-quiet:hover { background: var(--ink); color: var(--bg); }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Sections */

.section { padding-block: clamp(64px, 9vw, 96px); }
.section--rule { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 64px; margin-bottom: 56px; }
.section-head p { flex: 1 1 360px; margin: 0; max-width: 34em; color: var(--muted); }
.intro > .wrap { padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 112px); }

.split { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split > :first-child { flex: 0 1 220px; }
.split > :last-child { flex: 1 1 520px; min-width: 0; }
.split .eyebrow { margin-top: 8px; }

/* Opening section with the portrait */

.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px 64px; }
.hero > div { flex: 1 1 520px; min-width: 0; }
.portrait { flex: 0 1 340px; margin: 0; overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero > .actions { flex-basis: 100%; margin-top: 0; }

/* Pillars and principles */

.pillars { display: flex; flex-wrap: wrap; gap: 48px 40px; }
.pillar { flex: 1 1 220px; border-top: 2px solid var(--accent); padding-top: 24px; }
.pillar .num { margin: 0; font-size: 13px; letter-spacing: 0.1em; color: var(--accent); }
.pillar h3 { margin: 8px 0 12px; font-family: var(--serif); font-size: 30px; }
.pillar > p { margin: 0 0 20px; color: var(--ink-2); }
.plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }

.principles { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.principle { flex: 1 1 220px; }
.principle h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 17px; font-weight: 600; }
.principle p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* Services page */

.service { padding-block: 28px; border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: 2px solid var(--accent); }
.service h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 26px; }
.service p { margin: 0; max-width: 38em; color: var(--ink-2); }

/* Work list */

.work-item { display: flex; flex-wrap: wrap; gap: 8px 48px; padding-block: 32px; border-top: 1px solid var(--rule); }
.work-item:first-child { border-top: 2px solid var(--accent); }
.work-item:last-child { border-bottom: 1px solid var(--rule); }
.work-item .eyebrow { flex: 0 1 200px; margin: 8px 0 0; color: var(--accent); }
.work-item > div { flex: 1 1 520px; min-width: 0; }
.work-item h3 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 32px); }
.work-item h3 a, .work-item h2 a { color: var(--ink); text-decoration: none; }
.work-item h3 a:hover, .work-item h2 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.work-item p { margin: 8px 0 12px; max-width: 36em; color: var(--ink-2); }
.work-item h3 .note, .work-item h2 .note { font-family: var(--sans); font-size: 14px; white-space: nowrap; }
.work-item .status-tag { display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 0 12px; border: 1px solid var(--muted); font-size: 14px; color: var(--muted); }
.on-the-blog { margin-top: 72px; align-items: baseline; }
.on-the-blog .eyebrow { margin: 0; }
.on-the-blog a { font-family: var(--serif); font-size: 24px; color: var(--ink); }

/* Blog (Batch 13). tools\build-blog.mjs writes the blog pages from content\blog\. */

.feed-link { margin: 24px 0 0; }
.series { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.series + .series { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--rule); }
.series-about { flex: 0 1 320px; min-width: 0; }
.series-about .eyebrow { margin-bottom: 16px; color: var(--accent); }
.series-about > p { margin: 16px 0 0; color: var(--ink-2); }
.series-about > .note { margin-top: 12px; color: var(--muted); }
.series-about .btn { margin-top: 28px; }
.series-art { margin-top: 32px; }
.series-art .help-art.wide { display: none; }
.series-art .help-art.tall, .series-art .help-key { display: block; }
.series-parts { flex: 1 1 520px; min-width: 0; }

.chapter { padding-block: 16px; border-top: 1px solid var(--rule); }
.chapter:first-child { border-top: 2px solid var(--accent); }
.chapter:last-child { border-bottom: 1px solid var(--rule); }
.chapter summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 44px; cursor: pointer; list-style: none; }
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary .note { white-space: nowrap; }
.chapter summary .note::after { content: " +"; }
.chapter[open] summary .note::after { content: " \2212"; }
.chapter-title { font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.part-list { margin: 8px 0 0; padding: 0; list-style: none; }
.part-list li { display: flex; align-items: baseline; gap: 4px 20px; padding-block: 12px; border-top: 1px solid var(--rule); }
.part-list.flat { margin: 0; border-top: 2px solid var(--accent); }
.part-list.flat li { border-top: 0; border-bottom: 1px solid var(--rule); }
.part-num { flex: 0 0 32px; font-size: 15px; color: var(--muted); }
.part-list a { flex: 1 1 auto; min-width: 0; color: var(--ink); text-decoration: none; }
.part-list a:hover { text-decoration: underline; text-underline-offset: 5px; }
.part-list .note { font-size: 14px; white-space: nowrap; }

.post-title { max-width: 15em; }
.post-meta { margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.post { padding-block: 40px clamp(64px, 9vw, 96px); }
.draft-note { max-width: 40em; margin: 0 0 24px; font-size: 15px; }
.draft-note .todo { margin: 0; padding: 8px 12px; }
.series-toc { max-width: 40em; margin-bottom: 48px; border-block: 1px solid var(--rule); font-size: 15px; }
.series-toc summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; min-height: 52px; cursor: pointer; list-style: none; }
.series-toc summary::-webkit-details-marker { display: none; }
.series-toc b { font-weight: 600; }
.toc-show, .toc-hide { color: var(--accent); font-weight: 500; }
.toc-hide, .series-toc[open] .toc-show { display: none; }
.series-toc[open] .toc-hide { display: inline; }
.toc-chapter { margin: 16px 0 4px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc-list { margin: 0 0 16px; padding: 0; list-style: none; }
.toc-list li { display: flex; gap: 12px; padding-block: 6px; }
.toc-list .part-num { flex: 0 0 24px; }
.toc-list a { color: var(--ink); text-decoration: none; }
.toc-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.toc-list .current { font-weight: 600; }
.toc-list .current .part-num { font-weight: 400; }
.post-figure { margin: 40px 0; }
.post-figure img, .post-figure svg { border: 1px solid var(--rule); }
.post-figure svg { max-width: 600px; }
.post-figure figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.series-nav { max-width: 40em; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--accent); }
.series-nav a, .series-nav > span { flex: 1 1 240px; text-decoration: none; }
.series-nav .next { text-align: right; }
.series-nav .eyebrow { display: block; margin: 0 0 4px; font-size: 12px; }
.series-nav .serif { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); }
.series-nav a:hover .serif { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* From the blog (home page) */

.section-head--link { justify-content: space-between; margin-bottom: 40px; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.post-card { border-top: 2px solid var(--accent); padding-top: 20px; }
.post-card .eyebrow { margin: 0; font-size: 12px; }
.post-card h3 { margin: 10px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.post-card p { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }

/* Case studies and long text */

.facts { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--ink); }
.facts div { flex: 1 1 180px; }
.facts dt { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; }

.prose { max-width: 40em; font-size: 18px; color: var(--ink-2); }
.prose h2 { margin: 56px 0 16px; font-family: var(--serif); font-size: 30px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 20px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 40px 0; padding-left: 24px; border-left: 1px solid var(--ink); font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); }
.prose blockquote .quote-credit { margin: 12px 0 0; font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* Case study: the work, one row per area */

.prose .area { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 4px 20px; align-items: start; padding-block: 16px; border-top: 1px solid var(--rule); font-size: 17px; }
.prose .area:last-child { border-bottom: 1px solid var(--rule); }
.prose .area h3 { margin: 2px 0 0; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink); }
.prose .area p { margin: 0; }
.prose .area .area-note { grid-column: 1 / -1; margin-top: 8px; font-size: 15px; }
.area-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--accent); font-size: 13px; color: var(--accent); white-space: nowrap; }
.area-status--quiet { border-color: var(--muted); color: var(--muted); }
.area-status--next { border-style: dashed; border-color: var(--muted); color: var(--muted); }
@media (max-width: 640px) {
  .prose .area { grid-template-columns: minmax(0, 1fr) auto; }
  .prose .area > p:not(.area-note) { grid-column: 1 / -1; grid-row: 2; }
}

/* The house drawing (home network case study) */

.stage { position: relative; aspect-ratio: 16 / 10; background: var(--stage); border: 1px solid var(--rule); overflow: hidden; }
.stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.stage-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 22px));
  width: max-content;
  max-width: min(240px, 70%);
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--ink);
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}
.stage-label b { display: block; font-size: 14px; }
.figure-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; font-size: 15px; color: var(--muted); }

/* The help assistant drawing (help assistant case study): inline SVG, a wide one and a tall one for phones.
   assets\help.js runs the Pause button. When a device asks for reduced motion, it starts paused on a still frame. */

.stage.help-stage { aspect-ratio: auto; }
.help-art { display: block; width: 100%; height: auto; }
.help-art.tall, .help-key { display: none; }
.help-key { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.help-key li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.help-key li::before { content: ""; flex: none; width: 10px; height: 10px; border: 1px solid #3A3732; border-radius: 50%; background: #E9A23B; }
.help-key li.ok::before { background: #3C7A65; }
.help-art .ink { stroke: #3A3732; stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; }
.help-art .nofill { fill: none; }
.help-art .bg { fill: #E8EDE9; }
.help-art .shadow { fill: #24453C; opacity: .12; }
.help-art .p1 { fill: #9DB2A6; } .help-art .p2 { fill: #C7B79A; } .help-art .p3 { fill: #A15F49; } .help-art .p4 { fill: #5B6061; } .help-art .p5 { fill: #7D9B84; }
.help-art .s1 { fill: #EAD7C3; } .help-art .s2 { fill: #D8B99A; } .help-art .s3 { fill: #B98E6E; } .help-art .s4 { fill: #8C6449; } .help-art .s5 { fill: #F0DECB; }
.help-art .me { fill: #24453C; } .help-art .chair { fill: #C5CEC7; } .help-art .wood { fill: #BBA382; } .help-art .wood2 { fill: #A99070; } .help-art .lap { fill: #5B6061; }
.help-art .bot { fill: #FBFAF7; } .help-art .neck { fill: #C5CEC7; } .help-art .screen { fill: #24453C; } .help-art .eye { fill: #CFE3D6; }
.help-art .smile { fill: none; stroke: #CFE3D6; stroke-width: 2.5px; stroke-linecap: round; }
.help-art .cover { fill: #24453C; } .help-art .page { fill: #FFFFFF; }
.help-art .pageline { fill: none; stroke: #9DB2A6; stroke-width: 1.5px; stroke-linecap: round; }
.help-art .track, .help-art .track-ok, .help-art .track-hot { fill: none; stroke: #8E9A93; stroke-width: 1.6px; stroke-dasharray: 5 5; stroke-linecap: round; }
.help-art .track-ok { stroke: #3C7A65; }
.help-art .track-hot { stroke: #C47F12; stroke-width: 1.8px; stroke-dasharray: 6 5; }
.help-art .glow-ok { fill: #3C7A65; opacity: .28; } .help-art .dot-ok { fill: #3C7A65; }
.help-art .glow-hot { fill: #E9A23B; opacity: .4; } .help-art .dot-hot { fill: #E9A23B; }
.help-art .lb { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: #1C1B19; }
.help-art .lb2 { font-weight: 400; } .help-art .end { text-anchor: end; } .help-art .mid { text-anchor: middle; }
.help-art .halo { paint-order: stroke; stroke: #E8EDE9; stroke-width: 4px; stroke-linejoin: round; }
.help-art .lead { fill: none; stroke: #1C1B19; stroke-width: 1px; opacity: .55; }
/* The blog's small still drawings (content\blog\drawings\) share these colors and add larger labels and bold marks. */
.help-art .t { font-family: var(--sans); font-size: 24px; font-weight: 600; fill: #1C1B19; }
.help-art .t.big { font-size: 42px; } .help-art .t.w { fill: #FBFAF7; } .help-art .t.h { fill: #C47F12; }
.help-art .ck, .help-art .ck-g, .help-art .ck-r, .help-art .ck-h { fill: none; stroke: #FBFAF7; stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; }
.help-art .ck-g { stroke: #3C7A65; } .help-art .ck-r { stroke: #A15F49; } .help-art .ck-h { stroke: #E9A23B; }
.help-art .mq { opacity: 0; animation: help-in 4s linear infinite; }
.help-art .ma { opacity: 0; animation: help-back 4s linear infinite; }
.help-art .mf { opacity: 0; animation: help-fwd 12s linear infinite; }
.help-art .cbg { opacity: 0; animation: help-form 12s ease-out infinite; }
.help-art .nt { opacity: 0; animation: help-note 12s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.help-art.tall .mq { animation-name: help-in-tall; }
.help-art.tall .ma { animation-name: help-back-tall; }
.help-art.tall .mf { animation-name: help-fwd-tall; }
.help-art .d1 { animation-delay: -1s; } .help-art .d2 { animation-delay: -2s; } .help-art .d3 { animation-delay: -3s; }
.help-art .e0 { animation-delay: -.5s; } .help-art .e1 { animation-delay: -1.5s; } .help-art .e2 { animation-delay: -2.5s; } .help-art .e3 { animation-delay: -3.5s; }
.help-art .mf, .help-art .cbg, .help-art .nt { animation-delay: -8.6s; }
.help-figure.paused .help-art * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .help-figure:not(.playing) .help-art * { animation-play-state: paused; }
}
@keyframes help-in { 0% { opacity: 0; transform: translate(262px, 296px); } 8% { opacity: 1; } 25% { transform: translate(307px, 269px); } 50% { transform: translate(353px, 261px); } 75% { transform: translate(396px, 274px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translate(432px, 306px); } }
@keyframes help-back { 0% { opacity: 0; transform: translate(436px, 392px); } 8% { opacity: 1; } 25% { transform: translate(399px, 419px); } 50% { transform: translate(360px, 430px); } 75% { transform: translate(322px, 424px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translate(286px, 404px); } }
@keyframes help-fwd { 0%, 58% { opacity: 0; transform: translate(524px, 306px); } 60% { opacity: 1; transform: translate(524px, 306px); } 65% { transform: translate(585px, 269px); } 70%, 77% { transform: translate(652px, 260px); } 82% { transform: translate(721px, 282px); } 87% { opacity: 1; transform: translate(790px, 338px); } 89%, 100% { opacity: 0; transform: translate(790px, 338px); } }
@keyframes help-in-tall { 0% { opacity: 0; transform: translate(150px, 182px); } 8% { opacity: 1; } 25% { transform: translate(129px, 212px); } 50% { transform: translate(125px, 246px); } 75% { transform: translate(135px, 277px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translate(162px, 302px); } }
@keyframes help-back-tall { 0% { opacity: 0; transform: translate(238px, 302px); } 8% { opacity: 1; } 25% { transform: translate(265px, 277px); } 50% { transform: translate(276px, 246px); } 75% { transform: translate(271px, 212px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translate(250px, 182px); } }
@keyframes help-fwd-tall { 0%, 58% { opacity: 0; transform: translate(262px, 372px); } 60% { opacity: 1; transform: translate(262px, 372px); } 64% { transform: translate(314px, 386px); } 67% { transform: translate(334px, 408px); } 70%, 77% { transform: translate(334px, 436px); } 79% { transform: translate(334px, 460px); } 83% { transform: translate(300px, 477px); } 87% { opacity: 1; transform: translate(224px, 466px); } 89%, 100% { opacity: 0; transform: translate(224px, 466px); } }
@keyframes help-form { 0%, 68% { opacity: 0; } 71%, 77% { opacity: .35; } 80%, 100% { opacity: 0; } }
@keyframes help-note { 0%, 86% { opacity: 0; transform: scale(.4); } 90%, 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* Contact form */

.form { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 500; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #8C877E;
  border-radius: 0;
  background: #FFFFFF;
  color: var(--ink);
  font: 17px/1.5 var(--sans);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Content still to come. tools\check.ps1 -Release fails while any remain. */

.todo { background: #FFF1B8; color: #1C1B19; outline: 1px dashed #A07A00; padding: 0 4px; }

/* Contact band */

.cta { text-align: center; padding-block: clamp(80px, 10vw, 112px); }
.cta p { margin: 20px auto 36px; max-width: 30em; font-size: 19px; color: var(--ink-2); }

/* Phones */

@media (max-width: 720px) {
  .site-header .wrap { grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "nav nav"; gap: 0 12px; padding-block: 10px 0; border-bottom: 0; }
  .brand { font-size: 22px; }
  .nav-cta { padding: 0 14px; }
  .site-nav { margin-top: 6px; border-top: 1px solid var(--rule); }
  .eyebrow { margin-bottom: 16px; font-size: 12px; }
  .display { font-size: 38px; line-height: 1.08; }
  .page-title { font-size: 34px; line-height: 1.1; }
  .section-title { font-size: 30px; }
  .lede { margin-top: 20px; font-size: 18px; }
  .intro > .wrap { padding-block: 36px 56px; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 36px; }
  .hero { gap: 40px; }
  .portrait { flex-basis: 100%; order: 2; }
  .hero > .actions { order: 1; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
  .hero .btn, .cta .btn, .form .btn { width: 100%; }
  .pillars { gap: 36px; }
  .pillar h3 { font-size: 28px; }
  .facts { margin-top: 36px; }
  .cta { padding-block: 64px; }
  .stage { aspect-ratio: 1 / 1; }
  .help-art.wide { display: none; }
  .help-art.tall, .help-key { display: block; }
  .site-footer .wrap { padding-block: 8px; }
}

/* Motion. assets\site.js adds the classes. All of it is off when a device asks for reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em; margin-block: -.1em; }
  .w > span { display: inline-block; animation: rise .9s var(--ease-out) both; }
  .intro .eyebrow, .intro .lede, .intro .prose, .intro .actions, .intro .facts { animation: fade .8s ease both .45s; }
  .intro .eyebrow { animation-delay: 0s; }
  .intro .actions { animation-delay: .6s; }
  .portrait img { animation: uncover 1.1s var(--ease-out) both .25s; }

  .pending:not(.slide-wrap) { opacity: 0; transform: translateY(24px); }
  .shown:not(.slide-wrap) { transition: opacity .7s ease, transform .7s var(--ease-out); }

  .slide-wrap { overflow: hidden; }
  .slide-wrap.pending > * { transform: translateX(-100%); }
  .slide-wrap.shown > * { transition: transform 1s var(--ease-out); }
  .slide-wrap.pending .work-item { opacity: 0; transform: translateY(8px); }
  .slide-wrap.shown .work-item { transition: opacity .7s ease .75s, transform .7s ease .75s; }
  .slide-wrap.shown .work-item:nth-child(2) { transition-delay: .85s; }
  .slide-wrap.shown .work-item:nth-child(3) { transition-delay: .95s; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .nav-cta, .site-nav a, .text-link { transition: none; }
}
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes uncover { from { clip-path: inset(100% 0 0 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* Free tools (Batch 21): the /tools/ page, the three tools, and printing. */

.intro--tight > .wrap { padding-block: 48px; }
.intro--tight .lede { margin-top: 20px; }
.tools-section { padding-block: 40px 64px; }

.tool-grid { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.tool-card { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; }
.tool-card .eyebrow { margin: 20px 0 8px; }
.tool-card h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.tool-card p:not(.eyebrow) { margin: 0 0 8px; color: var(--ink-2); }
.tool-card .text-link { margin-top: auto; align-self: flex-start; }

.tool-preview { display: flex; align-items: center; justify-content: center; height: 280px; background: var(--stage); color: var(--ink); line-height: 1.3; text-decoration: none; }
.tool-preview:hover { color: var(--ink); }
.mini-sheet { width: 196px; height: 248px; padding: 16px; background: #FFFFFF; border: 1px solid var(--rule); }
.mini-title { font-family: var(--serif); font-size: 17px; }
.mini-sheet b { display: block; margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.mini-sheet i { display: block; margin-top: 14px; border-top: 1px solid var(--muted); }
.mini-check { width: 268px; padding: 20px; background: #FFFFFF; border: 1px solid var(--rule); }
.mini-check small { display: block; font-size: 12px; color: var(--muted); }
.mini-bar { display: block; margin-top: 8px; height: 3px; background: var(--rule); }
.mini-bar i { display: block; height: 3px; width: 8%; background: var(--green); }
.mini-q { display: block; margin: 16px 0 18px; font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.mini-choices { display: flex; gap: 8px; font-size: 13px; font-weight: 500; text-align: center; }
.mini-choices span { flex: 1; padding: 7px 0; border: 1px solid var(--ink); }
.mini-choices span:last-child { flex: 1.4; }
.mini-rules { width: 268px; padding: 20px; background: var(--green-deep); color: #E3EAE4; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.55; }
.mini-rules span { display: block; margin-top: 6px; }
.mini-rules span:first-child { margin-top: 0; color: #C9D6CF; }
.mini-rules span:nth-child(2) { margin-top: 10px; }

.mod-shot { margin: 0; }
.mod-shot img { width: 100%; border: 1px solid var(--rule); }
.mod-shot figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.mod-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 32px; margin: 40px 0 32px; padding: 0; list-style: none; }
.mod-list b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.25; color: var(--ink); }
.mod-list span { color: var(--ink-2); }

.check-band { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 64px; }
.check-band > :first-child { flex: 1 1 420px; min-width: 0; }
.check-card {
  flex: 1 1 460px;
  min-width: 0;
  min-height: 340px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  color: #1C1B19;
  --ink: #1C1B19;
  --ink-2: #3D3A35;
  --muted: #5E5A53;
  --rule: #DDD8CE;
  --accent: #24453C;
  --accent-hover: #16302A;
  --btn-bg: #24453C;
  --btn-ink: #FFFFFF;
  --btn-hover: #16302A;
}
.check-band .page-title { white-space: nowrap; }
.check-card .eyebrow { margin: 0 0 6px; }
.check-card .eyebrow:focus { outline: none; }
.check-count { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.check-bar { height: 4px; background: var(--rule); }
.check-bar span { display: block; height: 4px; background: var(--green); }
.check-q { margin: 28px 0 32px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; }
.check-q:focus { outline: none; }
.check-choices { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.check-choices button { flex: 1 1 110px; min-height: 52px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 17px var(--sans); cursor: pointer; }
.check-choices button:hover { background: var(--ink); color: #FFFFFF; }
.check-back { align-self: flex-start; margin-top: 12px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: 500 15px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.check-list { margin: 12px 0 0; padding-left: 24px; display: grid; gap: 16px; }
.check-list b { display: block; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.25; }
.check-list span { display: block; font-size: 16px; color: var(--ink-2); }
.check-list .check-unsure { font-size: 15px; color: var(--muted); }
.check-done { margin: 12px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.check-note { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.check-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.sheet-wrap { overflow-x: auto; }
.sheet { min-width: 640px; max-width: 760px; margin: 0 auto; padding: 40px; background: #FFFFFF; border: 1px solid var(--rule); font-size: 14px; line-height: 1.35; }
.sheet h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.sheet-fill { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.sheet-fill i { flex: 1; border-bottom: 1px solid var(--ink); }
.sheet ol { margin: 0 0 8px; padding-left: 20px; }
.sheet h3 { margin: 12px 0 4px; font: 600 14px var(--sans); }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th, .sheet td { height: 26px; padding: 2px 6px; border: 1px solid #8A857C; text-align: left; font-size: 12px; font-weight: 400; }
.sheet thead th { height: auto; font-weight: 600; background: var(--sage); }
.sheet-foot { margin: 12px 0 0; font-size: 12px; }
.sheet-how { margin: 40px auto 0; }

.rules { margin: 24px 0 12px; padding: 24px; background: var(--green-deep); color: #E3EAE4; font-family: ui-monospace, Consolas, monospace; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-status { margin-left: 12px; font-size: 15px; color: var(--muted); }

@media (max-width: 720px) {
  .intro--tight > .wrap { padding-block: 36px 40px; }
  .tools-section { padding-block: 32px 48px; }
  .tool-preview { height: 240px; }
  .mini-sheet { width: 166px; height: 212px; padding: 14px; }
  .mini-title { font-size: 15px; }
  .mini-sheet b { margin-top: 8px; }
  .mini-sheet i { margin-top: 12px; }
  .mod-list b { font-size: 20px; }
  .check-card { padding: 24px 20px; }
  .check-q { margin-block: 24px; font-size: 26px; }
  .check-choices { display: grid; }
  .check-actions .btn { width: 100%; }
  .rules { padding: 16px; font-size: 14px; }
  .copy-status { display: block; margin: 8px 0 0; }
}

@media print {
  @page { size: letter; margin: 0.5in; }
  .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .band { background: none; color: #000000; --ink: #000000; --ink-2: #000000; --muted: #333333; --rule: #999999; --accent: #000000; }
  .pending { opacity: 1 !important; transform: none !important; }
  .sheet-section { max-width: none; padding: 0; }
  .sheet-wrap { overflow: visible; }
  .sheet { min-width: 0; max-width: none; padding: 0; border: 0; }
  .intro--tight > .check-band { display: block; padding: 0; }
  .check-card { min-height: 0; padding: 0; }
}
