@font-face {
    font-family: "Instrument Sans";
    src: url("/assets/InstrumentSans.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 75% 100%;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #111418;
    --petrol: #26464a;
    --petrol-dark: #1b373b;
    --muted: #466066;
    --copper: #a65532;
    --ivory: #f3eee6;
    --paper: #fdfbf7;
    --line: #c5ceca;
    --error: #85291d;
    --error-bg: #fcf0eb;
    --font: "Instrument Sans", Arial, sans-serif;
}

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

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem / 1.55 var(--font);
}

main { flex: 1; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
a { color: var(--petrol); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { color: var(--copper); }

:where(a, button, input, textarea):focus-visible {
    outline: 3px solid var(--copper);
    outline-offset: 4px;
}

.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }

.skip-link {
    position: fixed;
    z-index: 2;
    top: .75rem;
    left: .75rem;
    transform: translateY(-150%);
    padding: .75rem 1rem;
    background: var(--paper);
    color: var(--petrol-dark);
    font-weight: 650;
}

.skip-link:focus { transform: translateY(0); }

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

.site-header__inner {
    min-height: 5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem 2.5rem;
}

.brand {
    flex: 0 1 13.25rem;
    padding-block: .55rem;
    margin-right: auto;
}

.site-nav {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem 1.7rem;
}

.site-nav a, .text-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--petrol);
    font-weight: 600;
    font-size: .94rem;
    text-decoration: none;
}

.site-nav .account-link {
    padding-inline: .8rem;
    border: 1px solid var(--line);
    border-radius: .2rem;
}

.site-nav .account-link:hover { background: var(--ivory); }

.site-nav a[aria-current] {
    color: var(--ink);
    box-shadow: inset 0 -2px var(--copper);
}

.site-nav a:hover, .text-button:hover { text-decoration: underline; text-underline-offset: .22em; }
.signout { flex: none; }

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
}

h1, h2, h3 {
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -.038em;
    overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.2rem, 5.3vw, 4rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.22rem; letter-spacing: -.018em; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.75rem, 6vw, 6rem);
    padding-block: clamp(3rem, 7vw, 6rem);
}

.hero h1 {
    font-size: clamp(2.65rem, 6.5vw, 5.35rem);
    line-height: .99;
    letter-spacing: -.068em;
}

.accent { color: var(--copper); }

.hero-secondary {
    margin-top: .7rem;
    color: var(--petrol);
    font-size: clamp(1.22rem, 2.8vw, 2rem);
    letter-spacing: -.04em;
    font-weight: 600;
}

.intro {
    max-width: 61ch;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.14rem);
}

.hero-copy .intro { margin-top: .95rem; max-width: 48ch; }

.hero-image {
    min-height: clamp(15rem, 31vw, 24rem);
    display: grid;
    place-items: center;
    border: 1px solid #d7cabc;
    background: radial-gradient(ellipse at 42% 28%, #faf6ee, #eadfd1 81%);
}

.hero-image img { width: min(67%, 17rem); mix-blend-mode: multiply; }

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1.2rem;
    margin-top: 1.55rem;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem .95rem;
    border: 1px solid var(--petrol);
    border-radius: .18rem;
    background: var(--petrol);
    color: white;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.button:hover { color: white; background: var(--petrol-dark); }

.button--quiet {
    background: transparent;
    color: var(--petrol-dark);
}

.button--quiet:hover { background: #e9efea; color: var(--petrol-dark); }

.text-link, .back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 650;
}

.interventions {
    padding-block: 0 clamp(2.2rem, 5vw, 4.2rem);
    scroll-margin-top: 1.2rem;
}

.interventions h2 { margin-bottom: 1.55rem; }

.interventions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.intervention {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    border-top: 2px solid var(--petrol);
}

.intervention h3 { margin-bottom: .7rem; }
.intervention p { color: var(--muted); }

.intervention .intervention-result {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--petrol-dark);
    font-weight: 650;
}

.case-section {
    border-block: 1px solid var(--line);
    background: var(--ivory);
}

.case-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(1.4rem, 6vw, 5.5rem);
    padding-block: clamp(2rem, 5vw, 4.6rem);
}

.context {
    margin-bottom: .55rem;
    color: var(--copper);
    font-size: .88rem;
    font-weight: 650;
}

.case-copy > p:last-child { margin-top: .9rem; max-width: 56ch; }

