:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #000080;
  --text: #000000;
  --muted: #505050;
  --rule: #808080;
  --field: #f8f8f8;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  line-height: 1.35;
}

a {
  color: var(--ink);
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:visited {
  color: var(--text);
}

.brand strong,
.brand span span {
  display: block;
}

.brand strong {
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
}

.brand span span {
  margin-top: 2px;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
}

.address {
  margin: 0;
  font-size: 1rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 20px 0;
}

.intro {
  max-width: 760px;
  margin: 0 auto 14px;
  text-align: center;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

h2 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.link-table {
  display: table;
  width: 90%;
  margin: 0 auto;
  border-collapse: collapse;
}

.link-row {
  display: table-row;
}

.link-cell {
  display: table-cell;
  width: 50%;
  height: 54px;
  padding: 8px 18px;
  vertical-align: top;
}

.link-cell ul,
.section ul {
  margin-bottom: 0;
  padding-left: 22px;
}

small {
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  max-width: 780px;
  margin: 0 auto 18px;
}

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

input,
button {
  min-height: 34px;
  border: 1px solid var(--rule);
  border-radius: 0;
  font: inherit;
}

input {
  width: 100%;
  padding: 5px 7px;
  background: var(--field);
}

button {
  flex: 0 0 auto;
  padding: 5px 14px;
  background: #eeeeee;
  color: var(--text);
  cursor: pointer;
}

footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.92rem;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 960px);
    padding-top: 14px;
  }

  .brand {
    flex-direction: column;
    gap: 8px;
  }

  .link-table,
  .link-row,
  .link-cell {
    display: block;
    width: 100%;
  }

  .link-table {
    margin: 0;
  }

  .link-cell {
    min-height: 0;
    height: auto;
    padding: 7px 0;
  }

  button {
    width: 100%;
  }
}
