/* joelpennell.com. No JavaScript, no external requests.
   Sibling of dhulabs.com (review of 11 Nov 2026): the same two type families with the roles
   swapped, and the same Ink. dhulabs.com sets headings in Lora and text in Ancizar Sans; this
   site sets headings and labels in Ancizar Sans and the story in Lora. The yellow window tab is
   this site's alone. Google Fonts files Ancizar Sans as Sans/Humanist (100) and Lora as
   Serif/Transitional (60): github.com/google/fonts, tags/all/families.csv, read 11 Nov 2026.
   Stage marks match dhulabs.com: filled square live, diamond open source, hollow square in
   development, always beside the words. */

@font-face {
  font-family: "Ancizar Sans";
  src: url("/assets/fonts/ancizar-sans-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --stone: #F1F3F4;
  --raised: #FFFFFF;
  --ink: #1E2A3F;          /* dhulabs.com's Ink */
  --quiet: #474853;
  --rule: #C9CCD1;
  --tab: #F5C400;
  --tab-ink: #1E2A3F;
  --sans: "Ancizar Sans", "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
  --serif: "Lora", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --stone: #0E131C;
    --raised: #141D2B;
    --ink: #EDEEF0;
    --quiet: #AEB2BA;
    --rule: #343F52;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.62;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { background: var(--tab); color: var(--tab-ink); text-decoration-color: var(--tab-ink); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
strong { font-weight: 650; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--tab); color: var(--tab-ink);
  font-family: var(--sans); font-weight: 600; padding: 0.5rem 0.9rem;
}
.skip:focus { top: 0.75rem; }

/* Site header */
.site-head { padding: 1.4rem 0 1.2rem; }
.site-head .wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  align-items: baseline; justify-content: space-between;
}
.wordmark {
  font-family: var(--sans); font-weight: 800;
  font-size: 1.4rem; letter-spacing: -0.01em; text-decoration: none;
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; }
.site-nav a {
  font-family: var(--sans); font-size: 1.02rem; font-weight: 500;
  text-decoration: none; padding: 0.3rem 0; display: inline-block;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--tab); }

/* Hero */
.hero { padding: 1.4rem 0 4.5rem; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 2.5rem 4rem; align-items: start;
}
.hero h1, .page-title {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.25rem, 4.9vw, 3.9rem);
  line-height: 1.03; letter-spacing: -0.018em;
  text-wrap: balance;
}
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: 0.18em; }
.hero .intro { margin-top: 1.6rem; max-width: 36rem; font-size: 1.18rem; line-height: 1.58; }
.actions {
  margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.6rem; align-items: center;
  font-family: var(--sans); font-size: 1.06rem; font-weight: 550;
}
.button {
  display: inline-block; background: var(--tab); color: var(--tab-ink);
  border: 2px solid var(--tab-ink); border-radius: 4px;
  padding: 0.6rem 1.05rem; text-decoration: none; font-weight: 650;
}
.button:hover { background: var(--tab-ink); color: var(--tab); }
@media (prefers-color-scheme: dark) {
  .button { border-color: var(--tab); }
  .button:hover { background: var(--stone); color: var(--tab); }
}

/* The window: a yellow title tab on a framed panel */
.tab {
  display: inline-block; vertical-align: bottom;
  background: var(--tab); color: var(--tab-ink);
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.42rem 0.95rem 0.34rem; border-radius: 5px 5px 0 0;
}
.window { font-family: var(--sans); }
.window .frame { border: 2px solid var(--ink); background: var(--raised); }
.window img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.window .checks { padding: 0.95rem 1rem 1.05rem; border-top: 2px solid var(--ink); font-size: 0.98rem; line-height: 1.4; }
.window .checks p { font-weight: 650; }
.window .checks li { margin-top: 0.5rem; padding-left: 1.25rem; position: relative; }

.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.38em;
  width: 0.62rem; height: 0.62rem;
  background: var(--tab); border: 1.5px solid var(--ink);
}

/* Stage: a small shape plus the words, the same three shapes dhulabs.com uses.
   Filled square: live. Diamond: open source. Hollow square: in development. */
.entry .label.stage { color: var(--ink); }
.stage::before {
  content: ""; display: inline-block; vertical-align: 0.02em; margin-right: 0.5rem;
  width: 0.6rem; height: 0.6rem; background: var(--ink); border: 2px solid var(--ink);
}
.stage.open::before { transform: rotate(45deg) scale(0.82); }
.stage.dev::before { background: transparent; }

/* Sections */
.section { padding: 0 0 4.5rem; }
.sec-head { border-bottom: 2px solid var(--ink); }
.sec-head h2 { font-size: 1.08rem; }
.sec-intro { margin-top: 1.4rem; max-width: 40rem; font-size: 1.18rem; line-height: 1.5; }

