/* copywriting.io — one stylesheet, no scripts. The type is the CV's family: IBM Plex Sans for reading,
   IBM Plex Mono for the structure (name, headings, dates, buttons, captions), Playfair Display for the title and the years. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-700.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-400.woff2") format("woff2");
}

:root {
  --ink: #111;
  --text: #1b1b1b;
  --muted: #6f6f6f;
  --rule: #c8c8c8;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Liberation Mono", Menlo, Consolas, monospace;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --aside: 12.5rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  width: min(54rem, 100% - 2.5rem);
  margin-inline: auto;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #b8b8b8;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover, a:focus-visible { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

p { margin: 0 0 1rem; }
b { font-weight: 600; color: var(--ink); }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: #fff;
  padding: 0.5rem 1rem;
}
.skip:focus { left: 0.5rem; z-index: 2; }

/* Two columns from tablet width up: a margin column for the structure, a reading column for the words */

.row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2.5rem; row-gap: 0.25rem; align-items: start; }
.row.base { align-items: baseline; }
.aside { min-width: 0; }
.body { min-width: 0; max-width: 40rem; }

@media (min-width: 52rem) {
  .row { grid-template-columns: var(--aside) minmax(0, 1fr); }
}

/* The top of the page */

.top { padding-top: clamp(2.5rem, 7vw, 5rem); row-gap: 1.75rem; }

.portrait {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  clip-path: circle(46.5% at 50% 50%);
  margin: 0 0 1.75rem;
}

.name {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ink);
}

h1 {
  margin: 0 0 1.5rem;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.lede { font-size: 1.2rem; line-height: 1.5; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 1.75rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover, .button:focus-visible { background: #f0f0f0; }
.button-solid { background: var(--ink); color: #fff; }
.button-solid:hover, .button-solid:focus-visible { background: #333; }

.plain {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Sections, separated by the CV's short grey rules */

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  width: 100%;
  margin: clamp(2.75rem, 6vw, 4rem) 0;
}

h2.span { grid-column: 1 / -1; margin-bottom: 2rem; }
h2 {
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.entry { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid #e6e6e6; }
.entry:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }

.years {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink);
}

h3 {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.meta {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding-left: 1.4rem; margin: 0 0 0.6rem; }
.list li::before { content: "\2022"; position: absolute; left: 0.2rem; }
.list strong { font-weight: 600; color: var(--ink); }

/* What colleagues say, on black */

.band {
  margin: clamp(2.75rem, 6vw, 4rem) 0;
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: #111;
  color: #e6e6e6;
}
.band h2 { color: #fff; }
.band a { color: #fff; text-decoration-color: #6f6f6f; }
.band a:hover, .band a:focus-visible { text-decoration-color: #fff; }
.band b { color: #fff; }
.quote { margin: 2.5rem 0 0; padding-top: 2.5rem; border-top: 1px solid #3b3b3b; }
.quote:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0 0 0.75rem; }
.quote .aside { font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; }
.who { display: block; font-weight: 700; color: #fff; }
.role { color: #9d9d9d; }
.band .note { grid-column: 1 / -1; margin: 3rem 0 0; font-family: var(--mono); font-size: 0.8rem; color: #9d9d9d; }

/* Writing */

.sample { margin: 1.75rem 0 0; }
.sample img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
.sample figcaption { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; color: var(--muted); }

/* Footer */

footer {
  padding: clamp(2.75rem, 6vw, 4rem) 0 4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration-color: #d0d0d0; }

@media print {
  .actions, .skip { display: none; }
  body { font-size: 10.5pt; color: #000; }
  .row { grid-template-columns: 9rem 1fr; }
  .band { background: #fff; color: #000; margin: 0; padding: 0; }
  .band h2, .who, .band b { color: #000; }
  a { color: #000; text-decoration: none; }
}
