:root {
  color-scheme: dark;
  --bg: #11121a;
  --panel: #191b28;
  --text: #f6f4ff;
  --muted: #b8bacd;
  --accent: #c7b9ff;
  --line: #36394d;
  font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  transform: translateY(-150%);
  padding: .5rem 1rem;
  background: var(--text);
  color: var(--bg);
}

.skip:focus { transform: none; }

.header, .footer, .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
}

.header, .footer { padding-block: 1.25rem; }
.header { border-bottom: 1px solid var(--line); }
.footer { border-top: 1px solid var(--line); color: var(--muted); }
.brand, nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 1.75rem); }
.brand { gap: .7rem; font-weight: 700; }
.header a, .footer a { text-decoration: none; }
.header a:hover, .footer a:hover { color: var(--accent); }

.mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  color: var(--accent);
  font: 700 .875rem ui-monospace, monospace;
}

nav { color: var(--muted); font-size: .9375rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3rem, 8vw, 6.25rem);
}

.availability, .category {
  color: var(--accent);
  font: .875rem/1.5 ui-monospace, monospace;
}

.availability { display: flex; align-items: center; gap: .65rem; }
.availability span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }

h1 {
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  letter-spacing: -.075em;
  line-height: 1;
  margin-block: .6rem 1rem;
}

h1 span { color: var(--accent); }
.lead { font-size: clamp(1.2rem, 2.5vw, 1.65rem); line-height: 1.35; max-width: 27ch; }
.summary { max-width: 52ch; margin-top: 1rem; color: var(--muted); }

.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .actions { margin-top: 1.75rem; }

.button {
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  text-decoration: none;
  font-weight: 650;
}

.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.primary:hover { background: #e1d9ff; }
.secondary:hover { border-color: var(--accent); }

.portrait {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--panel);
  padding: .65rem;
}

.portrait img { display: block; width: 100%; height: auto; border-radius: .65rem; }

.portrait figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  padding: .8rem .25rem .2rem;
  font-size: .875rem;
}

.portrait figcaption span, .section-heading p, .card p:not(.category),
.entry p:not(.category), .contact p { color: var(--muted); }

.section { padding-block: clamp(2rem, 5vw, 3.75rem); border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.04em; }
h3 { font-size: 1.2rem; line-height: 1.3; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.card, .toolkit, .contact {
  padding: clamp(1.15rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--panel);
}

.card h3, .entry h3 { margin-block: .5rem .65rem; }
.background { display: grid; grid-template-columns: 1.45fr 1fr; gap: 2rem; align-items: start; }
.entry { padding-block: 1rem; }
.entry:first-child { padding-top: 0; }
.entry + .entry { border-top: 1px solid var(--line); }

.tags {
  display: flex;
  list-style: none;
  padding: 0;
  margin-block: 1rem;
  gap: .5rem;
  flex-wrap: wrap;
}

.tags li { padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 2rem; font-size: .875rem; }
.credential { color: var(--accent); border-top: 1px solid var(--line); padding-top: .85rem; }

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(115deg, #242038, var(--panel));
}

.contact p { margin-top: .5rem; }

@media (max-width: 760px) {
  .hero, .background { grid-template-columns: 1fr; }
  .portrait { max-width: 21rem; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
