@charset "UTF-8";

/* ---------------------------------------------------------------------------
   Marianne Jacobi — Advokatur · Notariat · Mediation, Bern
   Statische Website, kein JavaScript.

   Identität der alten Seite bleibt: salbeigrüner Grund, Wortmarke in
   TheSerif/#003a7c, gepunktete Linien. Die Punktlinie ist hier nicht nur
   Trenner, sondern trägt die Struktur — sie steht auch senkrecht zwischen
   Text und Nebenspalte und unter jeder Bildunterschrift.

   Die Startseite ist ein Abschiedsbrief. Darum steht ihr Fliesstext in der
   Serife und gross: er ist der Inhalt, nicht die Beigabe.
   --------------------------------------------------------------------------- */

@font-face {
    font-family: 'TheSerif';
    src: url('../fonts/TheSerif_4_SemiLight_Plain.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;

    --sage: #b5c1bb;
    --sage-soft: #d1d7d2;
    /* Kein reines Weiss: eine Spur wärmer wirkt auf dem Grün wie Papier. */
    --paper: #fffefb;

    --ink: #2a2f2d;
    --ink-soft: #626a67;
    --blue: #003a7c;
    --blue-bright: #0a56ad;

    --rule: rgba(42, 47, 45, .3);
    --rule-faint: rgba(42, 47, 45, .17);

    --font-display: 'TheSerif', Georgia, 'Times New Roman', serif;
    --font-text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --space-xs: .5rem;
    --space-s: 1rem;
    --space-m: 1.75rem;
    --space-l: clamp(2rem, 1.2rem + 3vw, 3.5rem);
    --space-xl: clamp(2.75rem, 1.6rem + 4.5vw, 5rem);

    --shell: 68rem;
    --radius: 2px;
}

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

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

body {
    margin: 0;
    background: var(--sage-soft);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Die Startseite trug schon im Original den kräftigeren Grünton. */
body.is-home {
    background: var(--sage);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue);
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--blue-bright);
}

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

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: var(--space-s);
    top: var(--space-s);
    z-index: 10;
    padding: .6rem 1rem;
    background: var(--paper);
    border-radius: var(--radius);
    text-decoration: none;
}

.shell {
    width: min(100% - 2rem, var(--shell));
    margin-inline: auto;
    padding-block: var(--space-xl);
}

/* --- Kopf ---------------------------------------------------------------- */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-m) var(--space-l);
    padding-bottom: var(--space-m);
    border-bottom: 1px dotted var(--rule);
    margin-bottom: var(--space-l);
}

.wordmark {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wordmark__name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 1.55rem + 2.3vw, 3rem);
    line-height: 1.05;
    letter-spacing: .005em;
    color: var(--blue);
}

.wordmark__sub {
    display: block;
    margin-top: .7rem;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Gesperrte Versalien wie bei "ADVOKATUR · NOTARIAT · MEDIATION", den
   Bildunterschriften und den Spaltenkoepfen: ein Satz Auszeichnungen fuer die
   ganze Seite, damit neben der grossen Serife nichts beliebig wirkt. */
.nav a {
    display: inline-block;
    padding: .15rem 0;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

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

.nav a[aria-current='page'] {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* --- Papierbogen --------------------------------------------------------- */

.card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: var(--space-xl) var(--space-l);
    box-shadow: 0 1px 1px rgba(42, 47, 45, .07), 0 6px 18px rgba(42, 47, 45, .06);
}

h1 {
    margin: 0 0 var(--space-m);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.85rem, 1.45rem + 1.7vw, 2.6rem);
    line-height: 1.15;
    color: var(--blue);
}

h2 {
    margin: var(--space-l) 0 var(--space-xs);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
    line-height: 1.3;
    color: var(--ink);
}

h2:first-child {
    margin-top: 0;
}

p {
    margin: 0 0 var(--space-s);
    max-width: 62ch;
}

.lead {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.07rem + .4vw, 1.35rem);
    line-height: 1.68;
    max-width: 46ch;
}

.subtitle {
    margin-top: -1.1rem;
    margin-bottom: var(--space-m);
    font-size: .95rem;
    letter-spacing: .02em;
    color: var(--ink-soft);
}

/* --- Startseite: Brief + Nebenspalte ------------------------------------- */

.letter p {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.04rem + .3vw, 1.22rem);
    line-height: 1.75;
    max-width: 44ch;
}

.letter p:first-of-type {
    font-size: clamp(1.25rem, 1.12rem + .6vw, 1.5rem);
    line-height: 1.6;
    max-width: 38ch;
}

.signature {
    margin-top: var(--space-m);
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--blue);
}

.signature span {
    display: block;
    margin-top: .4rem;
    font-family: var(--font-text);
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: var(--space-l);
    /* stretch, damit die senkrechte Punktlinie ueber die ganze Zeile laeuft
       und nicht irgendwo mitten im Weiss aufhoert. */
    align-items: stretch;
}

