/* RBJ.LAW — shared stylesheet
   One serif family, black on white, one warm grey, hairline rules.
   The only color is the red dot from the logo, used once in the hero. */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/eb-garamond-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/eb-garamond-latin-400-normal.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: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/eb-garamond-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/eb-garamond-latin-400-italic.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: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/eb-garamond-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/eb-garamond-latin-500-normal.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: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/eb-garamond-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/eb-garamond-latin-600-normal.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; }

:root {
  --ink: #000;
  --grey: #6b6c6f;        /* the logo's grey, slightly darkened for text contrast */
  --rule: rgba(0, 0, 0, 0.22);
  --paper: #fff;
  --dot: #e93e34;         /* the logo's red dot, sampled from the artwork */
  --panel: #f7f7f5;       /* one warm off-white panel */
  --serif: "EB Garamond", "Garamond", "Times New Roman", Times, serif;
  --measure: 34em;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "onum";
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3, h4 { font-weight: 400; margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* Section labels: bold, spaced small caps — the one device carried over from the old site. */
.label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.6rem;
}
.sub { color: var(--grey); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 84px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 2.2rem; font-size: 0.95rem; }
.nav a { white-space: nowrap; }
.lang { display: inline-flex; gap: 0.6rem; margin-left: 1.2rem; padding-left: 1.6rem; border-left: 1px solid var(--rule); font-weight: 600; letter-spacing: 0.06em; font-size: 0.82rem; }
.lang [aria-current] { color: var(--grey); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); font: inherit; font-size: 0.9rem; padding: 0.4rem 0.9rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); letter-spacing: -0.01em; max-width: 15ch; line-height: 1.02; }
/* Brand signature: the logo red on the closing mark, a touch larger and heavier than the surrounding type. */
.sig { color: var(--dot); font-size: 1.06em; font-weight: 500; }
.hero .lede { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-top: 1.8rem; max-width: 28em; color: var(--grey); line-height: 1.4; }
.hero-img { margin-bottom: clamp(3rem, 7vw, 5.5rem); aspect-ratio: 4168 / 2268; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Generic section ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--rule); }
.panel { background: var(--panel); }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 18ch; margin-bottom: 1.2rem; }
.section .intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 30em; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about figure { margin: 0; }
.about figcaption { font-size: 0.85rem; color: var(--grey); margin-top: 0.7rem; }
.about .statement { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.3; max-width: 22em; margin-bottom: 1.4rem; }

/* ---------- Two-column / three-column item grids ---------- */
.grid { display: grid; gap: 0 clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.item { border-top: 1px solid var(--rule); padding: 1.4rem 0 1.8rem; }
.item h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.15rem; }
.item .kicker { display: block; color: var(--grey); font-size: 0.95rem; margin-bottom: 0.75rem; }
.item p { font-size: 1rem; max-width: 30em; }

/* ---------- Credentials ---------- */
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; }
.cred { border-top: 1px solid var(--rule); padding: 1.6rem 0 2.2rem; }
.cred .label { margin-bottom: 0.4rem; }
.cred .role { margin-bottom: 1.1rem; }
.cred .number { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: 0.01em; margin-bottom: 0.35rem; }
.cred .caption { color: var(--grey); font-size: 0.92rem; margin-bottom: 1rem; }
.cred p { font-size: 1rem; }
.cred ul { margin: 0.4rem 0 1rem; padding-left: 1.1em; font-size: 1rem; }
.cred li { margin-bottom: 0.15em; }
.cred a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; text-decoration-color: var(--rule); }

/* ---------- Photo pair + text ---------- */
.pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.pair figure { margin: 0; }
.pair img { aspect-ratio: 588 / 524; width: 100%; object-fit: cover; }
.pair figcaption { font-size: 0.85rem; color: var(--grey); margin-top: 0.6rem; }
.where { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); }
.contact .big { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; max-width: 14ch; }
.contact .email { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 1.4rem; display: inline-block; border-bottom: 1px solid var(--ink); }
.addresses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; font-size: 1rem; }
.addresses .label { margin-bottom: 0.6rem; }
.addresses p { line-height: 1.5; }
.notice { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--grey); max-width: 40em; }
.notice strong { color: var(--ink); font-weight: 600; }
.notice p { max-width: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 3.5rem 0 2.5rem; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; align-items: start; }
.site-footer img { height: 56px; width: auto; }
.site-footer .label { color: #fff; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: #d9d9d9; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { grid-column: 1 / -1; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.2); color: #9a9a9a; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 18px; }
  .about, .where, .contact { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header .wrap { height: 68px; }
  .brand img { height: 38px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: flex-start; gap: 0; padding: 0.6rem var(--gutter) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.55rem 0; }
  .lang { margin: 0.6rem 0 0; padding: 0.6rem 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .grid-2, .grid-3, .creds, .pair, .addresses { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- Text pages (privacy policy) ---------- */
.doc { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.doc .updated { color: var(--grey); font-size: 0.95rem; margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.25rem; font-weight: 600; margin: 2.2rem 0 0.6rem; }
.doc p, .doc li { max-width: 38em; font-size: 1.05rem; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; text-decoration-color: var(--rule); }
