/* Estabrook Works company site. System fonts only; no scripts, no third-party requests. */
:root {
  --ink: #17212b;
  --ink-soft: #33435a;
  --paper: #f7f9fb;
  --sand: #eaeff3;
  --surface: #ffffff;
  --line: #d3dce4;
  --brand: #43586b;
  --brand-dark: #2f4151;
  --mint: #a9bfd1;
  --pilot-bg: #fff1cf;
  --pilot-ink: #5c3f00;
  --public-bg: #dde5ec;
  --public-ink: #2f4151;
  --focus: #b45309;
  --on-brand: #ffffff;
  --dark-bg: #17212b;
  --pilot-line: #e8c777;
  color-scheme: light dark;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ecf1; --ink-soft: #b4c2cf; --paper: #10171e; --sand: #17212b; --surface: #19232d; --line: #2b3947;
    --brand: #a9bfd1; --brand-dark: #c9d8e4; --on-brand: #10171e; --dark-bg: #0a0f14;
    --pilot-bg: #3a2d0e; --pilot-ink: #f5d98a; --pilot-line: #6b5420; --public-bg: #243240; --public-ink: #c9d8e4; --focus: #f59e0b;
  }
  .brand-mark { outline: 1px solid var(--line); }
  .figure svg { opacity: .94; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .75rem 1rem;
  background: var(--brand); color: var(--on-brand); border-radius: 8px; transition: top .15s;
}
.skip:focus { top: 1rem; }
.wrap { width: min(1120px, 100% - 2.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); z-index: 10; }
@media (min-width: 720px) { .site-header { position: sticky; top: 0; } }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.5rem; padding: .5rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand-name { font: 600 1.15rem/1 var(--serif); letter-spacing: .01em; }
.brand-name span { color: var(--brand); }
.brand-mark { flex: none; border-radius: 9px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .15rem;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand-dark); }
.header-cta { display: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-brand); }
.button-small { min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }
.button-ghost { background: transparent; color: var(--brand-dark); }
.button-ghost:hover { background: var(--brand); color: var(--on-brand); }
.on-dark .button { background: #fff; color: #17212b; border-color: #fff; }
.on-dark .button:hover { background: #dde5ec; border-color: #dde5ec; color: #17212b; }
.on-dark .button-ghost { background: transparent; color: #fff; border-color: #ffffffaa; }
.on-dark .button-ghost:hover { background: #ffffff1f; color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-soft); max-width: 40em; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 .75rem; }
.on-dark .eyebrow { color: var(--mint); }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 44rem; margin-bottom: 1.75rem; }
.hero { padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.on-dark { background: var(--dark-bg); color: #eef2f6; }
.on-dark .lead, .on-dark .muted { color: #cfd6df; }
.on-dark a:not(.button) { color: #c9d8e4; }

/* Cards and grids */
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .actions { margin-top: auto; padding-top: 1.25rem; }
.card-feature { padding: 1.6rem; }
.badge {
  display: inline-block; align-self: flex-start; padding: .3rem .75rem; border-radius: 999px;
  font: 600 .78rem/1.2 var(--sans); letter-spacing: .04em; margin-bottom: 1rem;
}
.badge-pilot { background: var(--pilot-bg); color: var(--pilot-ink); }
.badge-public { background: var(--public-bg); color: var(--public-ink); }
.glance { background: #ffffff0f; border: 1px solid #ffffff2e; border-radius: var(--radius); padding: 1.25rem; }
.glance h2 { font-size: 1.1rem; font-family: var(--sans); letter-spacing: .02em; margin-bottom: 1rem; }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li { padding: .7rem 0; border-top: 1px solid #ffffff26; }
.glance li:first-child { border-top: 0; padding-top: 0; }
.glance strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.glance span { color: #cfd6df; font-size: .95rem; }

/* Lists */
.checks { list-style: none; margin: 0 0 1em; padding: 0; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: .5rem;
  border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg) translateY(-50%);
}
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 600 1rem var(--sans);
}

/* Notices */
.notice {
  border-left: 4px solid var(--focus); background: var(--surface); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .98rem;
}
.draft-banner { background: var(--pilot-bg); color: var(--pilot-ink); border: 1px solid var(--pilot-line); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 2rem; font-size: .95rem; }

/* Illustrations */
.figure { margin: 0; }
.figure svg { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: block; }
.figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }
.on-dark .figure figcaption { color: #cfd6df; }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.mail-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.mail-box pre { margin: 0 0 1rem; padding: 1rem; background: var(--sand); border-radius: 8px; white-space: pre-wrap; font: .92rem/1.6 var(--sans); }

/* Footer */
.site-footer { background: var(--dark-bg); color: #cfd6df; padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
.site-footer a { color: #eef2f6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.brand-footer, .brand-footer .brand-name { color: #fff; }
.brand-footer .brand-name span { color: var(--mint); }
.brand-footer .brand-mark { outline: 1px solid #ffffff2e; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
.footer-about { grid-column: 1 / -1; }
.footer-heading { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9fb0c3; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-legal { border-top: 1px solid #ffffff26; margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; }
.footer-legal p { margin: 0; max-width: 62rem; }

@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
  .site-nav { margin-left: auto; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-grid-2 { grid-template-columns: 1.15fr .85fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-about { grid-column: auto; }
}
@media (max-width: 719px) {
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { gap: .1rem 1rem; }
  .actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .skip { transition: none; } }
@media print {
  .site-header, .skip, .actions, .site-footer nav { display: none; }
  body { background: #fff; font-size: 11pt; }
  a { color: #000; }
}
.grid + p { margin-top: 1.5rem; }

.actions + p { margin-top: 1rem; }
@media (max-width: 719px) { html { scroll-padding-top: 1rem; } }
