/* The one stylesheet for the office site. Design A, "Ledger": editorial, paper and ink, one teal accent.
   System fonts only (Charter on Mac and iOS, then Sitka, Cambria, Georgia). No imports, no web fonts, no images,
   no outside requests, no motion. Every text size is 16px or more. */

:root {
  color-scheme: light;
  --paper: #F7F4EE;      /* page background */
  --paper-2: #EFE9DD;    /* quiet bands, hover */
  --sheet: #FFFDF9;      /* cards and the sample sheet */
  --ink: #1C2430;        /* body text, 14:1 on paper */
  --ink-2: #333B47;      /* secondary text */
  --ink-3: #4A525E;      /* small print, 6.5:1 or more on every surface */
  --teal: #0E5E5B;       /* links and the one accent */
  --teal-dark: #0A4744;  /* link hover, kicker */
  --teal-tint: #E0EDE9;
  --red: #A1251B;        /* the SAMPLE stamp */
  --gold: #E9C46A;       /* focus ring on the dark footer */
  --on-dark: #FFFFFF;    /* text on teal buttons */
  --foot-text: #ECE7DD;  /* footer text on ink */
  --rule: #D5CCBB;       /* thin rules and card edges */
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 74rem;
  --gut: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}

svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-dark);
  text-decoration-thickness: 2px;
}

/* Focus: always visible for keyboard users */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus:not(:focus-visible) {
  outline: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

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

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Skip link: hidden until focused */
.skip {
  position: absolute;
  left: var(--gut);
  top: -20rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 4px;
  font-weight: 600;
}

.skip:hover {
  color: var(--on-dark);
}

.skip:focus {
  top: 0.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  z-index: 20;
}

.head-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 3px;
  background: var(--teal);
  color: var(--on-dark);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
}

.nav-d {
  margin-left: auto;
}

.nav-d ul,
.nav-m ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.nav-d a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 3px;
}

.nav-d a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav-d a[aria-current="page"],
.nav-m a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--teal);
  color: var(--teal-dark);
  font-weight: 600;
}

.nav-m {
  display: none;
  margin-left: auto;
  position: relative;
}

.nav-m summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--ink-3);
  border-radius: 4px;
  font-weight: 600;
}

.nav-m summary::-webkit-details-marker {
  display: none;
}

.nav-m[open] summary {
  background: var(--paper-2);
}

.nav-m nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.5rem;
  min-width: 13rem;
  box-shadow: 0 12px 30px -16px rgba(28, 36, 48, 0.45);
}

.nav-m ul {
  flex-direction: column;
}

.nav-m a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--teal);
  color: var(--on-dark);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--on-dark);
}

.btn-sm {
  min-height: 44px;
  padding: 0 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

/* Labels */
.kicker {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.section-label {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.section-label .n {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--teal);
}

/* Home hero */
.hero {
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 4.5rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.hero h1 {
  font-weight: 400;
  font-size: clamp(1.875rem, 1.15rem + 2.3vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin-top: 1.1rem;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 1.5rem;
  max-width: 38rem;
}

/* The sample sheet in the hero: a made-up packet page, drawn in HTML */
.stack {
  position: relative;
  padding: 0 1.25rem 1.25rem 0;
}

.stack .sheet-b,
.stack .sheet-c {
  position: absolute;
  inset: 0 1.25rem 1.25rem 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.stack .sheet-b {
  transform: translate(1.25rem, 1.25rem);
}

.stack .sheet-c {
  transform: translate(0.625rem, 0.625rem);
}

.sheet {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.75rem 1.75rem 1.4rem;
  box-shadow: 0 30px 60px -38px rgba(28, 36, 48, 0.55);
}

.lh {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
}

.lh-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.stamp {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 0.35rem 0.5rem 0.3rem;
  border-radius: 2px;
}

.lh-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1rem;
  margin-top: 0.75rem;
  font-size: 1rem;
}

.lh-meta dt {
  color: var(--ink-3);
}

.lh-meta dd {
  margin: 0;
  font-weight: 600;
}

.lh-body {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 0.9rem;
}

.crit {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.9rem;
  font-size: 1rem;
  line-height: 1.4;
}

.crit caption {
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 0.4rem;
}

.crit th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink);
  padding: 0.4rem 0.5rem 0.4rem 0;
}

.crit td {
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0.5rem 0.5rem 0;
  vertical-align: top;
}

.crit td:last-child,
.crit th:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}

.shown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--teal-dark);
  font-weight: 700;
  white-space: nowrap;
}

.sig {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}

.sig-wrap {
  flex: 1;
}

.sig-line {
  border-bottom: 1px solid var(--ink);
  height: 1.6rem;
}

.sig-label,
.page-no {
  font-size: 1rem;
  color: var(--ink-3);
  margin-top: 0.35rem;
}

.page-no {
  white-space: nowrap;
}

.fig-cap {
  font-size: 1rem;
  color: var(--ink-2);
  margin-top: 1.1rem;
  padding-left: 0.1rem;
}

/* Sections */
.block {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.block-last {
  border-bottom: 0;
}

.block-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2.5rem 4rem;
}

.block h2 {
  font-weight: 400;
  font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 0.75rem;
}

.h2-sub {
  color: var(--ink-2);
  margin-top: 1rem;
  max-width: 24rem;
}

