:root {
  --asphalt: #0a0a0a;
  --asphalt-2: #121212;
  --orange: #ff6a1a;
  --orange-deep: #d9540d;
  --bone: #e7e5e4;
  --steel: #57534e;
  --line: #232323;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --touch: 44px;
  --radius: 14px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  color-scheme: dark;
  background-color: var(--asphalt);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--bone);
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(255, 106, 26, 0.09), transparent 60%),
    var(--asphalt);
  line-height: 1.55;
  min-height: 100svh;
}

::selection {
  background: var(--orange);
  color: var(--asphalt);
}
::-moz-selection {
  background: var(--orange);
  color: var(--asphalt);
}

:focus,
:focus-visible,
:active {
  outline: none !important;
  box-shadow: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange) !important;
  outline-offset: 3px;
}
::-moz-focus-inner {
  border: 0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--asphalt);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--asphalt);
}
::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 6px;
  border: 2px solid var(--asphalt);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-deep);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--orange);
  color: var(--asphalt);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
  z-index: 50;
}
.skip:focus-visible {
  top: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 4rem);
  overflow-anchor: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem 3rem;
  gap: 1rem;
}

.hero-mark {
  width: clamp(120px, 28vw, 160px);
  height: auto;
  border-radius: 28px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0.5rem 0 0;
  line-height: 1.05;
}

.wordmark .accent {
  color: var(--orange);
}

.pitch {
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  color: var(--bone);
  max-width: 34rem;
  margin: 0;
}

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: var(--touch);
  padding: 0.85rem 2.4rem;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--asphalt);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn-note {
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: var(--steel);
  margin: 0;
}

.btn-push {
  margin-top: 0.75rem;
}

/* ---------- Email signup ---------- */
.alerts-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 0.75rem;
  width: min(100%, 26rem);
  margin-left: auto;
  margin-right: auto;
}
.alerts-input {
  flex: 1;
  min-width: 0;
  min-height: var(--touch);
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--bone);
  background: #141414;
  border: 1px solid #2e2e2e;
  border-radius: 999px;
}
.alerts-input::placeholder {
  color: var(--steel);
}
.alerts-input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
.alerts-form .btn {
  margin-top: 0;
  white-space: nowrap;
}
.fine-print {
  font-size: 0.78rem;
  color: var(--steel);
  margin: 0.35rem 0 0;
}
.fine-print a {
  color: var(--steel);
  text-decoration: underline;
}

/* ---------- Feed ---------- */
.feed-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.feed-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.6rem;
  margin: 0;
}

.feed-sub {
  color: var(--steel);
  font-size: 0.9rem;
  margin: 0;
}

.feed {
  display: grid;
  gap: 1.1rem;
}

.card {
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: grid;
  gap: 0.35rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover {
  border-color: var(--orange);
}

.card-body {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-sold {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #0a0a0a;
  background: var(--steel);
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

.card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--orange);
  margin: 0;
  white-space: nowrap;
}

.card-meta {
  color: var(--steel);
  font-size: 0.9rem;
  margin: 0;
}

.card-take {
  margin: 0.25rem 0 0.5rem;
  font-size: 1rem;
}

.card-link {
  font-weight: 600;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  width: fit-content;
  padding-bottom: 2px;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}
.card-link:hover {
  color: var(--orange);
}

.feed-empty,
.feed-error {
  text-align: center;
  color: var(--steel);
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- Feed controls: sort + filters ---------- */
.feed-controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.seg {
  display: flex;
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.seg-btn {
  flex: 1;
  min-height: var(--touch);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--steel);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 0.4rem;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.seg-btn.is-on {
  background: var(--orange);
  color: var(--asphalt);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: var(--touch);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--asphalt-2);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.55rem 1.1rem;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.chip.is-on {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--asphalt);
}

/* ---------- Feed sections ---------- */
.section-head {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  margin: 1.75rem 0 0.9rem;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-head:first-child {
  margin-top: 0;
}
.section-count {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  color: var(--steel);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  letter-spacing: 0;
}

/* ---------- Listing photo, Marketplace-style ---------- */
.card-photo {
  display: block;
  width: calc(100% + 3rem);
  max-width: none;
  margin: -1.4rem -1.5rem 0.9rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #000;
}
/* ---------- Desktop: side-by-side photo + details ---------- */
@media (min-width: 860px) {
  .feed-section,
  .archive-section {
    max-width: 1060px;
  }

  .card {
    grid-template-columns: 340px 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .card.no-photo {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.8rem;
  }

  .card-photo {
    width: 100%;
    height: 100%;
    min-height: 300px;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .card-body {
    padding: 1.6rem 1.8rem;
    gap: 0.45rem;
  }

  .card-title {
    font-size: 1.6rem;
  }
  .card-price {
    font-size: 2.2rem;
  }
  .card-take {
    font-size: 1.05rem;
  }

  .feed-head h2 {
    font-size: 1.9rem;
  }

  .hero {
    min-height: calc(100svh - 6rem);
  }
}

@media (max-width: 560px) {
  .card-photo {
    width: calc(100% + 2.2rem);
    margin: -1.15rem -1.1rem 0.9rem;
  }
}

/* ---------- Archive ---------- */
.archive-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.archive {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--asphalt-2);
  overflow: hidden;
}

.archive-sum {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  list-style: none;
}
.archive-sum::-webkit-details-marker {
  display: none;
}
.archive-sum::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--orange);
  line-height: 1;
}
.archive[open] .archive-sum::after {
  content: '–';
}
.archive-hint {
  color: var(--steel);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
}

.archive .feed {
  padding: 0 1.25rem 1.25rem;
}

.btn-ghost {
  display: block;
  width: calc(100% - 2.5rem);
  margin: 0 1.25rem 1.25rem;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
}
.btn-ghost:hover {
  background: rgba(255, 106, 26, 0.12);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

.socials {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.legal {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.legal a {
  color: var(--steel);
}
.socials a {
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}
.socials a:hover {
  color: var(--orange);
}

.fine {
  color: var(--steel);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Motion: visible by default, enhanced by JS ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  }
  html.js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: calc(100svh - 2rem);
  }
  .card {
    padding: 1.15rem 1.1rem;
  }
}

.info-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}
.info-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}
.steps li {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  line-height: 1.55;
}
.steps li strong { color: #FF6A1A; }
.faq h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  margin: 1.4rem 0 0.35rem;
  color: #FF6A1A;
}
.faq h3:first-of-type { margin-top: 0; }
.faq p { margin: 0; line-height: 1.6; color: #E7E5E4; }
