:root {
  --page-gutter: clamp(1rem, 3vw, 4rem);
  --background: #0f0f13;
  --background-soft: #15151c;
  --card: #1a1a22;
  --text: #e8e4df;
  --muted: rgba(232, 228, 223, 0.68);
  --faint: rgba(232, 228, 223, 0.42);
  --line: rgba(232, 228, 223, 0.09);
  --shadow: rgba(0, 0, 0, 0.34);
  --serif: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(86, 212, 160, 0.08), transparent 28rem),
    radial-gradient(circle at 82% 6%, rgba(232, 93, 117, 0.08), transparent 24rem),
    var(--background);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.release-ticker {
  display: flex;
  align-items: center;
  background: #56d4a0;
  color: #0f0f13;
  border-bottom: 1px solid #2b8d65;
}

.release-ticker__link {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  padding-block: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.release-ticker__track {
  display: flex;
  width: max-content;
  animation: release-ticker-scroll var(--ticker-duration, 22s) linear infinite;
}

.release-ticker__track > span {
  flex: none;
  padding-inline: 2rem 5rem;
  white-space: nowrap;
}

.release-ticker__close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
}

.release-ticker:focus-within .release-ticker__track,
.release-ticker:hover .release-ticker__track {
  animation-play-state: paused;
}

.release-ticker a:focus-visible,
.release-ticker button:focus-visible {
  outline: 2px solid #0f0f13;
  outline-offset: -3px;
}

@keyframes release-ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .release-ticker__track { animation: none; width: auto; }
  .release-ticker__track > span { flex: 1; min-width: 0; white-space: normal; padding-inline: 1rem; }
  .release-ticker__track > span[aria-hidden] { display: none; }
}

.site-header {
  display: flex;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--page-gutter);
}

.site-header__brand {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-header__brand:hover,
.site-header__brand:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
}

.site-header__contact,
.site-header__apps,
.site-header__github {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration-color: var(--line);
  text-underline-offset: 0.22em;
  transition: color 180ms ease;
}

.site-header__contact:hover,
.site-header__contact:focus-visible,
.site-header__contact[aria-current="page"],
.site-header__apps:hover,
.site-header__apps:focus-visible,
.site-header__apps[aria-current="page"],
.site-header__github:hover,
.site-header__github:focus-visible {
  color: var(--text);
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-header__apps:focus-visible,
.site-header__github:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

@media (min-width: 64rem) {
  .site-header__brand { font-size: 1.5rem; }
  .site-header__contact,
  .site-header__apps,
  .site-header__github { font-size: 0.85rem; }
}

@media (max-width: 28rem) {
  .site-header { flex-wrap: wrap; }
  .site-header__nav { width: 100%; justify-content: space-between; }
}

.hero {
  display: grid;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.75rem;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  padding-inline: var(--page-gutter);
}

.hero__copy {
  min-width: 0;
}

.hero__kicker {
  margin: 0 0 0.8rem;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero__tagline {
  margin: 1rem 0 1.45rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 2.3vw, 1.08rem);
}

.hero__bio {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.24rem);
  line-height: 1.65;
}

.hero__details {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.hero__profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.hero__profiles a {
  border: 1px solid #56d4a0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #183127;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero__profiles a:hover,
.hero__profiles a:focus-visible {
  border-color: #75deb3;
  background: #244836;
  color: var(--text);
  transform: translateY(-1px);
}

.hero__profiles a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.hero__profiles a[href="/user-apps/"] {
  background: #56d4a0;
  color: #0f0f13;
}

.hero__profiles a[href="/user-apps/"]:hover,
.hero__profiles a[href="/user-apps/"]:focus-visible {
  background: #75deb3;
  color: #0f0f13;
}

.hero__portrait {
  width: min(100%, 25rem);
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(232, 228, 223, 0.12);
  border-radius: 50%;
  background: #0b0b0e;
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.42);
  justify-self: center;
}

.hero__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.field-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.45rem;
  padding: 0 1.5rem 0.75rem;
}

