:root {
  --brand-blue: #0647b5;
  --accent-red: #c83b36;
  --ink: #182230;
  --muted: #5d6877;
  --paper: #f6f7f9;
  --white: #ffffff;
  --line: #dfe3e8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-rows: 8px auto 1fr auto;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.top-rule {
  background: var(--brand-blue);
}

.site-header {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 52px 0 24px;
}

.site-header a {
  display: inline-block;
}

.brand-logo {
  display: block;
  width: 272px;
  height: auto;
}

.announcement {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 72px 0 96px;
  align-self: center;
  border-top: 1px solid var(--line);
}

.organization {
  margin: 0 0 24px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.message {
  margin: 24px 0 36px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border-bottom: 2px solid var(--accent-red);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.primary-link:hover,
.primary-link:focus-visible {
  color: var(--brand-blue);
}

.primary-link:focus-visible,
.site-header a:focus-visible {
  outline: 3px solid var(--accent-red);
  outline-offset: 5px;
}

.site-footer {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 36px;
  }

  .brand-logo {
    width: min(272px, 100%);
  }

  .announcement {
    padding: 56px 0 64px;
  }

  h1 {
    font-size: 46px;
  }

  .message {
    font-size: 18px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-link {
    transition: color 160ms ease;
  }
}
