/* hughcandoit hub. tokens and type from BRAND/DESIGN.md: plain on purpose, the headline is the one place with character */
:root {
  --grey: #2a2a2a;
  --red: #E10600;
  --ink: #000;
  --paper: #fff;
  --wash: linear-gradient(#ffffff 0%, #eef0f2 60%, #e2e5e8 100%);
  --rule: #d9dcdf;
  --muted: #6b6f73;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--grey);
  font: 400 18px/1.45 var(--sans);
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 80px; }

/* headline: heavy lowercase, tight, right aligned, ink bleed (filter #ink in each page, DESIGN.md values halved since web titles run about half the 150 px carousel size) */
h1 {
  margin: 48px 0 28px;
  font-weight: 700;
  font-size: clamp(64px, 17vw, 132px);
  line-height: .84;
  letter-spacing: -0.062em;
  word-spacing: .02em;
  text-align: right;
  text-transform: lowercase;
  text-wrap: balance;
  filter: url(#ink);
}
h1 k { color: var(--red); }

h2 {
  margin: 56px 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
}

p { margin: 0 0 16px; }
.lede { font-size: 20px; }

.back { display: inline-block; margin-top: 24px; font-size: 15px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--grey); }

/* a picture in its own ground, no frame */
.pic { margin: 0 -16px 8px; }
.cap { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.cap b { color: var(--grey); font-weight: 400; }
.cap .r { color: var(--red); }

/* skills list */
.skills { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.skills a {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.skills img { width: 112px; height: 84px; object-fit: cover; background: #eef0f2; }
.skills b { display: block; font-size: 20px; letter-spacing: -.01em; }
.skills span { display: block; font-size: 15px; color: var(--muted); }
.skills a:hover b { color: var(--red); }

/* plain list of what changes */
.points { margin: 0 0 8px; padding: 0; list-style: none; }
.points li { padding: 10px 0; border-top: 1px solid var(--rule); }
.points li:last-child { border-bottom: 1px solid var(--rule); }

/* email gate */
.gate { margin: 32px 0 0; padding: 24px 0 0; border-top: 2px solid var(--ink); }
.gate p { margin-bottom: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input[type=email] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 14px;
  font: 400 18px var(--sans);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  -webkit-appearance: none;
}
.row input[type=email]:focus { outline: none; border-color: var(--red); }
.row button {
  flex: 0 0 auto;
  padding: 14px 20px;
  font: 700 18px var(--sans);
  letter-spacing: -.01em;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
}
.row button:hover { background: var(--red); border-color: var(--red); }
.row button[disabled] { opacity: .5; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 14px; color: var(--muted); margin-top: 10px; }
.msg { font-size: 15px; color: var(--red); min-height: 1.4em; margin-top: 8px; }

/* what the gate opens */
[data-unlock][hidden] { display: none; }
.unlocked { margin-top: 32px; }
pre {
  margin: 0 0 16px;
  padding: 16px;
  overflow-x: auto;
  background: #f4f5f6;
  font: 400 14px/1.5 ui-monospace, Menlo, monospace;
  color: var(--ink);
}
.big-link {
  display: inline-block;
  padding: 14px 20px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
}
.big-link:hover { background: var(--red); }

/* socials */
.socials { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.socials a {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-size: 20px;
}
.socials a span { color: var(--muted); font-size: 16px; }
.socials a:hover { color: var(--red); }
