/* Hallmark · v2.0.0 · shape: Index-First portfolio with one opened case · genre: atmospheric (from theme) · theme: kiln, material only (deal: manual) · palette: the user's brand (Midnight Abyss, Almond Light, Golden Sandalwood, Green Velvet) · posture: restrained · hero: Stage, the real course screen · nav: edge-aligned · footer: colophon block · signature: the Before You Promise choice screen · job: hire */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, the hero states a scope; the case study carries the argument (promise only what you can keep) */
/* waive 37: Boska is not on Google Fonts and the artifact host only loads Google Fonts; Gloock stands in as the high-contrast display serif */
/* waive 41: the brand has no saturated accent; Almond Light is the one fill and Golden Sandalwood the rule colour, by the user's own palette */
/* waive 58: about 540 visible words on the home page; the work list and experience table keep their true counts */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-3xl); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.6 var(--font-body); font-synthesis: none; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: var(--text-display); max-width: 14ch; }
h2 { font-size: var(--text-section); max-width: 20ch; }
h3 { font-size: var(--text-title); line-height: 1.15; max-width: 40ch; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--color-sandal); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--color-sandal); color: var(--color-paper); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 36ch; }
.small { font-size: var(--text-sm); color: var(--color-muted); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Controls */
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); font: 500 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-focus); }
.btn--ghost { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule); }
.btn--ghost:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-pill); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) { .btn, a { transition: none; } }

/* Nav */
.nav { position: relative; z-index: var(--z-sticky-nav); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 80px; }
.wordmark { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.nav ul { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.nav ul a:not(.btn) { text-decoration: none; color: var(--color-ink-2); }
.nav ul a:not(.btn):hover, .nav ul a[aria-current="page"] { color: var(--color-ink); }

/* Screens and photographs */
.screen { margin: 0; min-width: 0; }
.screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: min(1.6vw, var(--radius-card)); outline: var(--rule-hair) solid var(--color-frame); outline-offset: -1px; background: var(--color-paper-3); }
.screen--lift img { box-shadow: var(--shadow-card); }
.screen figcaption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); max-width: 62ch; }

/* Hero */
.hero .container { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-3xl); align-items: center; min-height: calc(100svh - 80px); padding-block: var(--space-xl) var(--space-2xl); }
.hero__text { display: grid; gap: var(--space-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }

/* Sections */
.section { padding-block: var(--section-gap) 0; }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }

/* Case study */
.case__intro { grid-column: 1 / 8; display: grid; gap: var(--space-md); }
.case__brief { grid-column: 1 / 11; margin: var(--space-3xl) 0 0; }
.case__brief blockquote { margin: 0; font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1.06; letter-spacing: -0.02em; max-width: 24ch; text-wrap: balance; hanging-punctuation: first; }
.case__brief figcaption { margin-top: var(--space-lg); color: var(--color-ink-2); }
.case__problem { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); margin-top: var(--space-3xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.case__problem h3 { grid-column: 1 / 5; }
.case__problem p { grid-column: 6 / 12; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 46ch; }
.moves { grid-column: 1 / 13; margin: var(--space-3xl) 0 0; padding: 0; list-style: none; counter-reset: move; display: grid; gap: var(--space-3xl); }
.moves > li { counter-increment: move; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
.moves__text { grid-column: 1 / 5; display: grid; gap: var(--space-sm); align-content: center; }
.moves__text::before { content: counter(move); font-family: var(--font-display); font-size: var(--text-section); line-height: 0.9; color: var(--color-sandal); font-variant-numeric: lining-nums; margin-bottom: var(--space-xs); }
.moves__text p { color: var(--color-ink-2); max-width: 40ch; }
.moves .screen { grid-column: 6 / 13; }
.case__close { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); margin-top: var(--space-3xl); padding: var(--space-xl); background: var(--color-paper-3); border-radius: var(--radius-well); align-items: center; }
.case__close div { grid-column: 1 / 8; display: grid; gap: var(--space-xs); }
.case__close p { color: var(--color-ink-2); max-width: 58ch; }
.case__close .actions { grid-column: 9 / 13; display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: flex-end; }

/* Work index */
.index { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.index li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.index .name { grid-column: 1 / 8; font-family: var(--font-display); font-size: var(--text-title); line-height: 1.2; }
.index .kind { grid-column: 8 / 10; color: var(--color-ink-2); }
.index .where { grid-column: 10 / 13; color: var(--color-muted); }

/* Services, two by two */
.wells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; }
.well { background: var(--color-paper-3); border-radius: var(--radius-well); padding: var(--space-xl); display: grid; gap: var(--space-sm); align-content: start; min-height: 220px; }
.well dt { font-family: var(--font-display); font-size: var(--text-title); line-height: 1.15; }
.well dd { margin: 0; color: var(--color-ink-2); max-width: 46ch; }
.services__note { margin-top: var(--space-xl); color: var(--color-ink-2); }

/* Statement band */
.band { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.statement { grid-column: 1 / 11; font-family: var(--font-display); font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; }
.statement-meta { grid-column: 1 / 11; margin-top: var(--space-xl); color: var(--color-ink-2); }

/* Experience table */
.log { width: 100%; border-collapse: collapse; }
.log th { text-align: left; font: 500 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); padding: 0 var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.log td { padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.log td.yrs { font-family: var(--font-display); font-size: 1.25rem; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; width: 16%; }
.log td.role { font-weight: 500; width: 34%; }
.log td.where { color: var(--color-ink-2); }
.edu { margin-top: var(--space-xl); color: var(--color-ink-2); }

/* Contact */
.contact { padding-block: var(--section-gap-l) var(--section-gap); }
.contact .container { align-items: center; }
.contact__photo { grid-column: 1 / 5; margin: 0; }
.contact__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: min(1.6vw, var(--radius-card)); outline: var(--rule-hair) solid var(--color-frame); outline-offset: -1px; background: var(--color-paper-3); }
.contact__body { grid-column: 6 / 13; display: grid; gap: var(--space-xl); min-width: 0; }
.contact__mail { font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1; letter-spacing: -0.03em; overflow-wrap: anywhere; min-width: 0; }
.contact__mail a { text-decoration-thickness: 2px; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); }
.contact__row p { color: var(--color-ink-2); }
.status { min-height: 1lh; }

/* Footer */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl); }
.foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); align-items: baseline; }
.foot ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot a { text-decoration: none; color: var(--color-ink-2); }
.foot a:hover { color: var(--color-ink); }

