/*!
 * @preserve
 * MonoLisa 3.000
 * This font is subject to a EULA. A user licence can be acquired at:
 * https://www.monolisa.dev/license
 * © 2026 FaceType Foundry. All Rights Reserved.
 */

@font-face {
  font-family: "MonoLisaCode";
  src: local("MonoLisaCode"), local("MonoLisa Code"),
       url("assets/fonts/0-MonoLisaCode-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 1 900;
  font-display: swap;
  unicode-range: U+0020-007F;
}

@font-face {
  font-family: "MonoLisaCode";
  src: local("MonoLisaCode Italic"), local("MonoLisa Code Italic"),
       url("assets/fonts/1-MonoLisaCode-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 1 900;
  font-display: swap;
  unicode-range: U+0020-007F;
}

@font-face {
  font-family: "MonoLisaCode";
  src: url("assets/fonts/2-MonoLisaCode-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 1 900;
  font-display: swap;
  unicode-range: U+0080-00FF;
}

@font-face {
  font-family: "MonoLisaCode";
  src: url("assets/fonts/3-MonoLisaCode-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 1 900;
  font-display: swap;
  unicode-range: U+0080-00FF;
}

@font-face {
  font-family: "MonoLisaCode";
  src: url("assets/fonts/4-MonoLisaCode-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 1 900;
  font-display: swap;
  unicode-range: U+0100-017F;
}

@font-face {
  font-family: "MonoLisaCode";
  src: url("assets/fonts/5-MonoLisaCode-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 1 900;
  font-display: swap;
  unicode-range: U+0100-017F;
}

:root {
  color-scheme: dark;
  --bg: #282c34;
  --bg-deep: #21242b;
  --surface: #2f343d;
  --text: #bbc2cf;
  --bright: #d7dce2;
  --muted: #7f8793;
  --line: #5b6268;
  --orange: #d9723a;
  --red: #bf616a;
  --coral: #d08770;
  --yellow: #ebcb8b;
  --green: #a3be8c;
  --teal: #8fbcbb;
  --cyan: #88c0d0;
  --blue: #61afef;
  --font: "MonoLisaCode", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 94rem;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f0e9;
  --bg-deep: #e5e2d8;
  --surface: #eae7de;
  --text: #3c414b;
  --bright: #20242b;
  --muted: #74766f;
  --line: #aaa99f;
  --orange: #b9501d;
  --red: #a84953;
  --coral: #ac5941;
  --yellow: #8f6b14;
  --green: #597b3f;
  --teal: #387b79;
  --cyan: #397d8f;
  --blue: #236fa5;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-variation-settings: "GRAD" -50;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.015em;
  transition: background-color 180ms ease, color 180ms ease;
}

[data-theme="light"] body { font-variation-settings: "GRAD" 0; }

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 3rem 3rem;
  content: "";
  pointer-events: none;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 5px;
}

button { font: inherit; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: .5rem .8rem;
  background: var(--yellow);
  color: var(--bg-deep);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header,
.site-footer,
main {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 6rem;
  padding: 0 var(--pad);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
}

.wordmark {
  justify-self: start;
  color: var(--bright);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark span { color: var(--green); }

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 4vw, 3.5rem);
}

.site-nav a {
  color: var(--muted);
  font-size: .75rem;
  text-decoration: none;
  transition: color 130ms ease;
}

.site-nav a span { margin-right: .3rem; color: var(--line); }
.site-nav a:hover { color: var(--blue); }

.theme-toggle {
  display: inline-flex;
  justify-self: end;
  gap: .5rem;
  align-items: center;
  padding: .35rem .55rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover { color: var(--yellow); }
.theme-icon { font-size: 1.15rem; }
.theme-label { font-size: .72rem; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .35fr);
  gap: clamp(3rem, 8vw, 9rem);
  min-height: min(48rem, calc(100vh - 6rem));
  padding: clamp(6rem, 13vh, 9rem) var(--pad) 5rem;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 9%;
  bottom: 11%;
  width: 18rem;
  height: 18rem;
  border: 1px solid color-mix(in srgb, var(--line) 32%, transparent);
  border-radius: 50%;
  content: "";
  transform: translate(50%, 50%);
  box-shadow: 0 0 0 4rem color-mix(in srgb, var(--line) 7%, transparent), 0 0 0 8rem color-mix(in srgb, var(--line) 4%, transparent);
}

.hero-meta {
  position: absolute;
  top: 1.25rem;
  left: var(--pad);
  display: flex;
  gap: 1.5rem;
  color: var(--line);
  font-size: .65rem;
  text-transform: uppercase;
}

.type-scatter {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.type-scatter span {
  position: absolute;
  display: block;
  line-height: .8;
  white-space: nowrap;
}

.type-scatter .script {
  font-style: italic;
  font-weight: 600;
  font-feature-settings: "ss01" 1;
}

.type-scatter .italic {
  font-style: italic;
  font-weight: 300;
}

.type-scatter .upright { font-style: normal; }
.type-scatter .red { color: var(--red); }
.type-scatter .orange { color: var(--orange); }
.type-scatter .coral { color: var(--coral); }
.type-scatter .yellow { color: var(--yellow); }
.type-scatter .green { color: var(--green); }
.type-scatter .teal { color: var(--teal); }
.type-scatter .cyan { color: var(--cyan); }
.type-scatter .blue { color: var(--blue); }
.type-scatter .muted { color: var(--line); }

.hero-scatter span:nth-child(1) {
  top: 13%;
  right: 5%;
  font-size: clamp(3rem, 8vw, 8rem);
  opacity: .28;
  transform: rotate(11deg);
}

.hero-scatter span:nth-child(2) {
  top: 41%;
  right: 25%;
  font-size: clamp(.8rem, 1.5vw, 1.4rem);
  font-weight: 900;
  opacity: .72;
  transform: rotate(-17deg);
}

.hero-scatter span:nth-child(3) {
  right: 8%;
  bottom: 17%;
  font-size: clamp(2rem, 4vw, 4rem);
  opacity: .38;
  transform: rotate(-8deg);
}

.hero-scatter span:nth-child(4) {
  bottom: 6%;
  left: 39%;
  font-size: clamp(1.5rem, 3vw, 3rem);
  opacity: .5;
  transform: rotate(7deg);
}

.hero-scatter span:nth-child(5) {
  top: 24%;
  left: 2%;
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 100;
  opacity: .08;
  transform: rotate(90deg);
}

.eyebrow,
.comment,
.contact-kicker,
.section-heading > p,
.section-heading > div > p {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent);
}

h1,
h2,
h3,
p { text-wrap: pretty; }

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--bright);
  font-size: clamp(4rem, 10vw, 9.6rem);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.085em;
}

h1 span {
  color: var(--orange);
  font-style: italic;
  font-feature-settings: "ss01" 1;
}

.lede {
  max-width: 42rem;
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-style: italic;
  font-weight: 600;
}

.lede em {
  color: var(--text);
  font-weight: 600;
  font-feature-settings: "ss01" 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 3rem;
}

.button {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  padding: .8rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--green);
  color: var(--bg-deep);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--green) 22%, transparent);
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.button-primary:hover {
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--green) 22%, transparent);
  transform: translate(2px, 2px);
}

