/* Hallmark · shape: Split Studio, simplified by the owner (intro, apps in two mirrored panels, TELO as a system diagram, skills and certifications, close) · genre: editorial · theme: Studio (deal 1/3, seed personal-portfolio-self-taught-software-7b60·6b9506ff·2026-11-09·r0) · redesign: full
 * hero: Stage (name and line beside the portrait) · nav: slab · footer: letter close, two columns · imagery: the user's portrait 1 · screenshots 7 (Play Store assets and the help centre's sample-data guide) · signature: the Dailies phones fanned beside their pitch, mirrored for the other apps
 * axes: light/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · job: hire · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E5 S5 R5 V4 · weakest: P, a portfolio argues little; it leads with shipped apps and the business they run on */
/* Hallmark · dropped https://linkedin.com/in/matisseduffield · not the owner's profile; they are signing up and will send the real address */
/* Hallmark · dropped #contact, #projects, #contact-h, #projects-h, #skills-h, #y, #work, #what · anchors of unpublished drafts nobody links to */
/* Hallmark · dropped contact, contact-h, projects, projects-h, skills-h, y, work, work-h · ids of the same unpublished drafts; nothing reads them */
/* Hallmark · hero-review: fix · 5 findings · 5 resolved · finish-review: subagent · 8 findings · 8 resolved · final-review: subagent · 8 findings · 8 resolved */
@import url("../tokens.css");
@import url("../base.css");

:root {
  --nav-h: 64px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mark-l: 8px; --mark-o: 10px;
}

/* Proof ground: dot grid under grain, fading before the next section */
.proof { background-image: var(--grain), radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px); background-size: 160px 160px, 24px 24px; }

