@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
    --paper: #f3efe6;
    --paper-deep: #ece5d7;
    --ink: #201d19;
    --muted: #544e44;
    --rule: #cfc7b6;
    --rule-soft: #ddd6c6;
    --moss: #3c4932;
    --clay: #7a3d22;
    --gutter: clamp(62px, 10vw, 146px);
    --pad: clamp(20px, 5vw, 56px);
    --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
    --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --paper: #1a1815;
      --paper-deep: #221f1a;
      --ink: #e9e1d2;
      --muted: #b3a993;
      --rule: #3d382f;
      --rule-soft: #2c2822;
      --moss: #a9bd8f;
      --clay: #d99a76;
    }
  }

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

  html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }

  body {
    margin: 0;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
  }

  ::selection { background: #e4d7bd; color: var(--ink); }

  @media (prefers-color-scheme: dark) {
    ::selection { background: #4a4032; color: var(--ink); }
  }

  a { color: var(--moss); text-underline-offset: 4px; text-decoration-thickness: 1px; }

  a:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 4px;
    border-radius: 1px;
  }

  .skip {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
  }
  .skip:focus { left: 12px; }

  .wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--pad);
  }

  .site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .identity {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
  }

  .identity .name {
    font-family: var(--serif);
    font-size: 1.16rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.8;
  }

  .identity .role {
    font-size: 0.64rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .identity:hover .name { color: var(--clay); }

  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px clamp(10px, 2.2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    border-bottom: 1px solid transparent;
    color: var(--ink);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .site-nav a:hover { border-bottom-color: var(--clay); color: var(--clay); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
  .site-nav .motion-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--rule) 72%, var(--muted));
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    box-sizing: border-box;
    overflow: visible;
    transform: translateY(2px);
  }
  .site-nav .motion-toggle .motion-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.9;
    -webkit-mask: radial-gradient(circle at 50% 50%, #000 0 17px, transparent 22px);
    mask: radial-gradient(circle at 50% 50%, #000 0 17px, transparent 22px);
  }
  .site-nav .motion-toggle::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(from 0deg, transparent 0 250deg, color-mix(in srgb, var(--clay) 48%, var(--moss)) 300deg, transparent 330deg 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    animation: shine 5s linear infinite;
    animation-play-state: paused;
  }
  .site-nav .motion-toggle[aria-pressed="false"]:hover::before {
    opacity: 0.78;
    animation-play-state: running;
  }
  @keyframes shine {
    to { transform: rotate(360deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    .site-nav .motion-toggle[aria-pressed="false"]:hover::before { animation: none; }
  }
  .site-nav .motion-toggle::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 0%, transparent);
    transition: box-shadow 0.3s ease;
  }
  .site-nav .motion-toggle:hover::after {
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--ink) 6%, transparent),
      0 0 9px color-mix(in srgb, var(--paper) 48%, transparent);
  }
  .site-nav .motion-toggle[aria-pressed="true"] {
    border-color: var(--moss);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--moss) 20%, transparent),
      0 0 10px color-mix(in srgb, var(--moss) 17%, transparent);
  }
  .site-nav .motion-toggle:focus-visible { outline: 2px solid var(--moss); outline-offset: 4px; }
  @media (max-width: 380px) {
    .site-nav .motion-toggle { width: 34px; height: 34px; }
  }

  .identity,
  .site-nav a,
  .actions a,
  .field a,
  .log a,
  .foot-nav a,
  .mail,
  .caption,
  .status { transition: color 500ms ease, border-color 500ms ease, background-color 500ms ease; }

  main { display: block; }

  .row {
    display: grid;
    grid-template-columns: var(--gutter) minmax(0, 1fr);
  }

  .row .margin {
    padding: clamp(40px, 5vw, 58px) clamp(12px, 1.6vw, 24px) 0 0;
    text-align: right;
  }

  .margin .k {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .margin .n {
    display: block;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .row .body {
    min-width: 0;
    padding: clamp(40px, 5vw, 58px) clamp(20px, 3.4vw, 46px) clamp(40px, 5vw, 58px) clamp(20px, 3.4vw, 46px);
    border-left: 1px solid var(--rule);
  }

  .row + .row > .body { border-top: 1px solid var(--rule-soft); }

  .row + .row > .body { position: relative; }

  .row + .row > .body::before {
    display: none;
  }

  .row--hero .body {
    padding-top: clamp(46px, 7vw, 88px);
    padding-bottom: clamp(42px, 6vw, 72px);
  }

  .row--hero .margin { padding-top: clamp(52px, 7.4vw, 94px); }
  .row--hero .margin .n { color: var(--ink); font-size: clamp(1.9rem, 3.6vw, 3rem); }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 clamp(22px, 3vw, 34px);
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
  }

  .eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--rule);
  }

  h1 {
    max-width: 17ch;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.45rem, 5.7vw, 4.9rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.028em;
    text-wrap: balance;
  }

  h1 em { font-style: italic; font-weight: 300; }

  h1 .stop { color: var(--clay); }

  .hero-foot {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: end;
    margin-top: clamp(32px, 4.6vw, 52px);
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(28px, 4vw, 46px);
    border-top: 1px solid var(--rule);
  }

  .hero-proof a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "no name status"
      "no metric status";
    gap: 2px 14px;
    align-content: start;
    padding: 14px 18px 14px 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--rule-soft);
  }

  .hero-proof a + a {
    border-left: 1px solid var(--rule-soft);
    padding-left: 18px;
  }

  .hero-proof a:hover strong { color: var(--clay); }
  .hero-proof a:focus-visible { outline-offset: -2px; }

  .proof-k {
    grid-area: no;
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.8;
  }

  .hero-proof strong {
    grid-area: name;
    font-family: var(--serif);
    font-weight: 450;
    font-size: 1.04rem;
    line-height: 1.2;
  }

  .proof-m {
    grid-area: metric;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .proof-s {
    grid-area: status;
    color: var(--moss);
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.8;
  }

  .proof-s--archived { color: var(--clay); }

  .lede {
    max-width: 54ch;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.02rem, 1.3vw, 1.18rem);
    font-weight: 400;
    line-height: 1.62;
  }

  .status-line {
    margin: 0 0 18px;
    padding: 11px 0;
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .actions a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 2px 0;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .actions li + li a { border-bottom-color: transparent; color: var(--muted); }

  .actions a:hover { color: var(--clay); border-bottom-color: var(--clay); }

  .actions .arrow { font-size: 0.95rem; line-height: 1; }

  .note .section-head { margin-bottom: 22px; }

  .note-body {
    max-width: 66ch;
    font-family: var(--serif);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.68;
  }

  .note-body p { margin: 0 0 1.05em; }
  .note-body p:last-child { margin-bottom: 0; }

  .section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 32px;
  }

  h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.85rem, 3.1vw, 2.7rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .section-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.67rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .record .body {
    padding-top: clamp(32px, 4vw, 46px);
    padding-bottom: clamp(34px, 4vw, 48px);
  }

  .record .margin .n {
    color: var(--ink);
    font-size: clamp(1.7rem, 2.9vw, 2.45rem);
    letter-spacing: 0.01em;
  }

  .record-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 40px;
  }

  h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.72rem, 2.8vw, 2.5rem);
    font-weight: 450;
    line-height: 1.08;
    letter-spacing: -0.022em;
  }

  .status { margin: 4px 0 0; text-align: right; }

  .record-meta {
    flex: 1 0 100%;
    margin-top: 6px;
  }

  .record-stack {
    display: inline;
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.6;
  }

  .record-status {
    display: inline;
    margin: 0 0 0 10px;
    text-align: left;
  }

  .status-k {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.57rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .status-v {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--moss);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }

  .status--archived .status-v { color: var(--clay); }

  .record-status .status-dot {
    position: relative;
    box-shadow: 0 0 5px color-mix(in srgb, currentColor 55%, transparent);
  }

  .record-status .status-dot::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, currentColor 42%, transparent) 0%, transparent 68%);
    opacity: 0.32;
    pointer-events: none;
  }

  body:has([data-motion-toggle][aria-pressed="true"]) .record-status .status-dot::after {
    animation: status-breathe 6s ease-in-out infinite;
  }

  @keyframes status-breathe {
    0%, 100% { opacity: 0.32; transform: scale(0.84); }
    50% { opacity: 0.78; transform: scale(1.22); }
  }

  @media (prefers-reduced-motion: reduce) {
    .record-status .status-dot::after { animation: none; }
  }

  .desc {
    max-width: 66ch;
    margin: 18px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.45vw, 1.24rem);
    font-weight: 400;
    line-height: 1.62;
  }

  .caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 20px 0 0;
  }

  .caption-k {
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .caption-v {
    max-width: 66ch;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 0.98rem;
    font-style: italic;
  }

  .fields {
    margin: 30px 0 0;
    border-top: 1px solid var(--rule-soft);
  }

  .field {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 6px 24px;
    padding: 15px 0;
    border-bottom: 1px solid var(--rule-soft);
  }

  .field dt {
    padding-top: 4px;
    color: var(--muted);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .field dd {
    max-width: 72ch;
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .field-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 32px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .field-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 2px 0;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-decoration: underline;
    text-decoration-color: var(--rule);
  }

  .field-links a:hover { color: var(--clay); text-decoration-color: var(--clay); }
  .field-links .arrow { font-size: 0.88rem; }

  .log {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
  }

  .log li {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 6px 28px;
    padding: 16px 0;
    border-top: 1px solid var(--rule-soft);
  }

  .log li:last-child { border-bottom: 1px solid var(--rule-soft); }

  .decisions-log li { grid-template-columns: 250px minmax(0, 1fr); }

  .log .when {
    padding-top: 2px;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .log .what { max-width: 74ch; font-size: 0.94rem; line-height: 1.65; }
  .log strong { font-weight: 600; }

  .closing {
    max-width: 24ch;
    margin: 0 0 22px;
    font-family: var(--serif);
    font-size: clamp(1.55rem, 2.8vw, 2.25rem);
    font-weight: 300;
    line-height: 1.16;
    letter-spacing: -0.018em;
  }

  .closing em { font-style: italic; }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 2px 0;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    font-size: 0.73rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .text-link:hover { color: var(--clay); border-bottom-color: var(--clay); }

  .site-foot {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    border-top: 1px solid var(--rule);
    background: var(--paper-deep);
  }

  .site-foot::after {
    content: "";
    position: absolute;
    right: -2%;
    bottom: -26px;
    width: min(38vw, 420px);
    height: 130px;
    background-color: var(--rule);
    opacity: .32;
    pointer-events: none;
    z-index: 0;
    -webkit-mask: url("contour-footer.svg") center / 100% 100% no-repeat;
    mask: url("contour-footer.svg") center / 100% 100% no-repeat;
  }

  .foot-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px 48px;
    padding-top: clamp(40px, 5vw, 56px);
    padding-bottom: clamp(40px, 5vw, 56px);
  }

  .foot-k {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mail {
    display: inline-block;
    min-height: 44px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-decoration: underline;
    text-decoration-color: var(--rule);
  }

  .mail:hover { color: var(--clay); text-decoration-color: var(--clay); }

  .foot-meta { text-align: right; }

  .foot-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 22px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
  }

  .foot-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .foot-nav a:hover { color: var(--clay); }

  .copyright {
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.6;
  }

  .enter { animation: rise 720ms cubic-bezier(0.2, 0.65, 0.3, 1) both; }
  .enter--2 { animation-delay: 90ms; }
  .enter--3 { animation-delay: 170ms; }

  @keyframes rise {
    from { opacity: 0; transform: translate3d(0, 16px, 0); }
    to { opacity: 1; transform: none; }
  }

  @media (max-width: 820px) {
    .hero-foot { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-proof a:nth-child(3) {
      grid-column: 1 / -1;
      border-left: 0;
      padding-left: 0;
    }
    .site-head { position: static; }
    .head-inner { flex-wrap: wrap; gap: 0 20px; }
    .site-nav { width: 100%; }
    .site-nav ul { justify-content: space-between; }
    .identity .role { display: none; }
    .foot-inner { grid-template-columns: minmax(0, 1fr); }
    .site-foot::after { right: -12%; width: 80%; height: 100px; opacity: .14; bottom: -24px; }
    .foot-meta { text-align: left; }
    .foot-nav ul { justify-content: flex-start; gap: 0 20px; }
  }

  @media (max-width: 680px) {
    :root { --gutter: 0px; }
    .row { grid-template-columns: minmax(0, 1fr); }
    .row .margin {
      display: flex;
      align-items: baseline;
      gap: 12px;
      padding: 24px var(--pad) 0;
      text-align: left;
    }
    .margin .k { margin: 0; }
    .margin .n { font-size: 0.82rem; }
    .row--hero .margin { padding-top: 24px; }
    .row--hero .margin .n,
    .record .margin .n { font-size: 1.15rem; color: var(--muted); }
    .row .body {
      border-left: 0;
      padding: 10px var(--pad) clamp(38px, 6vw, 52px);
    }
    .row + .row > .body { border-top: 0; }
    .row + .row > .body::before { display: none; }
    .row + .row { border-top: 1px solid var(--rule-soft); }
    .decisions-log li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .record-stack { margin-right: 6px; }
    .record-status { margin-left: 0; }
    .row--hero .body { padding-top: 12px; }
    .hero-proof { grid-template-columns: minmax(0, 1fr); }
    .hero-proof a + a { border-left: 0; padding-left: 0; }
  }

  @media (max-width: 560px) {
    .head-inner { padding-top: 10px; padding-bottom: 4px; }
    h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); }
    .status { text-align: left; margin-top: 0; }
    .field { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 13px 0; }
    .field dt { padding-top: 0; }
    .log li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .closing { max-width: 20ch; }
  }

  @media (prefers-reduced-motion: reduce) {
    .enter { animation: none !important; }
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

/* ---------- Shared page extensions (timeline, vision, docs) ---------- */
.page-intro { padding-bottom: clamp(30px, 4vw, 46px); }
.page-intro .lede { max-width: 62ch; margin-top: 1.15rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
.foot-nav a, .mail { display: inline-block; padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 380px) {
  .site-head { padding: 10px 0; }
  .head-inner { padding-top: 8px; padding-bottom: 2px; }
  .identity .name { font-size: 1.05rem; }
  .site-nav ul { gap: 2px 4px; }
  .site-nav a { padding-top: 2px; padding-bottom: 2px; font-size: 0.54rem; letter-spacing: 0.1em; }
  .site-nav .motion-toggle { width: 34px; height: 34px; min-height: 0; padding: 0; }
}
.entries { margin: 0; padding: 0; list-style: none; }
.entries > li { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: 26px 0; border-top: 1px solid var(--rule-soft); }
.entries > li:first-child { border-top: 1px solid var(--rule); }
.entry-when { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.7; }
.entry-what h2, .entry-what h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 450; font-size: 1.25rem; line-height: 1.2; }
.entry-what h2 a { color: inherit; text-decoration: none; }
.entry-what h2 a::after { content: " →"; color: var(--muted); font-size: .72em; white-space: nowrap; }
.entry-what h2 a:hover { color: var(--clay); text-decoration: underline; text-underline-offset: 4px; }
.entry-what h2 a:hover::after { color: var(--clay); }
.entry-what p { margin: 0; color: var(--muted); max-width: 68ch; }
.entry-tag { display: inline-block; margin-top: 10px; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); border: 1px solid var(--rule); padding: 3px 8px; }
.entry-tag--archived { color: var(--clay); }
.prose { max-width: 66ch; }
.prose h2 { margin: 2.2em 0 .55em; font-family: var(--serif); font-weight: 450; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.15; letter-spacing: -.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.principles { margin: 1.4em 0 0; border-top: 1px solid var(--rule); }
.principles > div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.principles dt { font-weight: 600; color: var(--ink); }
.principles dd { margin: 0; color: var(--muted); }
@media (max-width: 820px) {
  .entries > li, .principles > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Hybrid: register + accession stem ---------- */
.row--hero { position: relative; overflow: hidden; }
.hero-contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--rule);
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  -webkit-mask: url("contour.svg") center / 100% 100% no-repeat;
  mask: url("contour.svg") center / 100% 100% no-repeat;
}
.row--hero > .margin,
.row--hero > .body { position: relative; z-index: 1; }

.row--hero .body {
  padding-top: clamp(30px, 4.4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 44px);
}
.row--hero .margin { padding-top: clamp(34px, 4.8vw, 62px); }
.hero-foot {
  margin-top: clamp(22px, 3vw, 34px);
  gap: clamp(20px, 3.4vw, 42px);
}
#work > .body {
  padding-top: clamp(26px, 3.4vw, 38px);
  padding-bottom: clamp(16px, 2.2vw, 24px);
}

