:root {
  color-scheme: light;
  --paper: #f2f6ff;
  --ink: #173252;
  --blue: #244caa;
  --muted: #53657c;
  --line: #c5d1e5;
  --white: #ffffff;
  font-family: 'Avenir Next', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
}
a {
  color: var(--blue);
  text-underline-offset: 0.25em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
.masthead {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
  font-size: 1rem;
}
.homepage {
  display: flex;
  flex-direction: column;
}
.introduction {
  flex: 1;
  width: min(100%, 78rem);
  padding: clamp(2rem, 7vh, 6rem) clamp(1.5rem, 9vw, 10rem);
}
.introduction h1 {
  margin: 0;
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  font-weight: 400;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.period {
  color: var(--blue);
}
.introduction p {
  color: var(--muted);
  margin-top: 2.5rem;
  font-size: 1.15rem;
}
.home-footer {
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
  background: var(--blue);
}
.home-footer a {
  color: var(--white);
}
.connection {
  max-width: 46rem;
  margin: 2rem auto 5rem;
  padding: 0 1.5rem;
}
.connection h1 {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1rem;
}
.intro,
.scope {
  color: var(--muted);
  line-height: 1.6;
}
.result {
  background: var(--white);
  border-left: 0.35rem solid var(--blue);
  padding: 1.75rem;
  margin: 2rem 0;
}
.result h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.result p {
  line-height: 1.5;
  min-height: 3rem;
  margin: 0 0 1.5rem;
}
button {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border: 0;
  padding: 0.85rem 1.25rem;
  border-radius: 0.35rem;
  min-height: 48px;
}
button:hover {
  background: #183a89;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.connection-details {
  margin: 0;
}
.connection-details > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.scope {
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
@media (max-width: 420px) {
  .masthead {
    padding-top: 1.5rem;
  }
  .connection {
    margin-top: 1.5rem;
  }
  .connection-details > div {
    grid-template-columns: 7rem 1fr;
  }
  .result {
    padding: 1.25rem;
  }
}
