/* Weaponsmith — placeholder site
   Palette & type from the Weaponsmith website branding kit. */

@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/michroma-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --obsidian: #000000;
  --graphite: #1e1e21;
  --silver: #a7a9ac;
  --ceramic: #f2f4f6;
  --forge: #ff7a00;
  --forge-hover: #ff8f2b;
  --line: rgb(242 244 246 / 0.08);

  --font-display: "Michroma", "Eurostile Extended", "Microgramma", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  /* Horizontal padding that lines full-bleed bars up with the centred content column */
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));

  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(55% 65% at 76% 46%, rgb(167 169 172 / 0.09), transparent 70%),
    radial-gradient(120% 90% at 100% 100%, var(--graphite) 0%, transparent 55%),
    radial-gradient(80% 60% at 0% 0%, #0b0b0d 0%, transparent 60%),
    var(--obsidian);
  color: var(--ceramic);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--forge);
  color: var(--obsidian);
}

/* Topological background lines */
.topo {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 55vh;
  pointer-events: none;
  z-index: 0;
}

.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--edge);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--forge);
  transform: skewX(-28deg);
}

.brand img {
  height: 16px;
  width: auto;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 112px) var(--gutter);
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 0.9rem + 2.8vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.rule {
  width: 56px;
  height: 2px;
  margin: 32px 0;
  border: 0;
  background: var(--forge);
}

.rule:last-child {
  margin-bottom: 0;
}

.lede {
  margin: 0 0 44px;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 17px 36px 17px 26px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--obsidian);
}

/* Angled forge-orange plate; kept on a pseudo-element so focus outlines aren't clipped */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--forge);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background-color 160ms ease;
}

.btn:hover::before {
  background: var(--forge-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--ceramic);
  outline-offset: 4px;
}

.btn .arrow {
  transition: transform 160ms ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.mark {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
  margin: 0;
  animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mark::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(242 244 246 / 0.10), transparent 75%);
}

.mark img {
  width: 100%;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px var(--edge);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.site-footer p {
  margin: 0;
}

/* ---------- Animation ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .mark {
    order: -1;
    width: min(64vw, 300px);
  }
}

@media (max-width: 480px) {
  .eyebrow,
  .lede {
    letter-spacing: 0.16em;
  }

  .btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- 404 ---------- */

.hero--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero--center .mark {
  order: 0;
  width: min(48vw, 200px);
}

.hero--center .rule {
  margin-inline: auto;
}

.hero--center .lede {
  margin-inline: auto;
}
