:root {
  --color-primary: #405050;
  --color-text: #2a3333;
  --color-muted: #5a6868;
  --color-bg: #f0f2f2;
  --color-surface: #ffffff;
  --max-width: 40rem;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #2c3838;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-main,
.site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.site-header a {
  text-decoration: none;
  color: inherit;
}

.logo {
  display: block;
  width: 7.5rem;
  height: auto;
  margin: 0 auto 1rem;
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.site-main {
  flex: 1;
  padding: 0 0 3rem;
}

.panel {
  background: var(--color-surface);
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--color-primary);
}

.panel h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
}

.panel h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
}

.panel p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

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

.lead {
  font-size: 1.05rem;
  color: var(--color-muted);
}

.site-footer {
  padding: 1.25rem 0 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}
