/* Area Variable from Adobe Fonts (kit vzc8nbq). Inktrap and Normal are the
   same family; the INKT axis switches between them (100 = Inktrap, 0 = Normal). */
:root {
  --font: "area-variable", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-inktrap: var(--font);
  --font-normal: var(--font);
  --inktrap-on: "INKT" 100;
  --inktrap-off: "INKT" 0;

  --bg: #f2f2f2;
  --text: #000;

  --size: 14px;
  --size-small: 11.5px;
  --line: 26px; /* one empty line in the design */
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-inktrap);
  font-variation-settings: var(--inktrap-on);
  font-weight: 550;
  font-size: var(--size);
  line-height: var(--line);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  letter-spacing: 0.01em;
}

main,
footer {
  max-width: 550px;
  padding: 0 12px;
  margin: auto;
}

main {
  padding-top: 52px;
}

footer {
  padding-top: calc(var(--line) * 3);
  padding-bottom: 24px;
}

p,
h2,
h3,
ul,
dl,
dd {
  margin: 0;
}

h2,
h3 {
  font-size: var(--size);
}

/* Spacing mirrors the design's empty 30px lines */
.gap {
  margin-top: var(--line);
}

.section {
  margin-top: calc(var(--line) * 2);
}

h2 {
  font-weight: 700;
}

#cases {
  margin-bottom: var(--line);
}

.case + .case {
  margin-top: var(--line);
}

h3 {
  font-family: var(--font-normal);
  font-variation-settings: var(--inktrap-off);
  font-weight: 600;
  text-decoration: underline;
  text-underline-position: from-font;
}

.meta {
  padding-left: 0;
  font-size: var(--size-small);
  list-style: none;
}

/* Horizontal line in place of a bullet */
.meta li {
  position: relative;
  padding-left: 30px;
  font-weight: 550;
}

.meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.themes {
  margin-top: var(--line);
}

.theme + .theme {
  margin-top: var(--line);
}

dt {
  font-weight: 600;
}

.count {
  font-size: var(--size-small);
}

.links {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

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

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

footer .links {
  font-size: var(--size-small);
}

/* Case study pages */
.sub {
  font-family: var(--font-inktrap);
  font-variation-settings: var(--inktrap-on);
  text-decoration: none;
}

.list {
  padding-left: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 30px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--line) / 2);
  width: 20px;
  height: 1px;
  background: currentColor;
}
