/* rytter.it: the portfolio, for getting hired. Not the CV (those are cut
   per market from the same facts). A sticky identity panel keeps the facts a
   recruiter needs in view (name, role, what I'm looking for, contact) while
   the evidence scrolls beside it: about, experience as outcomes, a few
   projects, education, skills. A personal site with its own layout, in the
   things' type and ground: Geist and Geist Mono (from the kit, OFL), as on
   0xrytter.com. No script. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --raise: #111111;
  --rule: rgb(255 255 255 / 0.08);
  --ink: #ededed;
  --muted: #a1a1a1;
  --dim: #8f8f8f;
  --mark: #e58660;
  --ok: #7fcf9a;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--mark) 50%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--mark);
  text-decoration-color: var(--mark);
}

:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2;
  padding: 0.45rem 0.85rem;
  background: var(--mark);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

/* ------------------------------------------------------------- layout -- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* the identity panel: in view the whole way down */
.id {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  height: 100vh;
  height: 100dvh;
  padding-block: clamp(3rem, 8vh, 6rem);
}

.id h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.role {
  margin-top: 0.6rem;
  color: var(--mark);
  font-size: 1.2rem;
  font-weight: 500;
}

.line {
  max-width: 20rem;
  margin-top: 1.1rem;
  color: var(--muted);
}

.looking {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--raise);
  font-size: 0.925rem;
}

.looking small {
  display: block;
  color: var(--dim);
  font-size: 0.85rem;
}

.dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgb(127 207 154 / 0.18);
  translate: 0 -0.05em;
}

.toc {
  display: grid;
  justify-items: start;
  gap: 0.2rem;
  margin-top: 2.5rem;
}

.toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.2rem 0;
  color: var(--dim);
  font: 400 0.8rem var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.toc a::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.toc a:hover {
  color: var(--ink);
}

.toc a:hover::before {
  width: 3rem;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.ask {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--mark);
  color: #1b0d06;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.ask:hover {
  background: #f09c79;
  color: #1b0d06;
}

/* ------------------------------------------------------------ content -- */

.content {
  padding-block: clamp(3rem, 8vh, 6rem);
}

.content section {
  scroll-margin-top: 2rem;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.content h2 {
  margin-bottom: 1.5rem;
  color: var(--dim);
  font: 400 0.8rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#about p {
  max-width: 40rem;
  color: var(--muted);
}

#about p + p {
  margin-top: 1rem;
}

#about p:first-of-type {
  color: var(--ink);
  font-size: 1.2rem;
}

/* ------------------------------------------------------------ entries -- */

.entries {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* each entry lifts on hover, like a row you could open: the dates column
   stays put so the eye can run down it */
.entry {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.5rem;
  margin-inline: -1.25rem;
  padding: 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.entry:hover {
  border-color: var(--rule);
  background: var(--raise);
}

.when {
  padding-top: 0.2rem;
  color: var(--dim);
  font: 400 0.8rem/1.6 var(--mono);
}

.entry h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.entry h3 a {
  text-decoration: none;
}

.entry .what {
  margin-top: 0.3rem;
  color: var(--muted);
}

.entry ul:not(.tags) {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.entry ul:not(.tags) li::marker {
  color: var(--mark);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgb(229 134 96 / 0.1);
  color: #eaa183;
  font: 400 0.75rem/1.6 var(--mono);
}

.compact .entry {
  padding-block: 0.9rem;
}

.all {
  margin-top: 1.25rem;
  font-weight: 500;
}

.all a {
  text-decoration: none;
}

/* ------------------------------------------------------------- skills -- */

.skills {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.skills div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.5rem;
}

.skills dt {
  padding-top: 0.2rem;
  color: var(--dim);
  font: 400 0.8rem/1.6 var(--mono);
}

.skills dd {
  margin: 0;
}

/* ---------------------------------------------------------------- end -- */

.end {
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--rule);
}

.end h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font: 600 clamp(1.75rem, 4vw, 2.5rem) / 1.1 var(--sans);
  letter-spacing: -0.03em;
  text-transform: none;
}

.end p {
  max-width: 34rem;
  color: var(--muted);
}

.end p + p {
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------- 404 -- */

.lost {
  max-width: 76rem;
  margin: 0 auto;
  padding: 20vh var(--gutter);
}

.lost h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lost h1 span {
  color: var(--muted);
}

.lost p {
  margin-top: 1.5rem;
}

/* -------------------------------------------------------------- small -- */

/* one column: the identity panel becomes the top of the page, not a rail */
@media (max-width: 56rem) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .id {
    position: static;
    height: auto;
    padding-block: 3.5rem 2.5rem;
    border-bottom: 1px solid var(--rule);
  }

  .toc {
    display: none;
  }

  .content {
    padding-top: 2.5rem;
  }
}

@media (max-width: 36rem) {
  .entry,
  .skills div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .entry {
    margin-inline: 0;
    padding-inline: 0;
  }

  .entry:hover {
    border-color: transparent;
    background: none;
  }
}