#decisions > .body {
  padding-top: clamp(26px, 3.4vw, 38px);
}

.record .margin.accession {
  position: relative;
  padding-top: clamp(34px, 3.8vw, 46px);
  padding-right: 18px;
  text-align: right;
}
.accession-line {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.record .margin.accession .k { margin: 0; color: var(--muted); }
.record .margin.accession .n {
  display: inline;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.6vw, 1.4rem);
  font-weight: 400;
  letter-spacing: .01em;
}
.accession-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.record .margin.accession::after { display: none; }

.status-mark {
  position: absolute;
  top: 76px;
  right: 0;
  display: block;
  width: 32px;
  height: 11px;
  color: var(--moss);
  z-index: 1;
}
.status-mark::before,
.status-mark::after {
  content: "";
  position: absolute;
  left: 0;
}
.status-mark::before {
  top: 5px;
  width: 100%;
  height: 1px;
  background: currentColor;
}
.status-mark--complete::after {
  top: 2px;
  right: 0;
  width: 1px;
  height: 8px;
  background: currentColor;
}
.status-mark--usable::before { top: 3px; }
.status-mark--usable::after {
  top: 8px;
  width: 100%;
  height: 1px;
  background: currentColor;
}
.status-mark--progress { color: var(--moss); }
.status-mark--progress::before {
  height: 1px;
  background: repeating-linear-gradient(to right, currentColor 0 4px, transparent 4px 7px);
}
.status-mark--progress::after { display: none; }
.status-mark--archived { color: var(--clay); }
.status-mark--archived::before { height: 1px; background: currentColor; }
.status-mark--archived::after {
  display: block;
  top: 1px;
  left: 0;
  width: 100%;
  height: 9px;
  background: repeating-linear-gradient(112deg, transparent 0 4px, currentColor 4px 5px, transparent 5px 9px);
}

