:root {
  color-scheme: dark;
  --bg: #05061a;
  --text: #f7f7fb;
  --text-soft: #e9e9f1;
  --muted: #858bad;
  --subtle: #737898;
  --faint: #464b6b;
  --line: rgba(255, 255, 255, .08);
  --line-hover: rgba(168, 165, 255, .3);
  --accent: #a8a5ff;
  --accent-strong: #d4d2ff;
  --accent-soft: rgba(168, 165, 255, .08);
  --surface: rgba(255, 255, 255, .015);
  --line-strong: rgba(255, 255, 255, .2);
  --timeline-line: linear-gradient(to bottom, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08));
  --point-border: rgba(255, 255, 255, .72);
  --point-glow: rgba(255, 255, 255, .08);
  --hero-glow: var(--hero-glow);
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --content-width: 640px;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f7f7f3;
  --text: #171827;
  --text-soft: #2a2b3b;
  --muted: #55586e;
  --subtle: #696c7d;
  --faint: #9295a2;
  --line: rgba(23, 24, 39, .12);
  --line-hover: rgba(82, 76, 190, .32);
  --accent: #5d59c8;
  --accent-strong: #403c9d;
  --accent-soft: rgba(93, 89, 200, .08);
  --surface: rgba(23, 24, 39, .025);
  --line-strong: rgba(23, 24, 39, .22);
  --timeline-line: linear-gradient(to bottom, rgba(23, 24, 39, .24), rgba(23, 24, 39, .08));
  --point-border: rgba(23, 24, 39, .58);
  --point-glow: rgba(23, 24, 39, .08);
  --hero-glow: rgba(93, 89, 200, .10);
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: #101022; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 5px; border-radius: 4px; }

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--accent-strong);
  color: #111122;
  font-size: .75rem;
}
.skip-link:focus { top: 1rem; }

.minimal-home {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 70% -10%, var(--hero-glow), transparent 34rem);
}
.minimal-page {
  display: flex;
  width: min(calc(100% - 3rem), var(--content-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0 2.5rem;
  flex-direction: column;
}
.minimal-main {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
}
.minimal-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.065em;
}
.minimal-hero p {
  margin: .6rem 0 0;
  color: var(--subtle);
  font-size: .84rem;
  line-height: 1.4;
}
.minimal-hero .minimal-now { margin-top: .75rem; font-size: .78rem; }
.minimal-now span { color: var(--faint); }

.minimal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 3.25rem;
}
.minimal-links a,
.minimal-page-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: .65rem .8rem;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.3;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

:root:not([data-theme='light']) .minimal-links a,
:root:not([data-theme='light']) .minimal-page-button { color:#fff; }
:root:not([data-theme='light']) .minimal-links a:hover,
:root:not([data-theme='light']) .minimal-page-button:hover { color:#fff; }

.social-icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 1.05em;
  margin-right: .65rem;
  fill: currentColor;
}
.social-image {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url('/assets/mutolaa.png') center / contain no-repeat;
  mask: url('/assets/mutolaa.png') center / contain no-repeat;
}
.page-icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 1.05em;
  margin-right: .65rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.minimal-links a,
.minimal-page-button { justify-content: flex-start; }

.minimal-links a:hover,
.minimal-page-button:hover {
  border-color: var(--line-hover);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateX(.35rem);
}
.minimal-links a span:last-child,
.minimal-page-button span:last-child { color: inherit; transition: color .2s ease; }
.minimal-links a:hover span:last-child,
.minimal-page-button:hover span:last-child { color: inherit; }
.minimal-page-button { margin-top: .1rem; }
.home-page-links { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.65rem; margin-top:.65rem; }
.home-page-links .minimal-page-button { min-height:58px; margin-top:0; }
.home-page-links .minimal-page-button:hover { transform:translateY(-.2rem); }

.minimal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: .72rem;
  line-height: 1.5;
}
.minimal-footer a:hover { color: var(--muted); }

