/* Site pages in the Lav look (2026-10-25): About (om), Philosophy, Privacy and the 404.
   Tokens from /assets/tokens.css ([data-look="lav"]), header and footer from /assets/chrome.css.
   Same grid as the homepage and Photography: 12 columns, 16 px gap, 56 px gutter, max 1440;
   one column on a 20 px gutter under 860 px.
   Each page opens on its Title with the language switch on the right of the same line, then one
   Statement. The text below sits in rows on hairlines: the row's heading on the left (columns
   1 to 4), the text from column 7, the same column the header nav and the footer columns use. */

/* ── Base (same as the homepage) ── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; font-optical-sizing: auto; font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; }
[data-look="lav"] { color-scheme: light; }
[data-look="lav"][data-theme="dark"] { color-scheme: dark; }
body { margin: 0; min-width: 320px; min-height: 100svh; font-size: var(--t-body); line-height: var(--lh-body); letter-spacing: var(--tr-body); font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.t-title { font-size: var(--t-title); line-height: var(--lh-title); letter-spacing: var(--tr-title); font-weight: 300; }
.t-statement { font-size: var(--t-statement); line-height: var(--lh-statement); letter-spacing: var(--tr-statement); font-weight: 400; }
.t-body { font-size: var(--t-body); line-height: var(--lh-body); letter-spacing: var(--tr-body); font-weight: 400; }
.t-ui { font-size: var(--t-ui); line-height: var(--lh-ui); letter-spacing: 0; font-weight: 400; }
.t-caption { font-size: var(--t-caption); line-height: var(--lh-caption); letter-spacing: var(--tr-caption); font-weight: 400; }

/* ── The page ── */
.page { max-width: var(--maxw); margin: 0 auto; padding: 120px var(--gutter) 200px; }

/* Title row: the page's word on the left, the other language on the right, on one baseline. */
.page-top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.page-role { margin: 0 0 24px; color: var(--muted); }
.page-h { margin-left: var(--tr-title); color: var(--ink); max-width: 13em; text-wrap: balance; }
.lang-link { flex: none; }
.lang-link a { display: inline-block; padding: 6px 0; color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.lang-link a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* The one strong line under the title. */
.page-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; margin-top: 56px; }
.page-lead > * { grid-column: 1 / span 8; }
.page-lead .t-statement { max-width: 22em; color: var(--ink); text-wrap: pretty; }
.page-lead .t-body { max-width: 31em; color: var(--muted); text-wrap: pretty; }
.page-lead .t-caption { margin-top: 28px; color: var(--muted); }
/* Body paragraphs that follow the statement in the lead's column (About). */
.page-lead .t-statement + .t-body { margin-top: 40px; }
.page-lead .t-body + .t-body { margin-top: 1em; }
.page-lead strong { color: var(--ink); font-weight: 400; }

/* ── Rows on hairlines ── */
.rows { margin-top: 136px; }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; padding: 36px 0 52px; border-top: 1px solid var(--hairline); }
.row__k { grid-column: 1 / span 5; max-width: 16em; color: var(--ink); font-size: var(--t-body); line-height: var(--lh-body); letter-spacing: var(--tr-body); font-weight: 400; text-wrap: balance; }
.row__v { grid-column: 7 / span 6; max-width: 34em; color: var(--muted); text-wrap: pretty; }
.row__v p + p, .row__v p + ul, .row__v ul + p { margin-top: 1em; }
.row__v strong, .row__v b { color: var(--ink); font-weight: 400; }
/* A row whose text is the point of the page reads in ink. */
.row--ink .row__v { color: var(--ink); }

/* Content links: accent and underlined, as on the homepage. */
.row__v a, .page-lead a, .nf-alt a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.row__v a:hover, .page-lead a:hover, .nf-alt a:hover { text-decoration-thickness: 2px; }

/* Lists inside a row: a small dot in the muted colour, the text on its own edge. */
.dots { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5em; }
.dots li { position: relative; padding-left: 22px; }
.dots li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }

/* ── Philosophy: the pull line and the numbered principles ── */
.pull { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; padding: 96px 0 104px; border-top: 1px solid var(--hairline); }
.pull p { grid-column: 1 / span 9; max-width: 24em; color: var(--ink); text-wrap: pretty; }
.principles { list-style: none; padding: 0; margin-top: -18px; }
.principles li { display: grid; grid-template-columns: 3ch minmax(0, 1fr); column-gap: 20px; padding: 18px 0 20px; border-bottom: 1px solid var(--hairline); }
.principles li:last-child { border-bottom: 0; padding-bottom: 0; }
.principles .k { color: var(--muted); font-size: var(--t-ui); line-height: var(--lh-body); font-variant-numeric: tabular-nums; padding-top: .1em; }
.principles .v { min-width: 0; }

/* ── 404: two short lists of places to go next ── */
.nf-alt { margin-top: 16px; color: var(--muted); max-width: 40em; }
.nf-groups { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; margin-top: 120px; border-top: 1px solid var(--hairline); padding-top: 36px; }
.nf-group:first-child { grid-column: 1 / span 5; }
.nf-group:last-child { grid-column: 7 / span 6; }
.nf-group .label { display: block; margin-bottom: 16px; color: var(--muted); }
.nf-links { display: flex; flex-direction: column; align-items: flex-start; }
.nf-links a { display: inline-block; padding: 6px 0; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.nf-links a:hover { border-bottom-color: var(--ink); }

/* Between a laptop and 1440 the text column starts one column earlier, so a line keeps its length. */
@media (min-width: 861px) and (max-width: 1199px) {
  .row__k { grid-column: 1 / span 4; }
  .row__v { grid-column: 6 / span 7; }
}

/* ── Phones and narrow widths ── */
@media (max-width: 860px) {
  .page { padding: 72px var(--gutter) 128px; }
  .page-top { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .page-role { margin-bottom: 16px; }
  .lang-link a { padding: 12px 0; min-height: 44px; }
  .page-lead { display: block; margin-top: 32px; }
  .page-lead .t-caption { margin-top: 20px; }
  .page-lead .t-statement + .t-body { margin-top: 28px; }
  .rows { margin-top: 88px; }
  .row { display: block; padding: 24px 0 36px; }
  .row__k { max-width: none; margin-bottom: 14px; }
  .row__v { max-width: 34em; }
  .row__v a { overflow-wrap: anywhere; }
  .pull { display: block; padding: 64px 0 72px; }
  .principles { margin-top: -10px; }
  .principles li { column-gap: 14px; }
  .nf-groups { display: flex; flex-direction: column; gap: 40px; margin-top: 72px; padding-top: 24px; }
  .nf-group .label { margin-bottom: 4px; }
  .nf-links a { padding: 11px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-link a, .nf-links a { transition: none; }
}
