/* About Jerry: the one stylesheet. The look follows jerryboonstra.com (decision 2026-11-14-site-design):
   four colours, Manrope and DM Mono served from fonts/, square corners, borders not shadows, one column. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/manrope-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/manrope-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --paper: #F3F1EB;
  --ink: #2E231C;
  --heading: #003049;
  --accent: #BC4749;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --measure: 42rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

main,
footer {
  width: min(calc(100% - 2.5rem), var(--measure));
  margin: 0 auto;
}

main {
  padding: 4.5rem 0 3.5rem;
}

h1,
h2 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 9vw, 4rem);
  letter-spacing: -0.05em;
}

h2 {
  margin: 0 0 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  letter-spacing: -0.04em;
}

header {
  margin-bottom: 3.5rem;
}

.lede {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

section {
  margin-bottom: 3.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.work {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--accent);
}

.work li:first-child {
  padding-top: 0;
}

.work li:last-child {
  border-bottom: 0;
}

.work a {
  font-weight: 700;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  main {
    padding-top: 3rem;
  }

  footer {
    flex-direction: column;
  }
}

/* Print: a clean one-pager, ink on white, each link's address after its text. */
@media print {
  @page {
    margin: 1.2cm;
  }

  html,
  body {
    background: none;
    color: var(--ink);
    font-size: 9pt;
    line-height: 1.4;
  }

  main,
  footer {
    width: auto;
    margin: 0;
  }

  main {
    padding: 0;
  }

  h1,
  h2,
  a {
    color: var(--ink);
  }

  h1 {
    margin-bottom: 0.5rem;
    font-size: 20pt;
  }

  h2 {
    margin-bottom: 0.5rem;
    padding-top: 0.6rem;
    border-top-color: var(--ink);
    font-size: 12pt;
    break-after: avoid;
  }

  header,
  section {
    margin-bottom: 0.8rem;
  }

  .lede {
    font-size: 10pt;
  }

  p {
    margin-bottom: 0.5rem;
  }

  .work li {
    padding: 0.2rem 0;
    border-bottom: 0;
    break-inside: avoid;
  }

  a {
    text-decoration: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--mono);
    font-size: 7pt;
    font-weight: 400;
  }

  a[href^="mailto:"]::after {
    content: none;
  }

  footer {
    padding: 0.6rem 0 0;
    border-top-color: var(--ink);
    font-size: 7.5pt;
  }
}