/* Crop marks: eight ticks set off each corner */
.crop { position: relative; }
.crop::before {
  content: ""; position: absolute; inset: calc(-1 * var(--mark-o) - var(--mark-l)); pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--color-mark), var(--color-mark)) 0 calc(var(--mark-l) + var(--mark-o)) / var(--mark-l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(var(--mark-l) + var(--mark-o)) 0 / 1px var(--mark-l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 100% calc(var(--mark-l) + var(--mark-o)) / var(--mark-l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(100% - var(--mark-l) - var(--mark-o)) 0 / 1px var(--mark-l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 0 calc(100% - var(--mark-l) - var(--mark-o)) / var(--mark-l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(var(--mark-l) + var(--mark-o)) 100% / 1px var(--mark-l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 100% calc(100% - var(--mark-l) - var(--mark-o)) / var(--mark-l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(100% - var(--mark-l) - var(--mark-o)) 100% / 1px var(--mark-l) no-repeat;
}

/* Controls: printed, a rule inset inside the border */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: transparent; color: var(--color-ink);
  font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.link { color: var(--color-ink); text-decoration-color: var(--color-rule); transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-accent); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Nav: an ink slab */
.slab { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-ink); color: var(--color-paper); }
.slab .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.slab__name { font: var(--display-weight) var(--text-lg)/1 var(--font-display); letter-spacing: -0.01em; color: var(--color-paper); text-decoration: none; white-space: nowrap; }
.slab__links { display: flex; align-items: center; gap: var(--space-lg); }
.slab__links a { color: var(--color-paper); font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.slab__links a:not(.slab__mail):hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }
.slab a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.slab__mail { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid color-mix(in oklab, var(--color-paper) 55%, transparent); border-radius: 2px; transition: border-color var(--dur-short) var(--ease-out); }
.slab__mail:hover { border-color: var(--color-accent); }
.slab__mail:active { transform: translateY(1px); }


/* Every section: a pane held while the work beside it scrolls */
.stack { padding-block: var(--section-gap); }
.stack--band { background: var(--color-paper-2); }
.stack .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.stack__pane { position: sticky; top: calc(var(--nav-h) + var(--space-xl)); display: grid; gap: var(--space-lg); justify-items: start; }
.stack__pane h2 { font-size: var(--text-section); }
.stack__lead { max-width: 30ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }
.stack__note { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.stack__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.stack__pane > .btn { margin-top: var(--space-md); }

/* The first stack is the hero: the name, its tags and the portrait */
.stack--hero { position: relative; isolation: isolate; background-image: none; padding-block: var(--space-2xl); }
.stack--hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain), radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px); background-size: 160px 160px, 24px 24px; -webkit-mask-image: linear-gradient(var(--color-ink) 75%, transparent); mask-image: linear-gradient(var(--color-ink) 75%, transparent); }
.stack--hero .container { min-height: calc(100dvh - var(--nav-h) - 2 * var(--space-2xl)); align-items: center; }
.stack--hero .stack__pane { position: static; }
.stack--hero h1 { max-width: 8ch; font-size: clamp(3.5rem, 7.2vw, 7rem); line-height: 1.0; }

/* The pictures: crop-marked, redlined, each at its own shape */
.stack__shots { display: grid; gap: var(--space-2xl); padding: var(--space-md); }
.stack__shots--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); }
.stack__shots--pair > :nth-child(2) { margin-top: var(--space-4xl); }
.shot { margin: 0; }
.shot--tall { width: min(100%, 30rem); justify-self: center; }
.stack--hero .shot--tall { width: min(100%, calc((100dvh - var(--nav-h) - 3 * var(--space-2xl)) * 1000 / 1197)); }
.shot--sub { width: 78%; justify-self: end; }
.shot--narrow { width: min(100%, 15rem); justify-self: end; margin-top: calc(-1 * var(--space-4xl)); margin-right: var(--space-xl); position: relative; z-index: var(--z-raised); }
.shot__frame { border-radius: var(--radius-card); box-shadow: var(--shadow-sheet); }
.shot__frame > img { object-position: 50% 0; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.shot__frame--phone { aspect-ratio: 780 / 1688; }
.shot__frame--wide { aspect-ratio: 1440 / 770; }
.shot__frame--phone-short { aspect-ratio: 780 / 1180; }

/* Skills: grouped marks, inline, beside the certifications */
.skillset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-2xl); }
.skillset__group { display: grid; gap: var(--space-md); align-content: start; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-ink); }
.skillset__group h3 { font-size: var(--text-title); }
.marks { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); margin: 0; padding: 0; list-style: none; }
.marks li { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.marks i { width: 20px; height: 20px; background: var(--color-ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.marks i.is-text { display: none; }

/* Tags: a tool with its mark, or a feature in a word or two */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 32px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-hi); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.chip i { flex-shrink: 0; width: 16px; height: 16px; background: var(--color-ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.chips--plain .chip { background: transparent; border-style: dashed; color: var(--color-ink-2); }


/* Redlines: each capture's real size, drawn in the construction colour */
.redline { position: relative; margin-top: var(--space-md); height: var(--space-md); border-inline: var(--rule-hair) solid var(--color-accent); }
.redline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--rule-hair); background: var(--color-accent); }
.redline span { position: relative; display: table; margin-inline: auto; padding-inline: var(--space-xs); background: var(--color-paper); font-size: var(--text-xs); font-weight: 500; line-height: var(--space-md); color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack--band .redline span { background: var(--color-paper-2); }

/* The close: a letter on the proof */
.close { padding-block: var(--section-gap) var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); }
.close .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-lg) var(--space-2xl); align-items: end; }
.close h2 { max-width: 18ch; font-size: var(--text-display-s); }
.close__line { grid-column: 1; }
.close__links { grid-column: 2; grid-row: 1 / span 2; align-self: end; flex-direction: column; }
.close__sign { grid-column: 1 / -1; }
.close__mail { color: var(--color-ink); text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.close__mail:hover { text-decoration-thickness: 3px; }
.close__mail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.close__line { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-ink-2); }
.close__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin: 0; padding: var(--space-lg) 0 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.close__sign { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
  .stack .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .stack__pane { position: static; }
  .stack--hero .container { min-height: 0; }
  .stack--hero .shot--tall { order: -1; width: min(70%, 20rem); justify-self: start; }
  .stack--hero .stack__shots { order: -1; }
  .slab__links a.slab__hide { display: none; }
}
@media (max-width: 40rem) {
  :root { --mark-o: 4px; --mark-l: 6px; }
  .slab__links { gap: var(--space-md); }
  .stack__shots--pair { gap: var(--space-md); }
  .stack__shots--pair > :nth-child(2) { margin-top: var(--space-2xl); }
  .shot--narrow { width: min(60%, 12rem); margin-top: calc(-1 * var(--space-2xl)); margin-right: var(--space-sm); }
  .shot--sub { width: 88%; }
  .marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .link, .slab__mail { transition: none; }
}

/* Printed, the page is a short CV: words first, no chrome or screenshots */
@media print {
  .slab, .stack__shots, .stack__actions, .stack__pane > .btn, .close__links, .chip i { display: none !important; }
  .stack--hero::before, .close.proof { background: none; }
  body { background: none; font-size: 10.5pt; line-height: 1.4; }
  .stack, .close { padding-block: var(--space-md); background: none; border: 0; }
  .stack .container { display: block; min-height: 0; }
  .stack__pane { position: static; gap: var(--space-xs); }
  .stack--hero h1 { font-size: 2.6rem; max-width: none; }
  .stack__pane h2 { font-size: 1.3rem; }
  .close h2 { font-size: 1.25rem; }
  .stack__lead, .close__line { font-size: 1rem; }
  .chip { min-height: 0; padding: 0 var(--space-xs); }
  section { break-inside: avoid; }
}