.text-link,
.buffer-row > a {
  color: var(--blue);
  font-size: .75rem;
  font-style: italic;
  font-weight: 600;
  text-underline-offset: .25rem;
}

.scratch {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 1.6rem 0 1.6rem 1.5rem;
  border-left: 1px solid var(--line);
}

.scratch .comment {
  color: var(--green);
  font-style: italic;
  text-transform: none;
}

.scratch dl { margin: 0; }

.scratch dl > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  padding: .35rem 0;
  font-size: .72rem;
}

.scratch dt { color: var(--line); }
.scratch dd {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-weight: 600;
  font-feature-settings: "ss01" 1;
}

.signal-bars { display: inline-flex; gap: 3px; align-items: end; height: .7rem; }
.signal-bars i { display: block; width: 3px; background: var(--green); }
.signal-bars i:nth-child(1) { height: 35%; }
.signal-bars i:nth-child(2) { height: 65%; }
.signal-bars i:nth-child(3) { height: 100%; }

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-top: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  overflow: hidden;
}

.section > :not(.type-scatter) { position: relative; z-index: 1; }

.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 10vw, 11rem);
}

.section-heading p span,
.contact-kicker span {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  margin: 0 .6rem .2rem;
  background: var(--line);
}

h2 {
  margin: 0;
  color: var(--coral);
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.06em;
}

.about-copy {
  max-width: 41rem;
  padding-top: 2.25rem;
}

.about-copy p {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.about-copy p:first-child::first-letter {
  float: left;
  margin: .1rem .6rem 0 0;
  color: var(--yellow);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: .8;
}

.about-scatter span:nth-child(1) {
  top: 9%;
  right: 5%;
  font-size: clamp(4rem, 9vw, 9rem);
  opacity: .1;
  transform: rotate(-12deg);
}

.about-scatter span:nth-child(2) {
  right: 10%;
  bottom: 8%;
  font-size: clamp(.8rem, 1.5vw, 1.4rem);
  font-weight: 800;
  opacity: .55;
  transform: rotate(5deg);
}

.about-scatter span:nth-child(3) {
  bottom: 12%;
  left: 5%;
  font-size: clamp(1.8rem, 4vw, 4rem);
  opacity: .22;
  transform: rotate(8deg);
}

.index-section { background: color-mix(in srgb, var(--bg-deep) 55%, var(--bg)); }

.index-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 4rem;
}

.index-heading h2 { color: var(--yellow); }
.index-note {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-style: italic;
  font-weight: 600;
  text-align: right;
}

.index-heading .index-note,
.contact h2 em { font-feature-settings: "ss01" 1; }

.index-scatter span:nth-child(1) {
  top: 3%;
  right: 7%;
  font-size: clamp(3rem, 7vw, 7rem);
  opacity: .13;
  transform: rotate(9deg);
}