@media (max-width: 680px) {
  .hero-contour {
    display: block;
    opacity: .16;
    -webkit-mask: url("contour-strip.svg") center / 100% 100% no-repeat;
    mask: url("contour-strip.svg") center / 100% 100% no-repeat;
  }
  .record .margin.accession {
    padding-top: 24px;
    padding-right: var(--pad);
    text-align: left;
  }
  .record .margin.accession::after,
  .status-mark { display: none; }
  .accession-label { margin-top: 0; }
}


/* ---------- Pattern echoes ---------- */
.timeline-row { position: relative; }
.timeline-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--gutter);
  background-color: var(--rule);
  opacity: .24;
  pointer-events: none;
  z-index: 0;
  -webkit-mask: url("contour-strip.svg") center / 100% 100% no-repeat;
  mask: url("contour-strip.svg") center / 100% 100% no-repeat;
}
.timeline-row > .margin,
.timeline-row > .body { position: relative; z-index: 1; }

.page-vision { position: relative; overflow: hidden; }
.vision-contour {
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100%;
  background-color: var(--rule);
  opacity: .28;
  pointer-events: none;
  z-index: 0;
  -webkit-mask: url("contour-vision.svg") center / 100% 100% no-repeat;
  mask: url("contour-vision.svg") center / 100% 100% no-repeat;
  transform-origin: 100% 50%;
}
.page-vision .row { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .vision-contour { display: none; }
}

