:root {
  color-scheme: light dark;
  --background: #fff;
  --foreground: #24231f;
  --muted: #6b6961;
  --accent: #295f75;
  --rule: #d9d6cc;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
}

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

a[href^="https://sites.google.com/view/allaboutcemsay/"] {
  color: inherit;
  text-decoration-color: currentcolor;
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.13em;
}

a[href^="https://sites.google.com/view/allaboutcemsay/"]:hover {
  text-decoration-thickness: 0.045em;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

h2 {
  margin: 2.2rem 0 1rem;
  padding-top: 0;
  border-top: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0 0 1rem;
}

.intro {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 650;
}

strong a {
  color: var(--foreground);
  text-decoration-color: var(--rule);
}

.publication {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem 1.5rem;
  margin-bottom: 1.25rem;
}

.publication p {
  margin: 0;
  color: var(--muted);
}

.publication strong {
  color: var(--foreground);
}

.publication-links {
  min-width: 3.5rem;
  font-size: 0.76rem;
  line-height: 1.7;
  text-align: right;
  text-transform: lowercase;
}

.publication-links a {
  text-decoration-color: var(--rule);
}

h2 ~ p {
  color: var(--muted);
}

h2 ~ p strong,
h2 ~ p strong a {
  color: var(--foreground);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #191a18;
    --foreground: #eceae3;
    --muted: #aaa79d;
    --accent: #8fc5d9;
    --rule: #3a3b37;
  }
}

@media (max-width: 35rem) {
  :root {
    font-size: 15px;
  }

  body {
    padding-top: 2.5rem;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .publication-links {
    text-align: left;
  }

  .publication-links br {
    display: none;
  }

  .publication-links a {
    margin-right: 0.8rem;
  }
}

@media print {
  :root {
    color-scheme: light;
    --background: #fff;
    --foreground: #000;
    --muted: #333;
    --accent: #000;
    --rule: #bbb;
  }

  body {
    padding: 0;
  }
}
