/* Rev A Labs. One stylesheet, no framework, no JS.
   Palette and type borrowed from the Ripcord Designs visual language:
   deep indigo ground, indigo accent, orange pop, light grey bands, Poppins. */

:root {
  --ink:      hsl(246.98, 87.76%, 19.22%);
  --ink-deep: hsl(246.98, 87.76%, 13%);
  --accent:   hsl(244.58, 67.92%, 41.57%);
  /* brand orange, taken from the logo files */
  --orange:   #FF5A1F;
  /* text-safe orange at the same hue: 5.8:1 on white, 5.3:1 on --grey.
     --orange itself is 3.1:1 there, so it is used only on ink and for rules. */
  --orange-text: #BD3200;
  --grey:     hsl(0, 0%, 95.69%);
  --body:     hsl(247, 18%, 32%);
  --line:     hsla(247, 40%, 19%, 0.14);
  --on-dark:  hsla(0, 0%, 100%, 0.78);
  --scale: 1.6vw;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* ONE KNOB: --scale is the whole page's size. Bigger number = bigger page.
     The root is fluid in vw, so type stays the same share of the screen at any
     window width AND at any browser zoom level -- zooming out widens the CSS
     viewport, vw grows with it, and nothing caps out. The 16px floor keeps
     phones where they were; the 56px ceiling only guards absurd widths. */
  font-size: clamp(16px, var(--scale), 56px);
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 0.5rem; z-index: 10;
  background: #fff; color: var(--ink);
  padding: 0.5rem 0.9rem; border-radius: 4px;
}

.wrap {
  max-width: 96rem; margin: 0 auto;
  /* 5vw keeps the gutter a constant share of the screen, so the content
     always spans ~90% instead of shrinking to an island on wide displays */
  padding-inline: clamp(1.25rem, 4vw, 5rem);
}

/* ---- masthead ---- */

.mast {
  position: sticky; top: 0; z-index: 9;
  background: var(--ink);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.12);
}
.mast .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding-block: 0.65rem;
}
.mark { display: flex; text-decoration: none; }
.mark img { width: auto; }
.mark:hover { opacity: 0.85; }
/* the lockup needs height to resolve its traces and "LABS";
   below that, the square icon carries the mark instead. */
.logo-full { display: block; height: 3.125rem; }
.logo-icon { display: none; height: 2.5rem; }
.mast nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.mast nav a { color: var(--on-dark); font-size: 1rem; text-decoration: none; }
.mast nav a:hover { color: #fff; box-shadow: inset 0 -1px 0 var(--orange); }

@media (max-width: 46em) {
  .mast .wrap { padding-block: 0.7rem; }
  .logo-full { display: none; }
  .logo-icon { display: block; }
  .mast nav { width: 100%; gap: 0.3rem 1.1rem; }
  .mast nav a { font-size: 0.8rem; }
}

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

.band { padding-block: clamp(3.25rem, 8vw, 6rem); scroll-margin-top: 5.5rem; }
.band--ink { background: var(--ink); color: #fff; }
.band--grey { background: var(--grey); border-block: 1px solid var(--line); }

/* the orange rule that opens every band */
.band h1::before, .band h2::before {
  content: ""; display: block;
  width: 1.75rem; height: 2px;
  background: var(--orange);
  margin-bottom: 1.15rem;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 7.4vw, 11rem);
  line-height: 1.08; font-weight: 600; letter-spacing: -0.02em;
  max-width: 26ch;
}
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 4.6vw, 7rem);
  line-height: 1.16; font-weight: 600; letter-spacing: -0.015em;
  max-width: 34ch;
}
h3 { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.32; }

p { margin: 0 0 1rem; }
.band--ink p { color: var(--on-dark); }
.band--white p, .band--grey p { color: var(--body); }

.lede {
  font-size: clamp(1.1rem, 2.3vw, 3.6rem);
  line-height: 1.6; max-width: 74ch;
  margin-bottom: 0;
}

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

.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 11vw, 8rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(hsla(0, 0%, 100%, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0, 0%, 100%, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 38%, #000 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .lede { margin-bottom: 2.25rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid; border-radius: 4px;
  font-size: 1.15rem; font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-dark { border-color: hsla(0, 0%, 100%, 0.45); color: #fff; }
.btn-dark:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* ---- two-column band ---- */

.split > :first-child { margin-bottom: 1.25rem; }
.split h2 { margin-bottom: 0; }
@media (min-width: 52em) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 4.5rem; align-items: start;
  }
  .split > :first-child { margin-bottom: 0; }
}

/* ---- cards ---- */

.grid-2 { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
@media (min-width: 44em) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem 1.5rem;
  transition: border-color 0.15s;
}
.card:hover { border-color: hsla(244, 68%, 42%, 0.4); }
.card .num {
  display: block; margin-bottom: 0.55rem;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--orange-text);
}
.card .num::before { content: "> "; font-weight: 700; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 1.15rem; line-height: 1.58; }

/* ---- the three steps ---- */

.steps {
  display: grid; gap: 1.25rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

.step { border-top: 2px solid var(--orange); padding-top: 0.95rem; }
.step .n {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--orange-text);
}
.step h3 { font-size: clamp(1.2rem, 2.6vw, 4rem); letter-spacing: -0.008em; }

.keep {
  margin: 2.5rem 0 0;
  border-left: 3px solid var(--orange);
  padding: 0.4rem 0 0.4rem 1.1rem;
  font-size: 1.4rem; font-weight: 500;
  max-width: 62ch;
}
.band--white .keep, .band--grey .keep { color: var(--ink); }

/* ---- what you get ---- */

.gets { list-style: none; margin: 0; padding: 0; }
.gets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
  color: var(--body);
  font-size: clamp(1.1rem, 1.9vw, 3rem);
  line-height: 1.58;
}
.gets li:last-child { margin-bottom: 0; }
.gets li::before {
  content: ">";
  position: absolute; left: 0; top: 0;
  color: var(--orange-text); font-weight: 700;
}

/* ---- contact ---- */

.mailto {
  display: inline-block; margin-bottom: 1.5rem;
  color: #fff; font-weight: 500;
  font-size: clamp(1.25rem, 3.4vw, 5rem);
  letter-spacing: -0.01em;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
  word-break: break-word;
}
.mailto:hover { color: var(--orange); }

/* ---- footer ---- */

footer {
  background: var(--ink-deep);
  color: hsla(0, 0%, 100%, 0.55);
  font-size: 0.98rem;
}
footer .wrap { padding-block: 1.6rem; }

@media print {
  .mast, .skip, .hero::before { display: none; }
  body, .band--ink, footer { background: #fff; color: #111; }
  .band--ink p, .mailto, footer { color: #111; }
  .band { padding-block: 1rem; }
}