.proof > div { border-top: 1px solid #c9bfb2; padding-block: .75rem; }
.proof > div:last-child { border-bottom: 1px solid #c9bfb2; }
.proof dt { color: var(--petrol-dark); font-weight: 700; }
.proof dd { margin: .24rem 0 0; }

.contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem 2rem;
    padding-block: clamp(2rem, 5vw, 3.6rem);
}

.contact h2 { margin-bottom: .45rem; }

.page {
    padding-block: clamp(2.15rem, 5vw, 4.5rem);
    overflow-wrap: anywhere;
}

.page--narrow { max-width: 33rem; }
.page--tool { max-width: 54rem; }

.page-heading {
    display: grid;
    justify-items: start;
    gap: .65rem;
    margin-bottom: 1.65rem;
}

.page-heading .context { margin: 0; }
.page-heading .button { margin-top: .4rem; }
.identity { color: var(--muted); }
.back-link { margin: -.35rem 0 .85rem; }

.panel {
    min-width: 0;
    padding: clamp(1rem, 2.8vw, 1.7rem);
    border: 1px solid var(--line);
    background: white;
}

.panel h2 { font-size: clamp(1.27rem, 2.25vw, 1.67rem); }
.panel > p { margin-top: .65rem; }
.panel > p.context { margin: .4rem 0 0; }

.form-panel form { margin-top: 1rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { color: var(--petrol-dark); font-weight: 650; }

.field input, .field textarea {
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid #738889;
    border-radius: .16rem;
    background: white;
    color: var(--ink);
}

.field input { min-height: 44px; }
.field textarea { resize: vertical; min-height: 7rem; }

.notice {
    border-left: 3px solid var(--petrol);
    padding: .65rem .8rem;
    background: #eaf0ec;
    color: var(--petrol-dark);
}

.notice--error {
    margin-bottom: .9rem;
    border-color: var(--error);
    background: var(--error-bg);
    color: var(--error);
}

.demo-note { margin-top: 1.25rem; padding: 1rem 0; }
.demo-note h2 { margin-bottom: .65rem; font-size: 1.13rem; letter-spacing: -.015em; }
.demo-note dl > div { display: flex; flex-wrap: wrap; gap: .15rem 1rem; justify-content: space-between; }
.demo-note summary { cursor: pointer; color: var(--petrol-dark); font-weight: 650; }
.demo-note[open] summary { margin-bottom: .7rem; }
.demo-note dd { margin: 0; }
.demo-note code { background: var(--ivory); padding: .1em .24em; }

.page-section { margin-top: 1.8rem; }
.page-section h2 { margin-bottom: .8rem; }
.record-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }

.record-list > li {
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
}

.record-list > li p + p, .record-list > li h3 + p { margin-top: .2rem; }
.record-list h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.record-list--ordered { list-style: decimal; padding-left: 1.6rem; }
.record-list--ordered li::marker { color: var(--copper); font-weight: 650; }
.record-list--ordered h2 { font-size: 1.25rem; margin-bottom: .25rem; }

.edition-layout, .workspace-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
}

.edition-layout > :only-child { grid-column: 1 / -1; }
.record-date { font-size: .9rem; color: var(--muted); }
.preserve-lines { white-space: pre-wrap; }
.availability { color: var(--petrol-dark); font-weight: 650; }
.workspace-tool > .button { margin-top: .55rem; }

.workspace-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.ovh-receipt { background: var(--ivory); }
.grant-control { margin-top: .55rem; }

.locations {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.55rem;
    list-style: none;
    padding: .8rem 0;
    border-block: 1px solid var(--line);
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem 1rem;
    padding-block: .85rem;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--petrol-dark);
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

@media (max-width: 51rem) {
    .site-header__inner { flex-wrap: wrap; padding-block: .6rem; gap: .1rem 1rem; }
    .site-header nav { width: 100%; }
    .site-nav { gap: .15rem 1.2rem; }
    .hero { gap: 1.5rem; }
}

@media (max-width: 42rem) {
    .shell { width: calc(100% - 2rem); }
    .brand { flex-basis: 10rem; }
    .hero, .interventions-grid, .case-layout, .edition-layout, .workspace-layout { grid-template-columns: 1fr; }
    .hero { padding-block: 2.1rem; }
    .hero-image { min-height: 10.75rem; }
    .hero-image img { width: min(45%, 10rem); }
    .hero-break { display: none; }
    .case-layout { gap: 1.15rem; }
    .contact { align-items: start; }
}

@media (max-width: 24rem) {
    .site-nav { justify-content: space-between; gap: .1rem .4rem; }
    .site-nav a, .text-button { font-size: .86rem; }
    .site-header__inner { column-gap: .65rem; }
    .brand { flex-basis: 8rem; }
}

.page-heading--with-action {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 1rem 2rem;
}

