/* Fuoo portfolio: shared styles for the concise home and split detail pages. */

:root {
  --bg: #fbfbf9;
  --surface: #f2f2ee;
  --text: #1d1d1b;
  --muted: #6b6b66;
  --light: #9a9a93;
  --accent-warm: #d35400;
  --border: #e3e2dc;
  --code-bg: #f4f3ee;
  --max-width: 1120px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 4px;
}

::selection {
  background: #dfff00;
  color: #1d1d1b;
}

.container {
  width: min(var(--max-width), calc(100% - clamp(32px, 6vw, 80px)));
  margin: 0 auto;
}

/* Header */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 64px;
  background: rgba(251, 251, 249, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand .name {
  display: inline-block;
  transition: transform 0.2s ease;
}

.brand:hover .name {
  transform: rotate(-3deg) scale(1.05);
}

.brand .cursor {
  width: 7px;
  height: 14px;
  margin-left: 3px;
  background: var(--accent-warm);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.topbar-links a {
  position: relative;
  transition: color 0.2s ease;
}

.topbar-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width 0.25s ease;
}

.topbar-links a:hover {
  color: var(--text);
}

.topbar-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon span:first-child {
  top: 1px;
}

.nav-toggle-icon span:last-child {
  bottom: 1px;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 10px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 10px 20px rgba(29, 29, 27, 0.05);
}

.nav-drawer.open {
  display: block;
  animation: slide-down 0.2s ease-out;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 16px;
  font-weight: 600;
}

.nav-drawer a:last-child {
  border-bottom: 0;
}

.nav-back {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.nav-back:hover {
  color: var(--accent-warm);
}

/* Shared section headings */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.section-head.slim {
  margin-bottom: 24px;
}

.section-head .label {
  min-width: 24px;
  padding-top: 6px;
  color: rgba(211, 84, 0, 0.72);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.32;
}

/* Home hero */
.home-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 112px 0 76px;
  text-align: center;
}

.home-hero-grid {
  display: block;
}

.home-hero-title {
  margin-bottom: 40px;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.home-intro-copy {
  max-width: 620px;
  margin: 0 auto;
}

.home-intro-text {
  max-width: 38em;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.78;
  text-wrap: pretty;
}

.home-intro-text strong {
  color: var(--accent-warm);
  font-family: inherit;
  font-style: italic;
  font-weight: 600;
}

.home-intro-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, 620px);
  margin: clamp(48px, 7vw, 72px) auto 0;
}

.hire {
  color: var(--accent-warm);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.home-section {
  padding: clamp(64px, 8vw, 96px) 0;
  border-top: 1px dashed var(--border);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--border);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link .arrow,
.btn-primary .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--accent-warm);
  border-color: var(--accent-warm);
}

.text-link:hover .arrow,
.btn-primary:hover .arrow {
  transform: translateX(3px);
}

/* Screenshot window */
.window {
  overflow: hidden;
  margin-bottom: 30px;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(29, 29, 27, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .window:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(29, 29, 27, 0.15);
  }
}

.window-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1.5px solid var(--text);
  background: #ebeae4;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.window-url {
  min-width: 0;
  height: 24px;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 10px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background: #e9e8e2;
}

.window-body img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Home project list */
.project-card {
  padding-bottom: clamp(68px, 8vw, 96px);
}

.project-card + .project-card {
  padding-top: clamp(68px, 8vw, 96px);
  border-top: 1px dashed var(--border);
}

.project-card:last-child {
  padding-bottom: 0;
}

.project-card-head {
  margin-bottom: 22px;
}

.project-card-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-warm);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.project-card-title {
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.project-card-content {
  width: 100%;
}

.project-card-intro {
  min-width: 0;
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}

.project-card-primary {
  display: flex;
  justify-content: center;
  margin: 2px 0 30px;
}

.project-card-primary .btn-primary {
  min-width: 168px;
  border-color: var(--text);
  background: transparent;
  box-shadow: 4px 4px 0 var(--accent-warm);
  color: var(--text);
}

.project-card-primary .btn-primary:hover {
  box-shadow: 2px 2px 0 var(--accent-warm);
}

.project-card-primary .btn-primary:active {
  box-shadow: 0 0 0 var(--accent-warm);
}

.project-card-primary .arrow {
  color: var(--accent-warm);
}

.project-card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px;
  margin-bottom: 18px;
}