/* Entries: label | what it is | how to check it */
.entries { margin-top: 0.6rem; }
.entry {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 15.5rem;
  gap: 0.5rem 2.2rem; padding: 1.5rem 0 1.55rem;
  border-bottom: 1px solid var(--rule);
}
.entry .label {
  font-family: var(--sans); font-size: 0.98rem; font-weight: 550;
  color: var(--quiet); line-height: 1.35; padding-top: 0.24rem;
}
.entry h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 1.42rem; line-height: 1.2; letter-spacing: -0.01em;
}
.entry .body p { margin-top: 0.45rem; max-width: 37rem; }
.check { padding-top: 0.26rem; font-family: var(--sans); font-size: 1rem; line-height: 1.42; }

/* A short timeline: the same entry, tighter, for the home page's career summary */
.entries.brief .entry { padding: 0.95rem 0 1rem; }
.entries.brief h3 { font-size: 1.16rem; }
.entries.brief .body p { margin-top: 0.2rem; }
.more { margin-top: 1.1rem; font-family: var(--sans); font-size: 1.04rem; font-weight: 550; display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; }

/* How I work: a real sequence, so it is numbered */
.steps { margin-top: 0.6rem; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; }
.step {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.5rem 1rem; padding: 1.5rem 0 1.55rem; border-bottom: 1px solid var(--rule);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-family: var(--sans); font-weight: 800;
  font-size: 3rem; line-height: 0.9; color: var(--ink);
}
.step h3 { font-family: var(--sans); font-weight: 700; font-size: 1.42rem; line-height: 1.2; letter-spacing: -0.01em; }
.step p { margin-top: 0.45rem; max-width: 37rem; }
.finding {
  margin: 2rem 0 0; max-width: 44rem;
  border: 2px solid var(--ink); background: var(--raised); padding: 1.15rem 1.3rem 1.25rem;
}
.finding h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 700; }
.finding p { margin-top: 0.5rem; }
.finding .source { font-family: var(--sans); font-size: 0.96rem; color: var(--quiet); }

/* Background prose and contact */
.prose { margin-top: 1.8rem; margin-left: 11.7rem; max-width: 37rem; }
.prose p + p { margin-top: 1rem; }
.sec-head + .prose { margin-top: 1.5rem; }
.entries + .prose { margin-top: 1.5rem; }
.contact .email {
  display: inline-block; margin-top: 1.6rem;
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.6rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.02em;
  text-decoration-thickness: 3px; text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.contact p { margin-top: 1.1rem; max-width: 37rem; }

/* Inner pages */
.page-head { padding: 2.2rem 0 3.2rem; }
.page-title { font-size: clamp(2.15rem, 4.5vw, 3.6rem); max-width: 46rem; }
.page-head .intro { margin-top: 1.4rem; max-width: 38rem; font-size: 1.18rem; line-height: 1.58; }

/* Article */
.article-head { padding: 2.2rem 0 0; }
.article-head .wrap, .article .wrap { max-width: 41rem; }
.article-head .sec-head { margin-bottom: 1.4rem; }
.article-head h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance;
}
.byline, .article .meta {
  font-family: var(--sans); font-size: 0.98rem; color: var(--quiet); line-height: 1.5;
}
.byline { margin-top: 1rem; }
.byline a { color: inherit; }
.byline span[aria-hidden], .article .meta span[aria-hidden] { margin: 0 0.4rem; }
.article { padding: 0 0 4rem; font-size: 1.1rem; line-height: 1.7; }
.article p { margin-top: 1.15rem; }
.article h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.01em; margin-top: 2.8rem;
}
.article ul { margin-top: 1.15rem; padding-left: 1.3rem; list-style: square; }
.article li { margin-top: 0.55rem; }
.article li::marker { color: var(--quiet); }
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8em;
  background: var(--raised); border: 1px solid var(--rule); padding: 0.05em 0.3em; border-radius: 3px;
  overflow-wrap: anywhere;
}
.article .short {
  margin-top: 2rem; padding: 1.1rem 1.3rem 1.2rem;
  border: 2px solid var(--ink); background: var(--raised);
}
.article .short p { margin-top: 0; }
.article .meta { margin-top: 1.3rem; font-family: var(--serif); font-size: 1rem; }
.back { margin-top: 3rem; font-family: var(--sans); font-size: 1.04rem; font-weight: 550; }

/* Footer */
.site-foot { border-top: 2px solid var(--ink); padding: 1.3rem 0 3rem; font-family: var(--sans); font-size: 0.98rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.site-foot p { color: var(--quiet); }

@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 15rem; gap: 2rem 2.5rem; }
  .entry { grid-template-columns: 8rem minmax(0, 1fr); }
  .entry .check { grid-column: 2; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .prose { margin-left: 10.2rem; }
}
@media (max-width: 42rem) {
  html { font-size: 16px; }
  .wrap { padding: 0 1.15rem; }
  .hero { padding: 1.2rem 0 3.5rem; }
  .hero h1 { text-wrap: wrap; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .window { max-width: 22rem; }
  .window img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .step { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .entry .label { padding-top: 0; }
  .entry .check { grid-column: 1; margin-top: 0.35rem; }
  .step::before { font-size: 2.3rem; }
  .prose { margin-left: 0; }
  .section { padding-bottom: 3.5rem; }
}
@media print {
  .site-nav, .skip { display: none; }
  body { background: #fff; color: #000; }
}
