/* Willowcrest Advisory — editorial, warm neutrals, asymmetric */

:root {
  color-scheme: light;
  --linen: #f6f1ea;
  --paper: #fffdf9;
  --stone: #ebe3d7;
  --ink: #2a2421;
  --muted: #5f554c;
  --bronze: #7a5530;
  --bronze-deep: #5a3c1f;
  --slate: #3e4b53;
  --line: #d9cebf;
  --line-strong: #a8998a;
  --alert: #8f2d24;
  --alert-wash: #f8e9e5;
  --flag: #6b4e00;
  --flag-wash: #fff4cc;
  --focus: #2a2421;

  --display: Baskerville, "Baskerville Old Face", "Libre Baskerville", "Hoefler Text", Garamond, "Times New Roman", serif;
  --text: "Sitka Text", Charter, "Bitstream Charter", Cambria, Georgia, serif;
  --ui: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.1rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--ink); font-family: var(--text); font-size: 1.08rem; line-height: 1.72; }
img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); }
h3 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem); }
p, ul, ol { margin: 0 0 1.05em; }

.smallcaps { font-variant-caps: all-small-caps; letter-spacing: 0.08em; font-size: 1.05em; }

a { color: var(--bronze-deep); 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: 74rem; margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; gap: 1.5rem 2.5rem; }
.grid > * { min-width: 0; }
@media (min-width: 60rem) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-main { grid-column: 1 / span 7; }
  .col-main-wide { grid-column: 1 / span 8; }
  .col-side { grid-column: 9 / span 4; }
  .col-offset { grid-column: 3 / span 8; }
  .col-shift { grid-column: 2 / span 7; }
}

