/*
 * The 1st Sale - public site.
 *
 * Dark editorial hero against a gallery-grey object wall, then a run of full
 * bleed bands. The register is "institutional record", not "personalised gift
 * shop": mono for anything that reads as data, tight negative tracking on the
 * display type, and exactly one accent green.
 */

@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/Inter-SemiBold-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fragment Mono";
  src: url("fonts/FragmentMono-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ink: #11110f;
  --paper: #f3f0e6;
  --line: rgba(17, 17, 15, 0.16);
  --green: #173c2d;
  --muted: #73736c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

/* --- header --------------------------------------------------------------
   Fixed and transparent over the hero, which is dark on the left and light on
   the right - hence the ink-coloured links until the page scrolls and the bar
   gets its own background. */

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(17, 17, 15, 0.92);
  box-shadow: 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.brand > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
}

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

.site-header nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  text-decoration: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.site-header:not(.scrolled) nav a,
.site-header:not(.scrolled) .header-cta {
  color: var(--ink);
}

.site-header.scrolled nav a {
  color: rgba(255, 255, 255, 0.68);
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 0.88fr 1.12fr;
  color: #fff;
  background: #11110f;
}

.hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 132px 6vw 84px;
}

.eyebrow,
.section-index {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.52);
}

.hero h1 {
  margin: 22px 0 28px;
  font-size: clamp(58px, 7.1vw, 116px);
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.hero-lead {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.button.light {
  min-width: 220px;
  color: var(--ink);
  background: #fff;
}

.text-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 9px;
}

.hero-proof i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6eb58e;
  box-shadow: 0 0 0 4px rgba(110, 181, 142, 0.12);
}

/* --- the object on the wall ----------------------------------------------- */

.hero-object {
  display: grid;
  place-items: center;
  padding: 100px 6vw 58px;
  background: #d9d8d2;
  color: var(--ink);
}

.hero-frame {
  width: min(31vw, 430px);
  aspect-ratio: 5 / 7;
  padding: 17px;
  background: linear-gradient(135deg, #343431, #090908 60%, #262623);
  box-shadow: 0 42px 80px rgba(17, 17, 15, 0.34);
  transform: rotate(1.1deg);
}

.hero-mat {
  width: 100%;
  height: 100%;
  padding: 17px;
  background: #eae7de;
  box-shadow: inset 0 0 8px rgba(17, 17, 15, 0.12);
}

.hero-poster {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 8%;
  color: #f4f0e5;
  background: #151513;
}

.hero-poster header,
.hero-poster footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: clamp(5px, 0.55vw, 8px);
}

.hero-poster header small {
  color: rgba(255, 255, 255, 0.45);
}

.hero-logo {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid;
  border-radius: 50%;
  font-size: 7px;
}

.hero-poster-main {
  display: flex;
  flex: 1;
  justify-content: center;
  flex-direction: column;
}

.hero-poster-main small {
  font-family: var(--mono);
  font-size: clamp(5px, 0.55vw, 8px);
}

.hero-poster-main strong {
  margin-left: -4px;
  font-size: clamp(76px, 10vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.1em;
}

.hero-poster-main b {
  margin-top: 12px;
  font-size: clamp(11px, 1.4vw, 21px);
}

.hero-poster-main p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(7px, 0.8vw, 11px);
}

.hero-rule {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-poster dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 5% 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-poster dt,
.hero-poster dd {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(4px, 0.46vw, 7px);
}

.hero-poster dt {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.42);
}

.hero-poster footer {
  margin-top: auto;
  padding-top: 6%;
  color: rgba(255, 255, 255, 0.46);
}

.object-caption {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: 8px;
}

/* --- bands ---------------------------------------------------------------- */

.manifesto {
  display: grid;
  max-width: 1280px;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  margin: 0 auto;
  padding: 112px 32px;
}

.section-index {
  color: var(--muted);
}

.manifesto h2,
.how h2,
.final-cta h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(38px, 5.3vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.manifesto p:not(.section-index) {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.artifact-strip {
  display: grid;
  min-height: 520px;
  grid-template-columns: repeat(4, 1fr);
}

.artifact-tile {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  flex-direction: column;
  padding: 28px;
}

.artifact-tile > span,
.artifact-tile small,
.artifact-tile p {
  font-family: var(--mono);
  font-size: 9px;
}

.artifact-tile.dark {
  color: #fff;
  background: #171715;
}

.artifact-tile.paper {
  border-right: 1px solid #d2cdc0;
  background: #eee9dc;
}

.artifact-tile.green {
  color: #fff;
  background: var(--green);
}

.artifact-tile strong {
  display: block;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.artifact-tile p {
  line-height: 1.8;
}

.artifact-tile.timestamp strong {
  font-family: var(--mono);
  font-size: clamp(32px, 3.6vw, 56px);
  letter-spacing: -0.08em;
}

.how {
  padding: 112px 32px;
  background: #fff;
}

.how > header {
  display: grid;
  max-width: 1280px;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  margin: 0 auto 76px;
}

.steps {
  display: grid;
  max-width: 1280px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.steps article {
  min-height: 270px;
  padding: 28px 32px;
  border-right: 1px solid var(--line);
}

.steps article:last-child {
  border-right: 0;
}

.steps span {
  font-family: var(--mono);
  font-size: 10px;
}

.steps h3 {
  margin: 72px 0 14px;
  font-size: 20px;
}

.steps p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
}

.final-cta {
  display: flex;
  min-height: 600px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 96px 24px;
  color: #fff;
  background: #11110f;
  text-align: center;
}

.final-cta .eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.final-cta h2 {
  max-width: 900px;
  margin: 24px 0 40px;
}

.final-cta .mono-note {
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 9px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 34px 32px;
  background: #d8d6cf;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.site-footer small {
  justify-self: end;
}

/* --- confirmation + error shells -----------------------------------------
   Both are one centred block on the dark ground, so they reuse the final-cta
   band rather than carrying a layout of their own. */

.notice-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 120px 24px 96px;
  color: #fff;
  background: #11110f;
  text-align: center;
}

.notice-page h1 {
  max-width: 900px;
  margin: 24px 0 20px;
  font-size: clamp(38px, 5.3vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.notice-page .eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.notice-page p {
  max-width: 520px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.notice-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 15px;
}

.notice-meta {
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 9px;
}

.notice-detail {
  max-width: 620px;
  margin: 0 0 30px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--mono);
  font-size: 11px;
  text-align: left;
  white-space: pre-wrap;
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .site-header:not(.scrolled) .header-cta {
    color: #fff;
  }

  .site-header nav {
    display: none;
  }

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

  .hero-copy {
    min-height: 76vh;
    padding: 120px 20px 72px;
  }

  .hero h1 {
    font-size: clamp(60px, 18vw, 100px);
  }

  .hero-object {
    padding: 72px 20px;
  }

  .hero-frame {
    width: min(76vw, 390px);
  }

  .manifesto,
  .how > header {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-inline: 20px;
  }

  .artifact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .artifact-tile {
    min-height: 390px;
  }

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

  .steps article {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-inline: 20px;
  }

  .site-footer small {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .header-cta {
    gap: 8px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .artifact-tile {
    min-height: 420px;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}
