/* Hallmark · checked: 2026-11-14 · the stamp, with what was set aside and why, opens style.css · redesign: polish */

/* The home page only, on top of style.css: the hero (with an optional desk figure), the symptoms and the three
   situations, the four figures in a chain, the method as three stacked panels, the argument, the
   pillars, the doors, the library and the closing call. Sections run the full width; .wrap or a
   padded edge keeps their content on the page's column. No script. */

:where(.kind-home) { --band: clamp(4rem, 8vw, 7rem); --edge: max(1.25rem, calc((100% - 84rem) / 2)); }
:where(.kind-home) h2 { font-stretch: 76%; font-size: clamp(1.75rem, 2.9vw, 2.75rem); line-height: 1.06; letter-spacing: -.012em; }
.text-link, .thesis-body a, .pillar a, .short a, .method-more a, .note-item .meta a, #library .next a { color: var(--ink); box-shadow: inset 0 -1px 0 var(--accent); transition: color .2s; }
.text-link:hover, .thesis-body a:hover, .pillar a:hover, .short a:hover, .method-more a:hover, .note-item .meta a:hover, #library .next a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(1.75rem, 3.2vw, 3rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero-in { container-type: inline-size; }
.hero h1 { font-stretch: 68%; font-size: clamp(2.05rem, 4.7cqi, 4.6rem); line-height: 1.03; text-wrap: wrap; }
.h1-a, .h1-b { display: block; text-wrap: balance; }
.h1-b { color: var(--accent); }
.hero-body { display: grid; gap: 2rem; margin-top: clamp(1.5rem, 3cqi, 2.5rem); }
.hero .lede { max-width: 44ch; margin: 0; font-size: clamp(1.125rem, 1.6cqi, 1.3125rem); }
.hero-with-figure .lede { max-width: 34ch; }
.hero .actions { margin: 1.5rem 0 0; }
.hero-role { margin-top: 1.25rem; font-weight: 500; font-stretch: 88%; font-size: .875rem; line-height: 1.3; color: var(--muted); }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 13rem;
  object-fit: cover;
  object-position: 50% 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 12%, var(--mask) 90%, transparent), linear-gradient(180deg, transparent, var(--mask) 12%, var(--mask) 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, var(--mask) 12%, var(--mask) 90%, transparent), linear-gradient(180deg, transparent, var(--mask) 12%, var(--mask) 78%, transparent);
  mask-composite: intersect;
}
.hero-figure figcaption { margin-top: .25rem; padding-right: 10%; font-size: .75rem; line-height: 1.3; color: var(--muted); text-align: right; }
@media (min-width: 62rem) {
  .hero-with-figure { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: end; gap: 2.5rem; }
  .hero-with-figure .hero-copy { padding-bottom: 2.25rem; }
  .hero-figure img { max-height: calc(100dvh - 19.5rem); }
}
/* Short laptop screens: the whole hero, picture included, stays in the first screen. */
@media (min-width: 62rem) and (max-height: 51rem) {
  .hero { padding-block: 1.25rem 1.5rem; }
  .hero-body { margin-top: 1.5rem; }
  .hero-with-figure .hero-copy { padding-bottom: 1.25rem; }
  .hero-figure img { max-height: calc(100dvh - 20rem); }
}

