/* Blocksmith website. Spacing sits on a 4px grid; one accent (brass). */

@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --deep: #0b0d24;
  --bg: #0f1230;
  --card: #161a40;
  --raised: #1e2350;
  --line: rgba(238, 240, 250, 0.09);
  --text: #eef0fa;
  --text-2: #b3b8d6;
  --muted: #8c92b8;
  --accent: #ffc857;
  --accent-ink: #1b1503;
  --display: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/26px var(--body);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 18, 48, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 20px/1 var(--display);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 15px;
  line-height: 20px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.nav a.btn-primary,
.nav a.btn-primary:hover {
  color: var(--accent-ink);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu ul {
  position: absolute;
  right: 0;
  top: 48px;
  width: 220px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.menu a:hover {
  background: var(--raised);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 500 16px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease),
    transform 150ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #ffd27a;
}

.btn-quiet {
  background: var(--raised);
  border-color: var(--line);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-quiet:hover {
  background: #262b5e;
}

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 15px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 56px;
  padding: 0 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.soon small {
  font-size: 12px;
  line-height: 12px;
  color: var(--muted);
}

.soon span {
  font: 500 16px/16px var(--body);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-frame {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  /* Never taller than 54vw, so the artwork always fits the width. */
  height: min(780px, 54vw, calc(100vh - 64px));
}

.hero-art img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 96%, transparent),
    linear-gradient(to bottom, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 96%, transparent),
    linear-gradient(to bottom, #000 80%, transparent);
  mask-composite: intersect;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-text {
  max-width: 460px;
  padding-bottom: 32px;
}

.hero h1 {
  font: 600 64px/1.04 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero p {
  margin-top: 20px;
  font-size: 19px;
  line-height: 30px;
  color: var(--text-2);
}

.hero .stores {
  margin-top: 32px;
}

/* Sections */

.section {
  padding-block: 96px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  font: 600 40px/1.1 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 600px;
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-2);
}

/* How it plays */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.step-shot {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--deep);
  border-bottom: 1px solid var(--line);
}

.step-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.step-body {
  padding: 24px;
}

/* The step number, drawn as that many tiles. */
.tiles {
  display: flex;
  gap: 4px;
  height: 12px;
}

.tiles i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
}

.step h3 {
  margin-top: 16px;
  font: 600 22px/28px var(--display);
}

.step p {
  margin-top: 8px;
  color: var(--text-2);
}

/* Panorama strip */

.strip {
  margin-top: 48px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--raised) transparent;
}

.strip img {
  height: 580px;
  width: auto;
  max-width: none;
  margin-inline: max(24px, calc((100vw - var(--page)) / 2 + 24px));
  border-radius: 16px;
}

.strip-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* Feature list */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}

.features li {
  display: grid;
  align-content: start;
  grid-template-columns: 18px 1fr;
  column-gap: 12px;
}

.features svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--muted);
}

.features h3 {
  font: 500 16px/26px var(--body);
}

.features p {
  grid-column: 2;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}

/* Fair pieces + money */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.panel {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.panel h3 {
  font: 600 24px/30px var(--display);
}

.panel p {
  margin-top: 12px;
  color: var(--text-2);
}

.panel ul {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.panel li {
  display: grid;
  grid-template-columns: 12px 1fr;
  column-gap: 12px;
  color: var(--text-2);
}

.panel li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--muted);
}

.panel strong {
  font-weight: 500;
  color: var(--text);
}

/* FAQ */

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font: 500 17px/26px var(--body);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 180ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq p {
  max-width: 680px;
  padding-bottom: 24px;
  color: var(--text-2);
}

.faq p + p {
  margin-top: -8px;
}

/* Get it */

.get {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.get h2 {
  max-width: 520px;
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--deep);
  padding-block: 40px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-right: auto;
}

.site-foot a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.site-foot a:hover {
  color: var(--text);
}

/* Documents: privacy, terms, support */

.doc {
  padding-block: 72px 96px;
}

.doc-head {
  max-width: 720px;
}

.doc h1 {
  font: 600 48px/1.08 var(--display);
  letter-spacing: -0.02em;
}

.doc-meta {
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.doc-body {
  max-width: 720px;
  margin-top: 40px;
}

.doc-body h2 {
  margin-top: 48px;
  font: 600 26px/32px var(--display);
}

.doc-body h3 {
  margin-top: 28px;
  font: 500 17px/26px var(--body);
}

.doc-body p,
.doc-body ul,
.doc-body ol {
  margin-top: 12px;
  color: var(--text-2);
}

.doc-body ul,
.doc-body ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.doc-body ul {
  list-style: disc;
}

.doc-body ol {
  list-style: decimal;
}

.doc-body li::marker {
  color: var(--muted);
}

.doc-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms var(--ease);
}

.doc-body a:hover {
  text-decoration-color: var(--accent);
}

.doc-body strong {
  font-weight: 500;
  color: var(--text);
}

.summary {
  margin-top: 32px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.summary h2 {
  margin-top: 0;
  font-size: 20px;
  line-height: 26px;
}

.table-scroll {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}

th {
  font-weight: 500;
  color: var(--text);
  background: var(--card);
}

tr:last-child td {
  border-bottom: 0;
}

.contact-card {
  margin-top: 24px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.contact-card p:first-child {
  margin-top: 0;
}

.contact-card .mail {
  font: 600 24px/30px var(--display);
  color: var(--text);
  text-decoration-color: var(--accent);
}

/* Narrower screens */

@media (max-width: 1099px) {
  .hero-frame {
    height: auto;
    min-height: 0;
  }

  .hero .wrap {
    display: block;
    padding-top: 64px;
  }

  .hero-text {
    max-width: 600px;
    padding-bottom: 0;
  }

  .hero-art img {
    position: static;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 16px auto 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, #000 78%, transparent);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .site-head .wrap {
    gap: 12px;
  }

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

  .step {
    max-width: 480px;
  }

  .section {
    padding-block: 64px;
  }

  .section h2 {
    font-size: 32px;
  }

  .strip img {
    height: 440px;
  }
}

@media (max-width: 560px) {
  .hero .wrap {
    padding-top: 48px;
  }

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

  .hero p {
    font-size: 17px;
    line-height: 28px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .panel {
    padding: 24px;
  }

  .doc {
    padding-block: 48px 64px;
  }

  .doc h1 {
    font-size: 36px;
  }

  .soon {
    flex: 1 1 140px;
  }
}

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

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