/* Archéologie « la coupe » and its dig notebooks (pages built by src/sitegen/archeologie.py) */
.page-arch { --arch-paper: #f4f1ea; --arch-ink: #2a2620; --arch-ink2: #6a6255; --arch-red: #a8392c; --arch-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23b08d63' stroke-opacity='.28' stroke-width='1.1'%3E%3Cpath d='M-20 120 C80 60 180 160 280 110 S460 40 540 100'/%3E%3Cpath d='M-20 150 C90 95 190 190 290 140 S460 75 540 130'/%3E%3Cpath d='M-20 185 C100 130 200 225 300 175 S465 110 540 165'/%3E%3Cpath d='M-20 330 C70 290 170 380 260 340 S440 270 540 320'/%3E%3Cpath d='M-20 365 C80 325 180 415 270 375 S445 305 540 355'/%3E%3Cpath d='M-20 400 C90 360 190 450 280 410 S450 340 540 390'/%3E%3Cellipse cx='390' cy='250' rx='46' ry='26'/%3E%3Cellipse cx='390' cy='250' rx='78' ry='46'/%3E%3Cellipse cx='120' cy='260' rx='30' ry='18'/%3E%3C/g%3E%3C/svg%3E"); }
.page-arch main { background: var(--arch-paper); color: var(--arch-ink); }
.page-arch .site-footer { margin-top: 0; }

/* ---------- surface ---------- */
.arch-surface { background: var(--arch-paper) var(--arch-topo); background-size: 520px 520px; color: var(--arch-ink); }
.arch-surface-in { max-width: 1200px; margin: 0 auto; padding: clamp(3rem, 9vh, 6rem) var(--gutter) 0; }
.arch-kick { font: 400 .78rem var(--f-ui); letter-spacing: .3em; text-transform: uppercase; color: #8a6a46; margin: 0 0 1.4rem; }
.arch-surface h1 { font: 500 clamp(2.6rem, 7vw, 5rem)/1 var(--f-display); margin: 0 0 .55em; color: var(--arch-ink); }
.arch-lead { max-width: 40rem; color: #5b5348; margin: 0 0 clamp(2.8rem, 7vh, 4.5rem); line-height: 1.75; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.arch-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 24vh; min-height: 140px; margin-bottom: clamp(3.5rem, 10vh, 6rem); }
.arch-strip figure { margin: 0; position: relative; overflow: hidden; }
.arch-strip a { display: block; height: 100%; color: #fff; }
.arch-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.arch-strip figure:first-child img { object-position: 50% 35%; }
.arch-strip a:hover img { transform: scale(1.04); }
.arch-strip figcaption { position: absolute; left: 8px; bottom: 6px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.arch-strip figcaption::after { content: " ↓"; }
.arch-ground { height: 14px; background: repeating-linear-gradient(90deg, #6b5640 0 14px, #7d6447 14px 22px); }

/* ---------- the section ---------- */
.arch-coupe { position: relative; background: #1a1b1e; color: #f2efe9; }
html { scroll-padding-top: var(--header-h, 64px); }
.arch-mire { position: sticky; top: 0; height: 100vh; width: 64px; margin-right: -64px; float: left; z-index: 5; pointer-events: none;
             display: flex; flex-direction: column; justify-content: center; align-items: center; }
.arch-bar { width: 10px; height: 64vh; border: 1px solid rgba(255,255,255,.55); background: repeating-linear-gradient(180deg, #e5e0d6 0 6.4vh, #b23b2e 6.4vh 12.8vh); position: relative; }
.arch-cursor { position: absolute; left: -6px; width: 22px; height: 2px; background: #d9a35f; transition: top .4s ease; }
.arch-age { margin-top: 14px; writing-mode: vertical-rl; transform: rotate(180deg); font: 400 1.05rem var(--f-display); white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.arch-layer { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vh, 5.5rem) var(--gutter) clamp(2.5rem, 6vh, 4rem) clamp(84px, 9vw, 120px); }
.arch-layer::before { content: ""; position: absolute; inset: 0; background: var(--tex) center / cover no-repeat; filter: grayscale(.25) contrast(1.05); opacity: .55; }
.arch-layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 70%, transparent), color-mix(in srgb, var(--c2) 85%, transparent)); }
.arch-layer > * { position: relative; z-index: 1; }
.arch-interface { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 40px; z-index: 2; }
.arch-us { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: #d9a35f; margin: 0 0 .6rem; }
.arch-layer h2 { font: 400 clamp(2.1rem, 5vw, 3.6rem)/1.05 var(--f-display); margin: 0 0 .3em; color: #f2efe9; }
.arch-meta { color: #c9c2b6; font-size: .9rem; margin: 0 0 1.6rem; }
.arch-notice { max-width: 40rem; margin: 0 0 2.2rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.arch-finds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1100px; }
.arch-finds figure { margin: 0; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); padding: 6px 6px 8px; }
.arch-finds img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.arch-finds figcaption { font-size: .78rem; color: #c9c2b6; margin-top: 6px; line-height: 1.35; }
.arch-open { display: inline-block; margin-top: 1.6rem; color: #f2efe9; border: 1px solid rgba(255,255,255,.4); padding: .7em 1.3em; border-radius: 99px;
             font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; min-height: 44px; }
.arch-open:hover { border-color: #d9a35f; color: #d9a35f; }
.arch-bedrock { padding: 4rem var(--gutter) 5rem clamp(84px, 9vw, 120px); background: #0d0c0b; color: #8f877b; }
.arch-bedrock p { max-width: 40rem; margin: 0; }

/* ---------- notebooks ---------- */
.page-arch-carnet main { background: var(--arch-paper) var(--arch-topo); background-size: 520px 520px; }
.arch-wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) 3rem; }
.arch-back { display: inline-block; padding: 1.4rem 0 .4rem; color: var(--arch-ink2); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.arch-cartouche { text-align: center; margin: 2rem 0 56px; }
.arch-couche { font: 400 .78rem "Courier New", monospace; color: var(--arch-red); letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.arch-cartouche h1 { font: 500 clamp(2.8rem, 6vw, 4.4rem)/1 var(--f-display); margin: .1em 0 .2em; color: var(--arch-ink); }
.arch-sub { color: var(--arch-ink2); margin: 0; }
.arch-fiche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; text-align: left; max-width: 900px; margin: 30px auto 0;
              padding: 18px 0; border-top: 1px solid rgba(42,38,32,.25); border-bottom: 1px solid rgba(42,38,32,.25); }
.arch-fiche dt { font: 400 .72rem "Courier New", monospace; color: var(--arch-ink2); text-transform: uppercase; letter-spacing: .06em; }
.arch-fiche dd { margin: 2px 0 0; font-size: .92rem; line-height: 1.45; }
.arch-recit { max-width: 36rem; margin: 0 auto 70px; }
.arch-recit p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; margin: 0 0 1em; line-height: 1.8; }
.arch-chapo { font: 400 1.32rem/1.55 var(--f-display) !important; text-align: left !important; hyphens: manual !important; -webkit-hyphens: manual !important; margin-bottom: 2.6rem !important; }
.arch-recit section { margin: 0 0 2.6rem; position: relative; }
.arch-recit h3 { font: 500 .74rem "Courier New", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--arch-red); margin: 0 0 .7rem; }
@media (min-width: 1000px) { .arch-recit h3 { position: absolute; right: calc(100% + 34px); top: .35em; width: 150px; text-align: right; margin: 0; } }
.arch-pull { margin: 1.8rem 0 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--arch-red); font: italic 400 1.45rem/1.4 var(--f-display); color: var(--arch-ink); }
.arch-recit .arch-src { font-size: .78rem; color: var(--arch-ink2); text-align: left; line-height: 1.5; margin-top: 3rem; }
.arch-group h2, .arch-band h2 { font: 500 1.9rem var(--f-display); margin: 44px 0 16px; color: var(--arch-ink); }
.arch-planche { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.arch-planche figure { margin: 0; background: #fbf9f3; padding: 8px 8px 10px; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 6px 14px rgba(0,0,0,.08); transform: rotate(var(--rot, 0deg)); }
.arch-planche .jg-item { aspect-ratio: 4 / 3; flex: none; }
.arch-planche .jg-item img { object-fit: cover; }
.arch-planche figcaption { font-size: .8rem; margin-top: 7px; line-height: 1.35; color: var(--arch-ink); }
.arch-planche .n { font-family: "Courier New", monospace; color: var(--arch-red); margin-right: .5em; }
.arch-band { background: #0b0a09; color: #e9e3d6; margin: 50px calc(-1 * var(--gutter)); padding: 30px var(--gutter) 34px; }
.arch-band h2 { color: #e9e3d6; margin-top: 0; }
.arch-band > p { max-width: 40rem; color: #b9b0a0; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.arch-band .arch-planche { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.arch-band .arch-planche figure { background: #1b1916; box-shadow: none; }
.arch-band figcaption { color: #cfc6b6; }
.arch-band .arch-planche .jg-item { aspect-ratio: 3 / 4; }
.arch-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 60px 0 0; padding-top: 18px; border-top: 1px solid rgba(42,38,32,.25); }
.arch-pager a { color: var(--arch-ink); font: 500 1.2rem var(--f-display); padding: .5rem 0; }
.arch-pager .arch-up { font: 400 .78rem var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--arch-ink2); align-self: center; }

@media (max-width: 760px) {
  .arch-strip { grid-template-columns: repeat(2, 1fr); height: auto; }
  .arch-strip figure { aspect-ratio: 4 / 3; }
  .arch-finds { grid-template-columns: repeat(2, 1fr); }
  .arch-mire { width: 38px; margin-right: -38px; }
  .arch-bar { width: 7px; }
  .arch-layer, .arch-bedrock { padding-left: 52px; }
  .arch-fiche { grid-template-columns: 1fr 1fr; }
  .arch-planche, .arch-band .arch-planche { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}
