/* Lia Tria. "Tria" = three: each practice owns one colour, and the
   triptych, favicon ticks, page slabs and section rules all key off these
   tokens. Grants and HR share the consulting colour. */
:root {
    --bark: #edefea;      /* page ground: aspen-bark grey-green */
    --paper: #f8f9f6;
    --spruce: #1c332d;    /* ink */
    --spruce-2: #2a4a41;
    --moss: #56685f;      /* muted text */
    --rule: #cfd5cc;

    --gold: #d99a1e;      /* property: aspen leaves in fall */
    --gold-ink: #5a3d05;
    --berry: #7d2c4f;     /* events */
    --slate: #2f4b72;     /* consulting: grants + HR */

    --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --body: 'Figtree', system-ui, -apple-system, sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1180px;
    --measure: 58ch;
}

/* per-page accent: set on <body> */
.t-property { --accent: var(--gold); --accent-ink: var(--gold-ink); --on-accent: var(--gold-ink); }
.t-events { --accent: var(--berry); --accent-ink: var(--berry); --on-accent: #fff; }
.t-consulting { --accent: var(--slate); --accent-ink: var(--slate); --on-accent: #fff; }
.t-about { --accent: var(--spruce); --accent-ink: var(--spruce); --on-accent: var(--paper); }

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bark);
    color: var(--spruce);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }

.skip {
    position: absolute; left: 12px; top: -60px;
    background: var(--spruce); color: var(--paper);
    padding: 10px 14px; border-radius: 3px; z-index: 20;
}
.skip:focus { top: 12px; }

/* ---------- nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 8px 20px;
    padding: 12px var(--gutter);
    background: color-mix(in srgb, var(--bark) 94%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}
.nav-mark {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--display); font-weight: 800;
    font-size: 1.5rem; letter-spacing: 0.02em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap;
}
.ticks { display: inline-flex; gap: 3px; }
.ticks i { display: block; width: 5px; height: 20px; border-radius: 1px; }
.ticks i:nth-child(1) { background: var(--gold); }
.ticks i:nth-child(2) { background: var(--berry); }
.ticks i:nth-child(3) { background: var(--slate); }

.nav ul { display: flex; gap: clamp(12px, 2vw, 26px); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.nav ul a:hover, .nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav ul a[aria-current="page"] { text-decoration-color: var(--accent, var(--spruce)); }
.nav ul a.nav-cta {
    background: var(--spruce); color: var(--paper);
    padding: 8px 14px; border-radius: 3px;
}
.nav ul a.nav-cta:hover { text-decoration: none; background: var(--spruce-2); }

/* ---------- shared type ---------- */
.display {
    font-family: var(--display); font-weight: 800; line-height: 0.95;
    letter-spacing: -0.005em; margin: 0;
}
h2.display { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin-bottom: 18px; }
h3 { font-size: 1.1rem; margin: 0 0 4px; }
p { margin: 0 0 1em; }

.btn {
    display: inline-block; font-weight: 600; text-decoration: none;
    padding: 12px 20px; border-radius: 3px;
    background: var(--spruce); color: var(--paper);
}
.btn:hover { background: var(--spruce-2); }

/* ---------- home hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }

.hero-head {
    display: grid; grid-template-columns: auto 1fr; align-items: end;
    gap: 16px clamp(24px, 4vw, 56px);
}
.wordmark {
    margin: 0 0 -0.06em;
    font-family: var(--display); font-weight: 900;
    font-size: clamp(4.5rem, 15vw, 12.5rem);
    line-height: 0.78; letter-spacing: -0.01em; text-transform: uppercase;
}
.hero-lede { margin: 0 0 12px; max-width: 36ch; font-size: 1.125rem; color: var(--moss); }

/* The signature: three tall panels, one per practice, each with its name
   set vertically like a trail marker. */
.triptych {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 6px; margin-top: 18px;
    min-height: clamp(360px, 54vh, 520px);
}
.panel {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 22px; color: #fff; border-radius: 3px;
}
.panel-property { background: var(--gold); color: var(--gold-ink); }
.panel-events { background: var(--berry); }
.panel-consulting { background: var(--slate); }

