/* Allowance Connection — allowanceconnection.com */

:root {
  --ink: #15171c;
  --ink-soft: #2b2f38;
  --rust: #a9451f;
  --rust-deep: #86360f;
  --rust-wash: #f6ece6;
  --sand: #efe9e0;
  --paper: #fcfbf9;
  --body: #43474f;
  --muted: #7b7f88;
  --rule: #ded8ce;
  --rule-soft: #ece7df;
  --wrap: 1140px;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

a {
  color: var(--rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rust-deep);
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* ---------- Masthead ---------- */

.site-header {
  background: var(--ink);
  color: #e9e5df;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #fdfcfa;
  text-decoration: none;
}

.brand-mark {
  align-self: center;
  padding: 3px 7px 4px;
  border: 1px solid #5c4437;
  border-radius: 2px;
  background: var(--rust);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand > span:not(.brand-mark) {
  color: #d9b7a5;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 7px 10px;
  border-bottom: 2px solid transparent;
  color: #b9b4ac;
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease;
}

.site-nav a:hover {
  color: #fff;
  border-bottom-color: #5b5f68;
}

.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--rust);
}

/* ---------- Hero ---------- */

.hero {
  padding: 74px 0 66px;
  background:
    linear-gradient(0deg, rgba(169, 69, 31, 0.05), rgba(169, 69, 31, 0.05)),
    var(--sand);
  border-bottom: 1px solid var(--rule);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.eyebrow {
  display: block;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rust);
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(35px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}

.hero .lede {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.notice-strip {
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
  background: #fff;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.notice-strip svg {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  color: var(--rust);
}

.notice-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Content ---------- */

main {
  padding: 66px 0 10px;
}

main > .wrap > p,
main > .wrap > ul,
main > .wrap > ol,
main > .wrap > h2,
main > .wrap > h3 {
  max-width: var(--measure);
}

.section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}

.page-title {
  margin: 0 0 8px;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}

.updated {
  margin: 0 0 36px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  color: var(--ink);
}

h2 {
  margin: 48px 0 14px;
  font-size: 27px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

main > .wrap > h2:first-of-type {
  margin-top: 0;
}

h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

p {
  margin: 0 0 18px;
}

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

li {
  margin-bottom: 10px;
  padding-left: 4px;
}

li::marker {
  color: var(--rust);
  font-weight: 700;
}

.legal-body {
  max-width: var(--measure);
}

strong {
  color: var(--ink);
}

/* ---------- Ledger rows (replaces cards) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  margin: 34px 0 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.card {
  padding: 26px 26px 28px 0;
  border-right: 1px solid var(--rule-soft);
}

.card:last-child {
  border-right: 0;
}

.card + .card {
  padding-left: 26px;
}

.card-icon {
  display: block;
  margin-bottom: 14px;
  color: var(--rust);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
}

/* Exclusion list */

.check-list {
  max-width: var(--measure);
  margin: 26px 0 10px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.check-list li {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 16px;
  line-height: 1.6;
}

.check-list li::before {
  content: "\2715";
  position: absolute;
  left: 4px;
  top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rust);
}

/* Numbered process list */

.steps {
  max-width: var(--measure);
  margin: 28px 0 10px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 52px;
  border-bottom: 1px solid var(--rule-soft);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rust);
}

/* Callout */

.callout {
  max-width: 860px;
  margin: 40px 0;
  padding: 28px 30px;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--rust);
  background: var(--rust-wash);
  font-size: 15.5px;
}

.callout svg {
  display: none;
}

.callout h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--rust-deep);
}

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

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 76px;
  padding: 46px 0 54px;
  border-top: 6px solid var(--ink);
  background: #f4f1ec;
  color: #5a5f68;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a {
  padding: 5px 12px 5px 0;
  margin-right: 12px;
  border-right: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:last-child {
  border-right: 0;
  margin-right: 0;
}

.footer-nav a:hover {
  color: var(--rust);
}

.footer-identity {
  margin: 0 0 30px;
  text-align: left;
}

.footer-identity p {
  margin: 0 0 5px;
  font-size: 14px;
}

.footer-identity p:first-child {
  margin-bottom: 8px;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 14px 20px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--rust);
  text-align: left;
  text-decoration: none;
  line-height: 1.35;
}

.cert-badge:hover {
  border-color: var(--rust);
}

.cert-badge-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}

.cert-badge-text {
  font-size: 13.5px;
  color: #5a5f68;
}

.cert-badge-text strong {
  display: block;
  font-size: 15px;
  color: var(--rust-deep);
}

.footer-disclosures {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: #62676f;
  column-gap: 40px;
}

.footer-disclosures h2 {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer-disclosures p {
  margin: 0 0 13px;
  max-width: none;
}

.footer-copyright {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
  .footer-disclosures {
    column-count: 2;
  }

  .footer-disclosures p {
    break-inside: avoid;
  }
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .site-header .wrap {
    padding: 14px 0;
  }

  .site-nav {
    gap: 0 2px;
    font-size: 11.5px;
  }

  .site-nav a {
    padding: 6px 7px;
  }

  .hero {
    padding: 46px 0 42px;
  }

  main {
    padding-top: 46px;
  }

  h2 {
    margin-top: 38px;
    font-size: 23px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule-soft);
  }

  .card + .card {
    padding-left: 0;
  }

  .card:last-child {
    border-bottom: 0;
  }

  .callout,
  .notice-strip {
    padding: 20px;
  }

  .cert-badge {
    gap: 11px;
    padding: 13px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
