/*
    mardinilaw.ca, look 2 (renewed November 2026, canvas "Mardini Law website, renewed").

    Plain CSS, no build step: this file is copied to /build/ as it is. The look:
    white, ink, one red, Cormorant Garamond for headings, Outfit for text,
    Playfair Display italic for prices, square corners (2px).

    Sections, in order: fonts, colours and sizes, base, layout helpers, type,
    buttons and links, header, footer, closing band, the parts pages share
    (cards, fee lists, questions, steps, booking box), then each page's own parts.
*/

/* ── Fonts (self-hosted, in static/fonts) ─────────────────────────────── */

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url("/fonts/outfit-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url("/fonts/outfit-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Prices only: digits and the dollar sign. */
@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/playfair-display-italic-latin.woff2") format("woff2");
}

/* ── Colours and sizes ────────────────────────────────────────────────── */

:root {
    --ink: #1a1e1e;           /* text, dark bands */
    --ink-2: #3d4242;         /* body text beside headings */
    --ink-3: #5c6464;         /* small labels, notes */
    --prose: #2b3030;         /* article text */
    --faint: #9ea5a5;         /* the fine print on dark bands */
    --on-dark: #b9bfbf;       /* text on dark bands */
    --line: #e3e5e5;          /* rules */
    --line-dark: #333a3a;     /* rules on dark bands */
    --dots: #c3c8c8;          /* the dotted leaders in fee lists */
    --fog: #f2f3f3;           /* grey bands and boxes */
    --red: #b3201b;           /* the one red: buttons, the diamond, numbers */
    --red-deep: #8f1915;      /* a red button under the pointer */

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: Outfit, system-ui, sans-serif;
    --price: "Playfair Display", "Cormorant Garamond", Georgia, serif;

    --width: 1240px;          /* the widest a section's content gets */
    --gutter: 32px;           /* space at the sides of every section */
    --radius: 2px;
}

@media (max-width: 640px) {
    :root { --gutter: 20px; }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

/* Anchors land below the header, which stays at the top. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
@media (max-width: 980px) { html { scroll-padding-top: 88px; } }

body {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

/* Anything marked hidden stays hidden, whatever display its class gives it. */
[hidden] { display: none !important; }

/* An extra name for a place on a page, for links written for the current site. */
.anchor { display: block; height: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 30;
    padding: 10px 16px;
    background: var(--ink);
    color: #ffffff;
}
.skip-link:focus { top: 12px; color: #ffffff; }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Layout helpers ───────────────────────────────────────────────────── */

/* A section's content: centred, at most --width wide, with gutters. */
.wrap {
    max-width: var(--width);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.stack { display: flex; flex-direction: column; }

/* Columns that wrap by themselves: each column at least --min wide. */
.cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr));
}

/* A heading with a link at its right ("Insights ... All articles"). */
.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 20px 24px;
}

.band-fog { background: var(--fog); }
.band-ink { background: var(--ink); color: #ffffff; }
.rule-top { border-top: 1px solid var(--line); }
.rule-bottom { border-bottom: 1px solid var(--line); }

/* ── Type ─────────────────────────────────────────────────────────────── */

/* The small capital label above a page's title, after a red diamond. */
.eyebrow {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.label {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.label-wide { letter-spacing: 0.24em; }

.diamond { display: inline-block; flex-shrink: 0; width: 10px; height: 10px; }
.eyebrow .diamond { margin-top: 0.45em; }

.title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(44px, 5.6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.01em;
}
.title-home { font-size: clamp(48px, 7vw, 92px); line-height: 1.02; }
.title-home em { position: relative; display: inline-block; font-style: italic; color: var(--red); }

/* The underline under "most", drawn in as the page opens (as on look 1's home page). */
.title-home em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 0.06em;
    background: var(--red);
    opacity: 0.3;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline-grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards;
}
@keyframes underline-grow {
    to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
    .title-home em::after { animation: none; transform: none; }
}
.title-article { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }

.h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(36px, 4.2vw, 52px);
    line-height: 1.06;
}
.h2-big { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }

.h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.15;
}
.h3-30 { font-size: 30px; }
.h3-32 { font-size: 32px; line-height: 1.1; }
.h3-40 { font-size: 40px; line-height: 1.08; }