.field-tab {
  position: relative;
  min-height: 2rem;
  padding: 0 0 0.3rem;
  background: transparent;
  color: var(--field-color, var(--muted));
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  opacity: 0.62;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.field-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.field-tab:hover,
.field-tab:focus-visible,
.field-tab.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.field-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.field-tab--all {
  --field-color: #e8e4df;
  background: linear-gradient(90deg, #ff6565, #f4ad3d, #f0e867, #56d4a0, #4e9af1, #d96fff);
  background-clip: text;
  color: transparent;
}

.project-count {
  margin: 0 auto 1.45rem;
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.68;
  text-align: center;
  text-transform: uppercase;
}

.content {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  padding-inline: var(--page-gutter);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 4rem 0;
  color: var(--faint);
  text-align: center;
}

.project-card {
  display: flex;
  width: 100%;
  min-height: 23rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--field-color) 18%, transparent);
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 45%),
    var(--card);
  box-shadow: 0 0.8rem 2.5rem var(--shadow);
  color: inherit;
  flex-direction: column;
  text-decoration: none;
  transform: translateY(0);
  animation: fade-up 520ms ease both;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--field-color) 52%, transparent);
  box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, 0.44);
  transform: translateY(-0.25rem);
}

.project-card__image-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--background-soft);
}

.project-card__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#the-multi-os-installer-and-the-multi-os-app .project-card__image-frame img,
#conways-game-of-life .project-card__image-frame img {
  object-fit: contain;
}

.project-card__image-frame--empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--field-color) 24%, transparent), transparent),
    var(--background-soft);
}

.project-card__body {
  display: flex;
  min-height: 0;
  padding: 1.25rem;
  flex: 1;
  flex-direction: column;
}

.project-card__field {
  margin: 0 0 0.5rem;
  color: var(--field-color);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card__title {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
}

.project-card__description {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.project-card__cta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--faint);
  font-size: 0.78rem;
}

.site-footer {
  display: flex;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--faint);
  font-size: 0.68rem;
  padding-inline: var(--page-gutter);
}

.site-footer p {
  margin: 0;
}

.site-footer__identity {
  display: grid;
  gap: 0.2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
}

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

.article-page {
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  padding-inline: var(--page-gutter);
}

.article-hero {
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.72fr);
}

.article-hero__kicker {
  margin: 0 0 0.85rem;
  color: #f0a535;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-hero__title {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 6.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.article-hero__summary {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2.4vw, 1.48rem);
  line-height: 1.55;
}

.article-byline {
  margin: 1rem 0 0;
  color: var(--faint);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.article-byline a {
  color: var(--muted);
  text-decoration-color: rgba(232, 228, 223, 0.28);
  text-underline-offset: 0.2em;
}

.article-byline a:hover,
.article-byline a:focus-visible {
  color: var(--text);
}

.article-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.65rem 0 0;
}

.user-apps-page {
  max-width: none;
}

.user-app-card {
  margin-top: 3rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--background-soft);
}

.user-app-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.user-app-card h2 a {
  color: var(--text);
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
}

.user-app-card > p {
  color: var(--muted);
}