.index-scatter span:nth-child(2) {
  top: 46%;
  left: 2%;
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 900;
  opacity: .26;
  transform: rotate(-90deg);
}

.index-scatter span:nth-child(3) {
  right: 18%;
  bottom: 3%;
  font-size: clamp(1.5rem, 3vw, 3rem);
  opacity: .25;
  transform: rotate(-6deg);
}

.index-scatter span:nth-child(4) {
  bottom: 27%;
  left: 33%;
  font-size: clamp(2.5rem, 5vw, 5rem);
  opacity: .08;
  transform: rotate(15deg);
}

.buffer-list { border-top: 1px solid var(--line); }

.buffer-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(10rem, .8fr) minmax(12rem, 1.2fr) minmax(8rem, .5fr) 4rem;
  gap: 1.5rem;
  align-items: center;
  min-height: 7.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  transition: background-color 140ms ease, padding 140ms ease;
}

.buffer-row:hover {
  padding-inline: .8rem;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.buffer-number { color: var(--line); font-size: .68rem; }

.buffer-title { display: flex; gap: 1rem; align-items: center; }
.buffer-title h3 { margin: 0; color: var(--bright); font-size: 1rem; }
.file-icon { color: var(--green); font-size: 1.2rem; font-weight: 700; }
.note-icon { color: var(--teal); }
.lab-icon { color: var(--cyan); }
.buffer-row > p {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
  font-style: italic;
  font-weight: 600;
}

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags span { padding: .12rem .4rem; background: color-mix(in srgb, var(--line) 20%, transparent); color: var(--muted); font-size: .62rem; }
.pending { color: var(--line); font-size: .68rem; font-style: italic; }
.muted-row { opacity: .72; }

.contact { padding-bottom: clamp(7rem, 13vw, 12rem); }
.contact-kicker { margin-bottom: 3.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 4rem;
  align-items: end;
}

.contact h2 { color: var(--bright); }
.contact h2 em { color: var(--teal); }
.contact-copy { max-width: 28rem; }
.contact-copy p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 600;
}

.contact-scatter span:nth-child(1) {
  top: 7%;
  right: 4%;
  font-size: clamp(4rem, 10vw, 10rem);
  opacity: .12;
  transform: rotate(-10deg);
}

.contact-scatter span:nth-child(2) {
  bottom: 12%;
  left: 5%;
  font-size: clamp(.8rem, 2vw, 1.8rem);
  font-weight: 900;
  opacity: .42;
  transform: rotate(6deg);
}

.contact-scatter span:nth-child(3) {
  right: 30%;
  bottom: 5%;
  font-size: clamp(1.8rem, 4vw, 4rem);
  opacity: .2;
  transform: rotate(12deg);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2rem var(--pad) 4.5rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  color: var(--muted);
  font-size: .68rem;
}

.site-footer p { margin: 0; }
.site-footer .status-dot { width: .35rem; height: .35rem; }
.site-footer a { justify-self: end; color: var(--blue); text-underline-offset: .2rem; }

.mode-line {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  gap: 1.3rem;
  align-items: center;
  min-height: 1.65rem;
  padding: 0 .6rem;
  background: var(--surface);
  color: var(--muted);
  font-size: .62rem;
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--line) 30%, transparent);
}

.mode-state { color: var(--green); font-weight: 700; }
.mode-spacer { flex: 1; }
.position { color: var(--yellow); }

@keyframes pulse-line {
  0%, 100% { box-shadow: inset 0 0 0 transparent; }
  20% { box-shadow: inset 4px 0 0 var(--green); }
}

.section:target { animation: pulse-line 900ms ease-out; }

@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { margin-top: 1rem; }
  .scratch { max-width: 25rem; }
  .hero::after { display: none; }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .about-copy { padding-top: 0; }
  .buffer-row { grid-template-columns: 2rem 1fr auto; gap: .8rem 1rem; padding: 1.4rem 0; }
  .buffer-row > p { grid-column: 2 / -1; }
  .tags { grid-column: 2; }
  .buffer-row > a, .pending { grid-column: 3; grid-row: 1; }
  .site-footer { grid-template-columns: 1fr auto; gap: 1rem; }
  .site-footer p:nth-child(2) { display: none; }
  .type-scatter span { opacity: .12 !important; }
  .hero-scatter span:nth-child(2),
  .hero-scatter span:nth-child(4),
  .about-scatter span:nth-child(2),
  .index-scatter span:nth-child(2),
  .contact-scatter span:nth-child(2) { display: none; }
}

@media (max-width: 500px) {
  .theme-label, .hero-meta span:last-child, .mode-line span:not(.mode-state, .mode-spacer, .position) { display: none; }
  .hero { padding-top: 5rem; }
  h1 { font-size: clamp(3.5rem, 19vw, 5rem); }
  .index-heading { display: block; }
  .index-note { margin-top: 1.5rem; text-align: left; }
  .buffer-row { grid-template-columns: 1.5rem 1fr; }
  .buffer-row > p, .tags { grid-column: 2; }
  .buffer-row > a, .pending { grid-column: 2; grid-row: auto; }
  .site-footer { padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