.breadcrumb { display:flex; align-items:center; gap:.55rem; margin-bottom:2.5rem; color:var(--subtle); font-size:.78rem; }
.breadcrumb a { transition:color .2s ease; }
.breadcrumb a:hover { color:var(--text); }
.breadcrumb span[aria-hidden="true"] { color:var(--faint); }
.breadcrumb span[aria-current="page"] { color:var(--text-soft); }

.minimal-back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--subtle);
  font-size: .78rem;
  transition: color .2s ease, transform .2s ease;
}
.minimal-back:hover { color: var(--text); transform: translateX(-.25rem); }

/* Timeline */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.minimal-timeline { margin-top: 3.25rem; padding: 0 0 1rem 1.4rem; }
.timeline-list { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline-list::before {
  position: absolute;
  top: .45rem;
  bottom: .6rem;
  left: .18rem;
  width: 1px;
  background: var(--timeline-line);
  content: '';
}
.timeline-item { position: relative; display: grid; padding: 0 0 2rem 1.2rem; }
.timeline-item:last-child { padding-bottom: .2rem; }
.timeline-point {
  position: absolute;
  z-index: 1;
  top: .2rem;
  left: -.02rem;
  width: .75rem;
  height: .75rem;
  border: 1px solid var(--point-border);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--point-glow);
}

.minimal-timeline .timeline-item.reveal { transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1); }
.minimal-timeline .timeline-item.reveal:nth-child(2) { transition-delay: .08s; }
.minimal-timeline .timeline-item.reveal:nth-child(3) { transition-delay: .16s; }
.minimal-timeline .timeline-item.reveal:nth-child(4) { transition-delay: .24s; }
.minimal-timeline .timeline-item.reveal:nth-child(5) { transition-delay: .32s; }
.minimal-timeline .timeline-item.reveal:nth-child(6) { transition-delay: .40s; }
.minimal-timeline .timeline-item.reveal:nth-child(7) { transition-delay: .48s; }
.minimal-timeline .timeline-item.reveal .timeline-point { transition: background .45s ease, border-color .45s ease, box-shadow .45s ease, transform .45s ease; transform:scale(.72); }
.minimal-timeline .timeline-item.reveal.visible .timeline-point { transform:scale(1); }
@media (prefers-reduced-motion: reduce) { .minimal-timeline .timeline-item.reveal, .minimal-timeline .timeline-item.reveal .timeline-point { transition:none; } }

.timeline-current .timeline-point {
  border-color: var(--text);
  background: var(--text);
  box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--point-glow);
}
.timeline-content time { color: var(--muted); font-size: .72rem; }
.timeline-content h3 { margin: .38rem 0 .35rem; color: var(--text-soft); font-size: .9rem; font-weight: 500; }
.timeline-content p { max-width: 560px; margin: 0; color: var(--subtle); font-size: .76rem; line-height: 1.6; }

