:root {
  --ink: #101827;
  --ink-soft: #314157;
  --line: #ccd6e3;
  --paper: #ffffff;
  --navy: #102f57;
  --gold: #b48a3f;
  --accent-bg: #f7f9fc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: #f8fafc;
}

main {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.25;
  color: var(--ink);
}

h2 {
  margin-top: 1.4rem;
}

p,
li,
dd {
  color: var(--ink);
}

a {
  color: var(--navy);
}

a:hover {
  text-decoration-thickness: 2px;
}

nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

body.home {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(180, 138, 63, 0.16), transparent 25%),
    radial-gradient(circle at 86% 12%, rgba(16, 47, 87, 0.14), transparent 28%),
    linear-gradient(180deg, #f6f9fd 0%, #eef3f9 100%);
}

body.home main {
  max-width: 940px;
  border: 1px solid #becbdd;
  border-top: 6px solid var(--navy);
  border-radius: 14px;
  padding: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 20px 45px rgba(16, 24, 39, 0.1);
}

.masthead {
  animation: rise 380ms ease-out;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #133f72, #0d2d52);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.kicker {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4e6381;
  font-weight: 700;
}

.masthead h1 {
  margin: 2px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    serif;
  font-size: clamp(2rem, 4.6vw, 3rem);
  letter-spacing: -0.01em;
  color: #112a4a;
}

.lede {
  margin: 16px 0 0;
  max-width: 67ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: var(--accent-bg);
  animation: rise 420ms ease-out;
}

.panel h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    serif;
  color: #17355b;
  font-size: 1.35rem;
}

.scope-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.scope-list li {
  margin-top: 6px;
  color: var(--ink-soft);
}

.profile-table {
  margin: 12px 0 0;
}

.profile-table .row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #dce4ef;
}

.profile-table .row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.profile-table dt {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #37557e;
  font-weight: 700;
}

.profile-table dd {
  margin: 0;
  color: #1f3554;
}

.policy-nav {
  margin-top: 26px;
  padding-top: 10px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #aebfd5;
  border-radius: 9px;
  background: #ffffff;
  color: #17385f;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 130ms ease, border-color 130ms ease,
    transform 130ms ease;
}

.link-button.primary {
  border-color: #143a67;
  background: #143a67;
  color: #ffffff;
}

.link-button:hover {
  transform: translateY(-1px);
  border-color: #8da5c3;
  background: #f4f8fd;
}

.link-button.primary:hover {
  background: #1a497f;
  border-color: #1a497f;
}

.site-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #d7e1ed;
  color: #445974;
  font-size: 0.93rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .profile-table .row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  main {
    padding: 18px;
  }

  body.home {
    padding: 14px;
  }

  body.home main {
    padding: 22px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .policy-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .link-button {
    width: 100%;
  }
}
