:root {
  --ink: #111511;
  --green: #123c30;
  --green-soft: #e6efe9;
  --paper: #fffefa;
  --warm: #f4f0e8;
  --line: #ddd9cf;
  --muted: #6d716a;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
  --mono: 'DM Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1120px)/2));
  border-bottom: 1px solid var(--line);
  background: rgba(255,254,250,.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wordmark {
  border: 0;
  background: none;
  font: 500 14px var(--mono);
  letter-spacing: .04em;
  color: var(--ink);
}

.wordmark span {
  color: var(--green);
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.nav-link, .text-button, .owner, .back, .garage-link, .originalButton {
  background: none;
  border: 0;
  color: var(--ink);
}

.nav-link {
  color: var(--muted);
  padding: 8px 0;
}

.nav-link.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}

.button {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  padding: 13px 18px;
  font-weight: 600;
  border-radius: 2px;
}

.button:hover {
  background: #0c2e23;
}

.button-small {
  padding: 9px 13px;
  font-size: 13px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  padding: 90px 0 105px;
}

.eyebrow, .mono {
  font: 500 11px var(--mono);
  letter-spacing: .08em;
  color: var(--green);
}

.hero h1, .story-detail h1, .explore-page h1, .garage-intro h1, .onboarding-shell h1 {
  font: 500 clamp(52px,8vw,92px)/.95 var(--display);
  letter-spacing: -.05em;
  margin: 13px 0 22px;
}

.hero-copy {
  max-width: 400px;
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.text-button {
  padding: 6px 0;
  font-size: 14px;
}

.text-button span, .owner span, .garage-link span {
  color: var(--green);
  margin-left: 5px;
}

.featured-section, .feed-section, .garage-records {
  padding: 0 0 94px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 {
  font: 500 32px var(--display);
  margin: 5px 0 0;
  letter-spacing: -.035em;
}

.featured-card {
  width: 100%;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  border: 1px solid var(--line);
  background: var(--warm);
  color: var(--ink);
}

.featured-image {
  min-height: 410px;
}

.featured-content {
  padding: 44px;
  align-self: center;
}

.featured-content h3 {
  font: 500 47px/.98 var(--display);
  letter-spacing: -.045em;
  margin: 15px 0;
}

.featured-content > p {
  line-height: 1.65;
  max-width: 300px;
}

.featured-content span {
  display: block;
  margin-top: 32px;
  font-size: 14px;
}

.featured-content b {
  color: var(--green);
}

.image-hero, .image-miata, .image-mini, .image-volvo {
  background-size: cover;
  background-position: center;
  background-color: #526256;
}

.image-hero {
  background-image: linear-gradient(0deg,rgba(0,0,0,.16),rgba(0,0,0,0)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1400&q=85');
}

.image-miata {
  background-image: linear-gradient(0deg,rgba(0,0,0,.24),rgba(0,0,0,0)), url('https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=1100&q=85');
}

.image-mini {
  background-image: linear-gradient(0deg,rgba(0,0,0,.22),rgba(0,0,0,0)), url('https://images.unsplash.com/photo-1504215680853-026ed2a45def?auto=format&fit=crop&w=1100&q=85');
}

.image-volvo {
  background-image: linear-gradient(0deg,rgba(0,0,0,.2),rgba(0,0,0,0)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1100&q=85');
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.feed-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.feed-tab { background: none; border: 0; color: var(--muted); font-weight: 600; padding: 0 0 12px; }
.feed-tab span { font: 10px var(--mono); background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 3px 5px; margin-left: 3px; }
.feed-tab.is-active { color: var(--green); border-bottom: 2px solid var(--green); }
.garage-people { margin-bottom: 26px; }
.garage-people .mono { margin-bottom: 11px; }
.people-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 2px; }
.person-chip { flex: 0 0 auto; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 12px 8px 8px; text-align: left; }
.person-chip b, .person-chip small { display: block; }
.person-chip b { font-size: 13px; }
.person-chip small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.avatar { display: inline-grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; color: white; font: 11px var(--mono); }
.avatar-minji { background: #3e5946; } .avatar-yuta { background: #84654a; } .avatar-eli { background: #465162; } .avatar-hana { background: #90594e; }

.story-image {
  border: 0;
  width: 100%;
  aspect-ratio: .88;
  text-align: right;
  vertical-align: top;
  padding: 12px;
}

.count {
  color: #fff;
  font: 11px var(--mono);
  background: rgba(0,0,0,.35);
  padding: 6px 8px;
}

.story-meta {
  padding-top: 14px;
}

.story-meta h3 {
  font: 500 21px/1.25 var(--display);
  letter-spacing: -.025em;
  margin: 8px 0 11px;
}

.owner {
  font-size: 13px;
  padding: 0;
}

.story-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.owner-profile { display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.owner-profile .avatar { width: 22px; height: 22px; flex-basis: 22px; font-size: 9px; }
.quick-reactions { display: flex; gap: 8px; color: var(--muted); }
.quick-reactions button { border: 0; background: none; padding: 3px 0; color: inherit; font-size: 11px; }

.back {
  color: var(--muted);
  padding: 28px 0 22px;
  font-size: 13px;
}

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 58px;
  padding-bottom: 95px;
}

.story-main-photo {
  aspect-ratio: .94;
}

.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.thumb {
  width: 72px;
  height: 58px;
}

.story-detail {
  padding-top: 13px;
}

.story-detail h1 {
  font-size: clamp(40px,4.5vw,64px);
}

.byline, .translation-note {
  color: var(--muted);
  font-size: 12px;
}

.story-text {
  font-size: 16px;
  line-height: 1.8;
  margin: 30px 0;
}

.reaction-row {
  display: flex;
  gap: 8px;
}

.icon-button {
  background: var(--warm);
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.icon-button[aria-pressed=true] {
  color: var(--green);
  border-color: var(--green);
}

.translation-note button {
  border: 0;
  padding: 0;
  text-decoration: underline;
  background: none;
  color: inherit;
}

.comment-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
  padding: 17px 0;
  line-height: 1.45;
}

.comment-box p {
  margin: 8px 0;
}

.garage-link {
  font-weight: 600;
  padding: 7px 0;
}

.garage-top {
  padding-bottom: 30px;
}

.garage-intro p:last-child {
  color: var(--muted);
}

.pixel-garage-wrap {
  background: #dce8df;
  padding: 48px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pixel-garage {
  width: min(960px,100%);
  height: 470px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
  background: linear-gradient(#b9cebe 0 64%,#798c7d 64%);
  box-shadow: inset 0 0 0 10px #244536;
}

.garage-floor {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 36%;
  background: repeating-linear-gradient(90deg,#667967 0 55px,#5b6c5c 55px 58px);
  border-top: 8px solid #344b3c;
}

.garage-sign {
  position: absolute;
  top: 32px;
  left: 42px;
  z-index: 2;
  background: #17382b;
  border: 6px solid #f7e8b7;
  color: #f7e8b7;
  font: 16px/1.1 var(--mono);
  padding: 13px;
  box-shadow: 7px 7px 0 #6c7f70;
}

.moon {
  position: absolute;
  top: 46px;
  right: 68px;
  width: 59px;
  height: 59px;
  background: #f7e8b7;
  box-shadow: 0 0 0 9px #99b49f;
}

.garage-window {
  position: absolute;
  right: 160px;
  top: 36px;
  width: 210px;
  height: 130px;
  display: flex;
  gap: 7px;
  padding: 11px;
  background: #345644;
  border: 8px solid #183e2e;
}

.garage-window i {
  flex: 1;
  background: linear-gradient(#2b5270 0 58%,#a2c3b7 58%);
}

.poster {
  position: absolute;
  top: 215px;
  left: 75px;
  z-index: 2;
  background: #e9c56d;
  color: #24362a;
  padding: 12px;
  border: 5px solid #f5e9c7;
  font: 15px/1.05 var(--mono);
}

.plant {
  position: absolute;
  bottom: 150px;
  right: 70px;
  z-index: 2;
  width: 70px;
  height: 110px;
  background: #b87848;
  border: 7px solid #65452d;
}

.plant span {
  position: absolute;
  width: 45px;
  height: 24px;
  background: #2d603d;
}

.plant span:nth-child(1) {
  left: -18px;
  top: -32px;
  transform: rotate(-35deg);
}

.plant span:nth-child(2) {
  left: 20px;
  top: -54px;
  transform: rotate(40deg);
}

.plant span:nth-child(3) {
  left: 9px;
  top: -83px;
  transform: rotate(-7deg);
}

.shelf {
  position: absolute;
  right: 250px;
  bottom: 150px;
  z-index: 2;
  width: 158px;
  height: 110px;
  border: 7px solid #5a4330;
  border-top: 0;
  display: flex;
  justify-content: space-around;
  align-items: end;
}

.shelf:after {
  content: '';
  position: absolute;
  top: 46px;
  width: 100%;
  border-top: 6px solid #5a4330;
}

.shelf span {
  width: 26px;
  height: 29px;
  background: #e4b856;
  margin-bottom: 7px;
}

.pixel-car {
  position: absolute;
  z-index: 3;
  border: 0;
  width: 300px;
  height: 116px;
  bottom: 105px;
  background: transparent;
}

.pixel-car:before {
  content: '';
  position: absolute;
  left: 21px;
  bottom: 0;
  width: 255px;
  height: 75px;
  background: var(--car);
  clip-path: polygon(7% 55%,22% 55%,35% 7%,70% 7%,86% 55%,96% 55%,100% 83%,93% 100%,7% 100%,0 83%);
  box-shadow: 0 9px 0 #17251d;
}

.pixel-car:after {
  content: '';
  position: absolute;
  left: 79px;
  bottom: 47px;
  width: 125px;
  height: 31px;
  background: linear-gradient(90deg,#203b43 0 48%,transparent 48% 52%,#203b43 52%);
  clip-path: polygon(9% 0,91% 0,100% 100%,0 100%);
}

.pixel-car .pixel-label {
  position: absolute;
  bottom: -35px;
  left: 47px;
  color: #fffdf4;
  font: 12px/1.1 var(--mono);
  background: #163d2e;
  padding: 7px;
  z-index: 5;
  opacity: 0;
  transition: .2s;
}

.pixel-car:hover .pixel-label {
  opacity: 1;
}

.car-green {
  --car: #256b50;
  left: 18%;
}

.car-grey {
  --car: #8c968e;
  right: 10%;
  transform: scale(.85);
  transform-origin: bottom right;
}

.garage-records {
  padding-top: 72px;
}

.record-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 13px;
}

.record-card {
  min-height: 210px;
  border: 0;
  color: white;
  padding: 18px;
  text-align: left;
  display: flex;
  align-items: end;
  font: 500 21px/1.15 var(--display);
  text-shadow: 0 1px 8px #000;
}

.explore-page {
  padding: 82px 0 110px;
}

.explore-page h1 {
  margin-bottom: 33px;
}

.search {
  display: flex;
  width: min(690px,100%);
  border-bottom: 2px solid var(--ink);
  padding: 0 0 7px;
  gap: 12px;
  align-items: center;
}

.search span {
  font-size: 25px;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  padding: 10px 0;
}

.search-result {
  margin-top: 22px;
  width: min(690px,100%);
}

.model-result {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--warm);
  padding: 18px;
}

.model-dot {
  width: 37px;
  height: 24px;
  background: var(--green);
  clip-path: polygon(7% 55%,24% 55%,36% 10%,70% 10%,87% 55%,96% 55%,100% 85%,0 85%);
}

.model-result b, .model-result small {
  display: block;
}

.model-result small {
  color: var(--muted);
  margin-top: 4px;
}

.model-result em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--green);
}

.explore-list {
  margin-top: 75px;
}

.explore-list div {
  width: min(690px,100%);
  border-top: 1px solid var(--line);
}

.explore-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font: 500 26px var(--display);
}

.explore-list span {
  color: var(--green);
}

.onboarding-page {
  background: var(--warm);
  min-height: calc(100vh - 74px);
  padding: 0 24px;
}

.onboarding-shell {
  width: min(680px,100%);
  margin: auto;
}

.progress {
  display: flex;
  gap: 6px;
  padding-top: 18px;
}

.progress span {
  height: 3px;
  flex: 1;
  background: #d4d0c6;
}

.progress .current {
  background: var(--green);
}

.question {
  display: none;
  padding: 60px 0;
}

.question.active {
  display: block;
}

.question h1 {
  font-size: clamp(42px,6vw,70px);
}

.question > p:not(.eyebrow) {
  color: var(--muted);
}

.answer {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 12px 0;
  font-size: 20px;
  outline: 0;
  margin: 20px 0 27px;
}

.answer:focus {
  border-color: var(--green);
}

.question textarea {
  min-height: 115px;
  resize: vertical;
}

.upload {
  width: 100%;
  min-height: 165px;
  border: 1px dashed #89958c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 21px 0 25px;
  color: var(--green);
}

.upload input {
  display: none;
}

.upload span {
  font-size: 28px;
}

.upload small {
  color: var(--muted);
}

.complete p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
}

.complete .button {
  margin-top: 20px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px max(24px, calc((100vw - 1120px)/2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .07em;
}

@media (max-width: 720px) {
  .site-header {
    height: 62px;
    padding: 0 16px;
  }

  .site-header nav {
    display: none;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 65px 0 70px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .featured-card, .story-layout {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 290px;
  }

  .featured-content {
    padding: 27px;
  }

  .featured-content h3 {
    font-size: 39px;
  }

  .feed-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .story-footer { align-items: flex-start; }

  .story-image {
    aspect-ratio: 1.05;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-heading .text-button {
    font-size: 12px;
  }

  .story-layout {
    gap: 22px;
  }

  .story-detail {
    padding: 0;
  }

  .story-detail h1 {
    font-size: 47px;
  }

  .pixel-garage-wrap {
    padding: 25px 0;
    overflow: hidden;
  }

  .pixel-garage {
    width: 650px;
    margin-left: calc(50% - 325px);
    height: 340px;
    transform: scale(.9);
    transform-origin: top center;
    margin-bottom: -35px;
  }

  .garage-intro h1 {
    font-size: 58px;
  }

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

  .record-card {
    min-height: 200px;
  }

  .explore-page {
    padding: 60px 0 85px;
  }

  .explore-page h1 {
    font-size: 55px;
  }

  .search .button {
    display: none;
  }

  .model-result em {
    display: none;
  }

  .onboarding-page {
    min-height: calc(100vh - 62px);
  }

  .question {
    padding-top: 42px;
  }

  .question h1 {
    font-size: 49px;
  }

  footer {
    font-size: 9px;
    padding: 22px 16px;
  }

  .garage-top .back {
    padding-top: 18px;
  }
}
