/* Reference-inspired paper, ink, and pastel treatment. */
:root {
  --bg: #fff5df;
  --surface: #fffdf7;
  --surface-muted: #f5ebd6;
  --text: #29241f;
  --text-secondary: #665746;
  --border: #29241f;
  --accent: #ffda4b;
  --accent-hover: #ffcd27;
  --rule: 2px solid var(--border);
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
  --serif: var(--sans);
}
::selection { background: #ffda4b; color: var(--text); }
:focus-visible { outline: 3px solid #90500e; outline-offset: 5px; }
.container { width: min(1080px, calc(100% - 80px)); }
.site-header { position: relative; background: var(--bg); border: 0; backdrop-filter: none; }
.site-header-inner { min-height: 112px; gap: 24px; flex-wrap: wrap; }
.brand { gap: 14px; }
.brand-mark { width: 46px; height: 46px; border: var(--rule); border-radius: 50%; background-color: var(--surface); background-size: 75%; box-shadow: 2px 3px 0 var(--text); }
.brand-name { font-size: 1.35rem; font-weight: 900; letter-spacing: -.04em; }
.site-nav { gap: 22px; margin-left: auto; margin-right: 0; }
.site-nav a { color: var(--text); font-size: .875rem; font-weight: 700; }
.btn, .link-arrow { border: var(--rule); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 800; box-shadow: 3px 4px 0 var(--text); padding: 14px 21px; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.btn-primary { background: var(--accent); }
.btn-sm { padding: 11px 18px; }
.link-arrow::after { display: none; }
.btn:hover, .link-arrow:hover { color: var(--text); background: #ffe477; transform: translate(-1px, -2px); box-shadow: 4px 6px 0 var(--text); }
.btn:active, .link-arrow:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--text); }
.hero { padding-block: 22px 32px; }
.hero-inner { padding: clamp(24px, 4vw, 46px); background-color: var(--surface); background-image: radial-gradient(#dfd7c7 .85px, transparent .85px); background-size: 19px 19px; border: var(--rule); border-radius: 20px; box-shadow: 6px 7px 0 var(--text); }
.hero-copy .eyebrow { margin-bottom: 24px; font-family: 'Courier New', monospace; font-size: .75rem; letter-spacing: .13em; color: var(--text-secondary); }
.hero-title { font-size: clamp(2.5rem, 5.5vw, 4.7rem); font-weight: 900; line-height: 1.13; letter-spacing: -.045em; margin-bottom: 24px; }
.hero-title em { font: inherit; color: var(--text); background: var(--accent); padding: 0 .12em .03em; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-title br { display: none; }
.hero-copy .lead { max-width: 650px; margin-bottom: 28px; color: var(--text-secondary); }
.hero-actions { gap: 16px; }
.glance { padding-block: 0 28px; }
.glance-list { border: 0; gap: 22px; }
.glance-item, .glance-item:first-child, .glance-item:last-child { padding: 21px 22px; border: var(--rule); border-radius: 16px; background: var(--accent); box-shadow: 4px 5px 0 var(--text); }
.glance-item:nth-child(2) { background: #ffb7cd; }
.glance-item:nth-child(3) { background: #a4dcfa; }
.glance-key { font: .7rem 'Courier New', monospace; letter-spacing: .1em; margin-bottom: 10px; }
.glance-val { font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 800; line-height: 1.35; }
.status-dot { background: #218044; width: 8px; height: 8px; }
.section { padding-block: 28px; }
.section > .container { padding: 30px; border: var(--rule); border-radius: 18px; background: var(--surface); box-shadow: 5px 6px 0 var(--text); }
.section-head { border: 0; padding: 0; gap: 12px; align-items: center; margin-bottom: 26px; }
.section-num { display: inline-grid; place-items: center; width: 34px; height: 37px; border: var(--rule); border-radius: 5px; background: var(--accent); color: var(--text); box-shadow: 2px 2px 0 var(--text); font-size: .95rem; font-weight: 900; transform: rotate(-5deg); }
.section-label { font-size: .8rem; font-weight: 800; color: var(--text); letter-spacing: .09em; }
.split { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.statement { font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 800; line-height: 1.2; }
.statement em, .contact-title em { font: inherit; color: var(--text); background: linear-gradient(transparent 65%, #ffda4b 65%); }
.prose p { font-size: 1rem; }
.stack { margin-top: 25px; }
.stack-key { font-family: 'Courier New', monospace; font-size: .7rem; }
.tag { border: 1.5px solid var(--text); border-radius: 7px; color: var(--text); font-weight: 700; background: #fff5df; padding: 5px 10px; }
.stack-group:nth-child(2) .tag { background: #d5edfc; }
.section-title { font-weight: 900; margin-bottom: 25px; }
.work-list, .work-list > li { border: 0; }
.work-list { display: grid; gap: 18px; }
.work-item { border: var(--rule); border-radius: 13px; padding: 23px; background: #ffb7cd; box-shadow: 3px 4px 0 var(--text); transition: transform 160ms ease, box-shadow 160ms ease; }
.work-item-muted { background: #a4dcfa; }
.work-item:hover { padding-left: 23px; transform: translateY(-2px); box-shadow: 3px 6px 0 var(--text); }
.work-name, .work-item-muted .work-name { color: var(--text); font-weight: 800; }
.work-item:hover .work-name, .work-item:hover .work-arrow { color: var(--text); }
.work-meta, .work-index, .work-arrow { color: var(--text); }
.work-year { background: var(--surface); }
.split-resume { align-items: center; }
#resume > .container { background: #e5f3fc; }
.resume-actions { gap: 16px; }
.contact-title { font-weight: 900; font-size: clamp(2.5rem, 5vw, 4rem); max-width: none; }
.section-contact .section-head { margin-bottom: 26px; }
.section-contact .note { margin-bottom: 26px; }
.contact-grid { gap: 30px; }
.contact-list { border-top: 0; }
.contact-row { grid-template-columns: 65px minmax(0, 1fr); gap: 14px; border-bottom: 1px dashed #b5a78f; }
.contact-key { font-family: 'Courier New', monospace; font-size: .7rem; letter-spacing: .05em; }
.contact-val { font-size: .9rem; overflow-wrap: anywhere; }
.contact-val a:hover, .footer-col a:hover { color: #7a420d; text-decoration: underline; }
.contact-cta { margin-top: 26px; }
.site-footer { margin-top: 36px; border: 0; }
.footer-top { padding-block: 30px; gap: 40px; }
.footer-bottom { border-top: 2px solid var(--text); }
.footer-key { font-family: 'Courier New', monospace; }
@media (max-width: 980px) {
  .site-header-inner { gap: 20px; padding-block: 25px; }
  .site-header-cta { display: none; }
  .brand-name { font-size: 1.2rem; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-aside, .prose { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 40px); }
  .site-header-inner { justify-content: space-between; }
  .site-nav { margin: 0; gap: 20px; }
  .glance-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  .glance-item, .glance-item:first-child, .glance-item:last-child { padding: 17px 13px; }
  .glance-val { font-size: .95rem; }
  .work-item { padding: 20px; }
  .work-item:hover { padding-left: 20px; }
}
@media (max-width: 560px) {
  .site-header-inner { gap: 20px; padding-block: 24px 10px; }
  .brand-name { font-size: 1.35rem; }
  .site-nav { width: 100%; justify-content: space-between; }
  .site-nav a:nth-child(1) { display: block; }
  .hero { padding-top: 18px; }
  .hero-inner { padding: 25px 20px; }
  .hero-title { font-size: clamp(2rem, 8.5vw, 3rem); }
  .hero-copy .eyebrow { font-size: .65rem; line-height: 1.8; }
  .hero-actions { align-items: stretch; gap: 16px; }
  .hero-actions .link-arrow { justify-content: center; }
  .glance-list { grid-template-columns: 1fr; gap: 16px; }
  .glance-item, .glance-item:first-child, .glance-item:last-child { padding: 18px 20px; }
  .glance-val { font-size: 1.2rem; }
  .section { padding-block: 18px; }
  .section > .container { padding: 24px 20px; }
  .work-item { grid-template-columns: 20px minmax(0, 1fr) 18px; gap: 10px; padding: 18px 14px; }
  .work-item:hover { padding-left: 14px; }
  .work-name { font-size: 1.35rem; }
  .work-meta { font-size: .8rem; gap: 10px; flex-wrap: wrap; white-space: normal; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media print {
  .hero-inner, .section > .container, .glance-item, .work-item { box-shadow: none; }
}
