/* Legacy page tokens map to the studio print palette. */
:root {
  --tone-f6f4ee: #faf8f1;
  --tone-202d27: #212023;
  --tone-657068: #5c585b;
  --tone-dcded4: #cbc7bc;
  --tone-294a38: #3339a9;
  --tone-d9edac: #e6e5f8;
  --tone-fffefa: #fffdf6;
  --tone-719a43: #6a65a6;
  --tone-f6f4eef2: #faf8f1f5;
  --tone-779855: #ec6741;
  --tone-3d604b: #293093;
  --tone-b8c1b4: #6a65a6;
  --tone-e9ecdf: #eeece3;
  --tone-d7ddcd: #cbc7bc;
  --tone-72944d: #5c585b;
  --tone-e9eddf: #eeece3;
  --tone-668052: #5c585b;
  --tone-91a577: #3339a9;
  --tone-cdd5c5: #cbc7bc;
  --tone-e2e9d8: #eeece3;
  --tone-e7e9e1: #eeece3;
  --tone-7b8771: #5c585b;
  --tone-e7eddc: #ececdb;
  --tone-fffefaec: #fffdf6f2;
  --tone-687460: #5c585b;
  --tone-e6e2da: #eeece3;
  --tone-768365: #5c585b;
  --tone-adb99f: #6a65a6;
  --tone-bfc9b6: #cbc7bc;
  --tone-7d8b71: #5c585b;
  --tone-53624f: #5c585b;
  --tone-78915f: #5c585b;
  --tone-ccd3c3: #cbc7bc;
  --tone-d9dfce: #cbc7bc;
  --tone-cbd4bd: #cbc7bc;
  --tone-dbe1ce: #cbc7bc;
  --tone-c3cdb5: #cbc7bc;
  --tone-70875a: #5c585b;
  --tone-708773: #5c585b;
  --tone-718653: #5c585b;
  --tone-bac5b1: #6a65a6;
  --tone-cbd3c1: #cbc7bc;
  --tone-cfd7c3: #cbc7bc;
  --tone-748561: #5c585b;
  --tone-7c8b6d: #5c585b;
  --tone-a3b493: #6a65a6;
  --tone-71815f: #5c585b;
  --tone-d1dac7: #cbc7bc;
  --tone-9cab8a: #cbc7bc;
  --tone-e4edda: #e6e5f8;
  --tone-d9e6c8: #cbc7bc;
  --tone-a9bb98: #cbc7bc;
  --tone-edf1e5: #eeece3;
  --tone-d3dacb: #cbc7bc;
  --tone-64705f: #5c585b;
  --tone-75836a: #5c585b;
  --tone-b9c6ac: #6a65a6;
  --tone-759450: #5c585b;
  --tone-71835e: #5c585b;
  --tone-718069: #5c585b;
  --tone-46554a: #212023;
  --tone-24382b: #212023;
  --tone-d3dcc8: #cbc7bc;
  --tone-8ba370: #ec6741;
  --tone-e6ebdc: #eeece3;
  --tone-a8b59a: #6a65a6;
  --tone-9fac94: #6a65a6;
  --tone-68785d: #5c585b;
  --tone-b6c0ac: #6a65a6;
  color-scheme: light;
  --theme-shadow: 0 10px 32px -24px #294a3850;
}
:root[data-theme="dark"] {
  --tone-f6f4ee: #1a191e;
  --tone-202d27: #f7f2e4;
  --tone-657068: #c2bdc4;
  --tone-dcded4: #524e57;
  --tone-294a38: #c0bbff;
  --tone-d9edac: #353347;
  --tone-fffefa: #25232a;
  --tone-719a43: #a8a2d0;
  --tone-f6f4eef2: #1a191ef5;
  --tone-779855: #ff9975;
  --tone-3d604b: #cfcaff;
  --tone-b8c1b4: #a8a2d0;
  --tone-e9ecdf: #302e37;
  --tone-d7ddcd: #524e57;
  --tone-72944d: #c2bdc4;
  --tone-e9eddf: #302e37;
  --tone-668052: #c2bdc4;
  --tone-91a577: #c0bbff;
  --tone-cdd5c5: #524e57;
  --tone-e2e9d8: #302e37;
  --tone-e7e9e1: #302e37;
  --tone-7b8771: #c2bdc4;
  --tone-e7eddc: #35342d;
  --tone-fffefaec: #25232af2;
  --tone-687460: #c2bdc4;
  --tone-e6e2da: #302e37;
  --tone-768365: #c2bdc4;
  --tone-adb99f: #a8a2d0;
  --tone-bfc9b6: #524e57;
  --tone-7d8b71: #c2bdc4;
  --tone-53624f: #c2bdc4;
  --tone-78915f: #c2bdc4;
  --tone-ccd3c3: #524e57;
  --tone-d9dfce: #524e57;
  --tone-cbd4bd: #524e57;
  --tone-dbe1ce: #524e57;
  --tone-c3cdb5: #524e57;
  --tone-70875a: #c2bdc4;
  --tone-708773: #c2bdc4;
  --tone-718653: #c2bdc4;
  --tone-bac5b1: #a8a2d0;
  --tone-cbd3c1: #524e57;
  --tone-cfd7c3: #524e57;
  --tone-748561: #c2bdc4;
  --tone-7c8b6d: #c2bdc4;
  --tone-a3b493: #a8a2d0;
  --tone-71815f: #c2bdc4;
  --tone-d1dac7: #524e57;
  --tone-9cab8a: #524e57;
  --tone-e4edda: #353347;
  --tone-d9e6c8: #524e57;
  --tone-a9bb98: #524e57;
  --tone-edf1e5: #302e37;
  --tone-d3dacb: #524e57;
  --tone-64705f: #c2bdc4;
  --tone-75836a: #c2bdc4;
  --tone-b9c6ac: #a8a2d0;
  --tone-759450: #c2bdc4;
  --tone-71835e: #c2bdc4;
  --tone-718069: #c2bdc4;
  --tone-46554a: #f7f2e4;
  --tone-24382b: #f7f2e4;
  --tone-d3dcc8: #524e57;
  --tone-8ba370: #ff9975;
  --tone-e6ebdc: #302e37;
  --tone-a8b59a: #a8a2d0;
  --tone-9fac94: #a8a2d0;
  --tone-68785d: #c2bdc4;
  --tone-b6c0ac: #a8a2d0;
  color-scheme: dark;
  --theme-shadow: 0 16px 34px -22px #0009;
}
body { background:var(--tone-f6f4ee); color:var(--tone-202d27); }
::selection { background:#b8d68e; color:#142219; }
.theme-toggle {
  flex:0 0 44px; width:44px; height:44px; padding:11px;
  display:inline-grid; place-items:center; cursor:pointer;
  border:1px solid var(--tone-dcded4); border-radius:50%;
  background:var(--tone-fffefa); color:var(--tone-294a38);
  box-shadow:0 3px 12px -8px #294a3850;
  transition:background .2s,border-color .2s,transform .2s;
}
.theme-toggle[hidden] { display:none; }
.theme-toggle svg { width:20px; height:20px; grid-area:1/1; }
.theme-toggle .theme-sun { display:none; }
[data-theme="dark"] .theme-toggle .theme-moon { display:none; }
[data-theme="dark"] .theme-toggle .theme-sun { display:block; }
.theme-toggle:hover { background:var(--tone-e9eddf); border-color:var(--tone-779855); transform:translateY(-2px); }
.theme-toggle:active { transform:scale(.94); }
.theme-toggle:focus-visible { outline:3px solid var(--tone-759450); outline-offset:4px; }
header > .nav > .brand, header > .wrap > .brand { margin-right:auto; }
header > .nav > .back, header > .wrap > .back { margin-left:auto; }
header .nav > #navigation { order:1; }
header .nav > .theme-toggle { order:2; }
header .nav > .menu { order:3; }
.menu { color:var(--tone-202d27); cursor:pointer; min-height:44px; }
.btn, .nav-cta, .mini-button, .story-links a { color:#fffefa; background:#294a38; border-color:#294a38; }
.btn:hover, .nav-cta:hover, .story-links a:hover { background:#3d604b; color:#fffefa; }
[data-theme="dark"] .btn, [data-theme="dark"] .nav-cta, [data-theme="dark"] .story-links a {
  color:#152219; background:#b8d68e; border-color:#b8d68e;
}
[data-theme="dark"] .btn:hover, [data-theme="dark"] .nav-cta:hover, [data-theme="dark"] .story-links a:hover {
  color:#152219; background:#cee6a9; border-color:#cee6a9;
}
.btn.light, .btn.secondary, .story-links a:last-child {
  color:var(--tone-202d27); background:transparent; border:1px solid var(--tone-b8c1b4);
}
.btn.light:hover, .btn.secondary:hover, .story-links a:last-child:hover { color:var(--tone-202d27); background:var(--tone-e9eddf); }
.journal-hero, [data-theme="dark"] .journal-hero { background:var(--tone-e4edda); color:var(--tone-294a38); border-color:var(--tone-a9bb98); }
.journal-hero:hover, [data-theme="dark"] .journal-hero:hover { background:var(--tone-d9e6c8); color:var(--tone-294a38); }
.contact-panel { background:#294a38; color:#fffefa; }
[data-theme="dark"] .contact-panel { background:#203b2a; border:1px solid #45613c; }
.contact-panel h2 em { color:#d9edac; }
.story-curtain { background:#294a38; color:#f6f4ee; }
.mini-browser { color:var(--tone-202d27); }
a[href="#main"] { background:var(--tone-fffefa)!important; color:var(--tone-202d27); }
.offer-card, .experience-item, .current-project, .project-card, .concept-card, .interest { box-shadow:var(--theme-shadow); }
@media(hover:hover) {
  .text-link:hover, .back:hover { color:var(--tone-294a38); }
  .offer-card:hover, .project-card:hover, .concept-card:hover { border-color:var(--tone-779855); }
}
@media(min-width:1001px) { header .nav { gap:18px; } #navigation { gap:16px; } }
@media(max-width:1000px) {
  header .nav { gap:12px; }
  .nav > .menu { display:block; }
  .nav > #navigation {
    display:none; position:absolute; top:100%; left:0; right:0;
    background:var(--tone-f6f4ee); padding:22px 26px;
    border-bottom:1px solid var(--tone-dcded4);
    flex-direction:column; align-items:stretch; gap:18px;
    box-shadow:0 18px 26px -24px #0008;
  }
  .nav > #navigation.open { display:flex; }
  .nav > .theme-toggle { margin-left:auto; }
}
@media(max-width:600px) {
  body > header > .nav, body > header > .wrap { gap:10px; }
  body > header .brand { font-size:22px; }
  body > header .back { font-size:11px; max-width:110px; text-align:right; line-height:1.5; }
  .theme-toggle { flex-basis:44px; }
}
@media(prefers-reduced-motion:reduce) { .theme-toggle { transition:none; } }

/* Studio typography, shared navigation and printed surfaces. */
:root {
  --studio-paper: var(--tone-f6f4ee);
  --studio-ink: var(--tone-202d27);
  --studio-blue: var(--tone-294a38);
  --studio-rule: var(--tone-dcded4);
  --studio-orange: #fb633e;
  --studio-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --studio-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --studio-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --studio-gutter: clamp(1.2rem, 5vw, 5rem);
  --studio-width: 1392px;
  --theme-shadow: none;
}
:root[data-theme="dark"] { --theme-shadow: none; }
body { font-family: var(--studio-display); }
::selection { background: #ffc5a8; color: #251d27; }
body > header { background: var(--studio-paper); border-bottom: 1px solid var(--studio-ink); backdrop-filter: none; }
.wrap, body > header > .nav, body > header > .wrap {
  width: 100%; max-width: var(--studio-width); margin-inline: auto; padding-inline: var(--studio-gutter);
}
body > header > .nav, body > header > .wrap { min-height: 70px; height: auto; padding-block: 10px; }
body .brand {
  display: inline-flex; align-items: center; gap: 0; white-space: nowrap;
  color: var(--studio-ink); font: 800 1.55rem/1 var(--studio-display); letter-spacing: -.075em;
}
.brand::before {
  content: ""; flex: 0 0 1.7rem; width: 1.7rem; height: 1.7rem; margin-right: .52rem;
  background: center / contain no-repeat url("prints/mark.svg");
}
body .brand span { color: var(--studio-orange); }
body > header #navigation { gap: clamp(1rem,2vw,2rem); }
body > header nav a, body > header a.back, body > header a.nav-link { font-size: .91rem; }
body > header #navigation a:not(.nav-cta) { color: var(--studio-ink); font-weight: 600; }
body > header #navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: .4em; }
body > header .theme-toggle, body > header .language-toggle {
  height: 40px; width: 40px; flex-basis: 40px; border-radius: 50%; padding: 9px;
  box-shadow: none; background: transparent; color: var(--studio-ink); border: 1px solid var(--studio-rule);
}
body > header .language-picker { order: 2; }
body > header .theme-toggle { order: 3; }
body > header .menu { order: 4; border-radius: 3px; font-size: .875rem; }
body > header .back { order: 1; }
body > header .language-menu { z-index: 20; background: var(--tone-fffefa); color: var(--studio-ink); border-radius: 3px; }
body .nav-cta, body .btn, body .story-links a, [data-theme="dark"] body .nav-cta, [data-theme="dark"] body .btn {
  border: 1px solid var(--studio-ink); border-radius: 3px; background: var(--studio-ink); color: var(--studio-paper);
  box-shadow: none; font-size: .91rem;
}
body .btn.light, body .btn.secondary { background: transparent; color: var(--studio-ink); }
body .btn:hover, body .nav-cta:hover, [data-theme="dark"] body .btn:hover, [data-theme="dark"] body .nav-cta:hover {
  background: var(--studio-blue); color: var(--studio-paper); border-color: var(--studio-blue);
}
body .eyebrow, body .status, body .meta, body .blog-meta, body .project-count {
  font-family: var(--studio-mono); font-size: .75rem; letter-spacing: .075em;
}
body :is(h1,h2,h3,h4) { font-family: var(--studio-display); }
body .project-number { display: none; }
body :is(.current-project,.offer-card,.about-interest,.experience-item,.experience-intro,.concept-card,.focus-panel,.interest,.appointment-panel,.contact-panel,.closing) {
  border-radius: 3px; box-shadow: none; background-image: none;
}
body :is(.text-link,.back):hover { text-decoration: underline; text-underline-offset: .24em; }
body :focus-visible { outline: 3px solid var(--studio-blue); outline-offset: 4px; }
body footer { border-top-color: var(--studio-ink); }
body .projects-hero, body .journal-intro {
  display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); column-gap: 3rem;
  position: relative; align-content: center; padding: clamp(2rem,5vw,5rem) 0;
  border-bottom: 1px solid var(--studio-ink);
}
body :is(.projects-hero,.journal-intro) > * { grid-column: 1; }
body :is(.projects-hero,.journal-intro) > .text-link { justify-self: start; }
body :is(.projects-hero,.journal-intro)::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 35%;
  aspect-ratio: 450 / 230; transform: translateY(-50%) rotate(2deg);
  background: center / cover no-repeat url("prints/folders.svg"); border: 1px solid var(--studio-ink);
  box-shadow: 5px 5px 0 var(--studio-ink);
}
body .journal-intro::after { background-image: url("prints/notebook.svg"); transform: translateY(-50%) rotate(-2deg); }
body :is(.projects-hero,.journal-intro) h1 { font-size: clamp(3.2rem,6.3vw,6.4rem); line-height: .99; font-weight: 700; letter-spacing: -.07em; margin: .26em 0; }
body :is(.projects-hero,.journal-intro) h1 em { font: italic 500 1.08em/.9 var(--studio-serif); color: var(--studio-blue); letter-spacing: -.08em; }
body .project-count { background: transparent; padding: 0; border: 0; color: var(--tone-657068); }
body .projects-grid { align-items: stretch; gap: clamp(1rem,2.5vw,2.2rem); }
body .project-card, body .project-card:nth-child(4n+1) {
  border: 1px solid var(--studio-rule); border-top: 3px solid var(--studio-ink);
  background: var(--tone-fffefa); border-radius: 2px; box-shadow: none; padding: clamp(1.2rem,2vw,2rem);
}
body .project-card .catalog-cover { width: 100%; height: auto; aspect-ratio: 2.45; object-fit: cover; display: block; margin-bottom: 1.5rem; border: 1px solid var(--studio-rule); }
body .project-card .catalog-cover.screen { object-position: center 33%; }
body .project-card h2 { font-size: clamp(1.8rem,3.1vw,3.2rem); line-height: 1.04; letter-spacing: -.06em; margin: .45em 0 .35em; }
body .project-intro { font-size: 1.08rem; }
body .project-detail p:not(.stack), body .blog-post p { font-size: 1rem; line-height: 1.6; }
body .project-card .stack { font-family: var(--studio-mono); font-size: .8rem; }
body .journal-tools { border-radius: 2px; background: var(--tone-e9ecdf); border-color: var(--studio-rule); }
body .journal-list .blog-grid { gap: 2.4rem 2rem; }
body .journal-list .blog-post { border-top: 2px solid var(--studio-ink); background: transparent; border-radius: 0; box-shadow: none; }
body .blog-meta { color: var(--tone-657068); }
body .blog-meta span:first-child { color: var(--studio-blue); }
body .blog-post h2 { font: 600 clamp(1.6rem,2.35vw,2.55rem)/1.1 var(--studio-serif); letter-spacing: -.045em; }
body .blog-post h2 a:hover, body .article-body a:hover { text-decoration: underline; text-underline-offset: .12em; }
body .article-head { border-top: 5px solid var(--studio-blue); border-bottom: 1px solid var(--studio-ink); padding-top: 1.75rem; }
body .article-head h1 { font: 600 clamp(2.8rem,6.8vw,5.6rem)/1 var(--studio-serif); letter-spacing: -.055em; }
body .article-head .dek { font-size: clamp(1.12rem,2vw,1.38rem); line-height: 1.52; }
body .article-body { margin-inline: auto; }
body .article-body p, body .article-body li { font-family: var(--studio-serif); font-size: 1.17rem; line-height: 1.72; }
body .article-body h2 { font-size: 1.85rem; letter-spacing: -.045em; }
body .article-body blockquote { border-left: 4px solid var(--studio-orange); font: italic 1.5rem/1.48 var(--studio-serif); color: var(--studio-blue); }
body .article-head .meta { row-gap: .35rem; }
body :is(.project-card,.offer-card,.experience-item,.experience-intro,.current-project,.concept-card).tilt-card { transform: none; }
@media (max-width: 1000px) {
  body > header .nav > .theme-toggle { margin-left: 0; }
  body > header .nav > .language-picker { margin-left: auto; }
  body > header .nav > #navigation { background: var(--studio-paper); border-bottom: 1px solid var(--studio-ink); gap: .6rem; }
  body > header .nav > #navigation a { padding-block: .5rem; }
}
@media (max-width: 680px) {
  body > header > .nav, body > header > .wrap { min-height: 62px; flex-wrap: wrap; column-gap: .5rem; }
  body > header .brand { font-size: 1.25rem; }
  body > header .back, body > header a.nav-link { font-size: .79rem; }
  body > header .theme-toggle, body > header .language-toggle { width: 36px; height: 36px; flex-basis: 36px; padding: 7px; }
  body :is(.projects-hero,.journal-intro) { display: block; }
  body :is(.projects-hero,.journal-intro)::after { display: none; }
  body .project-card .catalog-cover { aspect-ratio: 2.1; }
  body .journal-list .blog-grid { grid-template-columns: 1fr; }
}
@media print {
  body > header, body > footer, .theme-toggle, .language-picker { display: none; }
  body { background: white; color: black; }
}