.project-card-meta .text-link {
  margin-top: 3px;
  white-space: nowrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  min-height: 44px;
  border: 2px solid var(--text);
  border-radius: 6px;
  background: transparent;
  box-shadow: 4px 4px 0 var(--accent-warm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--accent-warm);
}

.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--accent-warm);
}

.tags {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  color: var(--light);
  font-family: var(--mono);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
}

.tag + .tag::before {
  content: "/";
  margin: 0 9px;
  color: var(--border);
}

/* Home summary */
.home-info {
  padding: clamp(56px, 7vw, 80px) 0;
  border-top: 1px dashed var(--border);
}

.home-info-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(56px, 8vw, 104px);
  padding: 30px 0;
}

.home-info-row + .home-info-row {
  border-top: 1px solid var(--border);
}

.home-info-row h2 {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.home-info-row p,
.home-info-row > a {
  font-size: 15px;
  line-height: 1.8;
}

.home-info-row > a {
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

.home-info-contact {
  align-items: center;
}

/* Contact page */
.contact-page {
  padding-top: 64px;
}

.contact-page-main {
  min-height: calc(100dvh - 137px);
  display: flex;
  align-items: center;
  padding: clamp(64px, 9vw, 108px) 0;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(56px, 9vw, 128px);
  padding: clamp(34px, 5vw, 52px) 0;
}

.contact-page-intro h1 {
  margin-bottom: 18px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.contact-list {
  width: 100%;
  border-top: 1px solid var(--border);
}

.contact-list-row {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.contact-list-row strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.contact-list-row span {
  min-width: 0;
  justify-self: end;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: right;
}

.contact-list-row:hover {
  background: var(--surface);
}

.contact-list-row:hover strong {
  color: var(--accent-warm);
}

/* Split pages */
.subpage {
  padding-top: 64px;
}

.subpage-head {
  padding: clamp(52px, 7vw, 76px) 0 clamp(26px, 3vw, 34px);
  border-bottom: 1px solid var(--border);
}

.subpage-head h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.subpage-head .kicker {
  color: var(--light);
  font-family: var(--mono);
  font-size: 13px;
}

.subpage-media {
  padding-top: clamp(34px, 5vw, 52px);
}

.subpage-shot {
  margin-bottom: 6px;
}

.subpage-body {
  max-width: 760px;
  padding: clamp(36px, 5vw, 52px) 0 clamp(52px, 7vw, 72px);
}

.subpage-body.project-detail {
  max-width: 720px;
  padding-top: clamp(28px, 4vw, 38px);
}

.subpage-body p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.88;
  text-wrap: pretty;
}

.subpage-body p:last-child {
  margin-bottom: 0;
}

.subpage-body code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 0.9em;
}

.subpage-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px dashed var(--border);
  font-family: var(--mono);
  font-size: 14px;
}

.subpage-next a {
  font-weight: 600;
  transition: color 0.2s ease;
}

.subpage-next a:last-child {
  margin-left: auto;
  text-align: right;
}

.subpage-next a:hover {
  color: var(--accent-warm);
}

.subpage-next .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.subpage-next a:hover .arrow {
  transform: translateX(3px);
}

/* Project detail pages */
.project-page {
  padding-top: 64px;
}

.project-hero .container {
  width: min(1240px, calc(100% - clamp(32px, 6vw, 80px)));
}

.project-hero {
  min-height: clamp(620px, calc(100dvh - 64px), 760px);
  display: flex;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  grid-template-areas:
    "copy visual"
    "actions visual";
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(48px, 6vw, 76px);
  row-gap: 34px;
}

.project-hero-copy {
  grid-area: copy;
}

.project-tech-label {
  margin-bottom: 20px;
  color: var(--light);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}

.project-hero-copy h1 {
  margin-bottom: 18px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.project-hero-summary {
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}

.project-hero-rule {
  height: 1px;
  margin: 28px 0 24px;
  background: var(--border);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-meta dt {
  margin-bottom: 5px;
  color: var(--light);
  font-family: var(--mono);
  font-size: 11px;
}

.project-meta dd {
  font-size: 14px;
  font-weight: 650;
}

.project-hero-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 0;
}

.project-hero-actions .btn-primary {
  min-width: 148px;
}

.project-hero-actions .btn-primary .arrow {
  color: var(--accent-warm);
}

.project-hero-visual .window {
  margin-bottom: 0;
}

.project-hero-visual {
  grid-area: visual;
  min-width: 0;
}

.project-story {
  padding: clamp(72px, 9vw, 108px) 0;
}

.project-story-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: clamp(56px, 8vw, 104px);
}

.project-toc {
  position: sticky;
  top: 104px;
}

.project-toc nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-toc a {
  color: rgb(89, 88, 88);
  font-family: var(--mono);
  font-size: 14px;
  transition: color 0.2s ease;
}

.project-toc a:hover {
  color: var(--text);
}

.project-doc {
  min-width: 0;
  max-width: 760px;
}

.project-doc-section {
  margin-bottom: clamp(56px, 7vw, 80px);
  scroll-margin-top: 96px;
}

.project-doc-section:last-child {
  margin-bottom: 0;
}

.project-doc-section h2 {
  margin-bottom: 20px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.project-doc-section p {
  font-size: 16px;
  line-height: 1.95;
  text-wrap: pretty;
}

.project-doc-section code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 0.9em;
}

.project-screenshot-section img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.project-info {
  padding-bottom: clamp(56px, 7vw, 80px);
}

.project-info-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(56px, 8vw, 104px);
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.project-info-row h2 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.project-info-row p,
.project-info-row a {
  font-size: 15px;
  line-height: 1.8;
}

.project-info-row a {
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

/* Concise project index */
.work-index-list {
  padding: clamp(52px, 6vw, 72px) 0 clamp(72px, 8vw, 96px);
}

.work-index-list .project-card:last-child {
  padding-bottom: 0;
}

/* About page */
.subpage-body.about-page {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  align-items: start;
  gap: clamp(48px, 7vw, 88px);
}

.about-copy {
  max-width: 680px;
}

.about-copy strong {
  padding: 0 4px;
  background: linear-gradient(120deg, rgba(211, 84, 0, 0.1), rgba(211, 84, 0, 0));
  font-weight: 600;
}

.facts {
  position: sticky;
  top: 96px;
  border-top: 1px solid var(--border);
}

.fact {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.fact dt {
  padding-top: 2px;
  color: var(--light);
  font-family: var(--mono);
  font-size: 12px;
}

.fact dd {
  font-weight: 500;
}

/* Technology page */
.subpage-body.stack-page {
  max-width: none;
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.85fr);
  border-top: 1px solid var(--border);
}

.stack-item {
  min-width: 0;
  padding: 32px 24px 32px 0;
}

.stack-item + .stack-item {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.stack-item h3 {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.stack-list {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2.2;
}

.stack-note {
  margin-top: 16px;
  color: var(--light);
  font-size: 13px;
  font-style: italic;
}

.tech-now-section {
  margin-top: clamp(56px, 7vw, 80px);
  padding-top: clamp(52px, 7vw, 72px);
  border-top: 1px solid var(--border);
  scroll-margin-top: 88px;
}

.tech-now-section h2 {
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

/* Now page */
.now-list {
  display: grid;
  gap: 18px;
  max-width: 720px;
  font-size: 15px;
}

.now-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  padding: 2px 0;
}

.now-item dt {
  padding-top: 3px;
  color: var(--accent-warm);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px dashed var(--border);
  color: var(--light);
  font-family: var(--mono);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 760px) {
  .topbar-links {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .home-hero {
    min-height: auto;
    align-items: stretch;
  }

  .home-hero-grid {
    display: block;
  }

  .home-hero-title {
    margin-bottom: 32px;
    font-size: 52px;
  }

  .project-hero {
    min-height: auto;
    align-items: stretch;
    padding: 72px 0 64px;
  }

  .project-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "actions";
    grid-template-rows: auto;
    gap: 36px;
  }

  .project-hero-copy h1 {
    font-size: 34px;
  }

  .project-hero-rule,
  .project-meta {
    display: none;
  }

  .project-hero-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0;
  }

  .project-story-grid {
    grid-template-columns: 1fr;
  }

  .project-toc {
    display: none;
  }

  .project-info-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
    text-align: center;
  }

  .project-info-row a {
    justify-self: center;
  }

  .subpage-body.about-page {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .facts {
    position: static;
  }

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

  .stack-item {
    padding: 24px 0;
  }

  .stack-item + .stack-item {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .home-hero {
    padding: 116px 0 62px;
  }

  .home-section {
    padding: 58px 0 64px;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 30px;
  }

  .section-head h2 {
    font-size: 25px;
  }

  .home-hero-title {
    font-size: 46px;
  }

  .home-intro-text {
    max-width: none;
    font-size: 16px;
    line-height: 1.78;
  }

  .home-intro-actions {
    gap: 18px;
    margin-top: 42px;
  }

  .home-intro-actions .hire,
  .home-intro-actions .text-link {
    font-size: 12px;
    white-space: nowrap;
  }

  .project-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
  }

  .project-card + .project-card {
    padding-top: 60px;
  }

  .project-card-head {
    order: 1;
    margin-bottom: 10px;
  }

  .project-card-content {
    display: contents;
  }

  .project-card .tags {
    order: 2;
    margin-bottom: 18px;
    font-size: 11px;
  }

  .window {
    order: 3;
    margin-bottom: 24px;
    border-radius: 6px;
  }

  .window-bar {
    height: 30px;
    padding: 0 10px;
  }

  .window-dots {
    gap: 5px;
  }

  .window-dots span {
    width: 9px;
    height: 9px;
  }

  .window-url {
    display: none;
  }

  .window-body {
    padding: 4px;
  }

  .project-card-primary {
    order: 4;
    width: 100%;
    margin-bottom: 26px;
  }

  .project-card-primary .btn-primary {
    width: min(100%, 240px);
  }

  .project-card-meta {
    order: 5;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card-intro {
    font-size: 14.5px;
    line-height: 1.75;
  }

  .project-card-meta .text-link {
    justify-self: end;
    font-size: 12px;
  }

  .home-info {
    padding: 48px 0 56px;
  }

  .home-info-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
    text-align: center;
  }

  .home-info-row a {
    justify-self: center;
  }

  .contact-page-main {
    min-height: auto;
    padding: 76px 0 84px;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .contact-page-intro h1 {
    font-size: 36px;
  }

  .contact-list-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 18px 10px;
    text-align: center;
  }

  .contact-list-row span {
    justify-self: center;
    font-size: 17px;
    text-align: center;
  }

  .contact-list-row strong {
    font-size: 19px;
  }

  .subpage-head {
    padding: 44px 0 24px;
  }

  .subpage-media {
    padding-top: 32px;
  }

  .subpage-body,
  .subpage-body.project-detail {
    padding: 32px 0 48px;
  }

  .subpage-body p {
    font-size: 15px;
    line-height: 1.85;
  }

  .project-hero {
    padding: 56px 0 52px;
  }

  .project-tech-label {
    margin-bottom: 16px;
  }

  .project-hero-copy h1 {
    margin-bottom: 14px;
    font-size: 30px;
  }

  .project-hero-summary {
    font-size: 15px;
    line-height: 1.75;
  }

  .project-hero-rule {
    margin: 24px 0 20px;
  }

  .project-hero-actions {
    gap: 18px;
    margin-top: 0;
  }

  .project-hero-actions .btn-primary {
    min-width: 140px;
  }

  .project-story {
    padding: 60px 0;
  }

  .project-doc-section {
    margin-bottom: 56px;
  }

  .project-doc-section h2 {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .project-doc-section p {
    font-size: 15px;
    line-height: 1.88;
  }

  .now-item {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  .subpage-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .subpage-next a:last-child {
    align-self: flex-end;
  }

  .footer-inner {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