.page-heading--with-action .button { flex-shrink: 0; }
.workspace-tile > p + p, .workspace-tile .text-link { margin-top: .65rem; }
.workspace-places { margin-bottom: 0; }
.workspace-diagnostics { margin-top: 1.45rem; font-size: .9rem; }
.workspace-diagnostics a { color: var(--muted); }

.document-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    align-items: start;
    gap: clamp(1rem, 3vw, 2.4rem);
}

.document-list { margin-top: .8rem; }
.share-panel { scroll-margin-top: 1rem; }
.field .optional, .field .field-hint { color: var(--muted); font-size: .9rem; }
.field .optional { font-weight: 400; }
.field .field-hint { margin: .2rem 0 0; }

.field select {
    width: 100%;
    min-height: 44px;
    padding: .55rem .72rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: .15rem;
    font: inherit;
    color: var(--ink);
}

.field select:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.page-actions, .grant-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem 1rem;
}
.page-actions { margin-top: .85rem; }
.page-actions .button { margin: 0; }
.grant-row { justify-content: space-between; }
.grant-row p { color: var(--muted); font-size: .9rem; }
.grant-row .button { min-height: 44px; }

@media (max-width: 42rem) {
    .document-layout { grid-template-columns: minmax(0, 1fr); }
    .share-panel { grid-row: 1; }
}

.work-hero, .private-cover {
    padding: clamp(1.15rem, 4vw, 2.5rem);
    border-left: .24rem solid #b86a3f;
    background: #183338;
    color: #f3eee6;
}

