@font-face {
  font-family: Field Roman;
  src: url("assets/lmroman12-regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: Field Roman;
  src: url("assets/lmroman12-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Field Sans;
  src: url("assets/NotoSans-Regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: Field Sans;
  src: url("assets/NotoSans-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #f6f2e9;
  --ink: #27251f;
  --muted: #5c5549;
  --rust: #a53b24;
  --line: #cfc4b3;
  --dark: #282a22;
  --serif: Field Roman, Georgia, serif;
  --sans: Field Sans, system-ui, sans-serif;
  --mono: ui-monospace, "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font: 16px/1.62 var(--sans);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.link-icon { display: inline-block; vertical-align: -.09em; }
a { color: inherit; text-underline-offset: .22em; }
button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid #a53b24; outline-offset: 5px; }
::selection { background: #ead199; color: var(--ink); }
section[id], article[id] { scroll-margin-top: 24px; }
.wrap { width: min(1120px, calc(100% - 108px)); margin: 0 auto; }
.skip { position: fixed; z-index: 3; top: 8px; left: 8px; padding: 10px 18px; background: white; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  border-bottom: 1px solid var(--ink);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { font: 24px/.98 var(--serif); letter-spacing: -.025em; }
.brand small { display: block; margin-top: 4px; font: 9px/1.1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.masthead nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.masthead nav a, .nav-contact { font-size: 13px; font-weight: 700; text-decoration: none; }
.masthead nav a:hover, .nav-contact:hover, .text-link:hover { color: var(--rust); }
.nav-contact { justify-self: end; border: 1px solid var(--line); padding: 8px 13px; white-space: nowrap; }
.nav-contact span { margin-left: 7px; color: var(--rust); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .63fr);
  align-items: center;
  gap: 7%;
  padding: clamp(50px, 6.2vw, 92px) 0 clamp(46px, 5.6vw, 80px);
}
.eyebrow, .micro, .art-meta, .site-footer, figcaption { font: 700 11px/1.5 var(--mono); letter-spacing: .095em; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--rust); }
.eyebrow span:not(.dot) { width: 23px; height: 1px; background: currentColor; opacity: .55; }
.dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.hero h1 {
  margin: 19px 0 15px;
  font-size: clamp(60px, 8.2vw, 120px);
  line-height: .87;
  letter-spacing: -.081em;
}
.hero h1 em { display: inline-block; padding-right: .1em; }
.hero h1 em span, .chapter h2 em { color: var(--rust); }
.hero-lead { max-width: 450px; margin-top: 25px; color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 45px;
  padding: 9px 16px;
  border: 1px solid transparent;
  font: 700 13px/1.3 var(--sans);
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.button-dark { background: var(--dark); color: #fff8ec; }
.button-dark:hover { background: var(--rust); }
.text-link {
  display: inline;
  font-size: 13px;
  font-weight: 700;
  text-decoration-thickness: 1px;
}
.text-link span { display: inline-block; margin-left: 5px; color: var(--rust); }
.portrait { width: 100%; max-width: 350px; justify-self: end; margin-right: 9px; }
.portrait-frame {
  position: relative;
  padding: 9px;
  border: 1px solid #a89b87;
  background: #ebe1d0;
  box-shadow: 8px 8px 0 #e8dfd0;
}
.portrait-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.portrait-star { position: absolute; top: 12px; right: -31px; width: 68px; color: #d6ab68; filter: drop-shadow(2px 2px 0 #38280e32); }
figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 16px 0 0; color: var(--muted); font-size: 10px; }
.now-strip {
  display: grid;
  grid-template-columns: .73fr 1fr 1fr 1.05fr;
  border-block: 1px solid var(--line);
}
.now-strip > * { padding: 16px clamp(12px, 2vw, 24px); }
.now-strip > * + * { border-left: 1px solid var(--line); }
.now-strip div span, .now-strip strong { display: block; }
.now-strip strong { font-size: 14px; }
.now-strip div span { color: var(--muted); font-size: 12px; }
.now-label { display: flex; align-items: center; gap: 10px; color: var(--rust); padding-left: 0; }
.chapter { margin: clamp(66px, 8vw, 114px) 0 0; }
.chapter-head { margin-bottom: 25px; }
.chapter h2, .contact h2 {
  margin-top: 12px;
  font-size: clamp(46px, 6vw, 84px);
  line-height: .97;
  letter-spacing: -.063em;
}
.project {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fbf7ef;
}
.project-stealth, .blog-entry {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}
.project-stealth .project-copy, .blog-entry .project-copy {
  align-self: center;
  padding: clamp(22px, 4.5vw, 54px);
}
.project-art {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: 236px;
  padding: 40px 18px 18px;
  isolation: isolate;
}
.art-meta { position: absolute; top: 14px; left: 17px; right: 17px; display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.cafe-art {
  grid-template-rows: 1fr auto;
  background-color: #efd39a;
  background-image: radial-gradient(ellipse at center, #fae5b5, transparent 68%), radial-gradient(#84503550 .7px, transparent .9px);
  background-size: auto, 9px 9px;
  color: #562f20;
}
.art-cup { width: min(184px, 60%); height: auto; }
.cafe-launch { background: #fdf2d6; color: #402820; border-color: #653d28; box-shadow: 3px 3px 0 #653d28; }
.cafe-launch:hover { background: #402820; color: #fdf2d6; }
.cafe-launch span { font-size: 17px; line-height: 1; }
.stealth-art { background: #31392e; color: #e3e4cb; overflow: hidden; }
.stealth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .6;
  background-image: linear-gradient(#e1e3b622 1px, transparent 1px), linear-gradient(90deg, #e1e3b622 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(0deg, #000, transparent);
}
.stealth-mark { width: min(240px, 82%); height: auto; }
.project-copy { padding: 22px 24px 25px; }
.project-tag { color: var(--rust); }
.project-copy h3 { margin: 9px 0 7px; font-size: 38px; letter-spacing: -.05em; line-height: 1; }
.project-copy > p:not(.micro) { max-width: 49ch; color: var(--muted); font-size: 14px; }
.project-copy .text-link { display: inline-block; margin-top: 14px; }
.blog-art {
  grid-template-rows: 1fr;
  transition: background-color .16s ease;
}
.blog-art:hover { background-color: #e7bf7c; }
.blog-art .art-cup { width: min(162px, 56%); }
.blog-entry h3 a { text-decoration: none; }
.blog-entry h3 a:hover { color: var(--rust); }
.blog-links { display: flex; flex-wrap: wrap; gap: 7px 20px; margin-top: 15px; }
.blog-links .text-link { margin: 0; }

.article-wrap { max-width: 820px; }
.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink);
}
.post-nav nav a { font-size: 13px; font-weight: 700; white-space: nowrap; }
.post-nav nav a:hover { color: var(--rust); }
.post-nav nav .link-icon { color: var(--rust); }
.post-header { padding: clamp(42px, 7vw, 76px) 0 24px; }
.post-header h1 {
  margin: 15px 0 7px;
  font-size: clamp(53px, 8vw, 94px);
  line-height: .94;
  letter-spacing: -.067em;
}
.post-header h1 em { color: var(--rust); }
.post-header > p:not(.eyebrow) { max-width: 38ch; color: var(--muted); font-size: clamp(16px, 2.2vw, 21px); line-height: 1.5; }
.post-byline { margin-top: 14px; color: var(--muted); }
.post-art { min-height: 250px; border: 1px solid #c7a571; }
.post-prose { max-width: 67ch; margin: 24px auto 38px; color: var(--muted); }
.post-prose p + p { margin-top: 12px; }
.case-note {
  margin-bottom: 34px;
  padding: clamp(20px, 5vw, 46px);
  background: #ede6d8;
  border: 1px solid var(--line);
}
.case-intro h2 { margin: 11px 0 10px; font-size: clamp(40px, 5.5vw, 65px); line-height: .97; letter-spacing: -.055em; }
.case-intro > p:last-child { max-width: 67ch; }
.case-intro a { color: var(--rust); font-weight: 700; }
.case-note p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.case-steps { margin: 23px 0; padding: 0; list-style: none; }
.case-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 11px; border-top: 1px solid #cbbfaa; padding: 14px 0; }
.case-steps li:last-child { border-bottom: 1px solid #cbbfaa; }
.case-steps h3 { font: 700 15px/1.45 var(--sans); margin-bottom: 4px; }
.step-no { color: var(--rust); padding-top: 3px; }
.case-example table { width: 100%; border-collapse: collapse; background: #f9f3e6; font-size: clamp(12px, 2vw, 14px); }
.case-example caption { text-align: left; padding-bottom: 7px; color: var(--rust); }
.case-example :is(th, td) { padding: 8px clamp(6px, 2vw, 14px); border-bottom: 1px solid #d9cdb8; }
.case-example th:first-child { width: 53%; text-align: left; }
.case-example :is(th, td):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.case-example tbody th { font-weight: 400; }
.case-example .result-row > * { background: #e2e8d7; color: #2b402c; font-weight: 700; }
.case-example p { margin-top: 12px; }

.experience-list { border-top: 1px solid var(--ink); }
.role {
  display: grid;
  grid-template-columns: .68fr 1fr 1.2fr;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.role h3 { font-size: 30px; line-height: 1.02; letter-spacing: -.044em; }
.role p { color: var(--muted); font-size: 14px; }
.role .micro { font-size: 11px; }
.role div p { margin-top: 3px; font-size: 12px; font-weight: 700; }
.chapter-link { display: inline-block; margin-top: 19px; }
.about {
  display: grid;
  grid-template-columns: 1.3fr .78fr;
  align-items: end;
  gap: 8%;
  padding-bottom: clamp(55px, 7vw, 92px);
}
.about > div > p { max-width: 58ch; margin-top: 12px; color: var(--muted); }
.interests { background: #eee4d1; border-top: 2px solid var(--rust); padding: 25px; }
.interests .micro { color: var(--rust); }
.interests h3 { margin-top: 9px; font-size: 28px; letter-spacing: -.038em; line-height: 1.05; }
.interests ul { list-style: none; margin: 13px 0 0; padding: 0; }
.interests li { color: var(--muted); font-size: 13px; border-top: 1px solid #cbbfaa; padding: 8px 0; }
.interests li:last-child { padding-bottom: 0; }
.contact {
  display: grid;
  grid-template-columns: 1fr .6fr;
  gap: 10%;
  align-items: end;
  background: var(--dark);
  color: #f9f1e1;
  padding: clamp(28px, 5vw, 64px);
}
.contact .eyebrow, .contact em, .contact-links a span:last-child { color: #efbf7d; }
.contact p:not(.eyebrow) { margin-top: 14px; max-width: 36ch; color: #e2d6c1; font-size: 15px; }
.contact-links a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #b1a48b77; text-decoration: none; font-size: 14px; }
.contact-links a:hover { color: #efbf7d; }
.contact :focus-visible { outline-color: #efbf7d; }
.site-footer { display: flex; justify-content: space-between; gap: 14px; padding: 23px 0; color: var(--muted); font-size: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--rust); }

.demo {
  width: min(440px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  border: 1px solid #856745;
  background: #fbf2de;
  color: var(--ink);
  box-shadow: 8px 8px #18170f38;
}
.demo::backdrop { background: #211d15b5; }
body:has(.demo[open]) { overflow: hidden; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 12px 5px 20px; border-bottom: 1px solid #d5c5a7; }
.demo-bar .micro { color: var(--rust); }
.close-demo { width: 38px; height: 38px; border: 0; background: transparent; font: 24px/1 var(--sans); }
.close-demo:hover { background: #ede0c4; }
.demo-inner { padding: 19px clamp(16px, 5vw, 30px) 25px; }
.demo-stamp { color: var(--rust); font: 30px/1 Georgia, serif; }
.demo-inner > .micro { margin: 6px 0; color: var(--rust); }
.demo h2 { margin: 3px 0 7px; font-size: 44px; line-height: 1; letter-spacing: -.053em; }
.demo-inner > p:not(.micro) { font-size: 14px; }
.answer-list { display: grid; gap: 7px; margin-top: 17px; }
.answer-list button { min-height: 42px; padding: 7px 12px; text-align: left; background: #fff8e9; border: 1px solid #bdac8b; font-size: 14px; }
.answer-list button:hover:not(:disabled) { border-color: var(--rust); }
.answer-list .is-incorrect { background: #f6e2d3; }
.answer-list .is-correct { color: #223d29; background: #e3ead8; border-color: #58724e; }
.answer-list button:disabled:not(.is-correct) { color: var(--muted); }
.feedback:not(:empty) { margin-top: 12px; }
.demo-finish { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.replay { border: 0; padding: 6px 0; background: none; text-decoration: underline; text-underline-offset: .22em; }

.resume-wrap { max-width: 900px; }
.resume-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); padding: 20px 0; }
.resume-nav > a { font-size: 14px; font-weight: 700; }
.resume-header { padding: 34px 0 21px; }
.resume-header h1 { font-size: clamp(47px, 7vw, 72px); letter-spacing: -.064em; line-height: 1; margin: 7px 0; }
.resume-links { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 7px; font-size: 13px; }
.resume-section { border-top: 1px solid var(--line); padding: 14px 0 17px; }
.resume-section h2 { margin-bottom: 8px; color: var(--rust); font: 700 11px/1.5 var(--mono); letter-spacing: .095em; }
.resume-entry + .resume-entry { margin-top: 11px; }
.resume-entry h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.028em; }
.resume-entry .entry-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 13px; }
.resume-entry .micro { color: var(--muted); }
.resume-entry p, .resume-section > p { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 5%; }
  .hero h1 { font-size: clamp(60px, 9.3vw, 96px); }
  .portrait { margin-right: 6px; }
  .portrait-star { width: 54px; right: -23px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 0; grid-template-columns: 1fr auto; gap: 0 13px; padding-top: 15px; }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; margin-top: 13px; border-top: 1px solid var(--line); }
  .masthead nav a { padding: 9px 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 42px 0 30px; }
  .hero h1 { margin-top: 16px; font-size: clamp(51px, 14.3vw, 91px); }
  .hero-lead { margin-top: 16px; }
  .actions { margin-top: 18px; column-gap: 12px; }
  .portrait { justify-self: start; width: min(100% - 17px, 286px); margin: 0; }
  .portrait-star { width: 50px; right: -20px; }
  .now-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .now-strip > .now-label { grid-column: 1 / -1; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .now-strip > div { padding: 9px 7px; }
  .now-strip > div:first-of-type { border-left: 0; padding-left: 0; }
  .now-strip strong { font-size: 12px; }
  .now-strip div span { font-size: 11px; }
  .chapter { margin-top: 62px; }
  .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .project-stealth, .blog-entry { grid-template-columns: minmax(0, 1fr); }
  .project-copy { padding: 19px; }
  .blog-art { min-height: 190px; }
  .post-art { min-height: 223px; }
  .case-steps li { gap: 6px; }
  .role { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 15px 0; }
  .role h3 { font-size: 28px; }
  .role > p:last-child { margin-top: 3px; }
  .about { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: white; color: #151515; }
  .resume-wrap { max-width: none; width: auto; }
  .resume-nav { display: none; }
  .resume-header { padding: 0 0 12px; }
  .resume-header h1 { font-size: 36pt; }
  .resume-section { padding: 8px 0; }
  .resume-entry { break-inside: avoid; }
  .resume-entry + .resume-entry { margin-top: 7px; }
  .resume-entry h3 { font-size: 14pt; }
  .resume-entry p, .resume-section > p { font-size: 10pt; line-height: 1.4; }
}
