/* Izz Advisory: redesign draft (preview-v2). System fonts only, no remote assets, no JS. */

:root {
  --navy: #0f1722;
  --navy-2: #1d2b3f;
  --cream: #f7f5ef;
  --cream-2: #efebe1;
  --ink: #1b2330;
  --muted: #545e6e;      /* 6.0:1 on cream */
  --rule: #d9d4c7;
  --brass: #b08d57;      /* decorative lines only */
  --brass-ink: #7a5c2e;  /* text on cream, 5.6:1 */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--navy); letter-spacing: -0.01em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Focus: navy ring reads at > 3:1 on cream and around navy buttons. */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--navy); color: var(--cream); padding: 12px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ------------------------------ Header ------------------------------ */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--navy); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 1px solid var(--brass); font-family: var(--serif); font-size: 14px; letter-spacing: .04em;
}
.brand-name { font-weight: 600; font-size: 16px; line-height: 1.2; }
.brand-sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 8px 24px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  font-size: 16px; color: var(--ink); text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); }

/* ------------------------------- Home ------------------------------- */
.hero { padding: 64px 0 56px; }
.hero-grid { display: block; }
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; max-width: 20ch; }
.lede { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 52ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 28px;
  padding: 0 22px; background: var(--navy); color: var(--cream);
  font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 2px;
}
.btn:hover { background: var(--navy-2); }
.btn span[aria-hidden] { color: #d9c29a; }

.teaser { border-left: 2px solid var(--brass); padding: 2px 0 2px 20px; max-width: 34ch; }
.label {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--brass-ink);
}
.teaser-q { margin-top: 8px; font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--navy); }
.teaser p + p { margin-top: 8px; }
.teaser-body { font-size: 16px; color: var(--muted); }

.services { padding: 48px 0 56px; border-top: 1px solid var(--rule); }
.services h2 { font-size: 28px; margin-bottom: 20px; }
.service-list li {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px;
  padding: 20px 0; border-top: 1px solid var(--rule);
}
.service-list li:last-child { border-bottom: 1px solid var(--rule); }
.service-list h3 { font-size: 21px; line-height: 1.3; }
.service-list p { color: var(--muted); max-width: 60ch; }
.services-note { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* ------------------------------ Inner pages ------------------------------ */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(32px, 3.6vw, 46px); max-width: 24ch; margin-top: 10px; }
.page-intro { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 60ch; }

.fiction-note {
  margin-top: 20px; max-width: 64ch; padding: 12px 16px;
  background: var(--cream-2); border-left: 2px solid var(--brass); font-size: 15px; color: var(--ink);
}
.fiction-note strong { color: var(--brass-ink); }

.block {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--rule);
}
.block:last-of-type { padding-bottom: 48px; }
.block h2 { font-size: 22px; line-height: 1.3; }
.block-body { max-width: 760px; }
.block-body > p + p, .block-body > p + .table-wrap, .block-body > .table-wrap + p { margin-top: 14px; }
.small { font-size: 15px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.tbl caption { text-align: left; font-size: 15px; color: var(--muted); padding-bottom: 8px; }
.tbl th, .tbl td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl thead th { font-size: 14px; font-weight: 600; color: var(--muted); border-bottom-color: var(--navy); vertical-align: bottom; }
.tbl tbody th { font-weight: 400; }
.tbl .ref { font-family: var(--mono); font-size: 14px; color: var(--brass-ink); white-space: nowrap; width: 3.2em; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .key td, .tbl .key th { font-weight: 600; color: var(--navy); }
.tbl .calc { font-size: 15px; font-weight: 400; color: var(--muted); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom-color: var(--navy); }

.about { padding-bottom: 56px; }
.about-body { max-width: 62ch; }
.about-body p + p { margin-top: 14px; }
.about-body .lead { font-size: 19px; color: var(--navy); }
.about-body p:not(.lead) { color: var(--muted); }

/* ------------------------------ Footer ------------------------------ */
.site-footer { border-top: 1px solid var(--rule); padding: 12px 0 20px; font-size: 15px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: 4px; }
.footer-nav a:hover { color: var(--navy); }

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 860px) {
  .block { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header-row { min-height: 64px; }
  .brand-sub { display: none; }
  .site-nav { gap: 16px; }
  .hero { padding: 36px 0 40px; }
  .lede { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .services { padding: 36px 0 40px; }
  .services h2 { font-size: 24px; }
  .service-list li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .service-list h3 { font-size: 19px; }
  .page-head { padding: 32px 0 20px; }
  .page-intro { font-size: 17px; }
  .block { padding: 24px 0; }
  .tbl { font-size: 15px; }
  .tbl .calc { font-size: 14px; }
}

@media (max-width: 360px) {
  .brand-mark { display: none; }
}