.note {
  color: var(--ink-2);
  margin-top: 1.75rem;
  max-width: 42rem;
}

.kinds {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

.kinds li {
  border-top: 1px solid var(--ink);
  padding: 1.1rem 0 1.5rem;
}

.kinds .kind-name,
.steps h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

.kinds p {
  color: var(--ink-2);
  margin-top: 0.35rem;
}

.kinds .kind-name {
  color: var(--ink);
  margin-top: 0;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 2.75rem;
}

.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}

.step-n {
  display: block;
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.steps h3 {
  margin-top: 1.1rem;
}

.steps p {
  color: var(--ink-2);
  margin-top: 0.6rem;
}

.never {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

.never li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
}

.never .i,
.ticks .i {
  color: var(--teal);
  margin-top: 0.2rem;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.25rem;
}

.leaf {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 2rem;
}

.leaf h3 {
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
}

.leaf-lede {
  color: var(--ink-2);
  margin-top: 0.5rem;
}

.leaf .text-link {
  margin-top: 0.75rem;
}

.ticks {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.ticks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
}

.ticks li:first-child {
  border-top: 0;
}

.ticks li.gap .i {
  color: var(--ink-3);
}

.offer {
  border: 3px double var(--ink);
  background: var(--sheet);
  padding: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: end;
}

.offer h2 {
  margin-top: 0.5rem;
}

.offer-line {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.5;
  margin-top: 1.1rem;
  max-width: 44rem;
}

.offer .actions {
  margin-top: 0;
}

/* Inner pages: a page head, then numbered rows (heading left, words right) */
.page-head {
  border-bottom: 1px solid var(--rule);
  padding: 4rem 0 3.5rem;
}

.page-head h1 {
  font-weight: 400;
  font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.625rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin-top: 1rem;
  max-width: 44rem;
}

.ledger {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ledger > li,
.ledger > section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1rem 4rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}

.ledger > :first-child {
  border-top: 0;
}

.ledger h2 {
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
  margin-top: 0.5rem;
}

.prose {
  max-width: 42rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose .ticks {
  padding-left: 0;
}

.small {
  font-size: 1rem;
  color: var(--ink-3);
}

.panel {
  background: var(--sheet);
  border: 3px double var(--ink);
  padding: 2rem;
  margin: 1rem 0 0;
}

.panel h2 {
  margin-top: 0.5rem;
}

blockquote {
  border-left: 3px solid var(--teal);
  background: var(--paper-2);
  padding: 1rem 1.1rem;
  font-family: var(--serif);
}

/* Samples */
.samples {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.samples > li {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 2px solid var(--ink);
}

.samples a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

.samples .meta {
  display: block;
  color: var(--ink-3);
  font-size: 1rem;
}

.samples p {
  color: var(--ink-2);
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--foot-text);
  padding: 2.75rem 0;
  font-size: 1rem;
}

.site-footer p + p {
  margin-top: 0.35rem;
}

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

.site-footer :focus-visible {
  outline-color: var(--gold);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--on-dark);
  margin-bottom: 0.6rem;
}

.foot-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.foot-links a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .stack {
    max-width: 34rem;
  }

  .block-grid,
  .ledger > li,
  .ledger > section {
    grid-template-columns: 1fr;
  }

  .block-grid {
    gap: 1.5rem;
  }

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

@media (max-width: 820px) {
  .nav-d,
  .head-cta {
    display: none;
  }

  .nav-m {
    display: block;
  }
}

@media (max-width: 640px) {
  .brand-name {
    white-space: nowrap;
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 1.7rem;
    height: 1.7rem;
  }

  .head-row {
    gap: 0.75rem;
  }

  .hero-grid {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }

  .lede {
    font-size: 1.125rem;
  }

  .block {
    padding: 3.25rem 0;
  }

  .page-head {
    padding: 2.5rem 0 2.25rem;
  }

  .ledger > li,
  .ledger > section {
    padding: 1.75rem 0;
  }

  .kinds,
  .never,
  .duo,
  .steps,
  .samples {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 2rem;
    margin-top: 2rem;
  }

  .step-n {
    font-size: 3.75rem;
  }

  .leaf,
  .panel {
    padding: 1.5rem;
  }

  .offer {
    padding: 1.75rem 1.4rem;
  }

  .offer-line {
    font-size: 1.1875rem;
  }

  .sheet {
    padding: 1.25rem 1.1rem 1.1rem;
  }

  .stack {
    padding: 0 0.75rem 0.75rem 0;
  }

  .stack .sheet-b,
  .stack .sheet-c {
    inset: 0 0.75rem 0.75rem 0;
  }

  .stack .sheet-b {
    transform: translate(0.75rem, 0.75rem);
  }

  .stack .sheet-c {
    transform: translate(0.375rem, 0.375rem);
  }

  .lh-meta {
    grid-template-columns: 1fr;
  }

  .actions .btn {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .stamp,
  .leaf,
  .sheet {
    border: 1px solid CanvasText;
  }
}

/* Print: plain ink on white */
@media print {
  .skip,
  .nav-d,
  .nav-m,
  .head-cta,
  .actions {
    display: none;
  }

  body,
  .site-footer {
    background: #ffffff;
    color: #000000;
  }
}