/* ---------------------------------------------------------------- the symptoms and the three situations */
.situations { padding-block: var(--band) clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.statement { max-width: 22em; font-weight: 300; font-stretch: 80%; font-size: clamp(1.7rem, 3.6vw, 3.25rem); line-height: 1.12; letter-spacing: -.012em; }
.statement span { display: block; text-wrap: balance; }
.statement span + span { margin-top: .35em; }
.situations .doors-q { margin-top: clamp(3rem, 6vw, 5rem); }
.situations .doors { margin-top: 1.5rem; border-top: 1px solid var(--rule-strong); }
.situations .door { display: grid; grid-template-columns: minmax(0, 1fr) 2rem; gap: .35rem 1.5rem; align-items: baseline; padding-block: 1.35rem; border-bottom: 1px solid var(--rule); }
.situations .door::after { content: "\2192"; grid-row: 1; grid-column: 2; justify-self: end; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .35s var(--ease); }
.situations .door-t { font-weight: 620; font-stretch: 80%; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.15; transition: color .2s, transform .35s var(--ease); }
.situations .door-d { grid-column: 1 / -1; color: var(--ink-2); }
.situations .door:hover .door-t { color: var(--accent); transform: translateX(.4rem); }
.situations .door:hover::after { transform: translateX(.4rem); }
@media (min-width: 52rem) {
  .situations .door { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 2rem; }
  .situations .door-d { grid-column: 2; grid-row: 1; }
  .situations .door::after { grid-column: 3; }
}

/* ---------------------------------------------------------------- what you can check */
.figures { padding-block: var(--band); background: var(--ground-deep); }
.fig-grid { display: grid; margin-top: 2rem; border-top: 1px solid var(--rule-strong); }
.fig { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: .6rem; padding-block: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); overflow: hidden; }
.fig-n { font-weight: 660; font-stretch: 66%; font-size: clamp(3.25rem, 6.6vw, 5.75rem); line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.fig-lead .fig-n { font-size: clamp(4rem, 9vw, 7.5rem); color: var(--accent); }
.fig-note { max-width: 52ch; margin-top: .75rem; font-size: .9375rem; color: var(--muted); }
.fig-g { font-weight: 500; font-stretch: 88%; font-size: .8125rem; line-height: 1.3; color: var(--muted); }
.fig-chart { display: block; max-width: 26rem; margin-top: .35rem; }
.fig-chart svg { display: block; width: 100%; height: .875rem; }
.fig-chart rect { stroke: var(--ground-deep); stroke-width: 2; vector-effect: non-scaling-stroke; }
.seg-late, .leg-late::before { fill: var(--accent); background: var(--accent); }
.seg-flag, .leg-flag::before { fill: var(--ink); background: var(--ink); }
.seg-open, .leg-open::before { fill: var(--bar-rest); background: var(--bar-rest); }
.fig-legend { display: grid; gap: .2rem; margin-top: .6rem; font-weight: 500; font-size: .8125rem; line-height: 1.4; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-2); }
.leg::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .45rem; vertical-align: -.03rem; }
.fig-t { max-width: 34ch; color: var(--ink-2); text-wrap: pretty; }
.fig-go { align-self: flex-start; margin-top: auto; padding-top: 1rem; font-weight: 620; font-stretch: 88%; box-shadow: inset 0 -1px 0 var(--accent); transition: color .2s; }
.fig:hover .fig-go { color: var(--accent); }
@media (min-width: 56rem) {
  .fig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig:nth-child(odd) { padding-right: 2.5rem; border-right: 1px solid var(--rule); }
  .fig:nth-child(even) { padding-left: 2.5rem; }
}

