:root {
  color-scheme: light;
  --bg: #fbf1c7;
  --surface: #f2e5bc;
  --surface-alt: #ebdbb2;
  --ink: #3c3836;
  --muted: #685e53;
  --border: #bdae93;
  --link: #076678;
  --link-hover: #8f3f71;
  --accent: #8c4a00;
  --success: #427b58;
  --inverse-bg: #3c3836;
  --inverse-ink: #fbf1c7;
  --inverse-accent: #fabd2f;
  --inverse-success: #b8bb26;
  --shadow: #d5c4a1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #282828;
    --surface: #32302f;
    --surface-alt: #3c3836;
    --ink: #ebdbb2;
    --muted: #bdae93;
    --border: #665c54;
    --link: #8eb4a9;
    --link-hover: #dda0b2;
    --accent: #fabd2f;
    --success: #b8bb26;
    --inverse-bg: #ebdbb2;
    --inverse-ink: #282828;
    --inverse-accent: #8c4a00;
    --inverse-success: #427b58;
    --shadow: #1d2021;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #282828;
  --surface: #32302f;
  --surface-alt: #3c3836;
  --ink: #ebdbb2;
  --muted: #bdae93;
  --border: #665c54;
  --link: #8eb4a9;
  --link-hover: #dda0b2;
  --accent: #fabd2f;
  --success: #b8bb26;
  --inverse-bg: #ebdbb2;
  --inverse-ink: #282828;
  --inverse-accent: #8c4a00;
  --inverse-success: #427b58;
  --shadow: #1d2021;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
}

::selection {
  background: var(--link);
  color: var(--bg);
}

a,
button {
  font: inherit;
}

a {
  color: var(--link);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: var(--bg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(900px, calc(100% - 32px));
  margin: 28px auto;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--shadow);
}

.system-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 5px 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.system-bar p {
  margin: 0;
}

.status-light {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border: 1px solid currentColor;
  background: var(--inverse-success);
  vertical-align: 1px;
}

.theme-toggle {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--inverse-ink);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.theme-toggle:hover {
  color: var(--inverse-accent);
}

.theme-toggle:disabled {
  cursor: default;
}

.theme-toggle:focus-visible {
  outline-color: var(--inverse-accent);
}

.site-header {
  padding: 42px 42px 0;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 34px;
  align-items: center;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 4px;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.role {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1.1s steps(1, end) infinite;
}

.intro {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
}

.profile-card {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--surface-alt);
  color: var(--ink);
  font: 0.78rem/1.7 "Courier New", Courier, monospace;
  white-space: pre-wrap;
}

.bracket-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 38px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bracket-nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
}

.content-section {
  padding: 34px 42px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 20px;
}

.content-section:last-child {
  border-bottom: 0;
}

h2 {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.4;
  text-transform: uppercase;
}

h2 span {
  color: var(--accent);
}

.content-section > p:last-child {
  margin-bottom: 0;
}

.aside-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.table-scroll {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.table-scroll:focus-visible {
  outline-offset: 2px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  padding: 13px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody th {
  width: 47%;
  font-weight: 400;
}

tbody td:first-child {
  color: var(--muted);
}

.project-link {
  display: inline-block;
  font-weight: 700;
}

.project-description {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.section-action {
  margin-top: 18px;
  font-size: 0.84rem;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.language-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.language-item span {
  color: var(--accent);
  font-size: 0.72rem;
}

.language-item strong {
  font-size: 1rem;
}

.contact-section {
  background: var(--surface-alt);
}

.contact-section .contact-link {
  font-size: clamp(1rem, 4vw, 1.35rem);
}

.availability {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.availability span {
  margin-right: 8px;
  color: var(--success);
}

footer {
  padding: 20px 42px;
  border-top: 2px solid var(--ink);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 5px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 900px);
    margin: 10px auto;
    box-shadow: 5px 5px 0 var(--shadow);
  }

  .site-header,
  .content-section,
  footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .system-bar {
    font-size: 0.64rem;
  }

  .site-header {
    padding-top: 30px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cursor {
    animation: none;
  }
}
