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

html {
  scroll-behavior: smooth;
}


body {
  font-family: "SUSE", sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  background: black;
  color: #eaeaea;
  line-height: 1.5;
}

:root {
  --page-x: 100px;
  --page-y: 100px;
  --nav-footer-y: 50px;
  --type-display: 36px;
  --type-title: 24px;
  --type-body: 20px;
  --type-small: 16px;
  --type-micro: 12px;
}

.container {
  max-width: 2000px;
  margin: 0 auto;
  padding: var(--page-y) var(--page-x);
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  padding: var(--nav-footer-y) var(--page-x);
  font-size: var(--type-small);
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: #ff8f8f;
}

.nav a:active {
  color: #a9ff8f;
}

/* INTRO */
.runner-game {
  margin-bottom: 72px;
}

.runner-meta {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: var(--type-micro);
}

.runner-score {
  color: rgba(255,255,255,0.7);
}

.runner-score span {
  color: #ff8f8f;
}

#runner-canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #eaeaea;
  background: transparent;
}

.intro {
  font-weight: 200;
  font-size: clamp(24px, 6vw, var(--type-display));
  line-height: 1.2;
  margin: 100px 0 60px;
  max-width: 1000px;
}

.intro-variant {
  display: none;
}

.intro-wide {
  display: inline;
}

.intro-lead {
  font-weight: 800;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 20px;
}

#me {
  margin-top: 180px;
  scroll-margin-top: 60px;
}

.you-section {
  margin-top: 180px;
  scroll-margin-top: 120px;
}

.you-title {
  max-width: 600px;
  font-size: var(--type-display);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 28px;
  margin-left: auto;
  margin-right: auto;
}

.me-title {
  font-size: var(--type-display);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 28px;
}

.you-intro {
  max-width: 600px;
  font-size: var(--type-body);
  line-height: 1.5;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}

.you-buttons {
  max-width: 600px;
  margin: 20px auto 40px;
}

.you-cta-text {
  margin-top: 40px;
  margin-bottom: 0;
}

.you-accordion {
  max-width: 600px;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-left: auto;
  margin-right: auto;
}

.you-item {
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.you-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: var(--type-body);
  text-align: left;
  cursor: pointer;
}

.you-trigger::after {
  content: "+";
  opacity: 0.7;
}

.you-trigger[aria-expanded="true"]::after {
  content: "−";
}

.you-panel {
  max-width: 600px;
  padding: 0 0 20px;
  font-size: var(--type-body);
  line-height: 1.5;
}