.panel-word {
    position: absolute; top: 14px; left: 10px;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: var(--display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.85;
    opacity: 0.18; pointer-events: none; white-space: nowrap;
}
.panel-body {
    position: relative; display: grid; gap: 6px; max-width: 30ch;
    margin-left: clamp(56px, 7.5vw, 104px); /* clear the vertical word */
}
.panel-place { font-size: 0.9rem; font-weight: 500; opacity: 0.85; }
.panel-title { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; margin: 0; }
.panel-line { font-size: 0.98rem; line-height: 1.45; margin: 0; }
.panel-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; font-weight: 600; }

/* whole-panel link: the title's link stretches over the panel */
.panel-title a { text-decoration: none; }
.panel-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.panel-title a::after { content: ''; position: absolute; inset: 0; }
.panel-consulting .panel-title a::after { content: none; }
.panel:focus-within { outline: 3px solid var(--spruce); outline-offset: 3px; }
.panel a:focus-visible { outline: none; }
.panel-consulting a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
    .triptych .panel { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
    .triptych .panel-events { animation-delay: 0.12s; }
    .triptych .panel-consulting { animation-delay: 0.24s; }
    @keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ---------- contact band (home, right under the splash; closes every page) ---------- */
.contact-band {
    background: var(--spruce); color: var(--paper);
    margin-top: clamp(28px, 5vw, 56px);
}
.contact-inner {
    max-width: var(--max); margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) var(--gutter);
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 24px clamp(28px, 5vw, 72px); align-items: center;
}
.contact-band h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.contact-band p { color: #c9d3cd; margin: 0; max-width: 46ch; }
.contact-email {
    display: inline-block; font-family: var(--display); font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; text-decoration: none;
    border-bottom: 4px solid var(--gold); padding-bottom: 2px;
    overflow-wrap: anywhere;
}
.contact-email:hover { border-bottom-color: #fff; }
.contact-quick {
    display: flex; flex-wrap: wrap; gap: 8px;
    list-style: none; margin: 20px 0 0; padding: 0;
}
.contact-quick a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid #4d6a61; text-decoration: none; font-size: 0.95rem;
}
.contact-quick a::before { content: ''; width: 9px; height: 9px; border-radius: 50%; }
.contact-quick .q-property::before { background: var(--gold); }
.contact-quick .q-events::before { background: #c0648c; }
.contact-quick .q-consulting::before { background: #7f9fd0; }
.contact-quick a:hover { border-color: var(--paper); }
.contact-hint { font-size: 0.95rem; margin-top: 16px !important; }

/* ---------- home: practice index ---------- */
.index { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter); }
.index > h2 { margin-bottom: 28px; }
.index-row {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 12px clamp(24px, 5vw, 64px);
    padding: 28px 0; border-top: 1px solid var(--rule);
}
.index-row h3::before {
    content: ''; display: inline-block; width: 7px; height: 0.8em; margin-right: 12px;
    background: var(--accent); border-radius: 1px; vertical-align: 0.02em;
}
.index-row h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1; margin: 0; }
.index-row h3 a { text-decoration: none; }
.index-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.index-row p { margin: 0 0 10px; color: var(--moss); max-width: var(--measure); }
.index-row .more { font-weight: 600; }

.about { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); }
.about p { font-size: 1.15rem; max-width: var(--measure); }

