:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5f5f5f;
  --rule: #e2e2e2;
  --red: #c8102e;
  --red-hover: #a00d25;
  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) url("images/pattern.svg") repeat;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
p {
  margin: 0;
}

/* The content always sits on a white panel, so the pattern never runs behind text */
.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(32px, 7vh, 72px) 16px 48px;
  background: var(--bg);
}

/* On wider screens the panel is framed by the pattern */
@media (min-width: 721px) {
  .page {
    max-width: calc(40rem + 2 * 48px);
    margin: clamp(24px, 6vh, 64px) auto;
    padding: 40px 48px 32px;
    border: 1px solid var(--rule);
  }
}

.skyline {
  display: block;
  width: 100%;
  height: auto;
}

header {
  margin-top: 28px;
}

h1 {
  color: var(--red);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page > p {
  margin-top: 16px;
}

/* The first paragraph under the name reads as the introduction */
header + p {
  margin-top: 12px;
  font-size: 1.1875rem;
}

a {
  color: var(--red);
  font-weight: 600;
  text-underline-offset: 3px;
}

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

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

.cta {
  margin-top: 24px;
}

.cta p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--red);
  color: #ffffff;
  text-decoration: none;
  line-height: 1.3;
}

.button:hover {
  background: var(--red-hover);
  color: #ffffff;
}

.button:focus-visible {
  outline-offset: 3px;
  border-radius: 6px;
}

footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
