/* Contrast brandbook: black and white, 2px square borders, one accent at a time, no shadow, no gradient. */

@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/sofia-sans-extra-condensed.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --cyan: #00ffe0;
  --purple: #8000ff;
  --frame: min(860px, 100% - 64px);
}

* { box-sizing: border-box; }

html { background: var(--white); }

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "Sofia Sans", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.frame { width: var(--frame); margin: 0 auto; }

/* Header and hero */
.top { padding: 32px 0 0; }
.top svg { display: block; width: 28px; height: 28px; margin-bottom: 28px; }

.hero { padding: 0 0 clamp(80px, 10vw, 130px); }

.hero h1 {
  position: relative;
  margin: 0 0 40px;
  padding-top: 28px;
  font-family: "Sofia Sans Extra Condensed", "Sofia Sans", sans-serif;
  font-size: clamp(64px, 13vw, 144px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--cyan);
}

h1::after, h2::after { content: "."; color: var(--purple); }

.lead { max-width: 34rem; margin: 0 0 48px; font-size: 22px; font-weight: 500; line-height: 1.4; }

/* Buttons: the call to action is purple, hover turns it cyan. */
.button {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  border: 2px solid var(--black);
  background: var(--purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover { background: var(--cyan); color: var(--black); }

/* Sections are separated by a full-width 2px rule. */
section { padding: clamp(80px, 10vw, 130px) 0; border-top: 2px solid var(--black); }

h2 {
  margin: 0 0 40px;
  font-family: "Sofia Sans Extra Condensed", "Sofia Sans", sans-serif;
  font-size: clamp(52px, 8vw, 80px);
  font-weight: 800;
  line-height: 0.88;
  text-transform: uppercase;
}

p { margin: 0 0 16px; max-width: 34rem; }

/* Grids use the gap and background method so every inner line is exactly 2px. */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 2px solid var(--black);
  background: var(--black);
}

.card { padding: 32px 28px; background: var(--white); }
.card h3 {
  margin: 0 0 16px;
  font-family: "Sofia Sans Extra Condensed", "Sofia Sans", sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.card p { margin: 0; }

/* Sample-data mockup */
.mockup { max-width: 560px; margin: 48px 0 0; border: 2px solid var(--black); background: var(--black); }
.mockup .bar {
  padding: 16px 28px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mockup .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
  padding: 16px 28px;
  background: var(--white);
  font-size: 16px;
}
.mockup .chip {
  padding: 0 8px;
  border: 2px solid var(--black);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 20px;
  text-transform: uppercase;
}
.mockup .chip.ok { background: var(--cyan); }
.mockup figcaption {
  margin-top: 2px;
  padding: 8px 28px;
  background: var(--white);
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

a { color: var(--black); }

footer { padding: 32px 0 48px; border-top: 2px solid var(--black); font-size: 14px; }
footer p { margin: 0; }

@media (max-width: 768px) {
  :root { --frame: calc(100% - 32px); }
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card, .mockup .bar, .mockup .row, .mockup figcaption { padding-left: 16px; padding-right: 16px; }
}