/* About */
.minimal-about-page .minimal-hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.about-copy { max-width: 620px; margin-top: 2.75rem; }
.about-copy > p { margin: 0 0 1.55rem; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.about-copy > p:first-child { color: var(--text-soft); }
.about-facts { display: grid; gap: .75rem; margin: 2rem 0 2.15rem; padding: 1.1rem .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-fact { display: grid; grid-template-columns: minmax(7.5rem, .42fr) 1fr; gap: 1rem; align-items: baseline; }
.about-fact span { color: var(--faint); font-size: .68rem; text-transform: lowercase; }
.about-facts#about-languages .about-fact span { text-transform: capitalize; }
.about-fact strong { color: var(--text-soft); font-size: .76rem; font-weight: 500; line-height: 1.5; }

/* 404 */
.minimal-404-page .minimal-hero h1 { font-size: clamp(2.4rem, 9vw, 4rem); letter-spacing: -.08em; }
.not-found-copy { max-width: 560px; margin: 2.25rem 0 0; color: var(--subtle); font-size: .8rem; line-height: 1.75; }
.not-found-links { margin-top: 2.25rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 520px) {
  .minimal-page { width: min(calc(100% - 2rem), var(--content-width)); padding-top: 4vh; padding-bottom: 1.5rem; }
  .minimal-hero h1 { font-size: clamp(1.55rem, 7vw, 1.9rem); }
  .minimal-links { margin-top: 2.5rem; gap:.45rem; }
  .home-page-links { gap:.45rem; }
  .minimal-footer { display: block; }
  .minimal-footer span { display: block; }
  .minimal-page-button { margin-top: .1rem; }
  .minimal-timeline { margin-top: 2.5rem; padding-left: 1.2rem; }
  .timeline-item { padding-left: 1rem; padding-bottom: 1.7rem; }
  .timeline-content h3 { font-size: .84rem; }
  .timeline-content p { font-size: .72rem; }
  .about-copy { margin-top: 2.35rem; }
  .about-copy > p { font-size: .76rem; line-height: 1.75; }
  .about-fact { grid-template-columns: 1fr; gap: .25rem; }
  .about-fact strong { font-size: .74rem; }
  .not-found-copy { margin-top: 1.85rem; font-size: .76rem; }
  .not-found-links { margin-top: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Now page */
.minimal-now-page .minimal-hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
.now-focus { margin-top: 2.75rem; padding: 1rem .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label { margin: 0 0 .6rem; color: var(--faint); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.now-focus-text { margin: 0; color: var(--text-soft); font-size: .82rem; line-height: 1.7; }
.now-focus-text span { color: var(--subtle); font-size: .74rem; }
.now-section { margin-top: 3.25rem; }
.now-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.now-section-heading h2 { margin: 0; color: var(--text-soft); font-size: 1rem; font-weight: 500; }
.now-section-heading span { color: var(--faint); font-size: .64rem; }
.now-list { display: grid; border-top: 1px solid var(--line); }
.now-entry { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem .8rem; border-bottom: 1px solid var(--line); }
.now-media-entry { grid-template-columns: 4.5rem 1fr; }
.now-poster { width: 4.5rem; aspect-ratio: 2 / 3; border: 1px solid var(--line-strong); background: linear-gradient(135deg, var(--surface), var(--line)); overflow: hidden; }
.now-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.now-poster.is-error img { display: none; }
.now-poster.is-error::after { content: "poster"; display: grid; height: 100%; place-items: center; color: var(--faint); font-size: .58rem; }
.now-cover { width: 4.5rem; aspect-ratio: 2 / 3; border: 1px solid var(--line-strong); background: linear-gradient(135deg, var(--surface), var(--line)); overflow: hidden; }
.now-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.now-cover.is-error img { display: none; }
.now-cover.is-error::after { content: "muqova"; display: grid; height: 100%; place-items: center; color: var(--faint); font-size: .58rem; }
.now-book-entry { grid-template-columns: 4.5rem 1fr auto; }
.now-entry h3 { margin: 0 0 .35rem; color: var(--text-soft); font-size: .86rem; font-weight: 500; }
.now-entry p { margin: 0; color: var(--subtle); font-size: .74rem; line-height: 1.65; }
.now-entry-meta { color: var(--faint); font-size: .68rem; text-align: right; white-space: nowrap; }
.now-entry a { display: inline-block; margin-top: .45rem; color: var(--muted); font-size: .7rem; }
.now-entry a:hover { color: var(--text); }
.now-empty { margin: 0; padding: 1rem .8rem; border-bottom: 1px solid var(--line); color: var(--subtle); font-size: .74rem; line-height: 1.6; }
.now-tabs { display: flex; gap: .35rem; overflow-x: auto; margin-bottom: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.now-tabs::-webkit-scrollbar { display: none; }
.now-tab { padding: .7rem .65rem; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--faint); cursor: pointer; font-size: .7rem; white-space: nowrap; }
.now-tab:hover, .now-tab.is-active { border-bottom-color: var(--accent); color: var(--text-soft); }
.now-panel { min-height: 3rem; }
.now-panel[hidden] { display: none; }
.now-updated { margin: 3.25rem 0 0; color: var(--faint); font-size: .68rem; }
.now-subnav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .8rem; color: var(--subtle); font-size: .7rem; }
.now-subnav a:hover { color: var(--text); }
@media (max-width: 520px) {
  .now-focus, .now-entry, .now-empty { padding-left: .6rem; padding-right: .6rem; }
  .now-section { margin-top: 2.5rem; }
  .now-section-heading { display: block; }
  .now-section-heading span { display: block; margin-top: .35rem; }
  .now-entry { grid-template-columns: 1fr; gap: .35rem; }
  .now-media-entry { grid-template-columns: 3.8rem 1fr; gap: .7rem; }
  .now-media-entry .now-poster { width: 3.8rem; }
  .now-book-entry { grid-template-columns: 3.8rem 1fr; gap: .7rem; }
  .now-book-entry .now-cover { width: 3.8rem; }
  .now-entry-meta { text-align: left; }
}


.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: max(1rem, calc((100vw - var(--content-width)) / 2));
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .4rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: .68rem;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--line-hover); color: var(--text); background: var(--accent-soft); }
.theme-toggle-icon { color: var(--accent); font-size: .9rem; line-height: 1; }
.theme-toggle-label { text-transform: lowercase; }
@media (max-width: 520px) { .theme-toggle { top: .8rem; right: 1rem; } }


.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader .loading-spinner { width: 1.25rem; height: 1.25rem; flex-basis: 1.25rem; }

.loading-state {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: .65rem;
  padding: 1rem .8rem;
  color: var(--subtle);
  font-size: .74rem;
  line-height: 1.6;
}
.loading-spinner {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: loading-spin .8s linear infinite;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation: none; } }

/* Nimadir updates */
.updates-section { margin-top: 3.25rem; }
.updates-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.updates-heading h2 { margin: 0; color: var(--text-soft); font-size: 1rem; font-weight: 500; }
.updates-heading span { color: var(--faint); font-size: .64rem; }
.updates-list { display: grid; border-top: 1px solid var(--line); }
.update-entry { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem .8rem; border-bottom: 1px solid var(--line); }
.update-entry h3 { margin: 0 0 .35rem; color: var(--text-soft); font-size: .86rem; font-weight: 500; }
.update-entry p { margin: 0; color: var(--subtle); font-size: .74rem; line-height: 1.65; white-space: pre-line; }
.update-entry a { display: inline-block; margin-top: .45rem; color: var(--muted); font-size: .7rem; }
.update-entry a:hover { color: var(--text); }
.update-meta { display: grid; align-content: start; justify-items: end; gap: .3rem; color: var(--faint); font-size: .64rem; text-align: right; white-space: nowrap; }
.update-meta span { color: var(--muted); }
.updates-empty { margin: 0; padding: 1rem .8rem; border-bottom: 1px solid var(--line); color: var(--subtle); font-size: .74rem; }
@media (max-width: 520px) { .updates-section { margin-top: 2.5rem; } .update-entry { grid-template-columns: 1fr; gap: .35rem; } .update-meta { display: flex; justify-content: flex-start; text-align: left; } }


.about-subsection { margin: 2.25rem 0; }
.about-subsection h2 { margin: 0 0 .8rem; color: var(--text-soft); font-size: .95rem; font-weight: 500; }
.about-skills { display: grid; gap: .8rem; padding: .9rem .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-skills span { color: var(--faint); font-size: .66rem; text-transform: lowercase; }
.about-skills p { margin: .35rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.about-interests { display: flex; flex-wrap: wrap; gap: .45rem; }
.about-interests span { padding: .4rem .55rem; border: 1px solid var(--interest-color, var(--line)); color: var(--interest-color, var(--muted)); font-size: .7rem; }
.about-quote { margin: 2.5rem 0 0; padding: 1rem .8rem; border-left: 2px solid var(--accent); color: var(--text-soft); font-size: .86rem; line-height: 1.7; }

body.modal-open { overflow: hidden; }
.now-detail-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; }
.now-detail-modal[hidden] { display: none; }
.now-detail-backdrop { position: absolute; inset: 0; background: rgba(5,6,26,.78); backdrop-filter: blur(3px); }
.now-detail-dialog { position: relative; z-index: 1; width: min(100%, 38rem); max-height: min(90vh, 34rem); overflow: auto; border: 1px solid var(--line-strong); background: var(--surface); padding: 1.25rem; box-shadow: 0 1.5rem 4rem rgba(0,0,0,.35); }
.now-detail-close { position: absolute; top: .55rem; right: .65rem; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.now-detail-close:hover { color: var(--text); }
.now-detail-layout { display: grid; grid-template-columns: 8rem 1fr; gap: 1.25rem; align-items: start; }
.now-detail-image { width: 8rem; aspect-ratio: 2 / 3; display: block; object-fit: cover; border: 1px solid var(--line-strong); background: linear-gradient(135deg, var(--surface), var(--line)); }
.now-detail-image.is-error { display: grid; place-items: center; color: var(--faint); font-size: .65rem; }
.now-detail-image.is-empty { display: grid; place-items: center; color: var(--faint); font-size: .65rem; }
.now-detail-copy { padding-top: .35rem; }
.now-detail-copy h2 { margin: .35rem 0 .6rem; color: var(--text-soft); font-size: 1.15rem; font-weight: 500; }
.now-detail-meta { margin: 0; color: var(--subtle); font-size: .72rem; line-height: 1.6; }
.now-detail-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.75; white-space: pre-wrap; }
.now-detail-link { display: inline-block; margin-top: 1rem; color: var(--text-soft); font-size: .72rem; }
@media (max-width: 520px) { .now-detail-dialog { padding: 1rem; } .now-detail-layout { grid-template-columns: 5.5rem 1fr; gap: .85rem; } .now-detail-image { width: 5.5rem; } }

/* Homepage desktop layout */
@media (min-width: 900px) {
  .minimal-home {
    --content-width: 1180px;
  }

  .minimal-home .minimal-page {
    width: min(calc(100% - 6rem), var(--content-width));
    padding-top: clamp(4rem, 9vh, 7rem);
  }

  .minimal-home .minimal-main {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    column-gap: clamp(3.5rem, 8vw, 8rem);
    align-content: start;
  }

  .minimal-home .minimal-hero {
    grid-column: 1 / -1;
    margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
  }

  .minimal-home .minimal-hero h1 {
    font-size: clamp(2.4rem, 4vw, 4.6rem);
  }

  .minimal-home .minimal-hero p {
    font-size: .95rem;
  }

  .minimal-home .minimal-hero .minimal-now {
    margin-top: 1rem;
    font-size: .84rem;
  }

  .minimal-home .minimal-links {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: start;
    margin-top: 0;
    gap: .8rem;
  }

  .minimal-home .minimal-links a,
  .minimal-home .minimal-page-button {
    min-height: 54px;
    padding: .75rem .9rem;
    font-size: .9rem;
  }

  .minimal-home .home-page-links {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: .8rem;
    gap: .8rem;
  }

  .minimal-home .home-page-links .minimal-page-button {
    min-height: 64px;
  }

  .minimal-home .updates-section {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
    margin-top: 0;
  }

  .minimal-home .updates-heading h2 {
    font-size: 1.05rem;
  }

  .minimal-home .updates-list {
    max-height: 31rem;
    overflow: auto;
  }

  .minimal-home .minimal-timeline {
    grid-column: 1 / -1;
    grid-row: 4;
    width: min(100%, 980px);
    margin-top: clamp(5rem, 10vh, 8rem);
    padding-left: 1.6rem;
  }

  .minimal-home .minimal-footer {
    width: min(100%, 980px);
    margin: 0 auto;
  }

  .minimal-home .theme-toggle {
    right: max(2rem, calc((100vw - var(--content-width)) / 2));
  }
}

@media (min-width: 1200px) {
  .minimal-home .minimal-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .minimal-home .updates-list {
    max-height: 34rem;
  }
}

/* Inner pages desktop layout */
@media (min-width: 900px) {
  .minimal-about-page .minimal-page,
  .minimal-now-page .minimal-page,
  .minimal-404-page .minimal-page {
    width: min(calc(100% - 6rem), 1120px);
    padding-top: clamp(4rem, 9vh, 7rem);
  }

  .minimal-about-page .minimal-main {
    display: grid;
    grid-template-columns: minmax(13rem, .65fr) minmax(0, 1.35fr);
    column-gap: clamp(3.5rem, 8vw, 8rem);
    align-items: start;
  }

  .minimal-about-page .minimal-hero {
    grid-column: 1;
    position: sticky;
    top: 5rem;
  }

  .minimal-about-page .minimal-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: .98;
  }

  .minimal-about-page .breadcrumb {
    margin-bottom: 3.5rem;
  }

  .minimal-about-page .about-copy {
    max-width: 720px;
    margin-top: 0;
  }

  .minimal-about-page .about-copy > p,
  .minimal-about-page .about-subsection,
  .minimal-about-page .about-quote {
    font-size: .86rem;
  }

  .minimal-about-page .about-facts {
    padding: 1.25rem 1rem;
  }

  .minimal-about-page .about-fact {
    grid-template-columns: minmax(9rem, .42fr) 1fr;
    gap: 1.5rem;
  }

  .minimal-about-page .about-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 1.1rem 1rem;
  }

  .minimal-about-page .minimal-footer,
  .minimal-now-page .minimal-footer,
  .minimal-404-page .minimal-footer {
    width: min(100%, 980px);
    margin: 0 auto;
  }

  .minimal-now-page .minimal-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }

  .minimal-now-page .minimal-hero,
  .minimal-now-page .now-focus {
    grid-column: 1 / -1;
  }

  .minimal-now-page .minimal-hero {
    margin-bottom: 1rem;
  }

  .minimal-now-page .now-focus {
    margin-top: 1.5rem;
  }

  .minimal-now-page .now-section {
    margin-top: 4rem;
  }

  .minimal-now-page .now-section-heading {
    min-height: 2rem;
  }

  .minimal-now-page .now-entry {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .minimal-now-page .now-subnav,
  .minimal-now-page .now-updated {
    grid-column: 1 / -1;
  }

  .minimal-404-page .minimal-main {
    width: min(100%, 760px);
    margin: 0 auto;
  }

  .minimal-404-page .minimal-hero h1 {
    font-size: clamp(4rem, 10vw, 8rem);
  }

  .minimal-404-page .not-found-copy {
    max-width: 620px;
    margin-top: 3rem;
    font-size: .88rem;
  }

  .minimal-404-page .not-found-links {
    width: min(100%, 360px);
    margin-top: 2.5rem;
  }
}

@media (min-width: 900px) {
  .minimal-404-page .minimal-main {
    display: block;
  }
}

/* About desktop refinement: keep the page centered instead of using a left rail */
@media (min-width: 900px) {
  .minimal-about-page .minimal-page {
    width: min(calc(100% - 6rem), 960px);
  }

  .minimal-about-page .minimal-main {
    display: block;
    width: min(100%, 820px);
    margin: 0 auto;
  }

  .minimal-about-page .minimal-hero {
    position: static;
  }

  .minimal-about-page .minimal-hero h1 {
    max-width: none;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
  }

  .minimal-about-page .breadcrumb {
    margin-bottom: 3rem;
  }

  .minimal-about-page .about-copy {
    max-width: 760px;
    margin-top: 3.5rem;
  }

  .minimal-about-page .minimal-footer {
    width: min(100%, 820px);
  }
}
