:root {
  color-scheme: light;
  --ink: #101924;
  --muted: #455465;
  --paper: #f8faf9;
  --accent: #b9f46a;
  --border: #d4dfd9;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body, figure, dd { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #16844c; outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-120%); padding: .5rem 1rem; background: white; z-index: 2; }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.top, footer, .hero { color: white; background: var(--ink); }
.top { border-bottom: 1px solid #334252; }
.nav, nav { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; }
.nav { justify-content: space-between; padding-block: 1rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.brand { font-weight: 750; }
.hero { background: radial-gradient(ellipse at 85% 100%, #26443b, transparent 51%), var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-block: clamp(3.5rem, 9vw, 7rem); }
.label { margin: 0 0 .65rem; font-size: .875rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #226644; }
.hero .label, h1 em { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.5vw, 5.6rem); letter-spacing: -.065em; }
h1 em { font-style: normal; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.045em; margin-bottom: 1.6rem; }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.intro { max-width: 46ch; color: #d7e5e6; font-size: 1.125rem; margin-block: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-block; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .4rem; font-weight: 700; text-decoration: none; }
.primary { color: var(--ink); background: var(--accent); }
.secondary { border-color: #829295; }
.button:hover { text-decoration: underline; }
figure { justify-self: end; width: min(100%, 22rem); padding: .65rem; border: 1px solid #60766f; border-radius: .8rem; background: #182a30; }
figure img { display: block; width: 100%; height: auto; border-radius: .4rem; }
figcaption { padding: .5rem .4rem .1rem; color: #d7e5e6; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { border: 1px solid var(--border); background: white; border-radius: .75rem; overflow: hidden; }
.project > div:last-child, .skill { padding: 1.4rem; }
.project img, .query { width: 100%; height: clamp(9rem, 23vw, 14rem); display: block; }
.project img { object-fit: cover; object-position: top; }
.query { background: #182a30; color: #fff; padding: 1.25rem 1.5rem; font-family: ui-monospace, monospace; font-size: clamp(1rem, 2vw, 1.4rem); line-height: 1.35; display: block; }
.query span { color: var(--accent); }
.card p:not(.label), dd { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.project a { font-weight: 700; }
.text-project { grid-column: 1 / -1; }
.skills { background: #e9f1ec; border-block: 1px solid var(--border); }
.background { gap: 2rem; }
dt { font-weight: 700; margin-top: .9rem; }
footer a { color: var(--accent); }

@media (max-width: 45rem) {
  .hero-grid, .grid { grid-template-columns: 1fr; }
  figure { justify-self: start; width: min(100%, 16rem); }
}
@media (max-width: 25rem) {
  .wrap { width: calc(100% - 2rem); }
  .nav, nav { column-gap: .75rem; }
}
