@font-face {
  font-family: "Recursive";
  src: url("assets/fonts/fontsource/recursive-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Recursive";
  src: url("assets/fonts/fontsource/recursive-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --background: #0b0d12;
  --text: #d5d9df;
  --muted: #77808c;
  --rule: #29313b;
  --cyan: #37e6d0;
  --pink: #ff4f9a;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Recursive", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

.page {
  width: calc(100% - 36px);
  max-width: 780px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 56px;
}

.mono {
  font-family: "Recursive", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  color: var(--cyan);
  font-size: 16px;
  text-decoration: none;
}

.brand::before { content: "["; color: var(--muted); }
.brand::after { content: "]"; color: var(--muted); }

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  text-transform: uppercase;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--cyan); }

.intro {
  margin: 62px 0 55px;
  padding-left: 22px;
  border-left: 2px solid var(--cyan);
}

.status {
  color: var(--pink);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 13px 0 15px;
  color: #f2f4f6;
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.intro p {
  max-width: 620px;
  margin: 0;
  color: #aab1ba;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tags span {
  padding: 3px 8px;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--rule);
}

.post-row > div { min-width: 0; }

.post-row time {
  padding-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.post-row h2 {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.post-row h2 a {
  color: var(--text);
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.post-row:hover h2 a {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

.post-row p {
  margin: 0;
  color: #929aa5;
  font-size: 14px;
}

.post-row .untitled-link {
  font-size: 18px;
  line-height: 1.4;
}

.untitled-link a {
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.post-row:hover .untitled-link a {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

.kind {
  display: inline-block;
  margin-top: 11px;
  color: var(--pink);
  font-size: 10px;
  text-transform: uppercase;
}

.article-header {
  margin: 62px 0 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}

.article-header h1 { max-width: 720px; }

.profile-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.profile-photo {
  display: block;
  width: 180px;
  height: 180px;
  border: 1px solid var(--rule);
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
}

.profile-header h1 {
  margin: 12px 0 8px;
}

.profile-role {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.article-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.language-switch {
  display: flex;
  gap: 4px;
}

.language-switch button {
  min-width: 34px;
  padding: 4px 7px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.language-switch button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.language-switch button[aria-pressed="true"] {
  border-color: var(--pink);
  color: var(--pink);
}

.article-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.prose {
  max-width: 680px;
  color: #c4c9d0;
  font-size: 18px;
}

.prose p { margin: 0 0 1.35em; }

.prose h2 {
  margin: 2.2em 0 .7em;
  color: #f2f4f6;
  font-size: 24px;
  line-height: 1.25;
}

.prose a {
  color: var(--cyan);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose .sources p {
  padding-bottom: 1.1em;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.article-signature {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.article-signature a { color: var(--text); }

.profile-contacts {
  max-width: 680px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.profile-contacts h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "Recursive", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.profile-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.profile-contact-links a,
.profile-contact-links span {
  color: var(--cyan);
  font-size: 13px;
}

.profile-contact-links a {
  text-underline-offset: 3px;
}

.prose code {
  color: var(--pink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

.term {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted var(--cyan);
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: help;
}

.term:hover,
.term:focus-visible,
.term[aria-expanded="true"] {
  color: var(--cyan);
  outline: none;
}

.term-note {
  display: block;
  margin: -.55em 0 1.35em;
  padding: 11px 14px;
  border-left: 2px solid var(--cyan);
  background: #10141b;
  color: #aab1ba;
  font-family: "Recursive", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
}

.article-figure .term-note {
  margin: 10px 0 0;
}

.article-figure {
  width: min(900px, calc(100vw - 36px));
  margin: 2.4em 0 2.7em;
  margin-left: calc((min(780px, calc(100vw - 36px)) - min(900px, calc(100vw - 36px))) / 2);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: "Recursive", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.article-figure figcaption a { color: #aab1ba; }

.newsletter {
  max-width: 760px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.newsletter h2 { font-size: 1.35rem; }
.newsletter p { color: var(--muted); font-size: 0.9rem; }
.newsletter label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.newsletter-fields { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.newsletter input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--rule);
  border-radius: 0;
  font: inherit;
}
.newsletter button {
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font: inherit;
  cursor: pointer;
}
.newsletter button:hover { background: var(--cyan); color: var(--background); }
.newsletter input:focus-visible,
.newsletter button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.comments {
  max-width: 760px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.comments h2 { font-size: 1.35rem; }
.comments > p { color: var(--muted); font-size: 0.9rem; }
.comments iframe { display: block; width: 100%; min-height: 400px; border: 0; }

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 3px;
}

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 70px;
  padding-top: 25px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
}

footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .page { padding-top: 20px; }
  nav { gap: 12px; }
  nav a:first-child { display: none; }
  .intro,
  .article-header { margin: 45px 0; }
  .profile-header {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }
  .profile-photo {
    width: 96px;
    height: 96px;
  }
  .profile-header h1 {
    margin: 7px 0 5px;
    font-size: 27px;
  }
  .profile-role {
    font-size: 13px;
    line-height: 1.45;
  }
  h1 { font-size: 32px; overflow-wrap: anywhere; }
  .post-row { grid-template-columns: 1fr; gap: 5px; }
  .post-row h2 { overflow-wrap: anywhere; }
  .prose { font-size: 17px; }
  footer { display: block; line-height: 2; }
}
