/* VOILD — site system. Palette, type and spacing from the art-direction spec. */

:root {
  --void: #0b0b0b;
  --graphite: #161616;
  --hairline: #262626;
  --proof: #6b6b69;
  --ash: #8e8e8c;
  --bone: #f2f0eb;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1440px;
  --pad: 40px;
  --gutter: 24px;
  --header-h: 64px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 160px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

@media (max-width: 900px) {
  :root {
    --pad: 32px;
    --gutter: 20px;
  }
}

@media (max-width: 700px) {
  :root {
    --pad: 20px;
    --gutter: 16px;
    --header-h: 56px;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone);
  background: var(--void);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
button { cursor: pointer; }
::selection { background: var(--bone); color: var(--void); }

/* Type */
.wordmark {
  display: block;
  color: var(--bone);
  line-height: 0;
}
.wordmark svg,
.wordmark img {
  display: block;
  height: 18px;
  width: auto;
}
.page-home .wordmark-hero {
  height: 28px;
}
@media (max-width: 700px) {
  .wordmark svg,
  .wordmark img { height: 16px; }
  .page-home .wordmark-hero { height: 22px; }
}

.nav-link,
.footer a,
.btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--bone);
}
@media (max-width: 700px) {
  .page-title { font-size: 22px; }
}

.sentence {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--bone);
}

.label,
.caption {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ash);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Links: ash to bone + underline from the left */
.nav-link,
.footer a,
.drop-row .drop-name,
.text-link {
  color: var(--ash);
  position: relative;
  transition: color 160ms var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible,
.footer a:hover,
.footer a:focus-visible,
.drop-row:hover .drop-name,
.drop-row:focus-visible .drop-name,
.text-link:hover,
.text-link:focus-visible {
  color: var(--bone);
}
.nav-link::after,
.footer a::after,
.drop-row .drop-name::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.footer a:hover::after,
.footer a:focus-visible::after,
.drop-row:hover .drop-name::after,
.drop-row:focus-visible .drop-name::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

/* Header / footer */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  position: relative;
  z-index: 10;
  background: transparent;
}
.page-home .site-header {
  justify-content: flex-end;
}
.site-header .wordmark { flex-shrink: 0; }
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
@media (max-width: 700px) {
  .nav { gap: 20px; }
  .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

.site-footer {
  padding: 0 var(--pad) 32px;
}
.footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.footer-line .sep {
  color: var(--proof);
  letter-spacing: 0;
  pointer-events: none;
}
.footer-credit {
  color: var(--ash);
}
@media (max-width: 700px) {
  .footer-line {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .footer-line .sep { display: none; }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
  }
  .footer-links .sep { display: inline; color: var(--proof); }
}

/* Inner page shell */
.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page-body {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-9) var(--pad) var(--space-8);
}
@media (max-width: 700px) {
  .page-body { padding-top: var(--space-8); }
}

.col-4-9 {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Home — 100svh, no scroll */
.page-home {
  height: 100svh;
  overflow: hidden;
}
.page-home main,
.stage {
  flex: 1;
  position: relative;
  min-height: 0;
}
.pool {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 70vmin;
  height: 70vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--graphite) 0%, var(--void) 68%);
  pointer-events: none;
}
.hero-cluster {
  position: absolute;
  left: 50%;
  bottom: 20svh; /* soles sit near 80svh; a short shadow hangs just below */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-figure {
  --h: min(64svh, 720px);
  height: var(--h);
  margin: 0;
}
.hero-figure img {
  height: 100%;
  width: auto;
  max-width: none;
  mask-image: radial-gradient(ellipse 68% 74% at 50% 46%, #000 58%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 68% 74% at 50% 46%, #000 58%, transparent 82%);
  opacity: 0;
  animation: figure-in 700ms var(--ease) 150ms forwards;
}
.wordmark-hero {
  position: static;
  margin: 32px 0 0;
  transform: none;
  color: var(--bone);
}
.page-home .site-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 700px) {
  .hero-figure { --h: 58svh; }
}

@media (max-height: 700px) {
  .hero-figure { --h: min(52svh, 560px); }
  .hero-cluster { bottom: 18svh; }
  .wordmark-hero { margin-top: 20px; }
}

@keyframes figure-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Origin */
.origin-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin: 0 0 var(--space-7);
}
.origin-head .page-title,
.origin-head .sentence {
  grid-column: 4 / 10;
}
.origin-head .sentence { margin-top: var(--space-5); }
@media (max-width: 700px) {
  .origin-head .page-title,
  .origin-head .sentence { grid-column: 1 / -1; }
}
.origin-plates {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin: 0;
}
.origin-plates figure {
  margin: 0;
  grid-column: span 5;
}
.origin-plates figure:first-child { grid-column: 2 / 7; }
.origin-plates figure:last-child { grid-column: 7 / 12; }
.origin-plates .caption { margin-top: var(--space-3); }
@media (max-width: 700px) {
  .origin-plates { display: block; }
  .origin-plates figure + figure { margin-top: var(--space-6); }
}

