/* Two Ring Studio. One stylesheet, no JavaScript, one font file.
   Look: a work-site yellow poster, heavy Franklin type, label-tape section names.
   One light theme on purpose: the yellow is the brand. Corners are square everywhere. */

@font-face {
  font-family: "Libre Franklin";
  src: url(/fonts/libre-franklin-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #ffd500;
  --ink: #141414;
  --paper: #fafaf7;
  --soft: #4a4a45;
  --pad: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 450;
}

p, h1, h2, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--pad);
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { background: var(--yellow); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 3;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus { top: 0.75rem; }
.skip:hover { background: var(--ink); }

/* The name sits on top of the yellow. */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  padding-top: clamp(1.25rem, 3vw, 2rem);
}
.brand { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  padding-block: clamp(8rem, 13vw, 10rem) clamp(3rem, 7vw, 5.5rem);
}
.hero .wrap { position: relative; z-index: 1; }

/* Two ringing arcs out of the top corner. Decoration only. */
.arcs {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(7.5rem, 44vw - 11.6rem, 28rem);
  height: auto;
  aspect-ratio: 1;
}
.arcs circle { fill: none; stroke: var(--ink); stroke-width: 13; }

h1 {
  max-width: 12em;
  font-size: clamp(2.25rem, 5.6vw + 1rem, 4.75rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.028em;
  word-spacing: 0.06em;
  text-wrap: balance;
}
/* The headline breaks after its comma when there is room, and inside the first half when there is not. */
h1 span { display: inline-block; text-wrap: balance; }

.pitch {
  max-width: 34rem;
  text-wrap: pretty;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.125rem, 1vw + 0.9rem, 1.375rem);
  line-height: 1.45;
  font-weight: 500;
}

.call {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15em 0.7em;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 1rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  line-height: 1.2;
}
.call:hover { background: #000; }
.call:active { transform: translateY(1px); }
.call__label { font-weight: 600; font-size: 1.0625rem; }
.call__num {
  color: var(--yellow);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* A phone held sideways: pull the headline up so the call button still shows without scrolling. */
@media (max-height: 30rem) and (min-width: 34rem) {
  .hero { padding-top: 4rem; }
  .arcs { width: 6rem; }
  .pitch { margin-top: 1rem; }
  .call { margin-top: 1.25rem; }
}

/* Section names are strips of label tape. */
.tape {
  display: inline-block;
  padding: 0.32em 0.6em 0.3em;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.005em;
}
h2 { font-size: 1rem; line-height: 1.2; }

/* The ledger: name on the left, the answer on the right. */
.row { --rowpad: clamp(2.5rem, 5vw, 3.75rem); padding-block: var(--rowpad); }
.row + .row { padding-top: 0; }
/* One heavy rule between ledger rows. It is a grid item, so the gap is taken off its margin. */
.row + .row > .wrap::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--ink);
  margin-bottom: calc(var(--rowpad) - 1.25rem);
}

.row__in {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 52rem) {
  .row__in {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 2rem;
    align-items: start;
  }
  .row + .row > .wrap::before { grid-column: 1 / -1; }
  h2 { padding-top: 0.35rem; }
}

.does li {
  padding-block: 0.7em;
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.does li:first-child { padding-top: 0; }
.does li:last-child { padding-bottom: 0; }
.does li + li { border-top: 1px solid #c9c9c2; }

.say { max-width: 40rem; }
.say p { font-size: clamp(1.125rem, 0.8vw + 1rem, 1.375rem); line-height: 1.45; text-wrap: pretty; }
.say--firm p { font-weight: 600; letter-spacing: -0.008em; }
.say p + p { margin-top: 0.9em; }
.say strong { font-weight: 800; letter-spacing: -0.01em; }
.say .rate { text-wrap: balance; }
.nb { white-space: nowrap; }
/* The email is the way to say yes, so it gets a full-size tap target. */
.mail a { display: inline-block; padding-block: 0.65rem; }
.say p + .mail { margin-top: 0.25em; }

.figure {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.028em;
  word-spacing: 0.06em;
}
.terms {
  margin-top: 0.75rem;
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Hear it: the one dark band, and the number is the biggest thing on the page. */
.hear {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hear__call {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  /* The number never wraps, so on narrow phones the size follows the width (it must fit at 320 px). */
  font-size: clamp(2rem, 10.6vw, 2.75rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.028em;
  word-spacing: 0.06em;
}
@media (min-width: 40rem) {
  .hear__call { font-size: clamp(2.75rem, 7.4vw, 5.75rem); }
}
.hear__num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hear__call a { color: var(--yellow); text-decoration: none; padding-block: 0.1em; }
.hear__call a:hover { background: none; text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.hear a:focus-visible { outline-color: var(--yellow); }
.hear__note {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(1.125rem, 0.8vw + 1rem, 1.375rem);
  line-height: 1.45;
}

/* Footer */
.foot { padding-bottom: clamp(2rem, 5vw, 3rem); }
.foot .wrap::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--ink);
  margin-bottom: 1.25rem;
}
.foot p { font-size: 0.9375rem; color: var(--soft); }

/* 404 */
.lost {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  background: var(--yellow);
  padding-block: 4rem;
}
.lost .wrap { width: 100%; }
.lost h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); }
.lost p { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 600; }
.lost a:hover { background: var(--ink); color: var(--yellow); }