.lead { font-size: 19px; font-weight: 300; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.note { color: var(--ink-3); font-size: 15px; }
.small { font-size: 16px; }

/* Prices: Playfair Display italic, lining figures. */
.price {
    font-family: var(--price);
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    font-variant-numeric: lining-nums tabular-nums;
}

/* A list whose bullets are small red diamonds. */
.diamonds { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.diamonds li { display: flex; gap: 12px; align-items: baseline; }
.diamonds-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 6px 28px;
    font-size: 16px;
}

.quote {
    position: relative;
    padding-left: 28px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 28px;
    line-height: 1.3;
}
.quote .diamond { position: absolute; left: 0; top: 14px; width: 12px; height: 12px; }

/* ── Buttons and links ────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--radius);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}
.btn-red { background: var(--red); color: #ffffff; }
.btn-red:hover { background: var(--red-deep); color: #ffffff; }
.btn-ink { background: var(--ink); color: #ffffff; }
.btn-ink:hover { background: #000000; color: #ffffff; }
.btn-fog { background: var(--fog); color: var(--ink); }
.btn-fog:hover { background: #e6e8e8; color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-xl { min-height: 56px; padding: 0 32px; font-size: 17px; }

/* A text link with a rule under it ("See all fees"). */
.link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    border-bottom: 1px solid var(--ink);
    align-self: flex-start;
}
.link:hover { border-color: var(--red); }

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    background: var(--fog);
    border-radius: var(--radius);
    font-size: 15px;
}
.chip[aria-current="page"] { background: var(--ink); color: #ffffff; }

/* ── Logo (MARDINI ◆ LAW, outlined shapes in partials/logo.svg) ────────── */

.logo { display: flex; padding: 8px 0; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-lockup { display: block; line-height: 0; }
.logo-svg { display: block; width: 214px; height: auto; }
.logo-small .logo-svg { width: 196px; }
.ft-brand .logo-lockup { color: #ffffff; }
@media (max-width: 400px) {
    .logo-svg { width: 178px; }
}

/* ── Header ───────────────────────────────────────────────────────────── */

/* The header stays at the top, frosted: the page shows faintly through it as it scrolls by. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Once the page is scrolled (site.js), it lifts off the page. */
.site-header.is-scrolled {
    border-bottom-color: transparent;
    box-shadow: 0 1px 0 rgba(26, 30, 30, 0.06), 0 12px 30px -18px rgba(26, 30, 30, 0.35);
}

.hd-wrap {
    max-width: var(--width);
    margin: 0 auto;
    padding: 22px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
}

.hd-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
/* A red rule slides in under a menu link on hover, and stays under the current page's. */
.hd-nav a { position: relative; padding: 6px 0; }
.hd-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hd-nav a:hover::after, .hd-nav a:focus-visible::after, .hd-nav a[aria-current="page"]::after { transform: scaleX(1); }
.hd-nav a:hover { color: var(--ink); }

.hd-actions { display: flex; align-items: center; gap: 12px; }
.hd-phone { padding: 0 18px; font-variant-numeric: tabular-nums; }
.hd-phone svg { width: 19px; height: 19px; display: block; flex-shrink: 0; }
.hd-menu { display: none; width: 44px; padding: 0; }
.hd-menu svg { width: 20px; height: 20px; display: block; }

/* The menu on phones and narrow windows, opened by the menu button (site.js). */
.hd-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
}
.hd-panel.is-open { display: block; max-height: calc(100vh - 77px); overflow-y: auto; }
.hd-panel nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 4px; }
.hd-panel nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
}
.hd-panel nav a[aria-current="page"] { color: var(--red); }
.hd-panel-actions { display: flex; flex-direction: column; gap: 10px; padding: 20px var(--gutter) 28px; }

@media (max-width: 980px) {
    .hd-nav, .hd-book, .hd-num { display: none; }
    .hd-menu { display: inline-flex; }
    .hd-phone { padding: 0; width: 44px; }
    .hd-wrap { padding: 16px var(--gutter); gap: 12px; }
}

@media (min-width: 981px) {
    .hd-panel.is-open { display: none; }
}

/* ── Phones: the Call and Book bar at the bottom, once the page is scrolled ── */

.action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.action-bar.is-shown { transform: none; }
.action-bar svg { width: 17px; height: 17px; }
@media (max-width: 980px) {
    .action-bar { display: grid; }
}