/* Die senkrechte Punktlinie ist dasselbe Motiv wie die waagrechten Trenner. */
.split__aside {
    border-left: 1px dotted var(--rule-faint);
    padding-left: var(--space-l);
}

@media (max-width: 52rem) {
    .split {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-m);
    }

    .split__aside {
        border-left: 0;
        padding-left: 0;
        border-top: 1px dotted var(--rule-faint);
        padding-top: var(--space-m);
    }
}

/* --- Text neben Hochformat-Bild ------------------------------------------ */

/* Die Bilder stammen aus 2013 und sind 230 px breit — daher die feste Spalte:
   hochskaliert würden sie weich. */
.layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: var(--space-l);
    align-items: start;
}

.layout__media {
    margin: 0;
}

.layout__media img {
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px rgba(42, 47, 45, .09);
}

.layout__media figcaption {
    margin-top: .75rem;
    padding-top: .55rem;
    border-top: 1px dotted var(--rule-faint);
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

@media (max-width: 46rem) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-m);
    }

    .layout__media {
        max-width: 230px;
    }
}

/* --- Bildtafeln ---------------------------------------------------------- */

.plates {
    margin-top: var(--space-l);
    padding-top: var(--space-l);
    border-top: 1px dotted var(--rule-faint);
}

.plates ul {
    /* Feste Höchstbreite: schmaler dürfen die Bilder, breiter nicht.
       space-between verteilt den Rest über die volle Zeile. */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 230px));
    justify-content: space-between;
    gap: var(--space-m);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 34rem) {
    .plates ul {
        grid-template-columns: repeat(2, minmax(0, 230px));
        justify-content: start;
    }
}

@media (max-width: 24rem) {
    .plates ul {
        grid-template-columns: minmax(0, 230px);
    }
}

.plate {
    display: block;
    text-decoration: none;
    color: var(--ink);
}

.plate img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center 35%;
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px rgba(42, 47, 45, .09);
    transition: box-shadow .2s ease, opacity .2s ease;
}

.plate:hover img {
    opacity: .9;
    box-shadow: 0 0 0 1px rgba(0, 58, 124, .35);
}

.plate__label {
    display: block;
    margin-top: .85rem;
    padding-top: .55rem;
    border-top: 1px dotted var(--rule-faint);
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--blue);
}

.plate__label::after {
    content: ' →';
    color: var(--ink-soft);
}

.plate:hover .plate__label {
    text-decoration: underline;
}

/* --- Adresse ------------------------------------------------------------- */

.addr {
    margin-top: var(--space-l);
    padding-top: var(--space-l);
    border-top: 1px dotted var(--rule-faint);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, auto));
    gap: var(--space-m) var(--space-l);
    justify-content: start;
}

/* Steht der Adressblock direkt unter der Überschrift, wäre die Punktlinie
   eine Trennung von nichts. */
h1 + .addr,
.subtitle + .addr {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.addr h2,
.aside-head {
    margin: 0 0 .5rem;
    font-family: var(--font-text);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.addr p {
    margin: 0;
    line-height: 1.8;
    max-width: none;
}

.split__aside p {
    margin: 0 0 var(--space-m);
    font-size: .95rem;
    line-height: 1.85;
    max-width: none;
}

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

.addr a,
.split__aside a {
    text-decoration: none;
}

.addr a:hover,
.split__aside a:hover {
    text-decoration: underline;
}

/* --- Lebenslauf ---------------------------------------------------------- */

.cv dl {
    margin: 0;
}

.cv__row {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 0 var(--space-m);
    padding: .8rem 0;
    border-bottom: 1px dotted var(--rule-faint);
}

.cv__row:last-child {
    border-bottom: 0;
}

.cv dt {
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.cv dd {
    margin: 0;
}

.cv dd p {
    margin: 0;
    max-width: none;
}

.cv dd p + p {
    margin-top: .3rem;
}

@media (max-width: 36rem) {
    .cv__row {
        grid-template-columns: minmax(0, 1fr);
        gap: .15rem;
    }

    .cv dt {
        font-size: .9rem;
    }
}

/* --- Weiterführende Links ------------------------------------------------ */

.next {
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px dotted var(--rule-faint);
    max-width: none;
}

.next a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-decoration: none;
}

.next a::after {
    content: ' →';
    color: var(--ink-soft);
}

.next a:hover {
    text-decoration: underline;
}

/* --- Fuss ---------------------------------------------------------------- */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem var(--space-m);
    justify-content: space-between;
    margin-top: var(--space-l);
    padding-top: var(--space-s);
    border-top: 1px dotted var(--rule);
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--ink-soft);
}

.site-footer p {
    margin: 0;
    max-width: none;
}

/* --- Druck --------------------------------------------------------------- */

@media print {
    body {
        background: #fff;
    }

    .nav,
    .plates,
    .skip {
        display: none;
    }

    .card {
        box-shadow: none;
        padding: 0;
    }

    a {
        color: #000;
    }
}
