:root {
  --bg: #f7f7f3;
  --paper: #fbfbf8;
  --text: #2b2823;
  --muted: #746d63;
  --border: rgba(43, 40, 35, 0.14);
  --surface: rgba(255, 255, 255, 0.18);
  --max-width: 1040px;
}

:root[data-theme="dark"] {
  --bg: #161714;
  --paper: #1d1f1b;
  --text: #f1efe8;
  --muted: #b3ada1;
  --border: rgba(241, 239, 232, 0.16);
  --surface: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 80%, white) 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--text) 8%, transparent), transparent 60%);
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 3.5rem;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.site-footer {
  justify-content: flex-start;
}

.wordmark,
.site-nav a,
.text-link,
.footer-links a,
.footer-home-link {
  color: var(--text);
  text-decoration: none;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.wordmark,
.site-nav a,
.button,
.eyebrow,
.section-label,
.footer-links a,
.portrait-block figcaption,
.signal-list span {
  font-family: "Courier Prime", monospace;
}

.wordmark {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav,
.hero-actions,
.footer-links,
.app-header {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.15rem 0;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  border-color: var(--text);
}

.theme-toggle:focus-visible {
  outline: none;
}

.theme-toggle-label,
.theme-toggle-value {
  font-family: "Courier Prime", monospace;
  font-size: 0.78rem;
  line-height: 1;
}

.theme-toggle-label {
  color: var(--muted);
}

.theme-toggle-value {
  padding: 0.18rem 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

main {
  display: grid;
  gap: 1.5rem;
  padding: 0.75rem 0 0;
}

.hero {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-typewriter {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(140px, 190px);
  gap: 2rem;
  align-items: start;
}

.hero-compact h1 {
  max-width: 14ch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-label {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
}

h1 {
  max-width: 16ch;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.22;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.4;
}

h3 {
  font-family: "Courier Prime", monospace;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.5;
}

.lede,
.panel p,
.site-footer p,
.detail-list,
.statement-line {
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

.hero-actions {
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}

.button-primary {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}

.button-secondary {
  background: transparent;
}

.statement {
  padding-top: 0.2rem;
}

.statement-line {
  margin: 0;
  max-width: 44ch;
}

.feature-layout,
.app-list,
.notes-strip {
  display: grid;
  gap: 1.25rem;
}

.feature-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apps-feature-layout h2 {
  min-height: 2.8em;
}

.notes-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.app-card-layout {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.app-copy {
  min-width: 0;
}

.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.signal-list,
.detail-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

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

.signal-list {
  display: grid;
  gap: 0.75rem;
}

.signal-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.signal-list span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.signal-list strong {
  text-align: right;
  font-weight: 500;
}

.tool-list li {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: "Courier Prime", monospace;
  font-size: 0.82rem;
  line-height: 1.2;
  background: var(--surface);
}


.app-icon-block {
  margin: 0.2rem 0 0;
}

.app-icon {
  display: block;
  width: 92px;
  height: 92px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.portrait-block {
  margin: 0.25rem 0 0;
}

.detail-list li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1.15rem;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--text);
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(43, 40, 35, 0.45);
}

.portrait-block {
  margin: 0;
}

.portrait {
  display: block;
  width: 100%;
  max-width: 165px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  filter: grayscale(100%) contrast(0.94) brightness(1.03);
  background: var(--surface);
}


.portrait-block figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  width: 165px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.note-card {
  padding-top: 0.2rem;
  border-top: 1px solid var(--border);
}

.site-footer {
  margin-top: 1.5rem;
}

.footer-links {
  justify-content: flex-start;
}

.footer-separator {
  margin: 0;
  position: relative;
  top: -0.03em;
  line-height: 1;
}

@media (max-width: 840px) {
  .hero-typewriter,
  .feature-layout,
  .notes-strip {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer,
  .app-header {
    flex-direction: column;
  }

  h1 {
    max-width: 100%;
  }

  .portrait {
    max-width: 150px;
  }

  .portrait-block figcaption {
    width: 150px;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
  }

  .app-card-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-nav {
    width: 100%;
    gap: 0.75rem;
  }
}