.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(--ui); }
.skip-link:focus { top: 1rem; color: #fff; }
.review-banner { background: var(--flag-wash); color: var(--flag); font-family: var(--ui); font-size: 0.82rem; padding: 0.45rem 0; border-bottom: 1px solid #e3cf86; }
.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(--ui); font-weight: 700; font-size: 0.85em; }

/* Masthead */
.masthead { text-align: center; padding: 2rem 0 0; }
.masthead .brand { font-family: var(--display); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.masthead .tagline { display: block; margin-top: 0.15rem; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: 0.12em; font-size: 1rem; }
.masthead nav { margin-top: 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.masthead ul { list-style: none; margin: 0; padding: 0.55rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0; }
.masthead li + li::before { content: "·"; color: var(--line-strong); padding: 0 0.85rem; }
.masthead nav a { color: var(--ink); text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: 0.1em; font-size: 1.08rem; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--bronze-deep); text-decoration: underline; }

/* Opening */
.opening { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.opening .label { color: var(--bronze); font-variant-caps: all-small-caps; letter-spacing: 0.12em; font-size: 1.05rem; margin-bottom: 1rem; }
.standfirst { font-size: 1.25rem; line-height: 1.6; max-width: 36rem; }
.opening .cta { margin-top: 1.75rem; }
.areas { border-top: 2px solid var(--ink); padding-top: 1rem; }
.areas h2 { font-family: var(--text); font-size: 1rem; font-variant-caps: all-small-caps; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.5rem; }
.areas ol { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: ar; }
.areas li { counter-increment: ar; border-bottom: 1px solid var(--line); }
.areas a { display: grid; grid-template-columns: 2rem 1fr; padding: 0.55rem 0; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.2rem; }
.areas a::before { content: counter(ar, upper-roman); color: var(--bronze); font-family: var(--text); font-size: 0.95rem; padding-top: 0.2rem; }
.areas a:hover { color: var(--bronze-deep); }
.areas .tools { font-size: 0.95rem; color: var(--muted); margin: 0; }
.not-adviser { background: var(--paper); border: 1px solid var(--line); padding: 1rem 1.15rem; font-size: 0.98rem; }
.not-adviser strong { font-variant-caps: all-small-caps; letter-spacing: 0.08em; font-size: 1.05em; display: block; color: var(--slate); margin-bottom: 0.2rem; }
.not-adviser p { margin: 0; }

/* Text link button */
.textlink { display: inline-block; font-family: var(--display); font-size: 1.2rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--bronze); padding-bottom: 0.1rem; transition: border-color 0.15s ease, color 0.15s ease; }
.textlink:hover { color: var(--bronze-deep); border-bottom-color: var(--ink); }
.textlink::after { content: " →"; color: var(--bronze); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.section-paper { background: var(--paper); }
.section .label { color: var(--bronze); font-variant-caps: all-small-caps; letter-spacing: 0.12em; font-size: 1.05rem; margin-bottom: 0.75rem; }
.intro { color: var(--muted); font-size: 1.12rem; max-width: 38rem; }

/* Essays */
.essay { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.essay:first-of-type { border-top: 2px solid var(--ink); margin-top: 2rem; }
.essay-head { display: flex; gap: 1rem; align-items: baseline; }
.numeral { font-family: var(--display); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); color: var(--bronze); line-height: 1; min-width: 3rem; }
.essay .body p:first-of-type::first-letter { font-family: var(--display); }
.essay .setup { list-style: none; padding: 0; margin: 0 0 1rem; }
.essay .setup li { padding: 0.3rem 0 0.3rem 1.4rem; position: relative; }
.essay .setup li::before { content: "—"; position: absolute; left: 0; color: var(--bronze); }
.marginal { font-size: 0.97rem; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 1.1rem; align-self: start; }
.marginal h4 { font-family: var(--text); font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: 0.1em; color: var(--slate); font-size: 1.02rem; margin: 0 0 0.3rem; }
.marginal p:last-child { margin-bottom: 0; }
.marginal .tools { margin-top: 1rem; }

/* Lifecycle */
.lifecycle { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: lc; }
.lifecycle li { counter-increment: lc; position: relative; padding: 0 0 1.5rem 2.75rem; }
.lifecycle li::before { content: counter(lc, lower-roman) "."; position: absolute; left: 0; top: 0; font-family: var(--display); color: var(--bronze); font-size: 1.2rem; }
.lifecycle li::after { content: ""; position: absolute; left: 0.6rem; top: 2rem; bottom: 0.3rem; border-left: 1px solid var(--line-strong); }
.lifecycle li:last-child::after { display: none; }
.lifecycle strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.lifecycle span { color: var(--muted); font-size: 0.97rem; display: block; }
@media (min-width: 60rem) {
  .lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--ink); }
  .lifecycle li { padding: 1.1rem 1.25rem 0 0; }
  .lifecycle li::before { position: static; display: block; margin-bottom: 0.3rem; }
  .lifecycle li::after { left: auto; right: 1.25rem; top: -0.35rem; bottom: auto; width: 0.6rem; height: 0.6rem; border: 0; background: var(--bronze); border-radius: 50%; }
  .lifecycle li:last-child::after { display: block; }
}
.lifecycle-note { font-size: 0.95rem; color: var(--muted); margin-top: 1rem; }

/* Responsibility */
.responsibility blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.35; border-left: 3px solid var(--bronze); padding-left: 1.25rem; }
.responsibility blockquote p { margin: 0; }

/* Resource */
.excerpt { background: var(--paper); border: 1px solid var(--line); padding: 1.25rem 1.4rem; font-size: 0.95rem; }
.excerpt p.title { font-family: var(--display); font-size: 1.25rem; margin-bottom: 0.6rem; }
.excerpt ul { list-style: none; padding: 0; margin: 0; }
.excerpt li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.excerpt li span:last-child { font-family: var(--ui); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

/* About */
.about-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.about-list li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }

/* Contact letter */
.letter { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem); }
.letter-head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.letter-head h3 { margin-bottom: 0.25rem; }
.letter-head p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.notice { border-left: 3px solid var(--alert); background: var(--alert-wash); padding: 0.85rem 1.1rem; margin: 0 0 1.75rem; font-size: 0.98rem; }
.notice strong { color: var(--alert); }
.notice p { margin: 0; }
.footnote { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.98rem; }
.footnote p { margin: 0; }
.footnote .smallcaps { color: var(--slate); }