.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.thumb-wrap {
  aspect-ratio: 1 / 1;
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.thumb {
  position: absolute;
  inset: 0;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

.thumb-hover {
  opacity: 0;
}

.card:hover .thumb-hover {
  opacity: 1;
}

.card:hover .thumb-default {
  opacity: 0;
}

.card h3 {
  font-size: var(--type-body);
  margin-bottom: 5px;
}

.card p {
  font-size: var(--type-micro);
  opacity: 0.7;
}

/* ABOUT */
.about {
  font-weight: 200;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 120px;
  margin-bottom: 120px;
  align-items: center;
}

#me .about {
  margin-top: 72px;
}

.about img {
  width: 100%;
  display: block;
}

.about-text h4 {
  margin-top: 20px;
  margin-bottom: 5px;
}

.buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.buttons a {
  border: 1px solid #eaeaea;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  text-decoration: none;
  color: #fff;
  font-size: var(--type-micro);
  border-radius: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.buttons a:hover {
  color: #ff8f8f;
  border-color: #ff8f8f;
}

.buttons a:active {
  color: #a9ff8f;
  border-color: #a9ff8f;
}

.buttons a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* FOOTER */
.footer {
  padding: var(--nav-footer-y) var(--page-x);
  font-size: var(--type-micro);
  opacity: 0.6;
}

.footer p + p {
  margin-top: 4px;
}

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

.back-to-top-wrap {
  position: fixed;
  right: var(--page-x);
  bottom: var(--nav-footer-y);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-to-top-wrap.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: #ff8f8f;
  color: #000;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.back-to-top:hover {
  background: #a9ff8f;
}

.back-to-top:active {
  background: #f7cf05;
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

@media (max-width: 800px) {
  .back-to-top-wrap {
    right: var(--page-x);
    bottom: var(--page-y);
  }
}

.project-back-wrap {
  padding: 0 var(--page-x);
}

.project-back {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  transition: color 0.15s ease;
}

.project-back:hover {
  color: #ff8f8f;
}

.project-back:active {
  color: #a9ff8f;
}

.project-shambhu-page {
  background: #771c00;
}

.project-kaya-page {
  background: #dc3801;
}

.project-first-light-page {
  background: #007aff;
}

@media (max-width: 1300px) {
  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-image {
    order: -1;
  }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  :root {
    --page-x: 56px;
    --page-y: 72px;
    --nav-footer-y: 36px;
  }

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

  .intro {
    font-size: clamp(24px, 5.333vw, 32px);
    margin: 72px 0 48px;
  }

  .runner-game {
    margin-bottom: 56px;
  }

  .intro-wide {
    display: none;
  }

  .intro-medium {
    display: inline;
  }

  .about {
    margin-top: 96px;
    margin-bottom: 96px;
  }
}

@media (max-width: 800px) {
  :root {
    --page-x: 24px;
    --page-y: 40px;
    --nav-footer-y: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .about {
    grid-template-columns: 1fr;
    margin-top: 72px;
    margin-bottom: 56px;
    gap: 24px;
  }

  .about-image {
    order: -1;
  }

  .intro {
    margin: 40px 0 40px;
  }

  .runner-game {
    margin-bottom: 40px;
  }

  .runner-meta {
    margin-bottom: 10px;
  }

  .intro-medium {
    display: none;
  }

  .intro-narrow {
    display: inline;
  }
}

/* PROJECT PAGE */

.project {
  max-width: 800px;
}

.project-wide {
  max-width: 1300px;
}

.project-title {
  font-size: var(--type-title);
  font-weight: 400;
  margin-bottom: 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.project-tags span {
  border: 1px solid #eaeaea;
  min-height: 24px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--type-micro);
  line-height: 1;
}

.project-link-tag {
  border: 1px solid #eaeaea;
  min-height: 34px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--type-micro);
  line-height: 1;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.project-link-tag:hover {
  color: #ff8f8f;
  border-color: #ff8f8f;
}

.project-link-tag:active {
  color: #a9ff8f;
  border-color: #a9ff8f;
}

.project-intro {
  margin-bottom: 56px;
  max-width: 760px;
  font-size: var(--type-small);
  line-height: 1.5;
  opacity: 0.82;
}

.project-text,
.project-link-row,
.project .type-intro {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.project-text {
  font-size: var(--type-body);
  margin-top: 40px;
}

.project-link-row {
  margin-top: 20px;
  margin-bottom: 40px;
}

.project-image {
  background: #cfcfcf;
  width: 100%;
  height: 300px;
  margin-bottom: 20px;
}

.project-image.large {
  height: 400px;
}

.project-stack {
  display: grid;
  gap: 20px;
}

.project-stack-roomy {
  margin-bottom: 28px;
}

.project-stack-after-text {
  margin-top: 40px;
}

.project-stack-after-grid {
  margin-top: 20px;
}

.project-image-file {
  width: 100%;
  display: block;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.graphic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: start;
}

.graphic-card {
  grid-column: span 2;
  margin: 0;
}

.graphic-card-wide {
  grid-column: span 4;
}

.graphic-card-tall {
  grid-row: span 2;
}

.graphic-card .project-image-file {
  width: 100%;
  display: block;
}

/* mobile */
@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

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

  .graphic-card,
  .graphic-card-wide,
  .graphic-card-tall {
    grid-column: auto;
    grid-row: auto;
  }
}


/* TYPE TOOL */

.type-page {
  max-width: 1300px;
}

.type-intro {
  max-width: 760px;
  margin-bottom: 56px;
}

.type-intro h1 {
  font-size: var(--type-title);
  font-weight: 400;
  margin-bottom: 18px;
}

.type-intro p {
  font-size: var(--type-small);
  line-height: 1.5;
  opacity: 0.82;
}

.type-intro-actions {
  margin-top: -40px;
  margin-bottom: 90px;
}

.type-shared-input-wrap {
  max-width: 760px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
}

.type-shared-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  color: rgba(255,255,255,0.72);
  padding: 14px 16px;
  font: inherit;
  font-size: var(--type-small);
  line-height: 1.4;
}

.type-shared-input::placeholder {
  color: rgba(255,255,255,0.42);
}

.type-shared-input:focus {
  outline: none;
  background: rgba(255,255,255,0.05);
}

.type-shared-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.type-shared-reset:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: #fff;
  transform: rotate(-20deg);
}

.type-shared-reset:focus {
  outline: none;
}

.type-shared-reset:focus-visible {
  box-shadow: 0 0 0 1px #fff;
}

.type-shared-reset svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.type-story-button {
  border: 1px solid #eaeaea;
  min-height: 34px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #771c00;
  color: #fff;
  text-decoration: none;
  font-size: var(--type-micro);
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.type-story-button:hover {
  color: #ff8f8f;
  border-color: #ff8f8f;
}

.type-story-button:active {
  color: #a9ff8f;
  border-color: #a9ff8f;
}

.project .type-intro {
  margin-top: 40px;
}

.weight-accent {
  color: #ff8f8f;
}

.opsz-accent {
  color: #a9ff8f;
}

.type-block {
  margin-bottom: 90px;
}

.controls {
  display: grid;
  grid-template-columns: 105px repeat(6, minmax(0, 1fr)) 32px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.font-name {
  opacity: 1;
}

.controls input,
.controls select {
  width: 100%;
}

.control-spacer {
  width: 100%;
  height: 1px;
}

.control-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

.controls input[type="range"] {
  --slider-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 18px;
  cursor: pointer;
}

.controls input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--slider-color);
  border-radius: 999px;
}

.controls input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--slider-color);
  border-radius: 999px;
}