/* ── Sections fade up as they come into view (site.js marks them) ─────── */

.reveal-on [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Closing band ("Start with a conversation.") ──────────────────────── */

.cta { padding: 96px 0; }
.cta .wrap { display: flex; flex-direction: column; gap: 36px; }
.cta p { max-width: 32em; color: var(--on-dark); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.cta-call { display: inline-flex; align-items: center; min-height: 44px; color: #ffffff; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer { background: var(--ink); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
/* Room under the footer for the phone's action bar (after the rule above, so it wins). */
@media (max-width: 980px) { .site-footer .wrap { padding-bottom: 104px; } }
.ft-cols { --min: 220px; gap: 40px; font-size: 15px; }
.ft-col { display: flex; flex-direction: column; gap: 8px; }
.ft-col a { color: var(--on-dark); }
.ft-col a:hover { color: #ffffff; }
.ft-head { color: #ffffff; font-weight: 500; }
.ft-brand { display: flex; flex-direction: column; gap: 18px; }
.ft-legal {
    border-top: 1px solid var(--line-dark);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--faint);
}

/* ── Page opening (eyebrow, title, lead) ──────────────────────────────── */

.page-head { padding-top: 88px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 26px; }
.page-head .lead { max-width: 36em; }

/* ── Memberships band ─────────────────────────────────────────────────── */

.members { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 36px; padding-top: 28px; padding-bottom: 28px; }
.members-label { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.members-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; }
.members-logos a { display: inline-flex; align-items: center; min-height: 44px; }
/* Grey and a little faded until hovered, then in their own colours (as on the current site). */
.members-logos img { display: block; width: 160px; height: auto; filter: grayscale(1); opacity: 0.8; transition: filter 0.3s ease, opacity 0.3s ease; }
.members-logos img:hover, .members-logos a:hover img, .members-logos a:focus-visible img { filter: none; opacity: 1; }

/* ── Article cards ────────────────────────────────────────────────────── */

.cards { --min: 300px; gap: 56px 40px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px; background: var(--fog); }
.card-title { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.15; }
.card-text { color: var(--ink-2); font-size: 16px; }

/* ── Fee lists (name, dotted leader, price) ───────────────────────────── */

.fees { display: flex; flex-direction: column; }
.fee { display: flex; flex-direction: column; padding: 11px 0; }
.fee-line { display: flex; align-items: baseline; gap: 12px; }
.fee-name { font-weight: 500; }
.fee-dots { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted var(--dots); transform: translateY(-5px); }
.fee-price { font-family: var(--price); font-style: italic; font-size: 26px; line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
/* "from" sits on its own line above a starting price; the row lines up on the price's baseline. */
.fee-line-from { align-items: last baseline; }
.fee-line-from .fee-price { display: inline-flex; flex-direction: column; align-items: flex-end; }
.fee-from { font-family: var(--sans); font-style: normal; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.fee-note { color: var(--ink-3); font-size: 15px; }

/* ── Common questions ─────────────────────────────────────────────────── */

.faqs { display: flex; flex-direction: column; gap: 8px; }
.faq { background: var(--fog); padding: 4px 24px; }
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--ink-3); flex-shrink: 0; }
.faq[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 20px; color: var(--ink-2); max-width: 46em; }
.faq-answer a { border-bottom: 1px solid var(--ink); }
.faq-answer a:hover { border-color: var(--red); }

/* ── Numbered steps ("How it works") ──────────────────────────────────── */

.steps { list-style: none; padding: 0; --min: 200px; gap: 44px 48px; }
.steps-wide { --min: 320px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 0.9; color: var(--red); }
.step-title { font-size: 19px; font-weight: 500; }
.step-text { color: var(--ink-2); font-size: 16px; }

/* ── Booking box (the Cal.com calendar) ───────────────────────────────── */

.book { background: var(--fog); padding: 36px; display: flex; flex-direction: column; gap: 22px; min-width: 0; container: book / inline-size; }

/*
    The calendar arrives from Cal.com a second after the page and grows to its
    full height, pushing what is under it down. The box keeps that height from
    the start. Cal.com's month view is about 0.86 times its width plus 380px
    tall with the times under the month (measured Nov 18 2026 at 326 to 656px
    wide), and about 572px with the times beside it, once it is 768px wide.
    100cqw is the inside of the box (its width less its padding); the calendar
    is 24px wider, from its -12px margins.
*/
.book-cal { margin: 0 -12px; min-height: calc(0.86 * (100cqw + 24px) + 380px); }
@container book (min-width: 744px) {
    .book-cal { min-height: 572px; }
}
.book-fallback { display: flex; flex-direction: column; gap: 14px; }
.book-fallback.hidden { display: none; }
@media (max-width: 640px) {
    .book { padding: 28px 20px; }
    .book-cal { margin: 0 -8px; min-height: calc(0.86 * (100cqw + 16px) + 380px); }
}

/* ── Grey box with a heading and a button ("Planning your estate?") ───── */

.aside-box { background: var(--fog); padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.aside-box .btn { align-self: flex-start; }

/* ── Home ─────────────────────────────────────────────────────────────── */

.home-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: stretch; }
.home-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 30px;
    justify-self: end;
    width: 100%;
    max-width: calc(var(--width) / 2);
    padding: 96px var(--gutter) 88px;
}
.home-hero-text .lead { max-width: 34em; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.home-hero-photo { position: relative; min-height: 380px; overflow: hidden; }
@media (max-width: 640px) {
    .home-hero-text { padding-top: 56px; padding-bottom: 56px; }
    .page-head { padding-top: 56px; padding-bottom: 40px; }
    .members-logos { gap: 20px 32px; }
    .members-logos img { width: 136px; }
}
.home-hero-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }

.services-grid { --min: 340px; gap: 40px 48px; }
.service { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; min-height: 190px; }
.service-name { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; }
.service-text { color: var(--ink-2); font-size: 16px; max-width: 24em; }
.service .price { margin-top: auto; }
.service-fees { justify-content: center; padding: 34px 28px; background: var(--ink); color: #ffffff; }
.service-fees:hover { color: #ffffff; background: #000000; }
.service-fees .service-name { font-weight: 500; }
.service-fees span:last-child { font-size: 15px; color: var(--on-dark); }
.price-extra { font-family: var(--sans); font-style: normal; font-size: 15px; color: var(--ink-3); }

.portrait { display: block; width: 100%; max-width: 480px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }

/* ── Services ─────────────────────────────────────────────────────────── */

.practice { --min: 440px; gap: 20px 72px; border-top: 1px solid var(--line); padding-top: 40px; }

.service-row { --min: 440px; gap: 40px 72px; align-items: center; }
.service-row > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.service-row-flip > img { order: 2; }
.service-row-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: 6px; }
@media (max-width: 960px) {
    .service-row-flip > img { order: 0; }
}

/* ── Wills and Probate (a service page) ───────────────────────────────── */

.svc-hero { padding-top: 72px; padding-bottom: 88px; --min: 440px; gap: 56px 72px; align-items: center; }
.svc-hero .lead { max-width: 32em; }
.situations { --min: 440px; gap: 44px 72px; }
.fees-panel { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-top: 96px; padding-bottom: 96px; }
.fees-panel-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fees-panel-list { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fees-panel-list .fees { background: #ffffff; padding: 28px 36px; }
@media (max-width: 640px) {
    .fees-panel-list .fees { padding: 18px 20px; }
}

/* ── Pricing ──────────────────────────────────────────────────────────── */

.pricing-head { padding-top: 88px; padding-bottom: 40px; --min: 460px; gap: 48px; align-items: end; }
.pricing-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; padding-top: 16px; padding-bottom: 28px; }
.pricing-quote { --min: 420px; gap: 40px; align-items: center; }
.pricing-quote p { font-family: var(--serif); font-size: 34px; line-height: 1.25; }

/* The will packages: two groups (one person, couples) of two cards. */
.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.package-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 14px 16px; }
.package-for { grid-column: 1 / -1; font-size: 12px; letter-spacing: 0.24em; }
.package { display: flex; flex-direction: column; gap: 20px; padding: 32px 28px; background: #ffffff; border: 1px solid var(--line); min-width: 0; }
.package-featured { border-color: var(--red); }
.package-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.package-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--fog); }
.package-icon svg { display: block; }
.package-featured .package-icon { background: #fbeeed; color: var(--red); }
.package-tag { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.package-text { color: var(--ink-2); font-size: 15px; min-height: 72px; }
.package-price { display: flex; align-items: baseline; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.package-amount { font-family: var(--price); font-style: italic; font-size: 48px; line-height: 1; font-variant-numeric: lining-nums; }
.package-list { gap: 9px; font-size: 15px; line-height: 1.45; }
.package-book { margin-top: auto; }
@media (max-width: 1180px) {
    .packages { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 620px) {
    .package-group { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .package-text { min-height: 0; }
}

/* A grey box with an icon: will storage, complex estates, what probate's fee leaves out. */
.note-box { display: flex; gap: 20px; align-items: flex-start; background: var(--fog); padding: 28px 32px; }
.note-box-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; background: #ffffff; }
.note-box-icon svg { display: block; }
.band-fog .note-box { background: #ffffff; }
.band-fog .note-box-icon { background: var(--fog); }

/* Every other area: its introduction beside a table of its services. */
.fee-area { --min: 340px; gap: 48px 72px; align-items: start; padding-top: 104px; padding-bottom: 104px; }
.fee-area-table { grid-column: span 2; min-width: 0; }
@media (max-width: 1100px) {
    .fee-area-table { grid-column: auto; }
}
.fee-table { background: #ffffff; border: 1px solid var(--line); }
.fee-table-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 28px; background: var(--ink); color: #ffffff; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.fee-table-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 28px; }
.fee-table-row + .fee-table-row { border-top: 1px solid var(--line); }
.fee-table-price { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; text-align: right; }
.fee-table-amount { font-family: var(--price); font-style: italic; font-size: 30px; line-height: 1.05; white-space: nowrap; font-variant-numeric: lining-nums; }
/* "from" sits on its own line above a starting price. */
.fee-table-from { font-size: 13px; line-height: 1.2; color: var(--ink-3); }
@media (max-width: 520px) {
    .fee-table-head, .fee-table-row { padding-left: 18px; padding-right: 18px; }
    .fee-table-amount { font-size: 26px; }
}

/* ── About ────────────────────────────────────────────────────────────── */

.person { --min: 400px; gap: 40px 72px; align-items: start; }
.person-flip > img { order: 2; justify-self: end; }
@media (max-width: 920px) {
    .person-flip > img { order: 0; justify-self: start; }
}
/* Wide screens: the photo's column is the photo's width, so the gap beside it is the gap and no more. */
@media (min-width: 921px) {
    .person { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); column-gap: 56px; }
    .person-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
}
.bio { color: var(--ink-2); }
.bio p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; font-size: 16px; margin-top: 8px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 520px) {
    .facts { grid-template-columns: 1fr; }
}

/* ── Contact ──────────────────────────────────────────────────────────── */

.contact-grid { padding-top: 24px; padding-bottom: 104px; --min: 440px; gap: 56px 72px; align-items: start; }
.reach { display: flex; flex-direction: column; gap: 6px; }
.reach h2, .reach .reach-head { font-size: 13px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); }
.reach-big { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.1; align-self: flex-start; overflow-wrap: anywhere; }
.reach-address { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.2; }
.office-facts { display: flex; flex-direction: column; gap: 18px; margin: 16px 0 10px; }
.office-facts > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
.office-tile { grid-row: span 2; width: 44px; height: 44px; background: var(--fog); display: flex; align-items: center; justify-content: center; }
.office-tile svg { display: block; }
.office-facts dt { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.office-facts dd { color: var(--ink-2); line-height: 1.5; }
.office-directions { align-self: flex-start; }
.office-directions svg { color: var(--red); }
.office-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.office-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* ── Insights ─────────────────────────────────────────────────────────── */

.topics { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 8px; }
.featured { --min: 440px; gap: 32px 64px; align-items: center; }
.featured img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.featured-text { display: flex; flex-direction: column; gap: 16px; }
.featured-kicker { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.featured-title { font-family: var(--serif); font-size: clamp(34px, 3.8vw, 48px); font-weight: 600; line-height: 1.1; }
.featured-meta { font-size: 14px; color: var(--ink-3); }
.paths { --min: 300px; gap: 16px; }
.path { display: flex; flex-direction: column; gap: 8px; background: var(--fog); padding: 28px 32px; }
.path-count { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

/* ── An article (and the privacy policy) ──────────────────────────────── */

.article-head { display: flex; flex-wrap: wrap; gap: 0 72px; padding-top: 80px; padding-bottom: 40px; }
.article-side { flex: 1 1 220px; max-width: 300px; align-self: stretch; }
.article-main { flex: 999 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 22px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 15px; color: var(--ink-3); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.byline strong { color: var(--ink); font-weight: 500; }
.byline a strong { border-bottom: 1px solid var(--line); }
.byline a:hover strong { color: var(--red); border-color: var(--red); }
.article-photo { display: block; width: 100%; max-width: var(--width); height: auto; margin: 0 auto; aspect-ratio: 21 / 9; object-fit: cover; }
.article-body { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; padding-top: 64px; padding-bottom: 96px; }
.toc { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.toc .label { margin-bottom: 8px; letter-spacing: 0.2em; }
.toc a { color: var(--ink-2); min-height: 32px; display: inline-flex; align-items: center; line-height: 1.35; padding: 4px 0; }
.toc a.is-current { color: var(--red); }
@media (max-width: 860px) {
    .article-side:empty { display: none; }
    .toc { position: static; }
}
.author-box { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; background: var(--fog); padding: 28px 32px; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.author-box > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; }
.disclaimer { color: var(--ink-3); font-size: 15px; font-style: italic; }

/* The text of a post or a legal page, from Markdown. */
.prose { color: var(--prose); font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 22px; }
.prose > p:first-child { font-size: 22px; font-weight: 300; }
.prose h2 { margin-top: 42px; font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.12; color: var(--ink); scroll-margin-top: 24px; }
.prose h3 { margin-top: 32px; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.15; color: var(--ink); }
.prose h4 { margin-top: 28px; font-size: 19px; font-weight: 500; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 10px; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { border-bottom: 1px solid var(--ink); }
.prose a:hover { border-color: var(--red); }
.prose blockquote {
    position: relative;
    margin: 34px 0;
    padding-left: 28px;
    border-left: 2px solid var(--red);
    font-family: var(--serif);
    font-style: italic;
    font-size: 28px;
    line-height: 1.3;
    color: var(--ink);
}
.prose img { display: block; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 17px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--ink); }
.prose code { font-size: 0.9em; }
.prose-legal > p:first-child { font-size: 19px; font-weight: 400; }

/* ── Probate fee calculator ───────────────────────────────────────────── */

.calc { padding-top: 24px; padding-bottom: 104px; --min: 440px; gap: 56px 72px; align-items: start; }
.calc-form { display: flex; flex-direction: column; gap: 36px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 18px; font-weight: 500; }
.field-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fog);
    padding: 0 18px;
    min-height: 56px;
    border-radius: var(--radius);
    max-width: 360px;
}
.field-input span { color: var(--ink-3); }
.field-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 20px; color: var(--ink); min-height: 44px; outline-offset: 4px; }
.choice { display: flex; gap: 8px; }
.choice button { min-height: 48px; padding: 0 26px; border: 0; border-radius: var(--radius); font: inherit; font-size: 16px; cursor: pointer; background: var(--fog); color: var(--ink); }
.choice button[aria-pressed="true"] { background: var(--ink); color: #ffffff; }
.result { background: var(--ink); color: #ffffff; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.result-label { color: var(--on-dark); font-size: 15px; }
.result-big { font-family: var(--price); font-style: italic; font-size: 64px; line-height: 1.05; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.result-small { font-family: var(--price); font-style: italic; font-size: 28px; font-variant-numeric: lining-nums; }
.result-pair { --min: 150px; gap: 20px 32px; }
.result p { color: var(--on-dark); font-size: 15px; }
@media (max-width: 640px) {
    .result { padding: 28px 24px; }
    .result-big { font-size: 48px; }
}

/* ── Not found ────────────────────────────────────────────────────────── */

.not-found { padding-top: 120px; padding-bottom: 140px; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }

/* ── The current site's pieces, in this look ─────────────────────────────── */

/* Ticks under the home page's buttons. */
.checks { list-style: none; padding: 24px 0 0; margin-top: 8px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-3); font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: center; }

/* Key figures on a dark band. */
.stats { padding: 64px 0; }
.stats-grid { --min: 200px; gap: 36px 40px; }
.stats-grid div { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; text-align: center; }
.stats-grid dd { margin: 0; font-family: var(--price); font-size: clamp(48px, 6vw, 68px); line-height: 1; font-variant-numeric: lining-nums; }
.stats-grid dd span { color: var(--red); font-size: 0.55em; margin: 0 2px; }
.stats-grid dt { color: var(--on-dark); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5; }

/* "Learn more" at the foot of a service. */
.service-more { margin-top: auto; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.service:hover .service-more { text-decoration: underline; text-underline-offset: 4px; }

/* The closing band on most pages: heading, words, two buttons, three points. */
.closing { padding: 104px 0; text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.closing p { max-width: 38em; color: var(--on-dark); font-size: 18px; }
.closing .h2 em { font-style: italic; color: #ffffff; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn-line { border: 1px solid var(--line-dark); color: #ffffff; }
.btn-line:hover { border-color: #ffffff; color: #ffffff; }
.closing-points { --min: 220px; width: 100%; margin-top: 24px; padding-top: 40px; border-top: 1px solid var(--line-dark); gap: 24px 36px; text-align: left; }
.closing-points div { display: flex; flex-direction: column; gap: 4px; }
.closing-points h3 { font-size: 16px; font-weight: 500; color: #ffffff; display: flex; gap: 10px; align-items: center; }
.closing-points p { font-size: 15px; }

/* A page heading's line in the serif italic, as on the current site. */
.lead-serif { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink-2); }
/* A red word in a heading ("Done right."). */
.red-em { font-style: italic; color: var(--red); }
.link-red { color: var(--red); }
/* The services page's list of its sections. */
.jump-list { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.jump-list a { display: flex; gap: 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
.jump-list a:hover { color: var(--red); }

/* Service pages (Wills, Probate) as the current site lays them out. */
.title-accent { display: block; }
.situation-cards { --min: 240px; gap: 18px; }
.situation { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #ffffff; border: 1px solid var(--line); }
.situation .h3 { font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 1.35; }
.package-row { --min: 240px; gap: 16px; }
.package-row .package-text { min-height: 0; }
a.package { color: inherit; transition: border-color 0.2s; }
a.package:hover { border-color: var(--red); color: inherit; }
.steps-dark { --min: 180px; }
.steps-dark li { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.steps-dark .step-text { color: var(--on-dark); }
.book-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.book-foot .note { width: 100%; font-size: 14px; }
.lawyer-box { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 40px; background: #ffffff; border: 1px solid var(--line); }
.lawyer-box img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; background: var(--fog); }
@media (max-width: 640px) { .lawyer-box { grid-template-columns: 1fr; padding: 28px; gap: 24px; } .lawyer-box img { width: 120px; height: 120px; } }
.prose-small p { color: var(--ink-2); font-size: 15px; }
.prose-small p + p { margin-top: 8px; }
.prose-small a { border-bottom: 1px solid var(--red); }

/* About: the languages under a bio, and the closing photo. */
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.banner-photo { display: block; width: 100%; height: clamp(320px, 42vw, 600px); object-fit: cover; }

/* Contact: the calendar full width under the words, and the map. */
.book-wide { background: #ffffff; border: 1px solid var(--line); }
@container book (min-width: 744px) { .book-wide .book-cal { min-height: 572px; } }
.map { height: 320px; overflow: hidden; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; filter: grayscale(1) contrast(1.05); }

/* Insights: the dark card among the posts. */
.promo { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 300px; padding: 32px; background: var(--ink); color: #ffffff; }
.promo span { color: var(--on-dark); }
.promo .h3, .promo .btn { color: #ffffff; }
.link-light { color: #ffffff; }

/* A post's side column: "On this page" and a booking box, following the reader down (wide screens). */
.article-side-stick { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 36px; }
.article-side-stick .toc { position: static; }
.side-box { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--fog); }
.side-box .h3 { font-size: 24px; line-height: 1.2; }
.side-box .btn { justify-content: center; }
@media (max-width: 860px) {
    .article-side-stick { position: static; }
    .side-box { display: none; }
}
/* The dark box after a post, and the share buttons. */
.aside-dark { background: var(--ink); color: var(--on-dark); }
.aside-dark .h3 { color: #ffffff; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.share .btn { gap: 8px; }
.card-date { margin-top: auto; padding-top: 6px; font-size: 14px; }
