:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f2f2ef;
  background: #050505;
  font-synthesis: none;
  --background: #050505;
  --text: #f2f2ef;
  --muted: #969691;
  --faint: #5f5f5b;
  --line: rgba(242, 242, 239, 0.14);
  --line-strong: rgba(242, 242, 239, 0.28);
  --accent: #8f2431;
  --mono:
    "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  text-transform: lowercase;
  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(255, 255, 255, 0.075),
      transparent 32rem
    ),
    var(--background);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

::selection {
  color: #fff;
  background: var(--accent);
}

.site-shell {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.terminal-stage {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

body[data-shell-state="directory"] .terminal-stage {
  min-height: 0;
  align-items: start;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.045em;
  text-transform: lowercase;
}

.section-index,
.project-number {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: lowercase;
}

.terminal {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 5, 0.82);
  box-shadow:
    0 0 5rem rgba(255, 255, 255, 0.035),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.terminal-host {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  letter-spacing: inherit;
}

.terminal-host:hover,
.terminal-host:focus-visible {
  color: var(--text);
  outline: none;
}

.terminal-body {
  cursor: text;
  min-height: 15rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  line-height: 1.75;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.prompt {
  flex: 0 0 auto;
  color: var(--text);
  text-shadow: 0 0 1.2rem rgba(255, 255, 255, 0.15);
}

.directory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0.35rem 0 1.4rem;
}

.directory {
  padding: 0;
  border: 0;
  color: #b6b6b0;
  background: transparent;
  cursor: pointer;
}

.directory::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0.42rem;
  margin-right: 0;
  background: #d6d6d0;
  transition:
    width 160ms ease,
    margin-right 160ms ease;
}

.directory:hover,
.directory:focus-visible,
.directory.is-active {
  color: #fff;
  outline: none;
}

.directory:hover::before,
.directory:focus-visible::before,
.directory.is-active::before {
  width: 0.42rem;
  margin-right: 0.45rem;
}

.terminal-output {
  max-height: min(24rem, 45vh);
  overflow-y: auto;
  color: #cecec8;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.log-line {
  min-height: 1.75em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.log-command {
  margin-top: 0.35rem;
  color: var(--text);
}

.log-command:first-child {
  margin-top: 0;
}

.log-action {
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
  white-space: inherit;
}

.log-action:hover,
.log-action:focus-visible {
  outline: none;
  text-decoration-color: var(--accent);
}

.tone-muted {
  color: var(--muted);
}

.tone-faint {
  color: var(--faint);
}

.tone-strong {
  color: var(--text);
}

.tone-error {
  color: #d4848e;
}

.terminal-input-line {
  margin-top: 0.1rem;
}

.terminal-entry {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.terminal-input {
  min-width: 0;
  width: 1ch;
  max-width: calc(100% - 1ch);
  flex: 0 1 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  caret-color: transparent;
}

.terminal-cursor {
  width: 0.58em;
  height: 1.05em;
  flex: 0 0 auto;
  margin-left: 0.14em;
  background: var(--text);
  box-shadow: 0 0 1rem rgba(255, 255, 255, 0.18);
  animation: terminal-blink 1s steps(1, end) infinite;
}

.terminal-hint {
  margin: 1.1rem 0 0;
  color: var(--faint);
  font-size: 0.68rem;
}

.terminal-hint code,
.terminal-hint kbd {
  color: #aaa;
  font-family: inherit;
}

.content-shell {
  padding: clamp(5rem, 11vw, 9rem) 0;
}

.content-shell[hidden],
.site-footer[hidden] {
  display: none;
}

.content-page[hidden] {
  display: none;
}

.content-page:not([hidden]) {
  animation: reveal 260ms ease-out;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(8rem, 0.65fr) minmax(0, 2.35fr);
  column-gap: 2rem;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.section-heading h1,
.section-heading h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
  text-wrap: balance;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 8vw, 7rem);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.lead,
.contact-block,
.empty-state {
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.7;
}

.lead {
  max-width: 33rem;
  margin: 0;
  color: #cecec8;
}

.current-status {
  margin: 0;
  border-top: 1px solid var(--line);
}

/* its title is wording, so it comes from the page: home.status.title */
.current-status::before {
  content: attr(data-title);
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.current-status div {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.current-status dt,
.current-status dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.current-status dt {
  color: var(--faint);
  text-transform: lowercase;
}

.current-status dd {
  color: #bcbcb6;
}

.principles {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem)
    clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--accent);
}

.principles h3 {
  max-width: 14ch;
  margin: 0.6rem 0 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.principles > p {
  margin: 0;
  color: #bcbcb6;
  line-height: 1.65;
}

.principles ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  list-style: none;
}

.principles li + li {
  margin-top: 0.65rem;
}

.principles li::before {
  content: "—";
  margin-right: 0.55rem;
  color: var(--faint);
}

.project-list {
  border-bottom: 1px solid var(--line);
}

.project-item {
  display: grid;
  grid-template-columns: minmax(10rem, 0.85fr) minmax(0, 1.45fr) minmax(
      8rem,
      0.65fr
    );
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}

.project-item:first-child {
  border-top: 0;
}

.project-item h3 {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
  font-weight: 540;
  letter-spacing: -0.025em;
}

.project-status {
  margin: 0.85rem 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.45;
}

.project-copy {
  max-width: 39rem;
  color: var(--muted);
  line-height: 1.65;
}

.project-copy > :first-child {
  margin-top: 0;
}

.project-copy > :last-child {
  margin-bottom: 0;
}

.project-copy p {
  margin: 0 0 1rem;
}

.project-copy ul,
.project-copy ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.project-copy li + li {
  margin-top: 0.4rem;
}

.entry-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease;
}

.entry-link:hover,
.entry-link:focus-visible {
  outline: none;
  text-decoration-color: currentColor;
}

.project-copy .read-more {
  margin: 1rem 0 0;
}

.read-more a {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-decoration: none;
}

.read-more a:hover,
.read-more a:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  text-transform: lowercase;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(3rem, 9vw, 8rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 9vw, 7rem);
}

.about-lead {
  max-width: 42rem;
  margin: 0;
  color: #cecec8;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  letter-spacing: -0.015em;
  line-height: 1.65;
}

.profile-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.profile-facts div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-facts dt,
.profile-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

.profile-facts dt {
  color: var(--faint);
}

.profile-facts dd {
  color: #bcbcb6;
}

.about-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.about-section-heading,
.work-item,
.credentials {
  display: grid;
  grid-template-columns: minmax(8rem, 0.65fr) minmax(0, 2.35fr);
  gap: 2rem;
}

.about-section-heading h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.work-history {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.work-item {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}

.work-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.work-date {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.work-item h4 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.work-site {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin: -0.5rem 0 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-decoration: none;
}

.work-site:hover {
  color: var(--text);
}

.work-site img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.work-item p:last-child,
.about-columns p {
  max-width: 40rem;
  margin: 0;
  color: #b8b8b2;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.about-values {
  position: relative;
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
}

.about-values::before {
  position: absolute;
  top: clamp(3rem, 6vw, 5rem);
  bottom: clamp(3rem, 6vw, 5rem);
  left: 0;
  width: 2px;
  background: var(--accent);
  content: "";
}

.credentials {
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credentials ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credentials li {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.empty-state {
  max-width: 48rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.contact-block {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.empty-state p {
  margin: 0 0 1.25rem;
}

.empty-state p:last-child {
  color: var(--muted);
}

.empty-state p:first-child {
  color: var(--text);
}

.contact-intro {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.contact-links {
  display: grid;
  max-width: 42rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  gap: 1.1rem;
}

.contact-link {
  display: grid;
  grid-template-columns: minmax(5rem, 7rem) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  color: var(--text);
  text-decoration: none;
  width: 100%;
}

.contact-meta {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.contact-link strong {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 450;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms ease;
}

.contact-arrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.1rem;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  outline: none;
}

.contact-link:hover strong,
.contact-link:focus-visible strong {
  text-decoration-color: currentColor;
}

.contact-link:hover .contact-arrow,
.contact-link:focus-visible .contact-arrow {
  color: var(--text);
  transform: translate(0.2rem, -0.2rem);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

.site-footer {
  min-height: 7rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.site-footer button:hover,
.site-footer button:focus-visible {
  color: var(--text);
  outline: none;
}

.site-footer button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}

/* github repositories */

.repo-section {
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.repo-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.repo-card h3 {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 540;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.repo-card h3 a {
  text-decoration: none;
}

.repo-card h3 a:hover,
.repo-card h3 a:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.repo-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.repo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.repo-stats div {
  display: flex;
  gap: 0.45rem;
}

.repo-stats dt {
  color: var(--faint);
}

.repo-stats dd {
  margin: 0;
  color: #bcbcb6;
}

.repo-card .tags {
  justify-content: flex-start;
}

.repo-card .read-more {
  margin: 0;
  overflow-wrap: anywhere;
}

/* project and note pages */

.entry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.045em;
}

.entry-bar .terminal-host {
  text-decoration: none;
}

.entry-bar .prompt {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-page {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  animation: reveal 260ms ease-out;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 2.35fr);
  gap: 2rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.entry-layout > * {
  min-width: 0;
}

.entry-meta {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.entry-meta .tags {
  justify-content: flex-start;
}

.entry-meta a {
  overflow-wrap: anywhere;
}

.entry-body {
  max-width: 44rem;
  color: #c4c4be;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.entry-body > :first-child {
  margin-top: 0;
}

.entry-body p,
.entry-body ul,
.entry-body ol,
.entry-body blockquote,
.entry-body pre,
.entry-body table {
  margin: 0 0 1.4rem;
}

.entry-body h2,
.entry-body h3,
.entry-body h4 {
  margin: 2.75rem 0 1rem;
  color: var(--text);
  font-weight: 540;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.entry-body h2 {
  font-size: 1.6rem;
}

.entry-body h3 {
  font-size: 1.25rem;
}

.entry-body h4 {
  font-size: 1.05rem;
}

.entry-body a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}

.entry-body a:hover,
.entry-body a:focus-visible {
  text-decoration-color: var(--accent);
}

.entry-body ul,
.entry-body ol {
  padding-left: 1.25rem;
}

.entry-body li + li {
  margin-top: 0.45rem;
}

.entry-body strong {
  color: var(--text);
  font-weight: 600;
}

.entry-body blockquote {
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

/* the site lowercases text for its look; code has to stay as written. */
.entry-body code,
.entry-body pre {
  text-transform: none;
}

.entry-body code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85em;
}

.entry-body pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.6;
}

.entry-body pre code {
  padding: 0;
  border: 0;
  font-size: 0.82rem;
}

.entry-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.entry-body th,
.entry-body td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-body th {
  color: var(--text);
  font-weight: 540;
}

.entry-body img {
  max-width: 100%;
  height: auto;
}

.entry-body hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.entry-nav a {
  display: grid;
  gap: 0.4rem;
  max-width: 45%;
  color: var(--text);
  text-decoration: none;
}

.entry-nav a[rel="next"] {
  margin-left: auto;
  text-align: right;
}

.entry-nav a:hover,
.entry-nav a:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminal-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 2rem, 1120px);
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading h1,
  .section-heading h2 {
    margin-top: 1.25rem;
  }

  .terminal-body {
    min-height: 14rem;
  }

  .entry-layout,
  .content-grid,
  .project-item,
  .principles,
  .about-intro,
  .about-section-heading,
  .work-item,
  .about-columns,
  .credentials {
    grid-template-columns: 1fr;
  }

  .content-grid {
    gap: 2.5rem;
  }

  .project-item {
    gap: 1rem;
  }

  .project-status {
    margin-top: 0.55rem;
  }

  .principles {
    gap: 1.5rem;
  }

  .about-intro {
    gap: 2.5rem;
  }

  .about-section-heading,
  .work-item,
  .credentials {
    gap: 1.25rem;
  }

  .tags {
    justify-content: flex-start;
  }

  .contact-link {
    grid-template-columns: minmax(4.5rem, 5rem) minmax(0, 1fr) auto;
    gap: 0.75rem;
  }
}

@media (max-width: 430px) {
  .terminal-line {
    gap: 0.5rem;
  }

  .terminal-input-line .prompt {
    max-width: 11.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .current-status div {
    grid-template-columns: 0.8fr 1.5fr;
  }
}

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

  .content-page:not([hidden]),
  .entry-page {
    animation: none;
  }

  .directory::before {
    transition: none;
  }

  .terminal-cursor {
    animation: none;
  }
}