/* Drops list */
.drops-block {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}
.drops-head { margin: 0 0 var(--space-6); }
.drop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.drop-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 72px;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
  color: inherit;
}
.drop-row .drop-name {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone);
  padding: var(--space-4) 0;
}
.drop-meta {
  display: flex;
  gap: var(--space-5);
  flex-shrink: 0;
  padding: var(--space-4) 0;
}
.drop-meta .edition { color: var(--ash); }
.drop-meta .status-open { color: var(--bone); }
.drop-meta .status-upcoming { color: var(--ash); }
.drop-meta .status-sold { color: var(--proof); }

@media (max-width: 700px) {
  .drop-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 64px;
    padding: 14px 0;
  }
  .drop-row .drop-name,
  .drop-meta { padding: 0; }
  .drop-meta { gap: 8px; }
  .drop-meta .edition::after { content: " ·"; color: var(--proof); }
}

/* Drop detail */
.drop-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}
.drop-layout .plate {
  grid-column: 1 / 8;
  margin: 0;
}
.drop-layout .info {
  grid-column: 9 / 13;
}
.drop-layout .page-title { margin-bottom: var(--space-5); }
.drop-layout .sentence { margin-bottom: var(--space-6); }
.spec {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-5);
  row-gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.spec dt { color: var(--ash); }
.spec dd { color: var(--bone); margin: 0; }

@media (max-width: 800px) {
  .drop-layout { display: block; }
  .drop-layout .plate { margin-bottom: var(--space-6); }
  .drop-layout .btn {
    position: sticky;
    bottom: 20px;
    width: 100%;
  }
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 240px;
  border: 1px solid var(--bone);
  background: transparent;
  color: var(--bone);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--bone);
  color: var(--void);
}
.btn:disabled {
  border-color: var(--hairline);
  color: var(--proof);
  background: transparent;
  cursor: default;
}
@media (max-width: 700px) {
  .btn { width: 100%; }
}

/* Waitlist */
.waitlist {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.waitlist .page-title { margin-bottom: var(--space-5); }
.waitlist .sentence { margin-bottom: var(--space-7); }
.field {
  display: block;
  margin-bottom: 24px;
}
.field .label {
  display: block;
  margin-bottom: 8px;
}
.field input,
.field select {
  width: 100%;
  height: 48px;
  border: 0;
  border-bottom: 1px solid var(--proof);
  padding: 0;
  font-size: 15px;
  color: var(--bone);
  background: transparent;
  border-radius: 0;
  appearance: none;
  transition: border-color 160ms var(--ease);
}
.field input::placeholder { color: var(--proof); }
.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--bone);
}
.field-select { position: relative; }
.field-select::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--bone);
  border-bottom: 1.5px solid var(--bone);
  transform: translateY(-30%) rotate(45deg);
  pointer-events: none;
}
.form-error {
  margin: 0 0 var(--space-5);
  color: var(--bone);
  font-size: 15px;
}
.form-success {
  margin: 0;
  color: var(--bone);
  font-size: 15px;
  line-height: 1.6;
}
.hp { position: absolute; left: -9999px; }

/* Colorways */
.feature + .shelf,
.feature + .drop-list,
.shelf + .drop-list { margin-top: var(--space-9); }
.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin: 0;
}
.shelf figure { margin: 0; }
.shelf figcaption { margin-top: var(--space-3); }
.shelf .name { color: var(--bone); display: block; }
.swatches {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.swatch {
  width: 14px;
  height: 14px;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .shelf { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* Rules / FAQ */
.rules-lead { margin: var(--space-5) 0 var(--space-7); }
.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rule;
}
.rules li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
  font-size: 15px;
  color: var(--bone);
}
.rules li::before {
  counter-increment: rule;
  content: counter(rule, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ash);
  padding-top: 2px;
}

.faq { margin: var(--space-7) 0 0; padding: 0; }
.faq-item { margin: 0 0 var(--space-6); }
.faq-item dt {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bone);
}
.faq-item dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ash);
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--pad);
  top: -40px;
  color: var(--bone);
  z-index: 20;
}
.skip:focus { top: 8px; }

/* Motion */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
  animation-timing-function: var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-figure img { opacity: 1; }
  @view-transition { navigation: none; }
}

/* Focus */
:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 3px;
}
.nav-link:focus-visible,
.footer a:focus-visible,
.drop-row:focus-visible {
  outline-offset: 4px;
}

/* Dissolve plate edges into the void */
.origin-plates img,
.drop-layout .plate img,
.shelf img {
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 88%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 88%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-mode: alpha;
}