.app-version-scroll {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.app-version-scroll:focus-visible {
  outline: 2px solid #56d4a0;
  outline-offset: 4px;
}

.app-version-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.app-version-table caption {
  padding: 0.85rem 1rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.75rem;
}

.app-version-scroll-hint {
  display: none;
}

.app-version-table th,
.app-version-table td {
  padding: 1rem;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.app-version-table thead th {
  background: rgba(86, 212, 160, 0.05);
  font-size: 1rem;
}

.app-version-table th:first-child {
  width: 26%;
}

.app-version-table tbody th {
  font-size: 0.8rem;
  font-weight: 500;
}

.app-version-table td + td {
  border-left: 1px solid var(--line);
}

.app-version-tag {
  display: block;
  margin-top: 0.25rem;
  color: #56d4a0;
  font-size: 0.65rem;
  font-weight: 400;
}

.app-version-tag--older,
.app-version-unavailable {
  color: var(--muted);
}

.app-version-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.app-version-table a[data-download-version]::before {
  content: none;
}

.app-version-table .download-store-version {
  width: 100%;
  padding-top: 0.5rem;
}

.app-version-table ms-store-badge {
  width: 100%;
  min-width: 0;
}

.app-version-table ms-store-badge::part(img) {
  max-width: 100%;
  height: auto;
}

@media (max-width: 680px) {
  .app-version-scroll-hint {
    display: block;
    margin-top: 0.4rem;
    color: #56d4a0;
  }

  .app-version-table th,
  .app-version-table td {
    padding: 0.85rem;
  }

  .app-version-table th:first-child {
    width: 22%;
  }

  .user-app-card:last-child .app-version-table {
    min-width: 0;
  }

  .user-app-card:last-child .app-version-table th:first-child {
    width: 32%;
  }
}

.article-hero__links--download-grid {
  display: grid;
  width: fit-content;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(4, minmax(2.35rem, auto));
  align-items: stretch;
}

.article-hero__links--download-grid > :nth-child(1) {
  grid-area: 2 / 1;
}

.article-hero__links--download-grid > :nth-child(2) {
  grid-area: 1 / 1;
}

.article-hero__links--download-grid > :nth-child(3) {
  grid-area: 1 / 2 / span 2;
}

.article-hero__links--download-grid > :nth-child(4) {
  grid-area: 3 / 1;
}

.article-hero__links--download-grid > :nth-child(5) {
  grid-area: 4 / 1;
}

.article-hero__links--download-grid > :nth-child(6) {
  grid-area: 3 / 2;
}

.article-hero__links--download-grid > :nth-child(7) {
  grid-area: 4 / 2;
}

@media (max-width: 680px) {
  .article-hero__links--download-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .article-hero__links--download-grid > :nth-child(2) { grid-area: 1 / 1; }
  .article-hero__links--download-grid > :nth-child(1) { grid-area: 2 / 1; }
  .article-hero__links--download-grid > :nth-child(3) { grid-area: 3 / 1; }
  .article-hero__links--download-grid > :nth-child(4) { grid-area: 4 / 1; }
  .article-hero__links--download-grid > :nth-child(6) { grid-area: 5 / 1; }
  .article-hero__links--download-grid > :nth-child(5) { grid-area: 6 / 1; }
  .article-hero__links--download-grid > :nth-child(7) { grid-area: 7 / 1; }

  .article-hero__links--download-grid ms-store-badge {
    width: 100%;
    min-width: 0;
  }

  .article-hero__links--download-grid ms-store-badge::part(img) {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

.article-link-chip {
  display: inline-flex;
  min-height: 2.35rem;
  border: 1px solid rgba(240, 165, 53, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.72rem 0.42rem 0.62rem;
  align-items: center;
  gap: 0.45rem;
  background: rgba(240, 165, 53, 0.035);
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.article-link-chip:hover,
.article-link-chip:focus-visible {
  border-color: rgba(240, 165, 53, 0.55);
  color: var(--text);
  transform: translateY(-1px);
}

a[data-download-version] {
  position: relative;
}

a[data-download-version]::before,
.download-store-version__label {
  position: absolute;
  top: -0.45rem;
  right: 0.65rem;
  z-index: 1;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(240, 165, 53, 0.35);
  border-radius: 999px;
  background: var(--background);
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

a[data-download-version]::before {
  content: "v" attr(data-download-version);
}

.download-store-version {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-link-chip[data-phone-warning] {
  position: relative;
}

.article-link-chip[data-phone-warning]::after {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  width: max-content;
  max-width: min(16rem, 80vw);
  border: 1px solid rgba(232, 228, 223, 0.2);
  border-radius: 0.45rem;
  padding: 0.5rem 0.65rem;
  background: #17171c;
  box-shadow: 0 0.65rem 1.6rem rgba(0, 0, 0, 0.38);
  color: var(--text);
  content: attr(data-phone-warning);
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 0.25rem);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  visibility: hidden;
  white-space: normal;
}

.article-link-chip[data-phone-warning]:hover::after,
.article-link-chip[data-phone-warning]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.article-link-chip svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  flex: 0 0 auto;
}

.article-link-chip__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.article-link-chip__icon--command {
  display: inline-grid;
  color: currentColor;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1;
  place-items: center;
}

.article-link-chip__icon--download-monitor {
  position: relative;
  display: inline-block;
  width: 1.08rem;
  height: 1rem;
}

.article-link-chip__icon--download-monitor::before {
  position: absolute;
  top: -0.12rem;
  left: 0.26rem;
  color: currentColor;
  content: "↓";
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.article-link-chip__icon--download-monitor::after {
  position: absolute;
  top: 0.18rem;
  left: 0.04rem;
  width: 0.88rem;
  height: 0.58rem;
  border: 1.4px solid currentColor;
  border-radius: 0.08rem;
  box-shadow: 0 0.2rem 0 -0.08rem currentColor;
  content: "";
}

img.article-link-chip__icon--tux {
  width: 1rem;
  height: 1.18rem;
  object-fit: contain;
}

.article-page img.article-link-chip__icon--tux {
  width: 1.12rem;
  height: 1.32rem;
  filter:
    drop-shadow(-0.55px -0.55px 0 var(--tux-engraving))
    drop-shadow(0.55px 0.55px 0 rgba(0, 0, 0, 0.92));
}

.article-link-chip__icon--chromeos {
  position: relative;
  display: inline-block;
  width: 1.15rem;
  height: 1rem;
}

.article-link-chip__icon--chromeos::before {
  position: absolute;
  z-index: 1;
  top: -0.42rem;
  right: -0.12rem;
  color: currentColor;
  content: "☁︎";
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif;
  font-size: 0.76rem;
  line-height: 1;
}

.article-link-chip__icon--chromeos::after {
  position: absolute;
  bottom: 0.12rem;
  left: 0;
  width: 0.86rem;
  height: 0.55rem;
  border: 1.5px solid currentColor;
  border-radius: 0.08rem;
  box-shadow: 0 0.2rem 0 -0.07rem currentColor;
  content: "";
}

.download-icon-attribution {
  margin: 0.7rem 0 0;
  color: var(--faint);
  font-size: 0.62rem;
  line-height: 1.5;
}

.article-link-chip:first-child svg {
  stroke: none;
}

.article-link-chip:first-child svg path:first-child {
  fill: currentColor;
}

.article-link-chip:first-child svg path:last-child {
  fill: var(--background);
}

.article-hero__image {
  overflow: hidden;
  border: 1px solid rgba(240, 165, 53, 0.24);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 1.3rem 3.5rem var(--shadow);
}

.article-hero__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.article-hero__image--poster img {
  height: auto;
  aspect-ratio: auto;
  background: #05060a;
  object-fit: cover;
}

.article-hero__image--poster {
  width: min(100%, 26rem);
  justify-self: center;
}

.article-body {
  max-width: none;
  margin: 4rem auto 0;
}

.article-body p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.article-body a {
  color: #f0a535;
  text-decoration-color: rgba(240, 165, 53, 0.45);
  text-underline-offset: 0.18em;
}

.article-body a:hover,
.article-body a:focus-visible {
  color: #ffd38a;
}

.alternate-format-note {
  display: block;
  margin-top: 0.75rem;
}

.article-body h2,
.article-body h3 {
  margin: 2.5rem 0 0.9rem;
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.15;
}

.article-body h2 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}

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

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.article-body li + li {
  margin-top: 0.42rem;
}

.character-gallery {
  display: grid;
  align-items: start;
  gap: 1rem;
  margin: 3rem 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.character-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.22);
}

.character-card img {
  display: block;
  width: 100%;
  height: clamp(13rem, 26vw, 19rem);
  aspect-ratio: 4 / 5;
  background: #05060a;
  object-fit: contain;
}

.character-card figcaption {
  padding: 0.75rem 0.85rem;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

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

@media (max-width: 42rem) {
  .site-header {
    padding: 0.5rem 1.25rem 0;
  }

  .site-header__brand,
  .site-header__contact {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
  }

  .hero {
    grid-template-columns: 100%;
    padding: 1.5rem 1.25rem 2rem;
    gap: 1.5rem;
  }

  .hero__portrait {
    width: min(55vw, 14rem);
    grid-row: 1;
  }

  .hero__copy {
    grid-row: 2;
  }

  .hero__kicker {
    margin-bottom: 0.65rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .hero__title {
    font-size: clamp(2.75rem, 12vw, 3.75rem);
  }

  .hero__tagline {
    margin: 0.85rem 0 1rem;
    font-size: 0.85rem;
    line-height: 1.65;
  }

  .content {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .field-nav {
    gap: 0.65rem 1rem;
  }

  .project-grid {
    grid-template-columns: 100%;
    gap: 1rem;
  }

  .project-card {
    width: 100%;
    min-height: 18rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .project-card__image-frame {
    aspect-ratio: 16 / 8;
  }

  .project-card__body {
    min-height: 0;
    padding: 1rem 1.25rem;
  }

  .project-card__field {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .project-card__title {
    font-size: 1.3rem;
  }

  .project-card__description {
    font-size: 0.78rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-page {
    padding: 3rem 1.25rem 4rem;
  }

  .article-hero {
    gap: 2rem;
    grid-template-columns: 100%;
  }

  .article-hero__title {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .article-hero__image {
    border-radius: 0.5rem;
  }

  .article-body {
    margin-top: 3rem;
  }

  .article-body p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .character-gallery {
    grid-template-columns: 100%;
  }

  .character-card img {
    height: min(26rem, 115vw);
  }
}
