:root {
  --font-main: "IBM Plex Mono", monospace;
  --bg: #f0ede6;
  --panel: #e8e4dc;
  --text: #0e0d0b;
  --muted: #6b6760;
  --accent: #d94f1e;
  --border: rgba(14, 13, 11, .14);
  --nav-bg: rgba(240, 237, 230, .9);
}

html.dark {
  --bg: #0f0e0c;
  --panel: #1a1916;
  --text: #ede9e1;
  --muted: #807c76;
  --accent: #e8612a;
  --border: rgba(237, 233, 225, .12);
  --nav-bg: rgba(15, 14, 12, .9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.65;
  transition: background .3s ease, color .3s ease;
  cursor: none;
}

a {
  color: inherit;
}

#cursor {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, opacity .15s, background .2s, box-shadow .2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 255, 255, .12);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: transform .08s, width .2s, height .2s, border-color .2s, box-shadow .2s, opacity .15s;
  mix-blend-mode: difference;
}

html.dark #cursor {
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, .18);
}

html.dark #cursor-ring {
  border-color: rgba(255, 255, 255, .78);
  box-shadow: 0 0 20px rgba(255, 255, 255, .16);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background .3s ease, border-color .3s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .06em;
}

.brand img {
  width: auto;
  height: 25px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.site-nav a {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a.brand {
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: none;
  font-family: var(--font-main);
  padding: 0;
}

.toggle-track {
  position: relative;
  width: 44px;
  height: 26px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 13px;
  transition: background .3s ease, border-color .3s ease;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}

html.dark .toggle-track {
  background: var(--accent);
  border-color: var(--accent);
}

html.dark .toggle-thumb {
  transform: translateX(18px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

.sun-icon,
.moon-icon {
  font-size: 13px;
  line-height: 1;
  opacity: .55;
}

html.dark .sun-icon,
html:not(.dark) .moon-icon {
  opacity: .3;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--text);
  color: var(--bg);
  padding: 11px 20px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero {
  padding: 92px 0 56px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-family: "VT323", monospace;
  font-size: clamp(64px, 11vw, 132px);
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  font-family: "VT323", monospace;
  font-size: 46px;
  font-weight: 400;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  margin: 22px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 5px 10px;
  text-transform: uppercase;
}

.section {
  border-top: 1px solid var(--border);
  padding: 54px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  background: var(--bg);
  padding: 28px;
  text-decoration: none;
  min-height: 220px;
}

.card p,
article p,
article li {
  color: var(--muted);
  font-size: 13px;
}

.card .tag {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.media {
  width: min(360px, 100%);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  margin-top: 32px;
}

article {
  max-width: 760px;
}

article h2 {
  margin-top: 42px;
}

article ul {
  padding-left: 22px;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.note-list .card {
  min-height: 190px;
}

@media (min-width: 761px) {
  .note-list .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

footer {
  border-top: 1px solid var(--border);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

footer a {
  text-decoration: none;
}

a,
button,
.card,
.theme-toggle {
  cursor: none;
}

@media (max-width: 760px) {
  .site-nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 18px 20px;
  }

  .brand {
    margin-right: auto;
  }

  .site-nav ul {
    order: 2;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    margin-left: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding-top: 64px;
  }

  .grid,
  .note-list {
    grid-template-columns: 1fr;
  }

}

@media (hover: none), (pointer: coarse) {
  #cursor,
  #cursor-ring {
    display: none !important;
  }

  body,
  a,
  button,
  .card,
  .theme-toggle {
    cursor: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}