/* ---------------------------------------------------------------- how the work goes: three panels that stack */
.method { padding-top: var(--band); }
.method h2 { margin-bottom: 2rem; }
.method-more { max-width: 60ch; margin-top: 2.5rem; color: var(--ink-2); }
.stack li { position: sticky; top: calc(var(--nav) + 8px); z-index: 1; background: var(--ground); }
.stack li:nth-child(1) { --to: 33.4%; }
.stack li:nth-child(2) { --to: 66.7%; background: var(--panel); }
.stack li:nth-child(3) { --to: 100%; background: var(--ground-deep); }
.step { display: grid; align-content: space-between; gap: 2rem; min-height: min(44vh, 25rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
/* The rule on top of each panel is the tape again: it has run a third, two thirds, all the way. */
.step-rule {
  height: 10px;
  background:
    linear-gradient(90deg, var(--accent), var(--accent)) 0 0 / var(--to) 2px no-repeat,
    linear-gradient(90deg, var(--rule-strong) 1px, transparent 1px) 0 0 / 60px 10px repeat-x,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 12px 5px repeat-x;
}
.step-body { display: grid; gap: 1rem; align-items: end; }
.step h3 { font-weight: 700; font-stretch: 62%; font-size: clamp(4.5rem, 15vw, 13rem); line-height: .86; letter-spacing: -.02em; }
.step p { max-width: 32ch; font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.35; color: var(--ink-2); text-wrap: balance; }
@media (max-width: 51.99rem) { .step { min-height: min(38vh, 19rem); } }
@media (min-width: 52rem) {
  .step-body { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .step p { padding-bottom: .9rem; }
}

/* ---------------------------------------------------------------- the argument */
.home-thesis { display: grid; gap: 2.5rem; padding: var(--band) var(--edge); background: var(--panel); }
.thesis-head p { max-width: 30ch; margin-top: 1rem; font-size: 1.1875rem; line-height: 1.45; color: var(--ink-2); }
.thesis-body li { max-width: 60ch; padding-block: 1.6rem; color: var(--ink-2); }
.thesis-body li:first-child { padding-top: 0; }
.thesis-body li + li { border-top: 1px solid var(--rule); }
.thesis-body li strong { display: block; margin-bottom: .6rem; font-weight: 640; font-stretch: 82%; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; color: var(--ink); }
.note { max-width: 62ch; margin-top: 2rem; font-size: .9063rem; line-height: 1.55; color: var(--muted); }
@media (min-width: 60rem) {
  .home-thesis { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .thesis-head { position: sticky; top: 6.5rem; align-self: start; }
}

/* ---------------------------------------------------------------- how I work, engagements, proof, terms */
.home-pillars { display: grid; gap: 1px; width: min(100% - 2.5rem, 84rem); margin: var(--band) auto; border: 1px solid var(--rule); background: var(--rule); }
.pillar { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--ground); }
.pillar h2 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
.pillar p { max-width: 54ch; color: var(--ink-2); }
.pillar:first-child { justify-content: flex-end; min-height: 20rem; }
.pillar:nth-child(2) { background: var(--tint); }
/* The yard at night stands behind the first pillar once yard.webp exists. */
.has-yard .pillar:first-child {
  background:
    linear-gradient(180deg, var(--veil-1) 0%, var(--veil-3) 46%, var(--ground) 88%),
    url("files/desk/yard.webp") center / cover no-repeat var(--ground);
}
@media (min-width: 58rem) {
  .home-pillars { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .pillar:first-child { grid-row: 1 / span 3; min-height: 32rem; }
}

/* ---------------------------------------------------------------- where the work is */
.index { padding-bottom: var(--band); }
.index-grid { display: grid; gap: 3rem; }
.index .doors-q { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.index .doors { margin-top: 1rem; }
.index .doors li + li { border-top: 1px solid var(--rule); }
.index .door { display: block; padding-block: 1rem; }
.index .door-t { display: block; font-weight: 620; font-stretch: 82%; font-size: 1.25rem; line-height: 1.2; transition: color .2s; }
.index .door-d { display: block; margin-top: .2rem; font-size: .9688rem; color: var(--ink-2); }
.index .door:hover .door-t { color: var(--accent); }
@media (min-width: 56rem) { .index-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }

/* ---------------------------------------------------------------- field notes and short answers */
#library { padding-block: var(--band); background: var(--ground-deep); }
.notes { display: grid; gap: 2.5rem; margin-top: 2rem; }
.note-item h3 { font-weight: 300; font-stretch: 78%; font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1.04; letter-spacing: -.012em; }
.note-item h3 a { transition: color .2s; }
.note-item h3 a:hover { color: var(--accent); }
.note-item p { max-width: 46ch; margin-top: .75rem; color: var(--ink-2); }
.note-item .meta { margin-top: .9rem; font-weight: 500; font-stretch: 88%; font-size: .8125rem; line-height: 1.3; }
#questions { margin-top: clamp(3rem, 6vw, 5rem); }
.qa { display: grid; gap: 0 4rem; margin-top: 1.25rem; }
.qa details { margin: 0; padding-block: .7rem; border: 0; }
.qa summary { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .4rem; list-style: none; line-height: 1.35; text-wrap: pretty; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; font-family: var(--mono); color: var(--accent); }
.qa details[open] summary { margin-bottom: 0; }
.qa details[open] summary::before { content: "-"; }
.qa summary:hover { color: var(--accent); }
.qa .short { margin: .5rem 0 .4rem 1.8rem; font-size: .9688rem; color: var(--ink-2); }
.qa .short a { white-space: nowrap; }
#library .next { margin-top: 2.5rem; }
@media (min-width: 52rem) {
  .notes { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .qa { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- the closing call */
.close { padding-block: clamp(5rem, 10vw, 9rem); }
.close-link { display: inline-block; font-weight: 660; font-stretch: 66%; font-size: clamp(2.6rem, 8.5vw, 8rem); line-height: .95; letter-spacing: -.02em; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .12em; transition: color .25s; }
.close-link:hover { color: var(--accent); }
.close p { max-width: 52ch; margin-top: 1.5rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes lamp { from { opacity: 0; transform: scale(1.025); } }
@keyframes lit { from { opacity: .22; } to { opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* On load: the headline, then the line and the buttons, while the lamp comes on. */
  .h1-a, .h1-b, .hero .lede, .hero .actions, .hero-role { animation: rise .8s var(--ease) both; }
  .h1-a { animation-delay: .05s; }
  .h1-b { animation-delay: .14s; }
  .hero .lede { animation-delay: .24s; }
  .hero .actions { animation-delay: .32s; }
  .hero-role { animation-delay: .4s; }
  .hero-figure img { animation: lamp 1.4s var(--ease) .1s both; }

  @supports (animation-timeline: view()) {
    /* The three symptoms light up one after another as they are read. */
    .statement span { animation: lit linear both; animation-timeline: view(); animation-range: entry 10% cover 42%; }
    /* Blocks arrive as they enter the screen. */
    .situations .doors li, .fig, .thesis-body li, .pillar, .index .doors li, .note-item {
      animation: arrive linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}
