/* BlackSummit Trading Co.
   Product words live in index.html, in the "EDIT PRODUCTS HERE" section.
   This file is colors, type, and layout. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --bg: #101214;
  --card: #1b2024;
  --ink: #14181b;
  --text: #f4f0e6;
  --muted: #b1aaa0;
  --gold: #e0b15a;
  --gold-deep: #b8883a;
  --line: rgba(244, 240, 230, 0.14);
  --display: "Barlow Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --body: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 18, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 4.25rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: block;
  flex: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-main {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}

.brand-sub {
  margin-top: 0.15rem;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav a:hover {
  color: var(--gold);
}

.hero {
  padding: 3.25rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  gap: 2.25rem;
}

.kicker,
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0;
  font-size: clamp(3.15rem, 15vw, 7.4rem);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  line-height: 0.98;
  max-width: 9em;
}

.submark {
  margin: 0.35rem 0 0;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rule {
  display: block;
  width: 3.25rem;
  height: 2px;
  margin: 1.35rem 0;
  background: var(--gold);
}

.tagline {
  margin: 0;
  max-width: 28rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #f0c56e;
}

.hero-mark svg {
  display: block;
  width: min(100%, 26rem);
  height: auto;
}

.section,
.line {
  scroll-margin-top: 9rem;
}

.section {
  padding: 4rem 0;
}

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

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
}

.line {
  margin-top: 2.25rem;
}

h4,
.line h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
}

.line > h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.5vw, 2.15rem);
  letter-spacing: 0.01em;
}

.book h4 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  letter-spacing: 0;
}

.book-list {
  display: grid;
  gap: 1.25rem;
}

.book {
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
}

.book:hover {
  border-color: rgba(224, 177, 90, 0.5);
}

.cover {
  margin: 0 auto;
  width: min(100%, 17.5rem);
  background: #0c0e10;
  border-radius: 0.6rem;
  overflow: hidden;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
}

.age {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

.book .badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
  margin: 0.15rem 0 0;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(224, 177, 90, 0.75);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1.2;
}

.book p,
.soon p,
.prose p {
  margin: 0 0 0.8rem;
}

.todo {
  margin: 0.9rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold);
  color: #e7c98a;
  font-size: 0.95rem;
}

.coming {
  margin: 1rem 0 0;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.15rem 0 1.2rem;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(224, 177, 90, 0.65);
  border-radius: 999px;
  background: rgba(224, 177, 90, 0.08);
  color: var(--text);
  font-weight: 600;
}

.stock-note {
  max-width: 38rem;
  margin: 0;
}

.stock-note a {
  color: var(--gold);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.actions .button {
  margin-top: 0;
}

.button-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(224, 177, 90, 0.75);
}

.button-secondary:hover {
  background: rgba(224, 177, 90, 0.14);
  color: #f0c56e;
}

.steps {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0.25rem;
  padding: 0;
  list-style: none;
}

.steps li {
  margin: 0;
  padding: 1.1rem 1.05rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}

.steps h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.prose {
  max-width: 40rem;
}

.email {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--gold);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.email:hover {
  color: #f0c56e;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 760px) {
  .book {
    grid-template-columns: 15.5rem 1fr;
    gap: 1.75rem;
    align-items: center;
    padding: 1.25rem;
  }

  .cover {
    width: 100%;
    margin-inline: 0;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: center;
    min-height: calc(100vh - 5.5rem);
    gap: 2rem;
  }

  .hero-mark {
    justify-self: end;
  }
}

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

@media (forced-colors: active) {
  .button {
    border: 1px solid ButtonText;
  }
}