@media (max-width: 680px) {
  .timeline-spine { display: none; }
}

/* ---------- Case studies ---------- */
.case {
  width: min(100% - 2 * var(--pad), 980px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) 0 88px;
}
.case-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}
.case-head h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 20px;
  color: var(--moss);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case-meta span + span { color: var(--muted); }
.case .lede { max-width: 62ch; margin: 0; }
.case-section { margin-top: 34px; max-width: 72ch; }
.case-section h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 450;
  font-size: 1.35rem;
}
.case-section p, .case-section li { color: var(--muted); }
.case-section ul { margin: 0; padding-left: 1.15em; }
.case-section li { margin-bottom: 7px; }
.case-section strong { color: var(--ink); font-weight: 600; }
.case-figure {
  margin: 40px 0;
  padding: 20px 0 14px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.diagram-scroll { overflow-x: auto; scrollbar-width: thin; }
.case-figure svg { display: block; width: 820px; max-width: none; height: auto; }
.d-box rect { fill: var(--paper); stroke: var(--rule); stroke-width: 1; }
.d-box text { fill: var(--ink); font-family: var(--sans); font-size: 13px; }
.d-box .d-title { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.d-box .d-label { fill: var(--muted); font-size: 11px; letter-spacing: 0.02em; }
.d-arrow { fill: none; stroke: var(--muted); stroke-width: 1; }
.case-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}
.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
}
.case-links a { min-height: 24px; }
@media (max-width: 680px) {
  .case { padding-top: 28px; }
  .case-section { margin-top: 28px; }
}