.controls input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--slider-color);
  background: var(--slider-color);
  margin-top: -5.5px;
}

.controls input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--slider-color);
  background: var(--slider-color);
}

.weight-slider {
  --slider-color: #ff8f8f;
  accent-color: #ff8f8f;
}

.weight-slider::-webkit-slider-runnable-track {
  background: #ff8f8f !important;
}

.weight-slider::-moz-range-track {
  background: #ff8f8f !important;
}

.weight-slider::-webkit-slider-thumb {
  border-color: #ff8f8f !important;
  background: #ff8f8f !important;
}

.weight-slider::-moz-range-thumb {
  border-color: #ff8f8f !important;
  background: #ff8f8f !important;
}

.opsz-slider {
  --slider-color: #a9ff8f;
  accent-color: #a9ff8f;
}

.opsz-slider::-webkit-slider-runnable-track {
  background: #a9ff8f !important;
}

.opsz-slider::-moz-range-track {
  background: #a9ff8f !important;
}

.opsz-slider::-webkit-slider-thumb {
  border-color: #a9ff8f !important;
  background: #a9ff8f !important;
}

.opsz-slider::-moz-range-thumb {
  border-color: #a9ff8f !important;
  background: #a9ff8f !important;
}

.controls select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #fff;
  border-radius: 999px;
  background-color: transparent;
  color: #fff;
  padding: 7px 32px 7px 12px;
  font: inherit;
  line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 5.5 7 9l3.5-3.5' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.controls select:focus,
.controls input[type="range"]:focus,
.reset-controls:focus {
  outline: none;
}

.controls select:focus-visible,
.controls input[type="range"]:focus-visible,
.reset-controls:focus-visible {
  box-shadow: 0 0 0 1px #fff;
}

.controls select option {
  background: #000;
  color: #fff;
}

.reset-controls {
  display: inline-flex;
  grid-column: -2;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.reset-controls:hover {
  background: rgba(255,255,255,0.08);
  transform: rotate(-20deg);
}

.reset-controls svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.type-sample {
  border: 1px solid #eaeaea;
  padding: 26px;
  min-height: 130px;
  font-size: 48px;
  line-height: 1.2;
  outline: none;
  transition: all 0.15s ease;
}

.type-sample:focus {
  background: rgba(255,255,255,0.05);
}

/* mobile */
@media (max-width: 700px) {
  .type-page {
    max-width: 1000px;
  }

  .type-intro {
    margin-bottom: 40px;
  }

  .type-shared-input-wrap {
    margin-bottom: 40px;
  }

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

  .type-sample {
    padding: 20px;
    min-height: 100px;
  }
}
