:root {
    --paper: #fbf7ee;
    --white: #fffdf8;
    --ink: #251c18;
    --muted: #64584f;
    --line: #d9cec0;
    --red: #ae202e;
    --orange: #f17d42;
    --yellow: #f2bd24;
    --green: #a7c849;
    --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 2 * clamp(20px, 5vw, 72px))); margin-inline: auto; }
.skip { position: fixed; z-index: 2; left: 1rem; top: 1rem; padding: .5rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.mast, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; }
.mast { border-bottom: 1px solid var(--line); }
.brand { flex: 0 0 auto; }
.brand img { width: clamp(76px, 9vw, 116px); height: auto; }
nav { display: flex; gap: clamp(.7rem, 3vw, 2.2rem); }
nav a, .text-link { font-weight: 700; }
nav a { text-decoration: none; font-size: .9rem; }
nav a:hover, .text-link:hover, .project a:hover { color: var(--red); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3rem, 8vw, 8rem); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.03; margin: 0; }
h1 { font-size: clamp(4rem, 10vw, 9rem); letter-spacing: -.075em; }
h1 span { color: var(--red); }
h2 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.05em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); letter-spacing: -.025em; }
p { margin: .65rem 0 1rem; }
.label { font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--red); margin-right: .35rem; }
.position { font-weight: 750; font-size: clamp(1.2rem, 2.5vw, 1.8rem); margin: 1rem 0 .4rem; }
.lede { color: var(--muted); max-width: 42ch; font-size: clamp(1rem, 1.8vw, 1.24rem); }
.actions { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 1.75rem; }
.button { display: inline-flex; gap: .7rem; align-items: center; padding: .75rem 1.1rem; background: var(--red); color: white; border: 0; border-radius: .25rem; text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { background: #871722; }
.button:disabled { opacity: .7; cursor: wait; }
.flow { margin: 0; background: var(--white); border: 1px solid var(--line); padding: clamp(1.1rem, 3.5vw, 2.1rem); box-shadow: 10px 10px 0 #efe4d3; }
.flow figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.chip { padding: .15rem .5rem; background: #f1e6d6; font-size: .73rem; font-weight: 700; }
.flow h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.flow > p { color: var(--muted); }
.flow-steps { margin-block: 1.2rem; }
details { --accent: var(--red); border-top: 1px solid var(--line); }
details:nth-child(2) { --accent: var(--orange); }
details:nth-child(3) { --accent: var(--yellow); }
details:nth-child(4) { --accent: var(--green); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; gap: .7rem; padding-block: .6rem; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; }
details[open] summary::after { content: "−"; }
.step { font: 750 .7rem/1 system-ui, sans-serif; padding: .4rem; border-left: 3px solid var(--accent); background: var(--paper); }
details p { margin: 0 1rem .8rem 2.75rem; color: var(--muted); font-size: .9rem; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section > h2, .credentials h2 { margin-bottom: 1.7rem; }
.work { background: #f2eade; border-block: 1px solid var(--line); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project { border: 1px solid var(--line); border-top: 5px solid var(--red); background: var(--white); padding: 1.25rem; }
.project:nth-child(2) { border-top-color: var(--orange); }
.project:nth-child(3) { border-top-color: var(--green); }
.project a { text-decoration: none; }
.project a span { color: var(--red); }
.project p:last-child, .role p:last-child { margin-bottom: 0; }
.role { display: grid; grid-template-columns: minmax(12rem, 1fr) 2.1fr; gap: 1rem 2rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.role .label { margin: 0; }
.role .date { font-size: .86rem; margin: .2rem 0 0; }
.role p, .credentials p, .contact p { color: var(--muted); }
.credentials, .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 7vw, 7rem); }
blockquote { margin: 1.5rem 0 0; padding-left: 1rem; border-left: 3px solid var(--orange); font-family: var(--serif); font-size: 1.25rem; }
cite { display: block; margin-top: .5rem; font: .8rem system-ui, sans-serif; }
form label { display: block; font-weight: 700; margin-bottom: .2rem; }
form input, form textarea { display: block; width: 100%; margin-bottom: .9rem; border: 1px solid #a99a8b; background: var(--white); color: var(--ink); border-radius: .2rem; padding: .6rem; font: inherit; }
form small { display: block; color: var(--muted); }
.footer { border-top: 1px solid var(--line); flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.case > h1 { font-size: clamp(3rem, 8vw, 7rem); }
.case > .label { margin-top: 2.5rem; }
.case-body { max-width: 74ch; margin-block: 2rem; }
.case-body section { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.case-body h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.case-flow { padding-left: 1.4rem; }
.case-flow li { padding-left: .5rem; margin-bottom: .25rem; }
@media (prefers-reduced-motion: no-preference) {
    .flow { animation: arrive .45s ease-out both; }
    details[open] p { animation: arrive .24s ease-out both; }
    .button { transition: background-color .18s ease; }
    @keyframes arrive { from { opacity: .65; transform: translateY(7px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 780px) {
    .hero, .credentials, .contact { grid-template-columns: 1fr; }
    .projects { grid-template-columns: 1fr; }
    .flow { box-shadow: 5px 5px 0 #efe4d3; }
}
@media (max-width: 550px) {
    .role { grid-template-columns: 1fr; gap: .5rem; }
    nav a { font-size: .79rem; }
}
.skill-list { margin: 0; }
.skill-list div { border-top: 1px solid var(--line); padding-block: .65rem; }
.skill-list dt { font-weight: 750; }
.skill-list dd { margin: .2rem 0 0; color: var(--muted); }
#more-work { padding-bottom: 0; }