/* ---------- 404 ---------- */
.notfound {
  width: min(100% - 2 * var(--pad), 900px);
  margin: 0 auto;
  padding: clamp(64px, 12vw, 150px) 0;
}
.notfound h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.notfound .lede { max-width: 54ch; margin: 0 0 28px; }
.notfound .actions { margin-top: 0; }

/* ---------- CV ---------- */
.resume {
  width: min(100% - 2 * var(--pad), 920px);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 76px) 0 88px;
}
.resume-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 34px;
}
.resume-head h1 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.resume-role {
  margin: 0 0 14px;
  font-family: var(--mono, "SFMono-Regular", Consolas, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}
.resume-contact {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.resume-download { margin: 0; font-size: 0.82rem; }
.resume-section { margin-top: 36px; }
.resume-section h2 {
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-weight: 450;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.resume-section p { margin: 0; max-width: 78ch; color: var(--muted); }
.resume-skills { margin: 0; }
.resume-skills > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.resume-skills dt { color: var(--ink); font-weight: 600; font-size: 0.82rem; }
.resume-skills dd { margin: 0; color: var(--muted); font-size: 0.9rem; }
.resume-entry { margin-top: 22px; }
.resume-entry:first-of-type { margin-top: 0; }
.resume-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
}
.resume-entry h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 450;
  font-size: 1.12rem;
}
.resume-entry-head span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.resume-stack { margin: 4px 0 8px; color: var(--moss); font-size: 0.82rem; }
.resume-entry ul { margin: 8px 0 0; padding-left: 1.1em; }
.resume-entry li { margin-bottom: 6px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 680px) {
  .resume-skills > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
}

@media print {
  .site-head, .site-foot, .skip, .resume-download { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  .resume { width: 100%; padding: 0; font-size: 13.5px; }
  .resume-head { border-color: #bbb; }
  .resume-head h1 { font-size: 2.5rem; }
  .resume-section { margin-top: 18px; break-inside: auto; }
  .resume-section h2 { margin-bottom: 8px; padding-top: 8px; font-size: 1rem; }
  .resume-entry { margin-top: 12px; }
  .resume-entry li { margin-bottom: 3px; font-size: 0.82rem; line-height: 1.45; }
  .resume-contact, .resume-section p, .resume-entry li, .resume-skills dd, .resume-entry-head span { color: #222 !important; }
  .resume-section h2 { border-color: #111; }
  .resume-entry { break-inside: avoid; }
  a { color: #111 !important; text-decoration: none !important; }
}






/* Edition 2: unruled hero, expanded to the page edges */
.row--hero { grid-template-columns: minmax(0, 1fr); }
.row--hero .margin { display: none; }
.row--hero .body {
  border-left: 0;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.site-head .wrap { max-width: none; }

.contour-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.has-contour-motion { animation: none !important; }

#decisions { scroll-margin-top: 96px; }

h3[id] { scroll-margin-top: 96px; }
