/* connorforrest.com: tokens and type match stickbystick.com (styles.css there). Type: major-third scale. Space: 8pt grid. */

:root {
  --red: #e00000;
  --red-dark: #b80000;
  --ink: #161616;
  --ink-soft: #4a4a4a;
  --line: #e7e4e0;
  --surface: #f7f5f2;
  --white: #ffffff;

  --font-display: "Crimson Pro", Georgia, serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --step-4: clamp(2.5rem, 1.7rem + 4vw, 4.5rem);

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);

  --wrap: 40rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2 { margin: 0; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.flow > * + * { margin-top: var(--s-3); }

/* Intro */
.intro { padding-top: var(--section); }
.intro::before { content: ""; display: block; width: var(--s-6); height: 6px; margin-bottom: var(--s-4); background: var(--red); border-radius: 3px; }
.intro h1 {
  font: 600 var(--step-4)/1.08 var(--font-display);
  letter-spacing: -0.01em;
}
.lead { font-size: var(--step-1); line-height: 1.5; }
.intro > p:not(.lead) { color: var(--ink-soft); }

.btn {
  display: flex; width: fit-content; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font: 600 var(--step--1)/1 var(--font-body);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--white);
  border-radius: 999px;
  transition: background-color 0.15s;
}
.intro > .btn { margin-top: var(--s-4); }
.btn:hover { background: #000; }

/* Links */
.links { padding-block: var(--s-6) var(--section); }
.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.links ul { list-style: none; margin: var(--s-2) 0 0; padding: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: block; padding-block: var(--s-3); text-decoration: none; }
.link-name { display: block; font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link-note { display: block; margin-top: var(--s-1); color: var(--ink-soft); font-size: var(--step--1); }
.links a:hover .link-name { color: var(--red-dark); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-4); font-size: var(--step--1); color: var(--ink-soft); }