/* Apps: two panels, the second flipped; phones fanned like a hand */
.apps { padding-block: var(--section-gap-s) var(--section-gap); }
.apps__title { margin-bottom: var(--space-md); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; padding-block: var(--space-xl); }
.panel + .panel { border-top: var(--rule-hair) solid var(--color-rule); margin-top: var(--space-2xl); }
.panel--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.panel__text { display: grid; gap: var(--space-lg); justify-items: start; }
.panel__text h3 { font-size: var(--text-3xl); }
.panel__text .btn { margin-top: var(--space-sm); }
.panel__lead { max-width: 34ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }
.phones { display: flex; justify-content: center; align-items: flex-end; padding: var(--space-2xl) var(--space-md) var(--space-md); }
.phone { flex: 0 0 33%; margin: 0 -3%; border-radius: 22px; overflow: hidden; background: var(--color-paper-hi); box-shadow: var(--shadow-sheet); outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; }
.phone img { width: 100%; height: auto; }
.phone:nth-child(1) { transform: rotate(-4deg) translateY(var(--space-md)); }
.phone:nth-child(2) { position: relative; z-index: var(--z-raised); flex-basis: 37%; transform: translateY(calc(-1 * var(--space-lg))); }
.phone:nth-child(3) { transform: rotate(4deg) translateY(var(--space-md)); }
.applist { margin: 0; width: 100%; border-top: var(--rule-hair) solid var(--color-ink); }
.applist > div { display: grid; grid-template-columns: minmax(0, 6rem) minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.applist dt { font: var(--display-weight) var(--text-lg)/1.2 var(--font-display); }
.applist dd { margin: 0; color: var(--color-ink-2); }

/* TELO: the system as a diagram, people on the left, services on the right, the portal between */
.telo { padding-block: var(--section-gap); background: var(--color-paper-2); }
.telo__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: end; margin-bottom: var(--space-3xl); }
.telo__logo { width: 40px; height: 40px; margin-bottom: var(--space-md); }
.telo__head h2 { max-width: none; }
.telo__lead { margin-top: var(--space-sm); max-width: 52ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }
.system { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--space-2xl); align-items: start; }
.system__label { margin-bottom: var(--space-md); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.nodes { display: grid; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.node { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--space-sm); row-gap: var(--space-3xs); align-items: center; padding: var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-hi); }
.node > svg, .node__mark { grid-row: span 2; width: 24px; height: 24px; color: var(--color-ink); }
.node__mark { background: var(--color-ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.node b { font-weight: 500; color: var(--color-ink); }
.node span { font-size: var(--text-sm); color: var(--color-muted); }
.nodes--in .node::after, .nodes--out .node::before { content: ""; position: absolute; top: 50%; width: calc(var(--space-2xl) + 1px); height: var(--rule-hair); background: var(--color-accent); }
.nodes--in .node::after { left: 100%; }
.nodes--out .node::before { right: 100%; }
.system__hub { position: relative; margin: 0; padding-top: calc(var(--text-sm) * 1.55 + var(--space-md)); }
.system__frame { aspect-ratio: 4 / 3; border-radius: var(--radius-card); box-shadow: var(--shadow-sheet); }
.system__frame > img { object-position: 92% 0; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.system__hub figcaption { display: grid; gap: var(--space-3xs); margin-top: var(--space-md); text-align: center; }
.system__hub figcaption b { font: var(--display-weight) var(--text-title)/1.2 var(--font-display); color: var(--color-ink); }
.system__hub figcaption span { font-size: var(--text-sm); color: var(--color-muted); }

/* Skills and certifications */
.skills { padding-block: var(--section-gap); }
.skills h2 { margin-bottom: var(--space-2xl); }
.skills__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: start; }
.certs h3 { font-size: var(--text-title); }
.certs { display: grid; gap: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-ink); }
.certs h3 { font-size: var(--text-title); }
.certs__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-sm); }
.certs__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-sm); align-items: center; padding: var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-hi); font-weight: 500; color: var(--color-ink); }
.certs__list svg { width: 24px; height: 24px; color: var(--color-ink); }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); }

@media (max-width: 60rem) {
  .panel, .panel--flip, .skills__grid, .system { grid-template-columns: minmax(0, 1fr); }
  .system__hub { order: -1; }
  .nodes--in .node::after, .nodes--out .node::before { display: none; }
  .panel--flip .phones { order: 2; }
}
@media (max-width: 40rem) {
  .phone { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .phone { transition: none; } }
@media print {
  .phones, .system__hub, .telo__logo, .telo__head .btn, .panel__text .btn { display: none !important; }
  .apps, .telo, .skills { padding-block: var(--space-md); background: none; }
  .panel, .panel--flip, .telo__head, .system, .skills__grid { display: block; padding-block: var(--space-xs); }
  .node, .certs__list li { padding: var(--space-2xs) 0; border: 0; background: none; }
  .nodes--in .node::after, .nodes--out .node::before { display: none; }
  .panel__text h3, .apps__title, .telo h2, .skills h2 { font-size: 1.3rem; }
}

@media (max-width: 60rem) {
  .stack--hero .shot--tall { width: 100%; }
  .stack--hero .shot__frame { aspect-ratio: 4 / 3 !important; }
  .stack--hero .shot__frame > img { object-position: 50% 28% !important; }
  .close .container { grid-template-columns: minmax(0, 1fr); }
  .close__links { grid-column: 1; grid-row: auto; flex-direction: row; }
  .telo__head { grid-template-columns: minmax(0, 1fr); }
  .telo__head .btn { justify-self: start; }
  .skillset { grid-template-columns: minmax(0, 1fr); }
  .system__hub { padding-top: 0; }
}
