:root {
  color-scheme: light dark;
  --page: light-dark(#fff, #14201c);
  --ink: light-dark(#172b23, #eff6f2);
  --muted: light-dark(#42564d, #bdd0c6);
  --accent: light-dark(#166354, #87dec0);
  --panel: light-dark(#eff7f2, #1d3028);
  --border: light-dark(#c5dcd2, #3b564a);
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--page);
}

:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; }
header { border-block-end: 1px solid var(--border); }
header nav, main, footer { width: min(74rem, 90%); margin-inline: auto; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
header nav { padding-block: 1rem; }
a { color: var(--accent); text-underline-offset: .2em; }
nav a { font-size: .95rem; }
.brand { margin-inline-end: auto; font-size: 1.25rem; font-weight: 700; color: inherit; text-decoration: none; }
.landing-section {
  display: grid;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  align-content: center;
  border-bottom: 1px solid var(--border);
}
.hero { padding-block: clamp(2.5rem, 7vw, 6rem); }
h1, h2 { margin: 0; font-weight: 600; line-height: 1.06; letter-spacing: -.045em; }
h1 { max-width: 12ch; font-size: clamp(2.75rem, 6vw, 5.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
p { max-width: 58ch; margin: 1rem 0 0; line-height: 1.65; color: var(--muted); }
.hero p { max-width: 38ch; font-size: 1.2rem; }
code { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; }
h1 code { color: var(--accent); font-size: .8em; }
.hero a {
  display: inline-block; border-radius: 2rem; background: var(--accent); color: var(--page);
  padding: .55rem 1.25rem; font-size: 1rem; font-weight: 600; text-decoration: none;
}
pre {
  position: relative; min-width: 0; margin: 1.5rem 0 0; padding: 1.25rem;
  border: 1px solid var(--border); border-radius: 1rem; background: var(--panel);
}
pre::before {
  content: "Terminal"; display: block; margin-bottom: 1rem;
  color: var(--muted); font: 600 .875rem var(--font-sans);
}
.hero pre::before { content: "cv.yaml"; }
pre code { display: block; overflow-x: auto; font-size: .95rem; line-height: 1.65; }
.copy { position: absolute; top: .75rem; right: 1rem; }
button, select { font: inherit; font-size: .875rem; color: var(--ink); background: var(--page); border: 1px solid var(--border); border-radius: .4rem; padding: .3rem .6rem; }
button { cursor: pointer; }
footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.25rem; color: var(--muted); font-size: .875rem;
}
@media (min-width: 52rem) {
  .landing-section { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); }
  .landing-section > :not(pre) { grid-column: 1; }
  .landing-section > pre { grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 0; }
}
