/* Pages statiques de Somin (généré par scripts/build-pages.mjs) */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  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-display: swap;
  font-weight: 400;
  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: normal;
  font-display: swap;
  font-weight: 600;
  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-display: swap;
  font-weight: 600;
  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;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  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-display: swap;
  font-weight: 400;
  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: 'IM Fell English';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/im-fell-english-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: 'IM Fell English';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/im-fell-english-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: 'IM Fell English SC';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/im-fell-english-sc-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;
}

:root {
  --ink: #1e140c; --ink-2: #463729; --muted: #6e604d; --line: #cfc3a2; --paper: #e7dfc4;
  --surface: #f4eedc; --accent: #e2412b; --marked: #f28c38; --mat: #fbf7ea;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --display: 'IM Fell English', Georgia, serif;
  --sc: 'IM Fell English SC', Georgia, serif;
  font-family: 'EB Garamond', Georgia, serif; font-size: 18px; line-height: 1.5; color: var(--ink);
  font-feature-settings: 'onum';
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(47, 37, 29, 0.4); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
.sheet {
  max-width: 920px; margin: 20px auto; padding: 22px 34px 30px;
  background: var(--grain), linear-gradient(160deg, #f6f0de, #ece3c8);
  border: 1px solid #b9a77f; outline: 1px solid rgba(47, 37, 29, 0.55); outline-offset: -7px;
  box-shadow: 2px 3px 0 rgba(47, 37, 29, 0.1), 6px 10px 28px rgba(47, 37, 29, 0.28);
}
.top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(47, 37, 29, 0.35); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.brand b { font: 400 28px/1 var(--sc); letter-spacing: 0.05em; display: block; }
.brand small { font: italic 15px var(--display); color: var(--ink-2); }
.top nav { margin-left: auto; display: flex; gap: 16px; font: 17px var(--sc); }
.top nav a { text-decoration: none; }
.crumbs { font-size: 15px; color: var(--muted); margin: 14px 0 4px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: '›'; margin-right: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; }
h1 { font-size: 40px; margin: 6px 0 4px; }
h2 { font-size: 26px; margin: 30px 0 10px; padding-bottom: 4px; border-bottom: 1px dashed rgba(47, 37, 29, 0.35); }
h3 { font-size: 21px; margin: 18px 0 6px; }
.kicker { font: italic 19px var(--display); color: var(--ink-2); margin: 0; }
.lead { font-size: 20px; }
.hero { margin: 18px 0; }
.hero img, .hero .sketch { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 40%;
  box-shadow: 0 0 0 5px var(--mat), 0 0 0 6px rgba(47, 37, 29, 0.35), 3px 4px 10px rgba(47, 37, 29, 0.3); }
.hero img { filter: sepia(0.3) saturate(0.9) contrast(1.03); }
figcaption, .small { font-size: 14px; color: var(--muted); }
.hero figcaption { margin-top: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(47, 37, 29, 0.55); border-radius: 2px;
  font: 18px var(--sc); text-decoration: none; background: transparent; }
.btn.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 18px 0; border: 1px solid rgba(47, 37, 29, 0.35); }
.stat { padding: 10px 14px; border: 1px solid rgba(47, 37, 29, 0.18); }
.stat span { display: block; font: 15px var(--sc); color: var(--muted); }
.stat b { font-size: 24px; font-weight: 600; }
.stat b.coords { font-size: 18px; }
.drawings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.drawings svg { width: 100%; height: auto; display: block; border: 1px solid rgba(47, 37, 29, 0.3); background: #f1ead2; }
.drawings.single { grid-template-columns: 1fr; }
.profile text { font: 20px 'EB Garamond', Georgia, serif; fill: var(--muted); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 18px; }
.card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; padding: 6px; }
.card:hover { background: rgba(47, 37, 29, 0.06); }
.thumb { position: relative; flex: none; width: 96px; height: 72px; background: #f1ead2;
  box-shadow: 0 0 0 3px var(--mat), 0 0 0 4px rgba(47, 37, 29, 0.35), 2px 3px 6px rgba(47, 37, 29, 0.25); }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(0.35) saturate(0.85); }
.card strong { display: block; font-weight: 600; line-height: 1.25; }
.card small { display: block; color: var(--muted); font-size: 15px; line-height: 1.35; }
.card em { display: block; font-size: 15px; margin-top: 3px; }
.rank { position: absolute; top: -9px; left: -9px; width: 30px; height: 30px; border-radius: 50%; text-align: center;
  background: radial-gradient(circle at 35% 30%, #d8452f, #a3180d 70%); box-shadow: 0 0 0 2px var(--mat);
  font: 17px/30px var(--display); color: #fbf3e0; }
.gallery { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(0.3) saturate(0.9) contrast(1.03);
  box-shadow: 0 0 0 3px var(--mat), 0 0 0 4px rgba(47, 37, 29, 0.35), 2px 3px 6px rgba(47, 37, 29, 0.25); }
.gallery figcaption { margin-top: 8px; font-size: 15px; line-height: 1.3; color: var(--ink); }
.gallery figcaption i { color: var(--muted); }
.gallery figcaption small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.collection-list { list-style: none; padding: 0; margin: 0; }
.collection-list li { padding: 10px 0; border-top: 1px dashed rgba(47, 37, 29, 0.25); }
.collection-list .card { padding: 6px 0; }
.collection-list .thumb { width: 150px; height: 108px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0; }
.tags a, .tags span { display: inline-block; padding: 1px 10px; border: 1px solid rgba(47, 37, 29, 0.4); font-size: 15px; text-decoration: none; }
.names { columns: 3 200px; column-gap: 24px; padding: 0; list-style: none; font-size: 16px; }
.names li { break-inside: avoid; padding: 1px 0; }
.names small { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; list-style: none; font-size: 16px; }
.days { padding-left: 1.2em; }
.days h3 { margin-bottom: 0.2em; }
.note { border-left: 3px solid var(--accent); padding: 4px 12px; margin: 16px 0; font-size: 16px; background: rgba(192, 32, 15, 0.05); }
.foot { margin-top: 36px; padding-top: 12px; border-top: 1px solid rgba(47, 37, 29, 0.35); font-size: 14px; color: var(--muted); }
.foot p { margin: 6px 0; }
@media (max-width: 700px) {
  :root { font-size: 17px; }
  .sheet { margin: 0; padding: 16px 18px 24px; outline-offset: -5px; border: 0; box-shadow: none; }
  h1 { font-size: 31px; }
  .top nav { margin-left: 0; width: 100%; }
  .drawings { grid-template-columns: 1fr; }
  .collection-list .thumb { width: 104px; height: 78px; }
  .btn { flex: 1 1 auto; justify-content: center; }
}
