/* ORSTYDE · accounting site. Editorial, ledger-like: paper, ink, thin rules, no cards, no gradients, no icons.
   Same rules as perpetua-group.com: big condensed titles, a serif italic counterpoint, mono labels, real figures. */

:root {
  --paper: #FFFFFF;
  --paper-2: #F4F4F6;
  --ink: #1B1B1F;
  --ink-2: #4A4A52;
  --ash: #76767E;
  --line: #E1E1E5;
  --gold: #1E4BD2;
  --gold-ink: #1A3FB0;
  --wrap: 1240px;
  --gut: 24px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .2em 0; }
strong, b { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }

.mono { font-family: var(--mono); font-size: 13px; }
.num, .eyebrow, .kicker, .kicker-inline, .pill, .from, h4, th, .ftr-h { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---------- titles */
h1, h2, h3 { margin: 0 0 .5em; }
h1 { font-weight: 800; font-stretch: 78%; font-size: clamp(46px, 7.4vw, 112px); line-height: .95; letter-spacing: -.03em; max-width: 12ch; }
h2 { font-weight: 750; font-stretch: 82%; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -.02em; }
h3 { font-weight: 700; font-stretch: 85%; font-size: 26px; line-height: 1.08; letter-spacing: -.01em; }
.hero-sm h1 { font-size: clamp(40px, 5.6vw, 80px); max-width: 18ch; }

/* ---------- header */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--ink); }
.hdr-in { display: flex; align-items: center; gap: 30px; height: 64px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.wordmark { height: 20px; width: auto; color: var(--ink); display: block; }
.wordmark-dot { fill: var(--gold); }
.nav { flex: 1; }
.nav ul { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .nav-contact { display: none; }
.hdr-cta { display: flex; align-items: center; gap: 12px; }
.lang { font: 600 12px/1 var(--sans); color: var(--ink); text-decoration: none; padding: 7px 9px; border: 1px solid var(--ink); }
.lang:hover { background: var(--ink); color: var(--paper); }
.menu { display: none; background: none; border: 1px solid var(--ink); width: 42px; height: 36px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-bar { display: block; width: 18px; height: 2px; background: var(--ink); }

/* ---------- buttons: ink blocks, no radius */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: #fff; text-decoration: none;
  font: 600 15px/1 var(--sans); padding: 14px 20px; border: 1px solid var(--gold); transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-primary, .btn-light { background: var(--gold); color: #fff; }
.btn-ghost, .btn-outline-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover, .btn-outline-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }


/* ---------- hero (paper, not dark) */
.hero { padding: 48px 0 0; border-bottom: 1px solid var(--ink); }
.hero-in { padding-bottom: 64px; }
.hero-meta { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.hero h1 { margin-top: 30px; }
.hero-low { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-top: 36px; }
.eyebrow { color: var(--ash); display: block; margin-bottom: 18px; }
.lead { font-size: 21px; line-height: 1.42; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ash); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.facts div { padding: 14px 14px 0 0; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts b { display: block; font-weight: 850; font-stretch: 68%; font-size: 46px; line-height: 1; }
.facts span { color: var(--ink-2); font-size: 14px; }
.hero-sm .hero-in > div { max-width: 980px; }

/* ---------- the trial balance (accounting motif) */
.tb { margin-top: 56px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0 22px; }
.tb-head { display: flex; justify-content: space-between; color: var(--ash); margin-bottom: 10px; font-size: 14px; }
.tb table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.tb th { text-align: left; color: var(--ash); font: 500 12px/1.4 var(--mono); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); background: none; }
.tb td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.tb td.n, .tb th.n { text-align: right; }
.tb tr.tot td { border-bottom: 0; font-weight: 700; padding-top: 12px; }
.tb tr.tot td.n span { border-bottom: 4px double var(--ink); padding-bottom: 2px; }
.tb .ok { color: var(--gold-ink); }
.tb td:last-child, .tb th:last-child { padding-left: 36px; }
.tb td:first-child, .tb th:first-child { width: 90px; }

/* ---------- sections */
.section { padding: 104px 0; border-bottom: 1px solid var(--ink); }
.section-sm { padding: 64px 0; }
.section-tint { background: var(--paper-2); }
.section-h { margin-bottom: 44px; max-width: 900px; }
.section-h p { color: var(--ink-2); font-size: 19px; max-width: 40em; margin-top: 18px; }
.kicker, .kicker-inline { display: block; color: var(--ash); margin-bottom: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-2); }

/* grids become ruled columns, never cards */
.grid { display: grid; gap: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g2, .grid.g3, .grid.g4 { border-top: 1px solid var(--ink); }
.grid.g2 > *, .grid.g3 > *, .grid.g4 > * { padding: 26px 26px 26px 0; }
.grid.g2 > * + *, .grid.g3 > * + *, .grid.g4 > * + * { padding-left: 26px; }
.g3 > :nth-child(3n+1), .g2 > :nth-child(2n+1) { padding-left: 0 !important; border-left: 0 !important; }
.g3 > :nth-child(n+4), .g2 > :nth-child(n+3) { border-top: 1px solid var(--line); }
.grid:not(.g2):not(.g3):not(.g4) > * { padding: 22px 0; border-bottom: 1px solid var(--line); }
.grid:not(.g2):not(.g3):not(.g4) { border-top: 1px solid var(--ink); }
.card { background: none; border: 0; border-radius: 0; box-shadow: none; }
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-link { display: flex; flex-direction: column; text-decoration: none; }
.card-link:hover h3 { color: var(--gold-ink); }
.card-link .more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.icon { display: none; }
.num { display: block; color: var(--ash); margin-bottom: 14px; }

.checks, .dashes { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.checks li, .dashes li { padding: 11px 0 11px 30px; margin: 0; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 2px; top: 11px; font-family: var(--mono); color: var(--gold-ink); }
.dashes li::before { content: "—"; position: absolute; left: 0; top: 11px; color: var(--ash); }

/* steps: ruled columns with mono counters */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.step { padding: 24px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s) "."; display: block; font-weight: 700; color: var(--ash); margin-bottom: 10px; }
.step h3 { font-weight: 750; font-stretch: 85%; font-size: 22px; line-height: 1.1; }
.step p { color: var(--ink-2); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split-wide { grid-template-columns: 4fr 8fr; }
.sticky { position: sticky; top: 96px; }

/* services: editorial rows */
.svc { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--ink); }
.svc-h h2 { font-size: clamp(30px, 3.4vw, 44px); }
.svc-h .price { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--gold-ink); }
.svc-b { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.svc-b div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.svc-b strong { display: block; font-size: 17px; }
.svc-b span { color: var(--ink-2); font-size: 15px; }

/* tables */
.tbl-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ash); background: none; border-bottom: 1px solid var(--ink); }
td.amt { font-weight: 800; font-stretch: 75%; font-size: 24px; white-space: nowrap; }

/* rates: spec sheets */
.rate { display: flex; flex-direction: column; }
.rate .from { color: var(--ash); margin-top: 10px; }
.rate .fig { font-weight: 850; font-stretch: 65%; font-size: 76px; line-height: .9; letter-spacing: -.02em; margin: 4px 0 6px; }
.rate .fig small { font: 500 14px/1 var(--sans); color: var(--ash); letter-spacing: 0; }
.rate ul { margin-top: 14px; }
.pill { color: var(--ash); margin-bottom: 10px; }
.rate-feat { background: var(--ink); color: var(--paper); padding-left: 26px !important; padding-right: 26px !important; }
.rate-feat .muted, .rate-feat .from, .rate-feat .fig small, .rate-feat .small { color: #B9B9C2; }
.rate-feat .checks { border-color: #45454D; }
.rate-feat .checks li { border-color: #34343B; }
.rate-feat .pill { color: var(--gold); }

.note { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0; color: var(--ink-2); }
.note p:last-child { margin: 0; }
.limits { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.limits > div { padding: 24px 24px 0 0; }
.limits > div + div { padding-left: 24px; border-left: 1px solid var(--line); }

/* closing block: light, a rule above, no dark band */
.band { border-top: 3px solid var(--ink); padding: 32px 0 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.band p { color: var(--ink-2); font-size: 18px; }
.band-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* faq */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 19px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* prose and contact */
.prose { max-width: 780px; }
.prose h2 { font-size: 30px; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.contact-box .big { font-weight: 850; font-stretch: 70%; font-size: clamp(34px, 5vw, 60px); line-height: 1; text-decoration: none; }
.kv { display: grid; grid-template-columns: 180px 1fr; margin: 0; border-top: 1px solid var(--ink); }
.kv dt, .kv dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { font-size: 15px; color: var(--ash); }
.template { font: 14px/1.7 var(--mono); background: var(--paper-2); border-left: 3px solid var(--ink); padding: 18px 20px; white-space: pre-wrap; color: var(--ink-2); }

/* handover note (home) */
.ledger { border-top: 1px solid var(--ink); }
.ledger-h { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--ink); font-size: 14px; }
.ledger-h strong { font-weight: 650; }
.ledger-h span { color: var(--ash); }
.note-line { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.note-line b { font-weight: 650; color: var(--ink); margin-right: 8px; }
.ledger-f { display: flex; justify-content: space-between; padding: 12px 0; font: 500 13px/1 var(--mono); color: var(--ash); }
.ledger-wrap { padding: 0; background: none; }

/* ---------- footer */
.ftr { background: var(--ink); color: #B9B9C2; padding: 72px 0 34px; font-size: 15px; }
.ftr a { color: var(--paper); text-decoration: none; }
.ftr a:hover { color: var(--gold); }
.ftr .logo, .ftr .wordmark { color: var(--paper); }
.ftr .wordmark { height: 24px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ftr-brand p { margin-top: 18px; max-width: 30em; }
.ftr-h { color: var(--gold); margin: 0 0 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin: 8px 0; }
.ftr-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid #34343B; font-size: 13px; display: grid; gap: 6px; }
.ftr-base p { margin: 0; }
.ftr-base strong { color: var(--paper); }

.mt0 { margin-top: 0; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 24px; } .mt4 { margin-top: 32px; } .mt5 { margin-top: 48px; }
.small { font-size: 14px; }

/* ---------- responsive */
@media (max-width: 1020px) {
  .hero-low, .split, .split-wide { grid-template-columns: 1fr; gap: 36px; }
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .g3 > *, .steps > * { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
  .sticky { position: static; }
  .svc { grid-template-columns: 1fr; gap: 16px; }
  .band { grid-template-columns: 1fr; padding: 40px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu { display: flex; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--ink); display: none; padding: 6px var(--gut) 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .hdr-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .g2, .g3, .g4, .steps, .svc-b, .limits, .facts { grid-template-columns: 1fr; }
  .grid > *, .steps > *, .limits > div, .facts div { padding-left: 0 !important; border-left: 0 !important; }
  .facts div + div { border-top: 1px solid var(--line); padding-top: 12px; }
  .band { padding: 30px 20px; }
  .ftr-grid { grid-template-columns: 1fr; }
  .hdr-cta .btn { display: none; }
  .nav .nav-contact { display: block; }
  .nav .nav-contact a { font-weight: 700; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .wordmark { height: 17px; }
  .tb { overflow-x: auto; }
  .tb table { font-size: 12px; }
  .tb td:last-child, .tb th:last-child { display: none; }
  .hero-meta span:last-child { display: none; }
  .rate .fig { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* home: one fact instead of an even stats row; rows instead of grids */
.fact-one { border-top: 3px solid var(--ink); padding-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.fact-one b { font-weight: 800; font-stretch: 70%; font-size: 92px; line-height: .8; letter-spacing: -.03em; }
.fact-one p { margin: 0; color: var(--ink-2); font-size: 16px; }
.rows { border-top: 1px solid var(--ink); }
.row-link { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row-link h3 { margin-bottom: 6px; font-size: 24px; }
.row-link p { margin: 0; color: var(--ink-2); max-width: 40em; }
.row-link:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.row-feature { padding: 26px 0; }
.row-feature h3 { font-size: 32px; }
.deflist { margin: 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 240px 1fr; }
.deflist dt, .deflist dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 650; padding-right: 20px; }
.deflist dd { color: var(--ink-2); }
.plain-steps { margin: 0; padding-left: 1.4em; border-top: 1px solid var(--ink); }
.plain-steps li { padding: 15px 0 15px 6px; border-bottom: 1px solid var(--line); color: var(--ink-2); margin: 0; }
.plain-steps li::marker { font-weight: 700; color: var(--ink); }
.plain-steps b { color: var(--ink); }
.closing { border-bottom: 0; }
.closing-line { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; max-width: 30em; color: var(--ink); }
.closing-mail { display: inline-block; font-weight: 800; font-stretch: 75%; font-size: clamp(34px, 5.4vw, 72px); letter-spacing: -.02em; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; margin: 8px 0 20px; word-break: break-all; }
@media (max-width: 1020px) { .band { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .deflist { grid-template-columns: 1fr; }
  .deflist dt { border-bottom: 0; padding-bottom: 2px; }
  .fact-one b { font-size: 70px; }
  .band { padding: 24px 0 0; }
}

.ftr .wordmark-dot { fill: #5B82FF; }
.ftr-h { color: #8FA8FF; }
