:root { color-scheme: light; --paper: #f7f5ed; --ink: #21282d; --blue: #254d98; --line: #bdbdb5; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 "Helvetica Neue", Arial, sans-serif; }
.sheet { width: min(100% - clamp(2.5rem, 10vw, 10rem), 76rem); margin: auto; }
header, footer, nav, .hero, .projects a { display: flex; align-items: center; justify-content: space-between; }
header { min-height: 5rem; border-bottom: 1px solid var(--ink); }
a { color: inherit; text-underline-offset: .28em; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip { position: absolute; top: -8rem; background: var(--paper); padding: .5rem; z-index: 2; }
.skip:focus { top: .5rem; }
.monogram { font: bold 2rem Georgia, serif; text-decoration: none; letter-spacing: -.09em; }
.monogram span, h1 b { color: var(--blue); }
nav { gap: 2rem; }
nav a { padding: .6em 0; text-decoration: none; }
nav a[aria-current], nav a:hover { text-decoration: underline; }
.hero { gap: 1rem; align-items: flex-end; padding: clamp(3rem, 6vw, 6rem) 0; }
h1 { margin: 0; font: normal clamp(5rem, 13vw, 11rem)/.86 Georgia, "Times New Roman", serif; letter-spacing: -.075em; }
h1 i { font-weight: normal; }
h1 b { font-weight: normal; }
.profile { display: flex; align-items: flex-end; width: 27%; height: clamp(6rem, 14vw, 12rem); border-bottom: 2px solid var(--blue); }
.profile s { flex: 1; height: 24%; background: repeating-linear-gradient(90deg,var(--blue) 0 1px,transparent 1px 5px); border-top: 1px solid var(--blue); }
.profile s:nth-child(2) { height: 47%; } .profile s:nth-child(3) { height: 70%; } .profile s:nth-child(4) { height: 100%; } .profile s:nth-child(5) { height: 61%; } .profile s:nth-child(6) { height: 33%; }
.spread { border-top: 1px solid var(--ink); padding: clamp(1.6rem, 3.5vw, 3rem) 0; display: grid; grid-template-columns: 29% 1fr; }
h2, legend, small, footer { font: normal .84rem/1.5 "Helvetica Neue", Arial, sans-serif; }
h2 { margin: .35rem 0; color: var(--blue); text-transform: uppercase; font-weight: 650; letter-spacing: .11em; }
p { margin: 0 0 1em; }
.bio p:first-child, .demo > p:first-child { font: normal clamp(1.55rem, 2.6vw, 2.35rem)/1.23 Georgia, serif; letter-spacing: -.025em; max-width: 36ch; }
.bio p:last-child { max-width: 60ch; margin-bottom: 0; }
.projects a { font: normal clamp(2rem, 4vw, 3.2rem)/1.15 Georgia, serif; text-decoration: none; padding: 1rem 0; gap: 1rem; }
.projects a:first-child { padding-top: 0; border-bottom: 1px solid var(--line); }
.projects a:hover span:first-child { text-decoration: underline; }
.projects a > span:last-child { color: var(--blue); font: 1.65rem Arial, sans-serif; }
small { display: block; margin-top: .35rem; color: #545a5d; }
footer { border-top: 1px solid var(--ink); padding: 1.5rem 0 2.5rem; }
.inside { font-size: clamp(4.5rem, 10vw, 9rem); padding: .6em 0 .45em; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin-bottom: 1rem; padding: 0; }
label, input, textarea { display: block; }
label { margin-bottom: .3rem; }
input, textarea { width: 100%; font: inherit; color: inherit; background: #fffdf7; border: 1px solid #737979; border-radius: 0; padding: .65em; margin-bottom: 1.2rem; }
textarea { resize: vertical; }
.demo { max-width: 39rem; }
button { background: var(--blue); color: white; padding: .85em 1.1em; font: inherit; border: 0; cursor: pointer; }
button span { padding-left: 1em; }
#result:not(:empty) { border-left: 3px solid var(--blue); padding-left: .8rem; margin-top: 1rem; }
@media (max-width: 650px) {
  header { min-height: 4rem; }
  .spread { grid-template-columns: 1fr; gap: 1rem; }
  .hero { position: relative; }
  .profile { position: absolute; right: 0; top: 2.9rem; width: 22%; height: 3.6rem; }
  .profile s { background-size: 4px 100%; }
  h1 { font-size: clamp(4.3rem, 16vw, 6.5rem); }
}
