/* The Daily Ubuntu — night teal, bone, saffron.
   Deliberately not the Canonical Ubuntu orange/aubergine. */
:root {
  --night: #0d2326;
  --night-2: #153036;
  --bone: #efe8d8;
  --bone-2: #e5dcc6;
  --saffron: #e8b03a;
  --clay: #a8322b;

  /* page tokens (light) */
  --bg: #efe8d8;
  --surface: #e5dcc6;
  --fg: #10262a;
  --fg-soft: #4a5c5e;
  --accent: #a8322b;
  --line: rgba(16, 38, 42, .2);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --maxw: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d2326; --surface: #153036; --fg: #efe8d8; --fg-soft: #b3bfba;
    --accent: #e8b03a; --line: rgba(239, 232, 216, .2);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d2326; --surface: #153036; --fg: #efe8d8; --fg-soft: #b3bfba;
  --accent: #e8b03a; --line: rgba(239, 232, 216, .2);
  color-scheme: dark;
}
/* Night sections are always dark, in either theme */
.night {
  --bg: var(--night); --fg: var(--bone); --fg-soft: #b3bfba;
  --accent: var(--saffron); --line: rgba(239, 232, 216, .22);
  background: var(--bg); color: var(--fg);
}
.deep { --bg: var(--night-2); background: var(--bg); color: var(--fg); --fg: var(--bone); --fg-soft: #b9c4bf; --accent: var(--saffron); --line: rgba(239, 232, 216, .22); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 1.06rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 4px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 9.5vw, 8rem); line-height: .92; letter-spacing: -.025em; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.08; }
em { font-style: italic; color: var(--accent); }
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.label { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.4rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--saffron); color: var(--night); padding: .6rem 1rem; z-index: 99; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 35, 38, .94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(239, 232, 216, .14); color: var(--bone); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--bone); font-family: var(--display); font-size: 1.55rem; line-height: 1; }
.brand svg, .brand img { width: 40px; height: 40px; }
nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
nav a { position: relative; display: block; padding: .4rem 0; color: #c9d1c8; text-decoration: none; font-size: .92rem; font-weight: 500; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--saffron); transition: right .25s; }
nav a:hover { color: var(--bone); }
nav a:hover::after, nav a[aria-current="page"]::after { right: 0; }
nav a[aria-current="page"] { color: var(--bone); }
.menu-btn { display: none; background: none; border: 1px solid rgba(239, 232, 216, .3); color: var(--bone); border-radius: 999px; padding: .4rem 1rem; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid rgba(239, 232, 216, .14); padding: .5rem 1rem 1.2rem; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: .2rem; }
  nav a { padding: .7rem 0; font-size: 1.05rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 11ch; }
.hero .lede { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.25; color: #d5dccf; max-width: 26ch; margin-bottom: 2.2rem; }
.hero-art { position: absolute; z-index: 0; right: max(-4vw, -60px); top: 50%; width: min(52vw, 620px); transform: translateY(-50%); pointer-events: none; }
@media (max-width: 760px) {
  .hero-art { position: static; transform: none; width: min(78vw, 340px); margin: 2.5rem auto 0; }
  .hero { padding-bottom: 3rem; }
}
.btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem; background: var(--fg); color: var(--bg); border: 1.5px solid var(--fg); transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.saffron { background: var(--saffron); border-color: var(--saffron); color: var(--night); }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }

/* Constellation */
.constellation { display: block; width: 100%; height: auto; color: var(--bone); overflow: visible; }
.constellation .ring { fill: none; stroke: currentColor; stroke-opacity: .28; stroke-width: 1.5; }
.constellation .link { fill: none; stroke: currentColor; stroke-opacity: .6; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s .2s ease-out both; }
.constellation .node { fill: var(--saffron); transform-box: fill-box; transform-origin: center; animation: pop .6s ease-out both; }
.constellation .core { fill: var(--bone); }
.constellation .halo { fill: none; stroke: var(--saffron); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 3.4s 1.6s ease-out infinite; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }

/* Band */
.band { background: var(--saffron); color: var(--night); font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; padding: .9rem 0; overflow: hidden; white-space: nowrap; }
.band .wrap { display: flex; flex-wrap: wrap; gap: .4rem 2.4rem; justify-content: space-between; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
section.paper { background: var(--bg); color: var(--fg); }
.head { max-width: 48rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.prose { max-width: 40rem; }
.prose p { color: var(--fg-soft); }
.statement { font-family: var(--display); font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; max-width: 22ch; margin: 0; }
.statement.wide { max-width: 30ch; }
.cite { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); margin-top: 1.6rem; }

.cols { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 1px solid var(--line); }
.col { padding: 2rem 2rem 2.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .col + .col { padding-left: 2rem; border-left: 1px solid var(--line); } .cols.two .col:nth-child(odd) { border-left: 0; padding-left: 0; } }
.col svg { width: 64px; height: 64px; color: var(--accent); margin-bottom: 1.4rem; display: block; }
.col p { color: var(--fg-soft); margin: 0; font-size: 1rem; }

/* Rows: threads, audiences, sources */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); transition: padding-left .25s, background .25s; }
.row:hover { padding-left: .8rem; }
.row .idx { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; color: var(--accent); padding-top: .6rem; }
.row h3 { margin: 0 0 .35em; }
.row p { margin: 0; color: var(--fg-soft); max-width: 46rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.row.author { align-items: baseline; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.row.author h3 { margin: 0; }
.row.author p { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--fg); }
@media (max-width: 640px) { .row.author { grid-template-columns: 1fr; gap: .2rem; } }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2.2rem; padding: 0; list-style: none; }
.chips li { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); padding: .25rem 1.1rem .35rem; border: 1px solid var(--line); border-radius: 999px; }

