/* Scott Radley official website: one small stylesheet, no web fonts, no JavaScript. */

:root {
  --bg: #fbfaf8;
  --text: #1c1c1e;
  --muted: #55555b;
  --rule: #e2dfd9;
  --panel: #f1efea;
  --link: #1f4e8c;
  --link-hover: #12345f;
  --status: #7a4b00;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: var(--bg);
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  left: 0.5rem;
  z-index: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-name {
  font-weight: 650;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
}

.site-header nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* Content */

main {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 650;
}

h1 {
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.6rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.4rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

.lead {
  font-size: 1.15rem;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--panel);
  border-left: 3px solid var(--rule);
  padding: 0.75rem 1rem;
}

.facts {
  display: grid;
  grid-template-columns: minmax(8.5rem, max-content) 1fr;
  gap: 0.45rem 1.25rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin: 0;
}

.status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--status);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0.05rem 0.45rem;
}

section + section {
  margin-top: 3rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 0 2.5rem;
}

.site-footer p {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 34rem) {
  h1 {
    font-size: 1.8rem;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts dd {
    margin-bottom: 0.6rem;
  }
}

@media print {
  .skip-link,
  .site-header nav {
    display: none;
  }

  body {
    background: #fff;
  }

  a {
    color: inherit;
  }
}