/* Blog index */
.posts { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.posts:empty { display: none; }
.posts__empty { padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); max-width: none; }
.posts li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xs); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.posts time { grid-column: 1 / 3; color: var(--color-muted); font-size: var(--text-sm); padding-top: var(--space-2xs); }
.posts h2 { grid-column: 3 / 10; font-size: var(--text-title); line-height: 1.2; max-width: 34ch; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; text-decoration-color: var(--color-sandal); }
.posts p { grid-column: 3 / 10; color: var(--color-ink-2); max-width: 60ch; }

/* Blog post */
.post-head { padding-block: var(--space-3xl) var(--space-2xl); }
.post-head .container { display: grid; gap: var(--space-lg); }
.post-head h1 { font-size: var(--text-display-s); max-width: 22ch; }
.post-meta { color: var(--color-muted); font-size: var(--text-sm); }
.prose { max-width: var(--measure-prose); font-size: 1.125rem; line-height: 1.72; color: var(--color-ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 2rem; line-height: 1.12; color: var(--color-ink); margin-top: 2.2em; max-width: 26ch; }
.prose h3 { font-size: 1.375rem; color: var(--color-ink); margin-top: 1.8em; }
.prose strong { color: var(--color-ink); font-weight: 500; }
.prose a { color: var(--color-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-inline: 0; padding-left: var(--space-lg); border-left: 2px solid var(--color-sandal); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; color: var(--color-ink); }
.prose figure { margin-inline: 0; }
.prose figure img { border-radius: var(--radius-well); outline: var(--rule-hair) solid var(--color-frame); outline-offset: -1px; }
.prose figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.prose code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 4px; background: var(--color-paper-3); color: var(--color-ink); }
.prose hr { border: 0; border-top: var(--rule-hair) solid var(--color-rule); margin-block: 2.4em; }
.post-end { margin-top: var(--space-3xl); padding: var(--space-xl); background: var(--color-paper-3); border-radius: var(--radius-well); display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; justify-content: space-between; max-width: var(--measure-prose); }
.post-end p { color: var(--color-ink-2); max-width: 40ch; }
.fill { white-space: nowrap; padding: 0 0.25em; border: 1px dashed var(--color-muted); border-radius: 3px; color: var(--color-muted); }

/* One reveal on the home page: the work list */
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Under 60rem */
@media (max-width: 60rem) {
  .nav ul li.hide-s { display: none; }
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; padding-block: var(--space-lg) var(--space-xl); }
  .case__intro, .case__brief, .statement, .statement-meta, .contact__photo, .contact__body { grid-column: 1 / -1; }
  .case__problem, .moves > li, .case__close { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .case__problem h3, .case__problem p, .moves__text, .moves .screen, .case__close div, .case__close .actions { grid-column: 1 / -1; }
  .case__close { padding: var(--space-lg); }
  .case__close .actions { justify-content: flex-start; }
  .moves { gap: var(--space-2xl); }
  .index li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xs); }
  .index .name, .index .kind, .index .where { grid-column: 1 / -1; }
  .wells { grid-template-columns: minmax(0, 1fr); }
  .well { min-height: 0; padding: var(--space-lg); }
  .log thead { display: none; }
  .log, .log tbody, .log tr, .log td { display: block; width: auto; }
  .log td.yrs, .log td.role { width: auto; }
  .log tr { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .log td { padding: 0; border: 0; }
  .log td.yrs { margin-bottom: var(--space-2xs); }
  .contact .container { row-gap: var(--space-xl); }
  .contact__photo { max-width: 20rem; }
  .contact__mail { font-size: clamp(1.5rem, 7vw, 2.5rem); overflow-wrap: normal; }
  .posts li { grid-template-columns: minmax(0, 1fr); }
  .posts time, .posts h2, .posts p { grid-column: 1 / -1; }
}