/* Footer */
.site-footer { background: var(--night); color: var(--bone); padding: clamp(3rem, 7vw, 5rem) 0 2rem; overflow: hidden; --accent: var(--saffron); }
.site-footer a { color: var(--bone); text-decoration-color: rgba(239, 232, 216, .35); }
.site-footer a:hover { color: var(--saffron); }
.big { font-family: var(--display); font-size: clamp(2.6rem, 9vw, 7.5rem); line-height: .92; letter-spacing: -.025em; margin: 0 0 3rem; }
.big em { color: var(--saffron); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot h3 { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--saffron); margin-bottom: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .3rem; }
.legal { border-top: 1px solid rgba(239, 232, 216, .2); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; color: #b3bfba; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .constellation .link { stroke-dashoffset: 0; } }
@media print { .site-header, .site-footer, .hero-art { display: none; } }

/* ---- Content components ---- */
.figures { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); margin: 2.5rem 0; }
.fig { padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .fig + .fig { padding-left: 1.6rem; border-left: 1px solid var(--line); } }
.fig b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--accent); margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.fig span { display: block; color: var(--fg-soft); font-size: .95rem; line-height: 1.5; }
.vignette { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; max-width: 38rem; margin: 0; }
.vignette + .vignette { margin-top: 1rem; }
.note { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); margin-top: 1.4rem; }
.voice { margin: 0; max-width: 40rem; }
.voice q, .voice blockquote { quotes: "\201C" "\201D"; font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; display: block; margin: 0; }
.voice figcaption { margin-top: 1.2rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.story { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .story { grid-template-columns: 12rem minmax(0, 1fr); } }
.story > .label { margin: .3rem 0 0; }
.story .prose { max-width: 42rem; }
.sources { font-size: .9rem; color: var(--fg-soft); padding-left: 1.2rem; margin: 0; max-width: 52rem; }
.sources li { margin-bottom: .5rem; overflow-wrap: anywhere; }
.sources a { color: var(--fg); }
.gloss { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.gloss div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .gloss div { grid-template-columns: 16rem minmax(0, 1fr); } }
.gloss dt { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.gloss dd { margin: 0; color: var(--fg-soft); max-width: 44rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; color: var(--accent); padding-top: .45rem; }
.steps strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; display: block; line-height: 1.15; margin-bottom: .2rem; }
.steps span { color: var(--fg-soft); }
.row a.more, a.more { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; display: inline-block; margin-top: .8rem; }
a.more::after { content: " →"; }
.row h3 a { color: inherit; text-decoration: none; }
.row h3 a:hover { color: var(--accent); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.pager a { text-decoration: none; color: var(--fg); font-family: var(--display); font-size: 1.4rem; }
.pager small { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.shelf h3 { margin-top: 3rem; }
.shelf h3:first-child { margin-top: 0; }
.capsule .wrap { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.capsule .head { margin-bottom: 0; border-top: 2px solid var(--accent); padding-top: 1.6rem; }
.capsule .statement { font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 28ch; }

/* ---- Hubs, cards, pagination ---- */
.feature { border-top: 2px solid var(--accent); padding-top: 1.6rem; max-width: 46rem; margin-top: 1rem; }
.feature h3 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .4em; }
.feature h3 a { color: var(--fg); text-decoration: none; }
.feature h3 a:hover { color: var(--accent); }
.feature p { color: var(--fg-soft); font-size: 1.1rem; }
.chips.small { gap: .5rem; margin: 0; }
.chips.small li { font-family: var(--sans); font-size: .9rem; padding: 0; border: 0; }
.chips.small a { display: inline-block; padding: .35rem .95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; }
.chips.small a:hover { border-color: var(--accent); color: var(--accent); }
.paging ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.paging a { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fg); font-family: var(--mono); font-size: .85rem; }
.paging a[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hero .label a { text-decoration: none; }
.hero .label a:hover { text-decoration: underline; }

/* ---- Portraits (Inspirations) ---- */
.portraits { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); border-top: 1px solid var(--line); }
.portrait { padding: 2.2rem 0 2.4rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .portrait:nth-child(odd) { padding-right: 2.5rem; } .portrait:nth-child(even) { padding-left: 2.5rem; border-left: 1px solid var(--line); } }
.portrait .label { margin-bottom: .8rem; }
.portrait h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.portrait > p { color: var(--fg-soft); }
.voice.small { margin: 1.6rem 0; }
.voice.small blockquote { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.voice.small figcaption { margin-top: .6rem; }
.ubuntu-line { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--accent) !important; line-height: 1.35; margin: 1.2rem 0; }
.portrait details { margin-top: 1rem; }
.portrait summary { cursor: pointer; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.portrait details .sources { margin-top: .8rem; }
.gloss dd em { color: var(--accent); }

/* ---- Section menu (one panel at a time) ---- */
.tabbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 66px); z-index: 40; background: var(--bone); border-bottom: 1px solid rgba(16, 38, 42, .15); }
.tabbar ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: .7rem 0; overflow-x: auto; scrollbar-width: none; }
.tabbar ul::-webkit-scrollbar { display: none; }
.tabbar a { display: block; white-space: nowrap; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(16, 38, 42, .2); color: #10262a; text-decoration: none; font-size: .92rem; font-weight: 500; }
.tabbar a:hover { border-color: #a8322b; color: #a8322b; }
.tabbar a[aria-selected="true"] { background: #0d2326; border-color: #0d2326; color: #efe8d8; }
.tab-foot { padding: 0 0 clamp(2.5rem, 6vw, 4rem); }
.tab-steps { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.tab-steps a { text-decoration: none; color: var(--fg); font-family: var(--display); font-size: 1.4rem; line-height: 1.15; }
.tab-steps a.next { text-align: right; margin-left: auto; }
.tab-steps small { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.js-tabs .tabpanel[hidden] { display: none !important; }
.tabs-wrap:not(.js-tabs) .tab-foot { display: none; }
@media (max-width: 900px) { .tabbar { top: calc(env(safe-area-inset-top, 0px) + 62px); } }

/* ---- Portrait picker (one figure at a time) ---- */
.portrait-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.portrait-picker[hidden] { display: none; }
.pp-list { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: .2rem 0; }
.pp-list::-webkit-scrollbar { display: none; }
.pp-list button, .pp-arrows button { font: inherit; font-size: .9rem; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: 999px; padding: .45rem .95rem; white-space: nowrap; }
.pp-list button:hover, .pp-arrows button:hover { border-color: var(--accent); color: var(--accent); }
.pp-list button[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pp-arrows { display: flex; align-items: center; gap: .6rem; }
.pp-arrows button { width: 2.6rem; height: 2.6rem; padding: 0; font-size: 1.1rem; }
.pp-count { font-family: var(--mono); font-size: .8rem; color: var(--fg-soft); min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.portraits.one { grid-template-columns: 1fr; }
.portraits.one .portrait { padding: 2.2rem 0 2.4rem !important; border-left: 0 !important; max-width: 46rem; }
.portraits.one .portrait[hidden] { display: none; }
.portraits.one .portrait h3 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.mini-sources summary { cursor: pointer; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.mini-sources .sources { margin-top: .8rem; }

/* ---- Inspirations, light version ---- */
.pcards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.pcard { border-top: 2px solid var(--accent); padding: 1.3rem 0 .5rem; }
.pcard .label { margin-bottom: .6rem; }
.pcard h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: .5rem; }
.pcard > p { color: var(--fg-soft); font-size: 1rem; margin-bottom: .9rem; }
.pcard .pq { font-family: var(--display); font-size: 1.25rem; line-height: 1.3; color: var(--fg); }
.pcard .pq span { display: block; margin-top: .4rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.shelf-grid { display: grid; gap: 2.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); }
.shelf-box h3 { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.shelf-box ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.shelf-box li { padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--fg); font-size: 1rem; }
.shelf-box em { color: inherit; }
@media (min-width: 1000px) { .cols.four { grid-template-columns: repeat(4, 1fr); } .cols.four .col { padding-right: 1.4rem; } .cols.four .col + .col { padding-left: 1.4rem; } }
.voice + .voice { margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* Language switch (FR / EN) */
.brand { order: 1; }
.bar nav { order: 2; }
.lang-switch { order: 3; font-family: var(--mono, "DM Mono", monospace); font-size: .8rem; letter-spacing: .08em; color: var(--bone); text-decoration: none; border: 1px solid rgba(239, 232, 216, .3); border-radius: 999px; padding: .4rem .8rem; line-height: 1; white-space: nowrap; }
.lang-switch:hover, .lang-switch:focus-visible { background: var(--saffron, #e8b03a); color: #0d2326; border-color: transparent; }
.menu-btn { order: 4; }
.lang-foot { margin: 1.5rem 0 0; }
.lang-foot a { color: var(--saffron, #e8b03a); }
@media (max-width: 900px) { .lang-switch { margin-left: auto; } }

/* Inspirations : galerie de figures */
.ffilter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.ffilter button { font: inherit; font-size: .85rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(13, 35, 38, .25); background: transparent; color: var(--night, #0d2326); cursor: pointer; }
.ffilter button[aria-pressed="true"] { background: var(--night, #0d2326); color: var(--bone, #efe8d8); border-color: transparent; }
.ffilter button:focus-visible { outline: 2px solid var(--saffron, #e8b03a); outline-offset: 2px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.fcard { border: 1px solid rgba(13, 35, 38, .14); border-radius: 14px; padding: 1.1rem 1.2rem 1rem; background: rgba(255, 255, 255, .35); display: flex; flex-direction: column; }
.fcard[hidden] { display: none; }
.fcard .fmeta { font-family: var(--mono, "DM Mono", monospace); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--clay, #a8322b); margin: 0 0 .4rem; }
.fcard h3 { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; margin: 0 0 .5rem; }
.fcard p { margin: 0 0 .6rem; font-size: .95rem; line-height: 1.5; }
.fcard .fsrc { margin-top: auto; font-size: .78rem; color: #5b6b68; }
.fcard .fsrc a { color: inherit; }

.pcard[hidden] { display: none; }
