:root {
  --ink: #f2f2f2;
  --muted: #8c8c8c;
  --bg: #000;
  --line: #222;
  --accent: #f2f2f2;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a, a:visited { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  left: 1rem; top: 1rem;
  background: var(--ink); color: var(--bg);
  padding: .5rem .75rem;
}

.page {
  max-width: 1120px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "main rail";
  column-gap: 4rem;
}

/* The razor: a full-height axis with the wordmark attached at the top. */
.rail {
  grid-area: rail;
  align-self: stretch;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.brand { display: inline-flex; text-decoration: none; }
.brand img { display: block; width: auto; height: 96px; }

main { grid-area: main; min-width: 0; }

.hero { padding: .25rem 0 0; }

.interests {
  margin-top: 2.5rem;
}

.hero-copy {
  max-width: 42rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.005em;
}
.hero-copy strong { font-weight: 650; }

.lawkan, .contact {
  position: relative;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

/* A knot on the axis, with a hairline running left into the content. */
.lawkan::before, .contact::before, .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 4rem);
  height: 1px;
  background: var(--line);
}
.lawkan::after, .contact::after, .site-footer::after {
  content: "";
  position: absolute;
  top: -3px;
  right: calc(-4rem - 3px);
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
}

.label {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lead {
  max-width: 38rem;
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.lawkan p {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .98rem;
}

.paper-card {
  max-width: 42rem;
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #333;
  border-left: 2px solid var(--ink);
  background: #070707;
}

.paper-title {
  margin: 0 0 .4rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.paper-title a { text-decoration: none; }
.paper-title a:hover { text-decoration: underline; }

.meta { margin: 0 0 1rem; color: var(--muted); font-size: .84rem; }
.links { display: flex; gap: .6rem; margin: 0; font-size: .9rem; }

.button {
  display: inline-flex;
  align-items: center;
  padding: .52rem .9rem;
  border: 1px solid #444;
  border-radius: 999px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.button:hover { border-color: var(--muted); color: var(--ink); }
.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #000;
}
.button.primary:hover { background: #fff; border-color: #fff; color: #000; }

.bullets { max-width: 40rem; margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.bullets li { margin: .45rem 0; }
.bullets li::marker { color: var(--muted); }

.contact p { margin: 0; font-size: 1rem; }
.contact .note { margin-top: .9rem; color: var(--muted); font-size: .85rem; }

.site-footer {
  position: relative;
  margin-top: 3rem;
  padding-top: 1.2rem;
  color: var(--muted);
  font-size: .78rem;
}
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-areas: "rail" "main";
    row-gap: 2rem;
    padding: 1.5rem 1.25rem 2rem;
  }
  .rail {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1rem;
    justify-content: flex-end;
  }
  .brand img { height: 72px; }
  .hero { padding-top: .5rem; }
  .hero-copy { font-size: 1.05rem; }
  .lawkan, .contact { margin-top: 2.5rem; border-top: 1px solid var(--line); }
  .site-footer { border-top: 1px solid var(--line); }
  .lawkan::before, .contact::before, .site-footer::before,
  .lawkan::after, .contact::after, .site-footer::after { display: none; }
}
