/* IWillBe legal site — palette: #22223B navy, #4A4E69 slate, #C9ADA7 dusty-rose, #F2E9E4 cream */

:root {
  --navy: #22223B;
  --slate: #4A4E69;
  --rose: #C9ADA7;
  --cream: #F2E9E4;
  --cream-deep: #E8DCD4;
  --rule: rgba(34, 34, 59, 0.12);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
}

.brand em {
  font-style: italic;
  color: var(--slate);
  font-weight: 400;
}

nav.site {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

nav.site a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--rose);
}

h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 600;
}

h1 + .lede {
  font-size: 19px;
  color: var(--slate);
  font-style: italic;
  margin: 0 0 36px;
}

h2 {
  font-size: 22px;
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-weight: 600;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

p { margin: 0 0 16px; }

ul {
  padding-left: 22px;
  margin: 0 0 18px;
}

ul li { margin-bottom: 8px; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

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

.meta {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 32px;
  font-style: italic;
}

.callout {
  background: var(--cream-deep);
  border-left: 3px solid var(--rose);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 2px;
  font-size: 16px;
}

.callout strong { color: var(--navy); }

.hero {
  text-align: center;
  padding: 24px 0 12px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero .lede {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 36px;
  font-size: 20px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.card {
  background: var(--cream-deep);
  border-radius: 8px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: var(--navy);
  display: block;
  transition: transform 0.15s, background 0.15s;
}

.card:hover {
  background: #ddcec5;
  transform: translateY(-1px);
}

.card .label {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}

.card .title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card .blurb {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}

footer.site {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a { color: var(--slate); }

dl.faq dt {
  font-weight: 600;
  margin-top: 22px;
  color: var(--navy);
}

dl.faq dd {
  margin: 6px 0 0;
  color: var(--slate);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--cream-deep);
  padding: 1px 6px;
  border-radius: 3px;
}

@media (max-width: 560px) {
  .wrap { padding: 36px 22px 64px; }
  .hero h1 { font-size: 40px; }
  h1 { font-size: 30px; }
  .cards { grid-template-columns: 1fr; }
  header.site { flex-direction: column; align-items: flex-start; gap: 14px; }
}
