/* Chance — single stylesheet shared across pages */
/* Brand: Navy #344759 + Cream #F5EEDE. No accent. Restraint is the brand. */

:root {
  --navy: #344759;
  --cream: #F5EEDE;
  --ink: #262F3E;
  --steel: #5B6B7D;
  --mist: #B8C3CE;
  --cream-deep: #EBE3D0;

  --surface: var(--cream);
  --text: var(--ink);
  --text-soft: var(--navy);
  --text-faint: var(--steel);
  --divider: var(--mist);
  --card: var(--cream-deep);

  --radius: 8px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Text",
    system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--mist);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

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

header.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
  width: 100%;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo a {
  text-decoration: none;
  display: inline-block;
  line-height: 0;
}

.logo a:hover {
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  width: 100%;
}

.hero {
  padding: 3.5rem 0 3rem;
}

.hero h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  color: var(--navy);
}

.hero-wordmark {
  margin: 0 0 1.75rem;
  line-height: 0;
}

.hero-wordmark img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.hero p.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--navy);
  max-width: 34rem;
}

section {
  margin-bottom: 2.75rem;
}

section h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--navy);
}

section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--navy);
}

section p {
  margin-bottom: 1rem;
  color: var(--text);
  max-width: 40rem;
}

.quiet {
  color: var(--steel);
  font-size: 0.95rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 0.5rem;
}

.contact-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.5rem;
}

.contact-card dt {
  color: var(--steel);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.contact-card dd {
  color: var(--ink);
}

.legal-body h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.75rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.legal-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body .meta {
  color: var(--steel);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 2rem;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  width: 100%;
  border-top: 1px solid var(--mist);
  color: var(--steel);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

footer.site-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--steel);
  text-decoration: none;
}

footer.site-footer a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--mist);
}

::selection {
  background: var(--navy);
  color: var(--cream);
}

@media (max-width: 640px) {
  .contact-card dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .contact-card dt {
    margin-top: 0.75rem;
  }
  .contact-card dt:first-child {
    margin-top: 0;
  }
  header.site-header {
    padding-top: 1.75rem;
  }
  .hero {
    padding: 2rem 0 2.25rem;
  }
}
