/* Law Office Kristina Bobeva-Teneva (bobeva-law.com).
   The red plate, the grey and the panel of the old site; Libre Franklin for everything, Old Standard TT
   Italic for the names of periodicals; the shelf of the attorney's own publications as the one loud thing. */

@font-face {
    font-family: 'Libre Franklin';
    src: url('/fonts/libre-franklin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Old Standard TT';
    src: url('/fonts/old-standard-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --red: #b8352e;        /* the plate: a step deeper than the old footer band #C53C34 */
    --red-lit: #d14747;    /* the old header plate */
    --red-deep: #8f231d;
    --red-night: #6d1814;
    --rose: #ffb1a9;       /* red for text on graphite */
    --ink: #26272b;        /* the old grey #666666, deepened */
    --ink-2: #34353a;
    --slate: #666;         /* the old grey itself */
    --line: #dcdcde;
    --panel: #f0f0f0;      /* the old menu panel */
    --white: #fff;
    --newsprint: #f1eee8;

    --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    --serif: 'Old Standard TT', Georgia, 'Times New Roman', serif;

    --pad: clamp(1rem, 4vw, 2rem);
    --r: 14px;
    --r-lg: 26px;
    --shelf-h: clamp(262px, 31vw, 390px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

img,
svg {
    max-width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.85rem, 1.1rem + 3vw, 3.1rem);
    max-width: 18em;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--red-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: 3px;
}

.per {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: var(--pad);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    border-radius: 0 0 10px 10px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
}

.skip:focus {
    top: 0;
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s, transform 0.18s;
}

.btn:hover {
    background: var(--red-deep);
    transform: translateY(-2px);
}

.btn.btn-light {
    background: var(--white);
    color: var(--red-deep);
}

.btn.btn-light:hover {
    background: var(--ink);
    color: var(--white);
}

.more {
    font-weight: 700;
}

/* ---- header ---- */

.top {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem clamp(0.6rem, 2vw, 1rem);
    padding-block: 0.7rem;
}

.brand {
    display: grid;
    margin-right: auto;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.15;
}

.brand-kind {
    display: block;
    color: var(--slate);
    font-size: 0.78rem;
    font-weight: 500;
}

.brand-name {
    display: block;
    font-size: clamp(1rem, 0.75rem + 1.2vw, 1.16rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s;
}

.call:hover {
    background: var(--red-deep);
}

.lang {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: var(--panel);
    font-size: 0.82rem;
    font-weight: 700;
}

.lang a,
.lang span {
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.2;
}

.lang span {
    background: var(--ink);
    color: var(--white);
}

.lang a:hover {
    background: var(--white);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
    gap: 0.1rem 1.15rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav a {
    padding: 0.35rem 0;
    border-bottom: 3px solid transparent;
    color: var(--ink);
    text-decoration: none;
}

.nav a:hover {
    border-bottom-color: var(--line);
}

.nav a[aria-current] {
    border-bottom-color: var(--red);
    color: var(--red-deep);
}

@media (max-width: 559px) {
    .call {
        padding: 0;
    }

    .call-number {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    /* only the other language, to keep the first row on one line */
    .lang span {
        display: none;
    }

    .lang a {
        padding: 0.55rem 0.75rem;
    }
}

@media (max-width: 899px) {
    /* The menu button (/js/site.js shows it and marks the header .has-menu): the navigation and the
       language switch fold away behind it. Without the script both stay in view. */
    .menu-btn:not([hidden]) {
        display: inline-flex;
        order: 1;
    }

    .top.has-menu .nav,
    .top.has-menu .lang {
        display: none;
    }

    .top.menu-open .nav {
        display: flex;
        flex-direction: column;
        order: 2;
        margin-top: 0.2rem;
        border-top: 1px solid var(--line);
    }

    .top.menu-open .nav a {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }

    .top.menu-open .nav a[aria-current] {
        padding-left: 0.8rem;
        border-bottom-color: var(--line);
        box-shadow: inset 3px 0 0 var(--red);
    }

    .top.menu-open .lang {
        display: inline-flex;
        order: 3;
        margin-block: 0.3rem 0.4rem;
    }
}

.menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
}

.menu-bars {
    display: grid;
    gap: 4px;
    width: 18px;
}

.menu-bars i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(2) {
    opacity: 0;
}

.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1180px) {
    .top {
        position: sticky;
        top: 0;
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .nav {
        flex-basis: auto;
        order: 1;
        margin-right: 0.5rem;
    }

    .call {
        order: 2;
    }

    .lang {
        order: 3;
    }
}

/* ---- hero: the red plate and the shelf ---- */

.hero {
    position: relative;
    background-color: var(--red);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90rem 40rem at 0% 0%, rgba(209, 71, 71, 0.55), transparent 60%),
        linear-gradient(180deg, transparent 55%, rgba(109, 24, 20, 0.5));
    pointer-events: none;
}

.hero :focus-visible {
    outline-color: var(--white);
}

.hero-grid {
    position: relative;
    display: grid;
    gap: clamp(2rem, 6vw, 3.5rem);
    padding-top: clamp(2.5rem, 7vw, 6rem);
}

.hero-text {
    padding-bottom: clamp(0rem, 3vw, 4.5rem);
}

.hero h1 {
    font-size: clamp(2.2rem, 0.9rem + 4.4vw, 4.6rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.h1-kind {
    display: block;
    margin-bottom: 0.9rem;
    font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.h1-name {
    display: block;
}

.hero-lede {
    max-width: 30em;
    margin: clamp(1.25rem, 3vw, 2rem) 0 0;
    font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.5rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-actions .btn {
    font-size: 1.15rem;
}

.hero-gsm {
    color: var(--white);
    font-weight: 600;
}

.shelf {
    display: flex;
    align-items: flex-end;
    gap: clamp(2px, 0.4vw, 5px);
    height: var(--shelf-h);
    min-width: 0;
}

.spine {
    display: block;
    flex: var(--w, 1) 1 0;
    min-width: 0;
    max-width: 58px;
    height: calc(var(--shelf-h) * var(--h, 1));
    text-decoration: none;
}

.spine-body {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: calc(var(--shelf-h) * 0.045) 0;
    border-radius: 3px 3px 0 0;
    background: var(--white);
    color: var(--red-deep);
    box-shadow: inset -5px 0 8px -5px rgba(0, 0, 0, 0.28), inset 3px 0 0 rgba(255, 255, 255, 0.14);
    transform-origin: bottom left;
    transition: translate 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spine-body::before,
.spine-body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.55;
}

.spine-body::before {
    top: calc(var(--shelf-h) * 0.022);
}

.spine-body::after {
    bottom: calc(var(--shelf-h) * 0.022);
}

.spine-name,
.spine-issue {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    line-height: 1;
}

.spine-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: calc(var(--shelf-h) * 0.05);
}

.spine-issue {
    font-size: max(10.5px, calc(var(--shelf-h) * 0.036));
    font-weight: 700;
}

.spine-tp {
    --w: 1.1;
    --h: 1;
}

.spine-bz {
    --w: 1;
    --h: 0.9;
}

.spine-bz .spine-body {
    background: var(--ink);
    color: var(--white);
}

.spine-sp {
    --w: 0.85;
    --h: 0.84;
    margin-right: calc(var(--shelf-h) * 0.066);
}

.spine-sp .spine-body {
    background: #dedee1;
    color: var(--ink);
    rotate: 4.5deg;
}

.spine-pp {
    --w: 1.2;
    --h: 0.95;
}

.spine-pp .spine-body {
    background: var(--red-night);
    color: var(--white);
}

.spine-last:not(.spine-sp) {
    margin-right: clamp(1px, 0.5vw, 6px);
}

.spine:hover .spine-body,
.spine:focus-visible .spine-body {
    translate: 0 -12px;
}

.pile {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-end;
    width: clamp(62px, 13vw, 140px);
    margin-left: clamp(6px, 1.6vw, 20px);
    color: var(--white);
    text-decoration: none;
}

.pile-label {
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.pile-name {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.25rem, 0.9rem + 1.3vw, 1.9rem);
}

.pile-count {
    display: block;
    font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.86rem);
    font-weight: 700;
}

.pile-papers {
    display: flex;
    flex-direction: column-reverse;
    transition: translate 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pile-papers i {
    display: block;
    height: clamp(4px, 0.62vw, 7px);
    margin-top: 1px;
    border-radius: 1px 4px 4px 1px;
    background: var(--newsprint);
    box-shadow: inset -6px 0 5px -4px rgba(0, 0, 0, 0.22);
}

.pile-papers i:nth-child(3n) {
    margin-inline: 4% -3%;
    background: #e3dfd7;
}

.pile-papers i:nth-child(4n + 1) {
    margin-inline: -4% 6%;
}

.pile-papers i:nth-child(7n + 2) {
    margin-inline: 7% -5%;
    background: #d9d5cc;
}

.pile:hover .pile-papers,
.pile:focus-visible .pile-papers {
    translate: 0 -8px;
}

.shelf-board {
    position: relative;
    height: 14px;
    background: var(--ink);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.shelf-strip {
    position: relative;
    background: var(--panel);
    color: var(--ink);
}

.shelf-note {
    min-height: 5.6rem;
    margin: 0 auto;
    padding-block: 1.1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.shelf-note .per {
    margin-right: 0.3em;
    color: var(--red-deep);
    font-size: 1.14em;
}

.shelf-strip :focus-visible {
    outline-color: var(--ink);
}

@media (min-width: 1040px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
        align-items: end;
    }

    .shelf {
        justify-content: flex-end;
    }
}

/* the one orchestrated moment: the issues are shelved one by one, the thin one tips over,
   the newspapers land sheet by sheet */
@media (prefers-reduced-motion: no-preference) {
    .spine-body {
        animation: shelve 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        animation-delay: calc(var(--i) * 60ms + 120ms);
    }

    .spine-sp .spine-body {
        animation: shelve 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both, tip 0.55s cubic-bezier(0.5, 0, 0.3, 1.4) both;
        animation-delay: calc(var(--i) * 60ms + 120ms), 1.15s;
    }

    .pile-label {
        animation: fade 0.5s both;
        animation-delay: 2.15s;
    }

    .pile-papers i {
        animation: land 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        animation-delay: calc(var(--k) * 45ms + 1.25s);
    }
}

@keyframes shelve {
    from {
        translate: 0 -54px;
        opacity: 0;
    }
}

@keyframes tip {
    from {
        rotate: 0deg;
    }
}

@keyframes land {
    from {
        translate: 0 -30px;
        opacity: 0;
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

/* ---- inner pages: the plate with a few blank spines ---- */

.page-hero {
    position: relative;
    background-color: var(--red);
    color: var(--white);
    border-bottom: 14px solid var(--ink);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90rem 40rem at 0% 0%, rgba(209, 71, 71, 0.55), transparent 60%),
        linear-gradient(180deg, transparent 55%, rgba(109, 24, 20, 0.5));
    pointer-events: none;
}

.page-hero .wrap {
    position: relative;
    padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.25rem, 6vw, 4.5rem);
}

.page-hero h1 {
    max-width: 14em;
    font-size: clamp(2.3rem, 1.2rem + 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.page-hero .lead {
    max-width: 34em;
    margin: 1.25rem 0 0;
    font-size: clamp(1.08rem, 1rem + 0.5vw, 1.28rem);
    line-height: 1.5;
}

.page-hero :focus-visible {
    outline-color: var(--white);
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.crumbs li + li::before {
    content: '/';
    margin: 0 0.6rem;
}

.crumbs a {
    color: var(--white);
    text-underline-offset: 3px;
}

.blank-spines {
    position: absolute;
    right: var(--pad);
    bottom: 0;
    display: none;
    align-items: flex-end;
    gap: 4px;
}

.blank-spines i {
    display: block;
    width: 30px;
    height: 150px;
    border-radius: 3px 3px 0 0;
    background: var(--white);
    box-shadow: inset -5px 0 8px -5px rgba(0, 0, 0, 0.28);
}

.blank-spines i:nth-child(2) {
    height: 132px;
    background: var(--ink);
}

.blank-spines i:nth-child(3) {
    height: 132px;
    background: var(--ink);
}

.blank-spines i:nth-child(4) {
    width: 24px;
    height: 118px;
    margin-right: 10px;
    background: #dedee1;
    rotate: 4.5deg;
    transform-origin: bottom left;
}

.blank-spines i:nth-child(5) {
    width: 34px;
    height: 142px;
    background: var(--red-night);
}

@media (min-width: 900px) {
    .blank-spines {
        display: flex;
    }

    .page-hero .wrap {
        padding-right: 240px;
    }
}

/* ---- bands ---- */

.band {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.band-tint {
    background: var(--panel);
}

.band-ink {
    background: var(--ink);
    color: var(--white);
}

.band-ink a {
    color: var(--white);
}

.band-ink :focus-visible {
    outline-color: var(--white);
}

.band > .wrap > h2 {
    margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.split {
    display: grid;
    gap: clamp(2rem, 6vw, 5rem);
}

.prose {
    max-width: 38em;
}

.prose .lead,
.lead {
    font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem);
    line-height: 1.45;
}

.year {
    display: grid;
    margin: clamp(1.5rem, 4vw, 3rem) 0 0;
}

.year b {
    color: var(--red);
    font-size: clamp(5rem, 2rem + 14vw, 11rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.06em;
}

.year span {
    margin-top: 0.8rem;
    color: var(--slate);
    font-weight: 600;
}

@media (min-width: 860px) {
    .split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

/* three kinds of work */

.kinds {
    display: grid;
    gap: 1rem;
}

.kind {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.4rem, 3vw, 2.25rem);
    border-radius: var(--r-lg);
}

.kind h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.kind p {
    margin: 0;
}

.kind.kind-ink {
    background: var(--ink);
    color: var(--white);
}

.kind.kind-red {
    background: var(--red);
    color: var(--white);
}

.kind.kind-white {
    background: var(--white);
    color: var(--ink);
}

@media (min-width: 860px) {
    .kinds {
        grid-template-columns: 1.25fr 1fr 1fr;
    }

    .kind {
        min-height: 21rem;
    }
}

/* practice areas as an index */

.index {
    margin: 0;
    padding: 0;
    border-top: 3px solid var(--ink);
    list-style: none;
}

.index a {
    display: grid;
    gap: 0.3rem 2rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, padding 0.2s;
}

.index-name {
    font-size: clamp(1.35rem, 1rem + 1.7vw, 2.15rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.index-sum {
    color: var(--slate);
    transition: color 0.2s;
}

.index a:hover,
.index a:focus-visible {
    padding-inline: 1.1rem;
    background: var(--red);
    color: var(--white);
}

.index a:hover .index-sum,
.index a:focus-visible .index-sum {
    color: var(--white);
}

@media (min-width: 860px) {
    .index a {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        align-items: baseline;
    }
}

/* the attorney */

.attorney-grid {
    display: grid;
    gap: clamp(2.25rem, 6vw, 5rem);
    align-items: center;
}

.portrait {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: var(--r);
    box-shadow: 16px 16px 0 var(--red);
}

.facts {
    margin: clamp(1.25rem, 3vw, 2rem) 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #c9c9cc;
}

.facts li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #c9c9cc;
    font-size: 1.1rem;
    font-weight: 500;
}

@media (min-width: 760px) {
    .attorney-grid {
        grid-template-columns: 216px minmax(0, 1fr);
    }
}

/* where the office is */

.where-grid {
    display: grid;
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}

.where-address {
    margin: clamp(1.25rem, 3vw, 2rem) 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.where-contacts {
    display: grid;
    gap: 0.75rem;
    margin: 1.75rem 0;
}

.where-contacts dt {
    color: #d6d6d9;
    font-size: 0.9rem;
}

.where-contacts dd {
    margin: 0;
    font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.where-contacts a {
    text-decoration: none;
}

.where-contacts a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

@media (min-width: 900px) {
    .where-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }
}

.plan {
    margin: 0;
}

.plan svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-lg);
}

.plan-ground {
    fill: var(--panel);
}

.plan-blocks rect {
    fill: #d4d4d8;
}

.plan-court {
    fill: var(--ink);
}

.plan-court-text {
    fill: var(--white);
    font: 600 17px var(--sans);
}

.plan-streets text {
    fill: var(--ink);
    font: 500 18px var(--sans);
}

.plan-office path,
.plan-office circle {
    fill: var(--red);
}

.plan-office circle {
    stroke: var(--white);
    stroke-width: 3;
}

.plan-office text {
    fill: var(--white);
    font: 700 19px var(--sans);
}

.plan figcaption {
    margin-top: 0.8rem;
    color: var(--slate);
    font-size: 0.92rem;
}

.band-ink .plan figcaption {
    color: #d6d6d9;
}

.band-tint .plan-ground {
    fill: var(--white);
}

/* ---- practice page ---- */

.modes {
    display: grid;
    gap: 1rem;
}

.mode {
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
    border-radius: var(--r-lg);
    background: var(--white);
}

.mode h3 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.mode p:last-child {
    margin-bottom: 0;
}

.mode.mode-ink {
    background: var(--ink);
    color: var(--white);
}

@media (min-width: 860px) {
    .modes {
        grid-template-columns: 1fr 1fr;
    }
}

.area {
    padding-top: clamp(1.25rem, 3vw, 2rem);
    border-top: 3px solid var(--ink);
}

.area h2 {
    margin: 1.75rem 0 0.9rem;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem);
    letter-spacing: -0.03em;
}

.ticks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticks li {
    position: relative;
    max-width: 44em;
    padding: 0.5rem 0 0.5rem 1.6rem;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--red);
}

.ticks ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.ticks ul li {
    padding: 0.15rem 0;
    list-style: disc;
}

.ticks ul li::before {
    content: none;
}

.area-note {
    max-width: 44em;
    margin: 1.5rem 0 0;
    padding: 1.1rem 1.3rem;
    border-left: 5px solid var(--red);
    border-radius: 0 var(--r) var(--r) 0;
    background: var(--panel);
}

/* the other areas, at the foot of an area page */

.area-more {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-bottom: 1.25rem;
}

.area-more h2 {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem);
    letter-spacing: -0.03em;
}

.area-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.area-links a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 0.18s, color 0.18s;
}

.area-links a:hover {
    background: var(--red);
    color: var(--white);
}

/* ---- about ---- */

.about-office .year {
    margin-top: 0;
}

.profile {
    display: grid;
    gap: clamp(2.25rem, 6vw, 5rem);
}

.profile-name {
    margin-bottom: 0.4rem;
}

.profile-role {
    color: var(--slate);
    font-size: 1.15rem;
    font-weight: 600;
}

@media (min-width: 760px) {
    .profile {
        grid-template-columns: 216px minmax(0, 1fr);
        align-items: start;
    }
}

/* ---- publications ---- */

.pub-group {
    display: grid;
    gap: 1rem clamp(2rem, 5vw, 4rem);
    padding-block: clamp(1.75rem, 4vw, 2.75rem);
    border-top: 3px solid var(--ink);
    scroll-margin-top: 5.5rem;
}

.pub-head h2 {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.pub-head p {
    margin: 0.5rem 0 0;
    color: var(--slate);
    font-weight: 600;
}

.pub-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pub-list li {
    display: grid;
    gap: 0.15rem 1.25rem;
    padding: 0.9rem 0.6rem;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 6.5rem;
}

.pub-list li:first-child {
    padding-top: 0.3rem;
}

.pub-list li:target {
    border-radius: 10px;
    background: #fbe9e7;
    box-shadow: inset 5px 0 0 var(--red);
}

.pub-issue {
    color: var(--red-deep);
    font-weight: 700;
    white-space: nowrap;
}

.pub-title {
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .pub-list li {
        grid-template-columns: 7.2rem minmax(0, 1fr);
        align-items: baseline;
    }
}

@media (min-width: 960px) {
    .pub-group {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .pub-head {
        position: sticky;
        top: 6rem;
        align-self: start;
    }
}

/* ---- contact ---- */

.contact-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
}

.contact-lines {
    display: grid;
    gap: 1.1rem;
    margin: 0 0 2rem;
}

.contact-lines dt {
    color: var(--slate);
    font-size: 0.92rem;
    font-weight: 600;
}

.contact-lines dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-lines .big a {
    color: var(--ink);
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-decoration: none;
}

.contact-lines .big a:hover {
    color: var(--red-deep);
}

.contact-lines dd a {
    overflow-wrap: anywhere;
}

.form-card {
    padding: clamp(1.4rem, 3.5vw, 2.5rem);
    border-radius: var(--r-lg);
    background: var(--panel);
    scroll-margin-top: 6rem;
}

.form-card h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
}

.contact-form > div {
    margin-bottom: 1.1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1.5px solid #8b8c92;
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.contact-form textarea {
    min-height: 9rem;
    resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    border-color: var(--red);
    outline: 3px solid var(--red);
    outline-offset: 1px;
}

.contact-form ::placeholder {
    color: #6b6c72;
    opacity: 1;
}

.contact-form ul {
    margin: 0 0 0.35rem;
    padding: 0;
    color: var(--red-deep);
    font-size: 0.92rem;
    font-weight: 600;
    list-style: none;
}

.form-hint {
    margin: 0.9rem 0 0;
    color: #55565b;
    font-size: 0.9rem;
}

.contact-sent {
    margin-bottom: 1.25rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
}

.contact-sent strong {
    display: block;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

/* ---- call band and footer ---- */

.cta {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--ink);
    color: var(--white);
}

.cta :focus-visible {
    outline-color: var(--white);
}

.cta-row {
    display: grid;
    gap: 1.75rem 3rem;
    align-items: center;
}

.cta h2 {
    margin-bottom: 0.6rem;
}

.cta p {
    max-width: 30em;
    margin: 0;
    color: #e4e4e6;
}

.cta-actions {
    display: grid;
    gap: 0.5rem;
    justify-items: start;
}

.cta-phone {
    color: var(--white);
    font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
    text-decoration: none;
}

.cta-phone:hover {
    color: var(--rose);
}

.cta-actions .btn {
    margin-top: 0.75rem;
}

.cta .btn.btn-light:hover {
    background: var(--red);
    color: var(--white);
}

.band-ink .btn.btn-light {
    color: var(--red-deep);
}

.band-ink .btn.btn-light:hover {
    background: var(--red);
    color: var(--white);
}

@media (min-width: 860px) {
    .cta-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.foot {
    padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--white);
    font-size: 0.97rem;
}

.foot-grid {
    display: grid;
    gap: 2rem;
}

.foot h2 {
    margin-bottom: 0.7rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.foot p {
    margin: 0;
}

.foot .foot-brand {
    margin-bottom: 0.9rem;
    line-height: 1.15;
}

.foot-brand .brand-name {
    font-size: 1.4rem;
}

.foot-about p:last-child {
    max-width: 24em;
    color: #55565b;
}

.foot-phone {
    font-weight: 700;
    white-space: nowrap;
}

.foot-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.foot-nav a,
.foot address a,
.foot p a {
    display: inline-block;
    padding-block: 0.15rem;
}

.foot-bottom {
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: #55565b;
    font-size: 0.9rem;
}

@media (min-width: 700px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .foot-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr 0.9fr;
    }
}

/* ---- 404 ---- */

.not-found {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    padding: 2rem var(--pad);
    background: var(--red);
    color: var(--white);
}

.not-found > div {
    width: 100%;
    max-width: 38rem;
}

.not-found .foot-brand {
    margin-bottom: 2.5rem;
}

.not-found .brand-kind {
    color: var(--white);
}

.not-found h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 1.2rem + 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.not-found h2 {
    margin-bottom: 0.6rem;
    font-size: 1.5rem;
}

.not-found a {
    color: var(--white);
}

.not-found .btn.btn-light {
    color: var(--red-deep);
}

.not-found .btn.btn-light:hover {
    color: var(--white);
}

.not-found [lang='en'] {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 14px solid var(--ink);
}

.not-found :focus-visible {
    outline-color: var(--white);
}

/* ---- motion ---- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
