
:root {
    --ground: #ede6e4;
    --surface: #dfd7d5;
    --surface-2: #cec5c2;
    --line: #aba2a0;
    --ink-soft: #514c4a;
    --ink: #2b2827;
    --accent: #a9605f;
    --accent-ink: #ffffff;

    --tuvu-dff: "Prata", "Prata Fallback", Georgia, "Times New Roman", serif;
    --tuvu-d7a: "Literata", "Literata Fallback", Charter, Georgia, serif;
    --tuvu-8a6: "JetBrains Mono", "JetBrains Mono Fallback", Consolas, "Courier New", monospace;

    --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --fs-sm: clamp(0.8438rem, 0.81rem + 0.18vw, 0.9375rem);
    --fs-base: clamp(1rem, 0.96rem + 0.22vw, 1.0625rem);
    --fs-md: clamp(1.125rem, 1.06rem + 0.35vw, 1.25rem);
    --fs-lg: clamp(1.3125rem, 1.22rem + 0.52vw, 1.5625rem);
    --fs-xl: clamp(1.625rem, 1.48rem + 0.8vw, 2.0625rem);
    --fs-2xl: clamp(2rem, 1.78rem + 1.2vw, 2.625rem);
    --fs-display: clamp(2.35rem, 1.95rem + 2vw, 3.75rem);

    --lh-tight: 1.15;
    --lh-snug: 1.28;
    --lh-base: 1.62;
    --lh-loose: 1.75;

    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4.5rem;
    --space-3xl: 6rem;

    --max-ch: 65ch;
    --max-shell: 1280px;
    --max-narrow: 840px;

    --radius-none: 0px;
    --radius-subtle: 2px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 140ms;
    --dur-base: 220ms;
    --dur-slow: 400ms;

    --dock-height: 64px;
}

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

html {
    font-size: 16px;
    line-height: var(--lh-base);
    background-color: var(--ground);
    color: var(--ink);
    font-family: var(--tuvu-d7a);
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--ground);
    color: var(--ink);
    font-family: var(--tuvu-d7a);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    padding-bottom: var(--dock-height);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tuvu-dff);
    font-weight: 400;
    line-height: var(--lh-tight);
    color: var(--ink);
    text-wrap: balance;
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--fs-display);
}

h2 {
    font-size: var(--fs-2xl);
    line-height: var(--lh-snug);
}

h3 {
    font-size: var(--fs-xl);
    line-height: var(--lh-snug);
}

h4 {
    font-size: var(--fs-lg);
}

h5 {
    font-size: var(--fs-md);
}

h6 {
    font-size: var(--fs-base);
}

p {
    max-width: var(--max-ch);
    color: var(--ink);
}

p + p {
    margin-top: 1.15em;
}

p.lede {
    font-size: var(--fs-md);
    line-height: 1.5;
    color: var(--ink-soft);
}

small, .meta {
    font-family: var(--tuvu-8a6);
    font-size: var(--fs-xs);
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

strong, b {
    font-weight: 600;
    color: var(--ink);
}

em, i {
    font-style: italic;
}

a {
    color: var(--ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
    color: var(--accent);
}

img, svg, picture {

    display: block;
    max-width: 100%;
    height: auto;
}

:root {
    --control-h: 44px;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
select,
textarea,
button,
.btn {
    border-radius: var(--radius-subtle);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
select {
    min-height: var(--control-h);
    height: var(--control-h);
}

@media (max-width: 48rem) {
    input, select, textarea {
        font-size: max(16px, 1rem) !important;
    }
}

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-variant-numeric: tabular-nums;
}

th, td {
    text-align: left;
    vertical-align: top;
}

hr {
    border: 0;
    height: 1px;
    background-color: var(--line);
    margin: var(--space-xl) 0;
}

::selection {
    background-color: var(--surface-2);
    color: var(--ink);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    background: var(--ink);
    color: var(--ground);
    padding: var(--space-xs) var(--space-md);
    font-family: var(--tuvu-8a6);
    font-size: var(--fs-sm);
    z-index: 10000;
    text-decoration: none;
    border-radius: var(--radius-subtle);
    transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
    top: var(--space-sm);
}

.shell-container {
    width: 100%;
    max-width: var(--max-shell);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 0.8rem + 1vw, 2.5rem);
    padding-right: clamp(1rem, 0.8rem + 1vw, 2.5rem);
}

.shell-narrow {
    width: 100%;
    max-width: var(--max-narrow);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 0.8rem + 1vw, 2rem);
    padding-right: clamp(1rem, 0.8rem + 1vw, 2rem);
}

.ledger-grid {
    position: relative;
    background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 100% 2.25rem;
}

.ledger-rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

.ledger-frame {
    border: 1px solid var(--line);
    position: relative;
}

.ledger-frame::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--line);
}

.num {
    font-family: var(--tuvu-8a6);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Layout primitives & typographical helpers for the design system */
.flow > * + * {
    margin-top: 1.25rem;
}

.flow-loose > * + * {
    margin-top: 2rem;
}

.flow-tight > * + * {

    margin-top: 0.65rem;
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.repel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.stack {
    display: flex;
    flex-direction: column;
}

.text-subtle {
    color: var(--ink-soft);
}

.text-center {

    text-align: center;
}

.text-right {
    text-align: right;
}

.text-balance {
    text-wrap: balance;
}

.section-pad {
    padding-top: clamp(2.5rem, 2rem + 2.5vw, 5rem);
    padding-bottom: clamp(2.5rem, 2rem + 2.5vw, 5rem);
}

.section-pad-dense {
    padding-top: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
    padding-bottom: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
}

/* Ledger signature lines */
.ledger-row {
    border-bottom: 1px solid var(--line);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.ledger-header {
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-family: var(--tuvu-8a6);
    font-size: var(--fs-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.ledger-col-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ledger-col-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.ledger-col-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .ledger-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ledger-col-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print styling */
@media print {
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .site-header, .phone-dock, .chat-launcher, .cookie-banner {
        display: none !important;
    }
}
