/* Cindervault Systems — restrained editorial, generous whitespace */

:root {
  color-scheme: light;
  --stone: #f1efec;
  --paper: #fbfaf8;
  --ink: #1f1d1b;
  --muted: #5b5651;
  --copper: #8a5230;
  --copper-soft: #c98b62;
  --copper-wash: #f5e9e0;
  --grey: #6f6962;
  --line: #d9d4cd;
  --line-strong: #9e978f;
  --control: #7d766f;
  --alert: #962f27;
  --alert-wash: #f8ebe8;
  --flag: #6b4e00;
  --flag-wash: #fff4cc;
  --focus: #1f1d1b;

  --head: "Gill Sans Nova", "Gill Sans", "Gill Sans MT", "Segoe UI Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: Constantia, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --gutter: clamp(1.25rem, 6vw, 4rem);
  --col: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--body); font-size: 1.1rem; line-height: 1.75; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 300; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.45rem; font-weight: 400; }
h4 { font-size: 0.95rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
p, ul, ol, dl { margin: 0 0 1.1em; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.col { max-width: var(--col); }
@media (min-width: 64rem) { .col { margin-left: 16%; } }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: #fff; padding: 0.6rem 1rem; text-decoration: none; font-family: var(--head); }
.skip-link:focus { top: 1rem; color: #fff; }
.review-banner { background: var(--flag-wash); color: var(--flag); font-family: var(--head); font-size: 0.85rem; padding: 0.45rem 0; }
.review-banner p { margin: 0; }
.pending { background: var(--flag-wash); color: var(--flag); border: 1px dashed #c9a93a; padding: 0.05em 0.35em; font-family: var(--head); font-weight: 600; font-size: 0.9em; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--copper-soft); }
.brand { font-family: var(--head); font-size: 1.2rem; letter-spacing: 0.22em; text-transform: lowercase; color: var(--ink); text-decoration: none; }
.brand span { color: var(--copper); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.75rem; font-family: var(--head); font-size: 1.02rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.2rem 0; display: inline-block; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--copper); color: var(--copper); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--copper); }

/* Opening */
.opening { padding: clamp(4rem, 12vw, 9rem) 0 clamp(3.5rem, 9vw, 7rem); }
.label { font-family: var(--head); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9rem; color: var(--copper); margin-bottom: 1.5rem; }
.opening h1 { max-width: 17ch; }
.opening .lead { font-size: 1.25rem; line-height: 1.65; }
.inline-services { font-family: var(--head); font-size: 1.1rem; color: var(--muted); }
.inline-services a { color: var(--ink); }
.inline-services a:hover { color: var(--copper); }
.textlink { display: inline-block; font-family: var(--head); font-size: 1.15rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--copper); padding-bottom: 0.15rem; margin-top: 1rem; transition: color 0.15s ease; }
.textlink:hover { color: var(--copper); }
.textlink::after { content: "  →"; color: var(--copper); }
.opening .scope { font-size: 0.98rem; color: var(--muted); margin-top: 2rem; }

/* Sections */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section-paper { background: var(--paper); }
.section .intro { color: var(--muted); }

/* Document flow figure */
.flow { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.flow-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); padding: 1.25rem; }
.section-paper .flow-scroll { background: var(--stone); }
.flow-scroll svg { min-width: 40rem; }
.flow figcaption { font-family: var(--head); font-size: 0.95rem; color: var(--muted); margin-top: 0.8rem; max-width: var(--col); }
@media (min-width: 64rem) { .flow figcaption { margin-left: 16%; } }
.df text { font-family: var(--head); fill: var(--ink); font-size: 15px; }
.df .sm { font-size: 12.5px; fill: var(--muted); }
.df .doc { fill: #fff; stroke: var(--line-strong); stroke-width: 1.2; }
.df .doc-hot { fill: var(--copper-wash); stroke: var(--copper); stroke-width: 1.6; }
.df .doc-off { fill: #f4f2ef; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 4 4; }
.df .fold { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.df .box { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.df .ln { stroke: var(--ink); stroke-width: 1.3; fill: none; }
.df .ln-hot { stroke: var(--copper); stroke-width: 1.8; fill: none; }
.df .ln-off { stroke: var(--grey); stroke-width: 1.2; fill: none; stroke-dasharray: 4 5; }
.df .t-off { fill: var(--grey); }
.df .t-hot { fill: var(--copper); }
.df .ah { fill: var(--ink); }
.df .ah-hot { fill: var(--copper); }

.key-point { border-left: 2px solid var(--copper); padding-left: 1.25rem; font-family: var(--head); font-size: 1.3rem; line-height: 1.5; margin: 2.5rem 0 0; }

/* Glossary of services */
.glossary { margin: 2.5rem 0 0; }
.glossary > div { padding: 2rem 0; border-top: 1px solid var(--line); }
.glossary > div:last-child { border-bottom: 1px solid var(--line); }
.glossary dt { font-family: var(--head); font-weight: 300; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.95rem); line-height: 1.2; margin-bottom: 0.6rem; }
.glossary dt span { display: block; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); margin-bottom: 0.4rem; font-weight: 400; }
.glossary dd { margin: 0; }
.glossary .outputs { font-family: var(--head); font-size: 1rem; color: var(--muted); margin: 0.75rem 0 0; }
.glossary .outputs b { font-weight: 400; color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin-right: 0.4rem; }
.glossary .dep { font-size: 0.95rem; color: var(--muted); font-style: italic; margin: 0.6rem 0 0; }

/* Illustrative finding */
.finding { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 2.25rem); }
.finding .tag { font-family: var(--head); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.finding ol { padding-left: 1.3rem; margin: 0; }
.finding li { margin-bottom: 0.5rem; }

.order { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: o; }
.order li { counter-increment: o; display: grid; grid-template-columns: 2.5rem 1fr; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.order li::before { content: counter(o); font-family: var(--head); font-size: 1.4rem; color: var(--copper); line-height: 1.3; }
.order li:last-child { border-bottom: 1px solid var(--line); }

/* About */
.quiet-list { list-style: none; padding: 0; margin: 1.5rem 0 0; font-family: var(--head); font-size: 1.05rem; color: var(--muted); }
.quiet-list li { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.quiet-list li:last-child { border-bottom: 1px solid var(--line); }

/* Contact */
.notice { border-left: 2px solid var(--alert); padding: 0.25rem 0 0.25rem 1.2rem; margin: 2rem 0; }
.notice p { margin: 0 0 0.5rem; font-size: 1rem; }
.notice p:last-child { margin: 0; }
.notice strong { color: var(--alert); font-weight: 600; }
.mail-line { font-family: var(--head); font-size: 1.05rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.mail-line p { margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.preview-flag { background: var(--flag-wash); color: var(--flag); border: 1px dashed #c9a93a; padding: 0.6rem 0.9rem; font-family: var(--head); font-size: 0.95rem; margin: 0 0 1.75rem; }
.form-required-note { font-family: var(--head); font-size: 0.95rem; color: var(--muted); margin-bottom: 2rem; }
.field { margin-bottom: 2rem; }
.field label { display: block; font-family: var(--head); font-size: 1.15rem; margin-bottom: 0.4rem; }
.field .req { color: var(--alert); }
.field .optional { color: var(--muted); font-size: 0.95rem; }
.field-hint { font-size: 0.95rem; color: var(--muted); margin: -0.15rem 0 0.5rem; }
.field input, .field select, .field textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--control); border-radius: 0; padding: 0.75rem 0.9rem; min-height: 3.1rem; transition: border-color 0.15s ease, background-color 0.15s ease; }
.field textarea { resize: vertical; min-height: 10rem; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--copper); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; background: #fff; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 0.45rem; height: 0.45rem; border-right: 1.5px solid var(--copper); border-bottom: 1.5px solid var(--copper); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field [aria-invalid="true"] { border: 2px solid var(--alert); padding: calc(0.75rem - 1px) calc(0.9rem - 1px); }
.field-error { color: var(--alert); font-family: var(--head); font-size: 0.98rem; margin: 0.4rem 0 0; }
.field-error::before { content: "Error: "; }
.field-count { font-family: var(--head); font-size: 0.85rem; color: var(--muted); text-align: right; margin: 0.3rem 0 0; }
.field-count.is-near { color: var(--alert); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 1.5px solid var(--alert); background: var(--alert-wash); padding: 1rem 1.2rem; margin-bottom: 2rem; }
.error-summary h4 { color: var(--alert); text-transform: none; letter-spacing: 0; font-size: 1.1rem; margin: 0 0 0.3rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--alert); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.send { font-family: var(--head); font-size: 1.15rem; background: var(--ink); color: #fff; border: 0; padding: 0.8rem 1.6rem; cursor: pointer; transition: background-color 0.15s ease; }
.send:hover { background: var(--copper); }
.send:disabled { background: var(--line-strong); color: var(--ink); cursor: not-allowed; }
.form-privacy { font-size: 0.95rem; color: var(--muted); margin: 0; }
.form-status:empty { display: none; }
.form-status { margin-top: 1.5rem; padding: 0.9rem 1.1rem; border-left: 2px solid var(--line-strong); background: var(--paper); font-size: 1rem; }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.form-status.is-preview { border-left-color: #c9a93a; background: var(--flag-wash); color: var(--flag); }
.form-status.is-success { border-left-color: var(--copper); background: var(--copper-wash); color: var(--ink); }
.form-status.is-error { border-left-color: var(--alert); background: var(--alert-wash); color: var(--alert); }
.form-noscript { border-left: 2px solid var(--line-strong); padding: 0.5rem 1rem; margin-top: 1rem; }

/* Footer */
.site-footer { padding: 3rem 0 2.5rem; font-family: var(--head); font-size: 0.98rem; color: var(--muted); }
.site-footer .wrap > div { border-top: 1px solid var(--copper-soft); padding-top: 1.5rem; }
.site-footer p { margin: 0 0 0.75rem; max-width: 46rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.6rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.92rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--copper); }
@media (max-width: 30rem) { .footer-legal { flex-direction: column; gap: 0.4rem; } }

/* Docs */
.doc { padding: clamp(3rem, 8vw, 5rem) 0 4rem; }
.doc-meta { font-family: var(--head); color: var(--muted); }
.doc-body h2 { font-size: 1.6rem; margin-top: 2.75rem; }
.doc-body ul { padding-left: 1.2rem; }
.summary { border-top: 1px solid var(--copper-soft); border-bottom: 1px solid var(--copper-soft); padding: 1.1rem 0; margin-bottom: 2rem; font-size: 1.15rem; }
.summary p:last-child { margin-bottom: 0; }

/* Readiness checklist */
.cr-meta { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 0.2rem 2.5rem; }
.cr-meta li { display: flex; gap: 0.8rem; align-items: flex-end; padding-top: 0.8rem; }
.cr-meta span { font-family: var(--head); white-space: nowrap; }
.cr-meta li::after { content: ""; flex: 1; border-bottom: 1px solid var(--ink); min-width: 4rem; }
@media (min-width: 42rem) { .cr-meta { grid-template-columns: 1fr 1fr; } }
.cr-warn { border-left: 2px solid var(--alert); padding-left: 1.1rem; font-size: 1rem; }
.cr-part { margin-top: 3rem; }
.cr-part h2 { font-size: 1.75rem; margin-bottom: 0.3rem; }
.cr-part h2 span { font-size: 0.9rem; letter-spacing: 0.14em; color: var(--copper); display: block; margin-bottom: 0.3rem; }
.cr-part .why { color: var(--muted); font-size: 1rem; }
.cr-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.cr-list li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.3rem 0.6rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.cr-list li:last-child { border-bottom: 1px solid var(--line); }
.cr-list li::before { content: ""; width: 1.05rem; height: 1.05rem; border: 1.25px solid var(--ink); margin-top: 0.35rem; }
.cr-list p { margin: 0; }
.cr-list .owner { grid-column: 2; display: flex; gap: 0.6rem; align-items: flex-end; font-family: var(--head); font-size: 0.85rem; color: var(--muted); }
.cr-list .owner::after { content: ""; flex: 0 1 14rem; border-bottom: 1px dotted var(--line-strong); }
.cr-foot { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--head); font-size: 0.92rem; color: var(--muted); }
.print-hint { font-family: var(--head); color: var(--muted); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

@media print {
  @page { size: A4; margin: 17mm 16mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.5; }
  .skip-link, .review-banner, .site-nav, .print-hint, .no-print, .site-footer { display: none !important; }
  .site-header .wrap { padding: 0 0 2mm; border-bottom-color: #000; }
  .wrap { padding: 0; max-width: none; }
  .col { margin-left: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
  .doc { padding: 6mm 0 0; }
  h1 { font-size: 22pt; }
  .cr-part { margin-top: 7mm; }
  .cr-part h2 { font-size: 14pt; break-after: avoid; }
  .cr-list li { break-inside: avoid; padding: 2mm 0; }
  .cr-list li::before { border-color: #000; }
  .cr-warn { border-left-color: #000; }
  .pending { border: 1px dashed #000; background: none; color: #000; }
}
.dep-note { font-size: 0.95rem; color: var(--muted); font-style: italic; margin: 1.25rem 0 2.5rem; }