/* ---------- service pages ---------- */
/* the practice's panel from the home page, carried down the page as a sticky slab */
.page {
    max-width: var(--max); margin: 0 auto;
    padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(24px, 4vw, 48px);
    display: grid; grid-template-columns: clamp(56px, 8vw, 112px) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 56px);
}
.slab {
    position: sticky; top: 88px; align-self: start;
    height: min(calc(100vh - 120px), 760px); min-height: 320px;
    overflow: hidden; border-radius: 3px;
    background: var(--accent); color: var(--on-accent);
}
.slab span {
    position: absolute; top: 12px; left: 50%;
    writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
    font-family: var(--display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(3rem, 6vw, 5.8rem); line-height: 0.85;
    opacity: 0.22; white-space: nowrap;
}
.page-main { min-width: 0; }
.crumbs { font-size: 0.9rem; color: var(--moss); margin: 0 0 14px; }
.crumbs a { color: var(--moss); }
.page-hero { padding-bottom: clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; max-width: 20ch; }
.page-hero .lede { font-size: 1.2rem; max-width: var(--measure); }

/* contact, front and centre in every service page's hero */
.ask { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ask p { margin: 0; color: var(--moss); max-width: 36ch; }

.section { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--rule); max-width: 880px; }
.section > p, .prose p, .section > ul { max-width: var(--measure); }
.section ul { padding-left: 1.2em; }
.section li { margin-bottom: 6px; }

/* what's included: a hanging-term list, not cards */
.services { margin: 8px 0 0; }
.services div {
    display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4px 28px;
    padding: 18px 0; border-top: 1px solid var(--rule);
}
.services dt { font-weight: 700; }
.services dd { margin: 0; color: var(--moss); max-width: var(--measure); }

/* a real sequence, so it gets numbers */
.steps { list-style: none; counter-reset: step; margin: 8px 0 0; padding: 0; }
.steps li {
    counter-increment: step; position: relative;
    padding: 0 0 22px 64px; margin: 0; max-width: calc(var(--measure) + 64px);
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -6px;
    font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1;
    color: var(--accent-ink);
}
.steps li strong { display: block; }

.note {
    background: var(--paper); border-radius: 3px; padding: 16px 20px;
    border: 1px solid var(--rule); max-width: var(--measure); color: var(--moss); font-size: 0.97rem;
}

.faq details { border-top: 1px solid var(--rule); max-width: calc(var(--measure) + 4ch); }
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
    font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 4px; top: 12px;
    font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--accent-ink);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 18px; color: var(--moss); }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; max-width: calc(var(--measure) + 10rem); }
.timeline li {
    display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 24px;
    padding: 18px 0; border-top: 1px solid var(--rule);
}
.timeline .when { font-weight: 600; color: var(--moss); font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 0 0 4px; }
.timeline p { margin: 0; color: var(--moss); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; } }

.related { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; }

/* ---------- footer ---------- */
.footer {
    background: var(--spruce); color: #c9d3cd; font-size: 0.93rem;
    border-top: 1px solid #36554c;
}
.footer-inner {
    max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
}
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
    .hero-head { grid-template-columns: 1fr; }
    .hero-lede { margin-bottom: 4px; }
    .wordmark { margin-bottom: 0; }
    .triptych { grid-template-columns: 1fr; min-height: 0; }
    .panel { min-height: 0; padding-top: 68px; } /* clear the horizontal word */
    .panel-word {
        writing-mode: horizontal-tb; transform: none;
        top: 6px; left: auto; right: 10px;
        font-size: 3.6rem;
    }
    .panel-body { margin-left: 0; }
    .contact-inner, .index-row { grid-template-columns: 1fr; }

    /* service pages: slab becomes a band above the heading */
    .page { grid-template-columns: 1fr; }
    .slab { position: relative; top: auto; height: 76px; min-height: 0; }
    .slab span {
        writing-mode: horizontal-tb; transform: none;
        top: auto; bottom: 6px; left: 14px; font-size: 3.4rem;
    }
    .services div { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    /* nav: links move to their own scrollable row under the mark */
    .nav { flex-wrap: wrap; padding-bottom: 0; }
    .nav nav { width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; }
    .nav ul { padding: 4px var(--gutter) 12px; gap: 18px; }
    .nav li.nav-cta-item { display: none; }
    .nav .nav-mail { display: inline-block; }
    .steps li { padding-left: 48px; }
    .steps li::before { font-size: 2.1rem; }
}
.nav-mail { display: none; font-weight: 600; font-size: 0.95rem; text-decoration: none;
    background: var(--spruce); color: var(--paper); padding: 7px 12px; border-radius: 3px; }