.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(--ui); font-size: 0.88rem; font-weight: 700; margin: 0 0 1.5rem; }
.form-required-note { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.25rem; }
.field-row { display: grid; gap: 0 2rem; }
@media (min-width: 42rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-variant-caps: all-small-caps; letter-spacing: 0.1em; font-size: 1.12rem; color: var(--slate); margin-bottom: 0.15rem; }
.field .req { color: var(--alert); }
.field .optional { font-variant-caps: normal; letter-spacing: 0; font-size: 0.85rem; color: var(--muted); }
.field-hint { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.35rem; }
.field input, .field select, .field textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 0.5rem 0.1rem; min-height: 2.8rem; transition: border-color 0.15s ease, background-color 0.15s ease; }
.field textarea { border: 1.5px solid var(--ink); padding: 0.7rem 0.8rem; resize: vertical; min-height: 9rem; line-height: 1.55; background: #fff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--bronze); }
.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: 2rem; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 0.5rem; top: 50%; width: 0.45rem; height: 0.45rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field [aria-invalid="true"] { border-color: var(--alert); border-bottom-width: 3px; background: #fffaf9; }
.field textarea[aria-invalid="true"] { border-width: 2px; }
.field-error { color: var(--alert); font-family: var(--ui); font-size: 0.88rem; font-weight: 600; margin: 0.4rem 0 0; }
.field-error::before { content: "Error: "; }
.field-count { font-family: var(--ui); font-size: 0.78rem; color: var(--muted); text-align: right; margin: 0.3rem 0 0; }
.field-count.is-near { color: var(--alert); font-weight: 700; }
.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: 0.9rem 1.1rem; margin-bottom: 1.5rem; }
.error-summary h4 { font-family: var(--text); color: var(--alert); font-size: 1.05rem; 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: 0.75rem 1.5rem; margin-top: 0.5rem; }
.send { font-family: var(--display); font-size: 1.15rem; color: #fff; background: var(--ink); border: 0; padding: 0.75rem 1.6rem; cursor: pointer; transition: background-color 0.15s ease; }
.send:hover { background: var(--bronze-deep); }
.send:disabled { background: var(--line-strong); color: var(--ink); cursor: not-allowed; }
.form-privacy { font-size: 0.92rem; color: var(--muted); margin: 0; }
.form-status:empty { display: none; }
.form-status { margin-top: 1.25rem; padding: 0.8rem 1rem; font-size: 0.98rem; border-left: 3px solid var(--line-strong); background: var(--linen); }
.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(--slate); background: #eef1f2; color: var(--slate); }
.form-status.is-error { border-left-color: var(--alert); background: var(--alert-wash); color: var(--alert); }
.form-noscript { border-left: 3px solid var(--line-strong); padding: 0.75rem 1rem; margin-top: 1rem; }

/* Footer */
.site-footer { text-align: center; padding: 2.75rem 0 2.25rem; border-top: 2px solid var(--ink); font-size: 0.95rem; color: var(--muted); }
.site-footer .f-brand { font-family: var(--display); font-size: 1.35rem; color: var(--ink); margin-bottom: 0.4rem; }
.site-footer p { max-width: 44rem; margin: 0 auto 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.35rem 1.5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--bronze-deep); }
@media (max-width: 30rem) { .footer-legal { flex-direction: column; gap: 0.4rem; } }

/* Document pages */
.doc { padding: clamp(2rem, 5vw, 4rem) 0 4rem; }
.doc-head { margin-bottom: 2rem; }
.doc-meta { color: var(--muted); font-size: 0.98rem; }
.doc-body h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.doc-body ul { padding-left: 1.2rem; }
.summary { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 1rem 0; margin-bottom: 1.5rem; font-size: 1.1rem; }
.summary p:last-child { margin-bottom: 0; }

/* Access review checklist */
.ar-meta { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.25rem 2rem; }
.ar-meta li { display: flex; gap: 0.75rem; align-items: flex-end; padding-top: 0.8rem; }
.ar-meta span { font-variant-caps: all-small-caps; letter-spacing: 0.1em; color: var(--slate); white-space: nowrap; font-size: 1.1rem; }
.ar-meta li::after { content: ""; flex: 1; border-bottom: 1px solid var(--ink); min-width: 4rem; }
@media (min-width: 42rem) { .ar-meta { grid-template-columns: 1fr 1fr; } }
.ar-note { border-left: 3px solid var(--alert); padding: 0.6rem 1rem; background: var(--alert-wash); font-size: 0.98rem; }
.ar-part { margin-top: 2.5rem; }
.ar-part h2 { font-size: 1.6rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.35rem; }
.ar-part h2 span { color: var(--bronze); font-size: 0.85em; margin-right: 0.4rem; }
.ar-part .why { color: var(--muted); font-size: 0.98rem; }
.ar-items { list-style: none; padding: 0; margin: 0; }
.ar-items li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.ar-items .q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; }
.ar-items .q p { margin: 0; }
.ar-boxes { display: flex; gap: 0.9rem; font-family: var(--ui); font-size: 0.78rem; color: var(--muted); white-space: nowrap; padding-top: 0.25rem; }
.ar-boxes span::before { content: ""; display: inline-block; width: 0.9rem; height: 0.9rem; border: 1.25px solid var(--ink); vertical-align: -0.15em; margin-right: 0.3rem; }
.ar-items .notes { display: flex; gap: 0.6rem; align-items: flex-end; margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.ar-items .notes::after { content: ""; flex: 1; border-bottom: 1px dotted var(--line-strong); }
.scroll { overflow-x: auto; }
.ar-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 0.97rem; min-width: 34rem; }
.ar-table th, .ar-table td { border: 1px solid var(--line-strong); padding: 0.5rem 0.7rem; text-align: left; }
.ar-table thead th { font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: 0.08em; background: var(--stone); }
.ar-table td { height: 2.5rem; }
.signoff { display: grid; gap: 0.25rem 2rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.signoff li { display: flex; gap: 0.75rem; align-items: flex-end; padding-top: 1.1rem; }
.signoff span { font-variant-caps: all-small-caps; letter-spacing: 0.1em; color: var(--slate); white-space: nowrap; font-size: 1.1rem; }
.signoff li::after { content: ""; flex: 1; border-bottom: 1px solid var(--ink); min-width: 4rem; }
@media (min-width: 42rem) { .signoff { grid-template-columns: 1fr 1fr; } }
.ar-foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.print-hint { color: var(--muted); font-size: 0.98rem; }

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

@media print {
  @page { size: A4; margin: 16mm 15mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  .skip-link, .review-banner, .masthead nav, .print-hint, .no-print, .site-footer { display: none !important; }
  .masthead { padding-top: 0; text-align: left; border-bottom: 1px solid #000; padding-bottom: 2mm; }
  .masthead .brand { font-size: 15pt; }
  .masthead .tagline { display: inline; margin-left: 3mm; }
  .wrap { padding: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
  .doc { padding: 6mm 0 0; }
  h1 { font-size: 22pt; }
  .ar-part { margin-top: 7mm; }
  .ar-part h2 { font-size: 14pt; break-after: avoid; }
  .ar-items li { break-inside: avoid; padding: 2mm 0; }
  .ar-note { background: none; border-left-color: #000; }
  .scroll { overflow: visible; }
  .ar-table { min-width: 0; font-size: 9.5pt; }
  .ar-table thead th { background: #eee; }
  .ar-table td { height: 9mm; }
  .ar-table tr { break-inside: avoid; }
  .signoff { grid-template-columns: 1fr 1fr; }
  .pending { border: 1px dashed #000; background: none; color: #000; }
}

.kicker-bronze { color: var(--bronze); }
