/* Visonix brochure. System fonts only; no third-party origins. */
:root {
    --ink: #1c2430;
    --ink-soft: #3f4856;
    --paper: #f6f3ec;
    --paper-2: #ece7dc;
    --rule: #d4cec1;
    --accent: #3f5d5c;
    --accent-hover: #2e4847;
    --bronze: #8b6a45;
    --focus: #1c2430;
    --max: 40rem;
    --wide: 62rem;
}

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

html {
    font-size: 112.5%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

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

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

a:focus-visible,
.button:focus-visible,
.skip:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.4rem 0.75rem;
    z-index: 10;
}

.skip:focus {
    top: 0.75rem;
    color: var(--paper);
}

.wrap {
    width: min(var(--wide), calc(100% - 2.5rem));
    margin-inline: auto;
}

.header-inner,
.footer-inner {
    width: min(var(--wide), calc(100% - 2.5rem));
}

.site-header {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.15rem 0;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    text-decoration: none;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

.wordmark .mark {
    display: block;
    width: 2rem;
    height: 2rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
}

.nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.hero {
    padding: 3.5rem 0 2.5rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--bronze);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 3.4vw, 2.55rem);
    max-width: 18ch;
}

.hero h1 {
    max-width: 16ch;
}

h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.35rem;
}

h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.lead {
    max-width: var(--max);
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 1.75rem;
}

.button {
    display: inline-block;
    background: var(--accent);
    color: #f6f3ec;
    text-decoration: none;
    padding: 0.55rem 1.1rem;
    border-radius: 2px;
}

.button:hover {
    background: var(--accent-hover);
    color: #f6f3ec;
}

.button-quiet {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--rule);
}

.button-quiet:hover {
    background: var(--paper-2);
    color: var(--ink);
}

.band {
    padding: 0 0 3.25rem;
}

.band-quiet {
    border-top: 1px solid var(--rule);
    padding-top: 2.5rem;
}

.band-quiet p {
    max-width: var(--max);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.card {
    background: var(--paper-2);
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: 2px;
}

.card p {
    margin: 0;
    color: var(--ink-soft);
}

.card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.prose {
    padding: 3rem 0 4rem;
    max-width: var(--max);
}

.prose .lead {
    margin-bottom: 1.75rem;
}

.prose p,
.prose li {
    color: var(--ink-soft);
}

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

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

.prose .button {
    margin-top: 0.5rem;
}

.notice {
    margin-top: 2.5rem;
    padding: 1.25rem 1.2rem;
    background: var(--paper-2);
    border-left: 3px solid var(--bronze);
}

.notice h2 {
    margin-top: 0;
}

.site-footer {
    border-top: 1px solid var(--rule);
    padding: 2.25rem 0 2.75rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.footer-name {
    margin: 0 0 0.35rem;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
    font-size: 1.15rem;
    color: var(--ink);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
    margin: 1.1rem 0;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.footer-copy {
    margin: 0;
    color: #6a7380;
}

@media (max-width: 40rem) {
    html {
        font-size: 100%;
    }

    .hero {
        padding-top: 2.25rem;
    }
}

/* Desk (login / admin). Same system fonts; no third-party origins. */
.desk-body {
    min-height: 100vh;
}

.desk-header {
    border-bottom: 1px solid var(--rule);
}

.desk-shell {
    max-width: 28rem;
    padding: 3rem 0 4rem;
}

.desk-lead {
    color: var(--ink-soft);
}

.desk-form {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.desk-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.desk-form input,
.desk-form textarea {
    font: inherit;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--rule);
    border-radius: 0.25rem;
    background: #fff;
    color: var(--ink);
    width: 100%;
    max-width: 40rem;
}

.desk-form input[type="checkbox"] {
    width: auto;
    padding: 0;
}

.desk-form fieldset {
    border: 1px solid var(--rule);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    max-width: 40rem;
}

.desk-form fieldset label {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.desk-form textarea {
    resize: vertical;
}

.desk-form input:focus,
.desk-form textarea:focus {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
}

.desk-stack {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.desk-alt {
    margin-top: 0.5rem;
}

.desk-alt summary {
    cursor: pointer;
    color: var(--accent);
}

.desk-alt-line {
    margin-top: 1rem;
}

.desk-error {
    margin: 1rem 0;
    padding: 0.75rem 0.9rem;
    background: #f3e6e2;
    border-left: 3px solid #8b4a3a;
    color: var(--ink);
}

.desk-hint {
    margin-top: 1.25rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.desk-panel {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

.desk-panel h2 {
    margin-top: 0;
}

.desk-wide {
    max-width: var(--wide);
}

.desk-header-wide {
    max-width: var(--wide);
}

.desk-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.desk-table th,
.desk-table td {
    text-align: left;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

.desk-table th {
    color: var(--ink-soft);
    font-weight: 600;
}

.desk-fieldset {
    border: 1px solid var(--rule);
    border-radius: 0.25rem;
    padding: 0.85rem 1rem;
    margin: 0;
}

.desk-fieldset legend {
    padding: 0 0.35rem;
    color: var(--ink-soft);
}

.desk-radio {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0.45rem 0;
    color: var(--ink);
}

.desk-token {
    display: block;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--rule);
    word-break: break-all;
    font-size: 0.85rem;
}

.essay h1 {
    max-width: none;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: 1.75rem;
}

.prose blockquote {
    margin: 1.25rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--rule);
}

.prose pre {
    overflow: auto;
    padding: 0.85rem 1rem;
    background: var(--paper-2);
}

.prose code {
    font-size: 0.92em;
}

.prose ol {
    padding-left: 1.2rem;
}

.byline {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.preview-banner {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.prose ul.blog-list {
    list-style: none;
    margin: 2.25rem 0 0;
    padding: 0;
}

.blog-list li {
    margin: 0;
    padding: 1.35rem 0 1.5rem;
    border-top: 1px solid var(--rule);
}

.blog-list h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.25;
    max-width: none;
}

.blog-list h2 a {
    color: var(--ink);
    text-decoration: none;
}

.blog-list h2 a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.blog-list p {
    margin: 0.4rem 0 0;
}

.blog-kicker {
    margin: 0 0 0.55rem;
    color: var(--bronze);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prose .content-body p,
.prose .content-body li {
    color: var(--ink);
}

.content-body {
    margin-top: 1.75rem;
    line-height: 1.7;
}

.essay-back {
    margin-top: 2.75rem;
}

.assessment-q {
    margin: 0;
    padding: 1.6rem 0 0.2rem;
    border-top: 1px solid var(--rule);
}

.assessment-q h2 {
    margin: 0 0 0.45rem;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.85rem 0 1.4rem;
}

.choices button {
    font: inherit;
    cursor: pointer;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 0.45rem 0.9rem;
}

.choices button[aria-pressed="true"] {
    background: var(--accent);
    color: #f6f3ec;
    border-color: var(--accent);
}

button.button {
    font: inherit;
    border: 0;
    cursor: pointer;
}

.assessment-go {
    margin: 0.4rem 0 0;
}

#assessment-result {
    margin-top: 1.5rem;
}

#assessment-result h2 {
    margin-top: 0;
}