.work-hero h1, .private-cover h1 { font-weight: 600; }
.work-hero .intro, .private-cover .intro, .private-cover .identity { color: #d8e1dd; }
.work-hero > .button { background: #f3eee6; border-color: #f3eee6; color: #203f43; }
.work-hero > .button:hover { background: #e9d3bf; border-color: #e9d3bf; }
.work-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .82fr); gap: 1.2rem; }
.work-side { display: grid; gap: 1.2rem; }
.work-queue { border-top: .2rem solid #b86a3f; }
.work-queue h2 { margin-bottom: .7rem; }
.work-references {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 2.5rem;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}
.work-references h2 { font-size: 1.27rem; margin-bottom: .55rem; }
.work-references p, .work-references li { color: var(--muted); }

.work-desk {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-block: 1px solid var(--line);
    margin-block: 0 1.5rem;
}
.work-desk a {
    display: grid;
    gap: .25rem;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--petrol-dark);
}
.work-desk a { border-inline-end: 1px solid var(--line); }
.work-desk a:nth-child(3n), .client-desk a:last-child { border-inline-end: 0; }
.work-desk:not(.client-desk) a:nth-child(n + 4) { border-top: 1px solid var(--line); }
.client-desk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-desk a:hover { background: var(--ivory); }
.work-desk a:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.work-desk strong { font-size: 1.05rem; }
.work-desk span { color: var(--muted); font-size: .9rem; }

.worksheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: 1.3rem;
    align-items: start;
}
.worksheet-result {
    padding: 1.2rem 1.35rem;
    background: var(--ivory);
    border-top: .22rem solid var(--copper);
}
.worksheet-result h2 { margin-bottom: .75rem; }
.worksheet-result dt { font-weight: 700; color: var(--petrol); }
.worksheet-result dd { margin: .25rem 0 .85rem; overflow-wrap: anywhere; }
.worksheet-result form { margin-top: .7rem; }
.orientation-grid, .assistant-layout {
    display: grid;
    grid-template-columns: minmax(15rem, .85fr) minmax(0, 1.15fr);
    gap: clamp(1rem, 4vw, 3rem);
    align-items: start;
}
.route-list, .catalog-list { list-style: none; padding: 0; margin: 0; }
.route-list { border-top: 1px solid var(--line); }
.route-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-weight: 650;
    color: var(--petrol-dark);
    transition: background-color .18s ease-out;
}
.route-list a:hover, .route-list a[aria-current] { background: var(--ivory); }
.route-list a[aria-current] { box-shadow: inset .2rem 0 var(--copper); }
.route-list small { display: block; font-weight: 500; color: var(--muted); }
.orientation-result > a { margin-top: 1rem; }
.orientation-result > a.button { display: table; }
.catalog-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.15rem; }
.catalog-filters a {
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--petrol-dark);
}
.catalog-filters a[aria-current] { background: var(--petrol-dark); color: var(--paper); border-color: var(--petrol-dark); }
.catalog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.catalog-list li { background: var(--paper); padding: 1.1rem; }
.catalog-list h2 { font-size: 1.3rem; margin-block: .25rem .4rem; }
.catalog-state { color: var(--petrol-dark); font-weight: 650; margin-top: .7rem; }
.catalog-list .text-link { margin-top: .25rem; }
.assistant-targets h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.assistant-session { border-top: .2rem solid var(--copper); padding: clamp(1rem, 3vw, 2rem); background: var(--ivory); }
.assistant-session > header { margin-bottom: 1.2rem; }
.assistant-health { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; margin-bottom: 1.2rem; }
.assistant-health div { min-width: 9rem; }
.assistant-health dt { font-weight: 700; color: var(--petrol); }
.assistant-health dd { margin: .15rem 0 0; color: var(--muted); }
.assistant-message { margin-top: 1.2rem; padding: 1rem; border-left: 2px solid var(--petrol); background: var(--paper); }
.assistant-message h3 { margin-block: .3rem; }
.section-kicker {
    color: var(--copper);
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.contact-desk {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 6vw, 5rem);
    max-width: 64rem;
}
.contact-desk__intro { padding-block: 1rem; }
.contact-desk__intro h1 { max-width: 12ch; margin-bottom: .85rem; }
.contact-desk__hint { margin-top: 1.25rem; padding-left: .85rem; border-left: 2px solid var(--copper); color: var(--muted); }
.contact-desk__mode { margin: 0 0 1rem; }
.publication-reading { max-width: 63rem; }
.publication-reading__heading { border-bottom: 1px solid var(--line); padding-block: .35rem 1.45rem; }
.publication-reading__content {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem clamp(1rem, 5vw, 4rem);
}
.publication-reading__text { font-size: 1.13rem; line-height: 1.7; }
.publication-reading__source { border-top: .2rem solid var(--copper); background: var(--ivory); padding: 1rem 1.15rem; }
.publication-reading__source h2 { font-size: 1.1rem; margin-bottom: .45rem; }
.edition-heading .record-date { color: #d8e1dd; }
.edition-heading .page-actions a { color: var(--ivory); }
.edition-heading .page-actions .button { background: var(--ivory); color: var(--petrol-dark); border-color: var(--ivory); }
.edition-heading .page-actions .button:hover { background: #e9d3bf; border-color: #e9d3bf; }
.edition-work { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: start; }
.edition-work .edition-copy { grid-column: 1 / -1; }
.edition-history { padding: clamp(1rem, 3vw, 1.6rem); background: var(--ivory); border-top: .2rem solid var(--copper); }
.edition-history h2 { font-size: clamp(1.27rem, 2.25vw, 1.67rem); margin-bottom: .65rem; }

.feedback-reply {
    margin-top: .7rem;
    padding: .8rem 1rem;
    background: #edf1eb;
    border-left: .18rem solid #526d71;
    overflow-wrap: anywhere;
}

.feedback-reply p + p { margin-top: .3rem; }
.feedback-file { margin-top: .35rem; overflow-wrap: anywhere; }
.reply-form { margin-top: .85rem; }
.reply-form .field { margin-bottom: .6rem; }

.brief-cover { background: #183338; color: #f3eee6; padding-block: clamp(2.3rem, 6vw, 5.15rem); }
.brief-cover h1 { max-width: 19ch; font-weight: 600; margin-bottom: .95rem; }
.brief-cover p:last-child { max-width: 64ch; color: #dae3dd; }
.brief-kicker { color: #efb28e; font-weight: 650; margin-bottom: .8rem; }
.brief-layout {
    display: grid;
    grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
    gap: clamp(1.25rem, 5vw, 4.5rem);
    padding-block: clamp(2.1rem, 6vw, 4.25rem);
}
.brief-layout section > p { margin-top: .8rem; color: var(--muted); }
.brief-note {
    padding: clamp(1.15rem, 3vw, 2.2rem);
    border-top: .22rem solid #b86a3f;
    background: #f3eee6;
}
.brief-note dl { margin-top: 1rem; }
.brief-note dl div { padding-block: .65rem; border-top: 1px solid #c6c2b7; }
.brief-note dt { font-weight: 700; color: #26464a; }
.brief-note dd { margin: .25rem 0 0; }
.brief-contact { border-top: 1px solid var(--line); padding-block: clamp(1.6rem, 4vw, 3.2rem); }
.brief-contact p { margin: .65rem 0 .85rem; }

@media (max-width: 42rem) {
    .work-grid, .work-references, .brief-layout, .work-desk, .worksheet,
    .contact-desk, .publication-reading__content, .edition-work, .orientation-grid, .assistant-layout { grid-template-columns: minmax(0, 1fr); }
    .work-desk a { border-inline-end: 0; }
    .work-desk a + a { border-top: 1px solid var(--line); }
    .contact-desk__intro { padding-block: 0; }
    .contact-desk__intro h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .route-list a { transition: none; }
}
