/* abdoulatifoudare.com
   Layout: a field notebook. One narrow column of text, interrupted by wider photo plates;
   every project carries a sample label (place, coordinates, years). */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #ECE1C2;      /* dry straw */
  --paper-2: #E2D3AB;    /* deeper straw */
  --ink: #2A1E14;        /* umber */
  --ink-soft: #634F3A;   /* field-note brown */
  --rule: #CBB889;
  --accent: #8A4A0C;     /* ginger root */
  --shade: rgba(42, 30, 20, 0.9);
  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --col: 40rem;
  --plate: 60rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B140E; --paper-2: #261D15; --ink: #EBDDB9; --ink-soft: #B39F7C;
    --rule: #3E3124; --accent: #E2A14B; --shade: rgba(10, 7, 4, 0.92); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B140E; --paper-2: #261D15; --ink: #EBDDB9; --ink-soft: #B39F7C;
  --rule: #3E3124; --accent: #E2A14B; --shade: rgba(10, 7, 4, 0.92); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.wrap { max-width: var(--plate); margin: 0 auto; padding-block: 2.25rem 3rem; display: flex; flex-direction: column; gap: 3.5rem; }
.col { max-width: var(--col); width: 100%; margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: 12px; background: var(--paper-2); padding: 0.4rem 0.7rem; z-index: 30; }

.site-head { display: flex; flex-direction: column; gap: 0.9rem; }
.wordmark { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; text-decoration: none; letter-spacing: -0.01em; width: fit-content; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.25rem; font-size: 0.98rem; }
.nav a { text-decoration: none; padding-block: 0.15rem; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.theme-btn { appearance: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0.2rem; display: inline-grid; place-items: center; border-radius: 50%; }
.theme-btn svg { width: 1.05rem; height: 1.05rem; }

.eyebrow, .label, .meta { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.02; }
h2 { font-size: 1.65rem; line-height: 1.15; }
.prose { display: flex; flex-direction: column; gap: 1.05rem; }
.prose p, .page-head p { margin: 0; }
.lead { font-size: 1.22rem; line-height: 1.5; }
main { outline: none; display: flex; flex-direction: column; gap: 3.5rem; }
main > * { animation: rise 0.45s ease-out both; }
@keyframes rise { from { transform: translateY(6px); opacity: 0.4; } to { transform: none; opacity: 1; } }

.hero { display: flex; flex-direction: column; gap: 1.6rem; }
.portrait { width: 8.5rem; height: 8.5rem; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.hero-top { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-top .label { display: flex; flex-direction: column; gap: 0.15rem; }

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.strip figure { margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.strip button { padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; animation: develop 1.6s ease-out both; }
.strip figure:nth-child(2) img { animation-delay: 0.25s; }
.strip figure:nth-child(3) img { animation-delay: 0.5s; }
@keyframes develop { from { filter: sepia(0.85) contrast(0.85) brightness(1.08); } to { filter: none; } }
.strip figcaption { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-soft); line-height: 1.35; }

.section { display: flex; flex-direction: column; gap: 1.25rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.55rem; }
.section-head a { font-size: 0.92rem; white-space: nowrap; }

.entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.35rem; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.25rem; row-gap: 0.25rem; }
.entry .t { font-weight: 600; font-size: 1.05rem; line-height: 1.35; min-width: 0; }
.entry .t a { text-decoration: none; }
.entry .t a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.entry .when { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; padding-top: 0.15rem; font-variant-numeric: tabular-nums; }
.entry .d { grid-column: 1 / -1; color: var(--ink-soft); margin: 0; min-width: 0; }
.entry .more { grid-column: 1 / -1; margin: 0.2rem 0 0; min-width: 0; }

.now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1.1rem; align-items: baseline; }
.now p { margin: 0; }

.sites { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sites td { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.sites td + td { padding-left: 1rem; }
.sites .c { font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sites .n { font-weight: 600; }
.sites .w { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

.sample { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; padding: 0.65rem 0.85rem; background: var(--paper-2); border-left: 3px solid var(--accent); width: fit-content; max-width: 100%; }
.page-head { display: flex; flex-direction: column; gap: 1rem; }
.back { font-size: 0.92rem; width: fit-content; }

.plates { columns: 2 18rem; column-gap: 0.85rem; }
.plates figure { break-inside: avoid; margin: 0 0 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; }
.plates button { padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; display: block; width: 100%; }
.plates figcaption { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; }
.plates.three { columns: 3 15rem; }
.photo-group { display: flex; flex-direction: column; gap: 1rem; }
.photo-groups { display: flex; flex-direction: column; gap: 2.75rem; }

.cv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.cv li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.25rem; row-gap: 0.15rem; }
.cv .role { font-weight: 600; min-width: 0; }
.cv .org { grid-column: 1 / -1; color: var(--ink-soft); min-width: 0; }
.cv .note { grid-column: 1 / -1; margin: 0.15rem 0 0; min-width: 0; }
.cv .when { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; padding-top: 0.15rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--paper-2); padding: 0.25rem 0.6rem; font-size: 0.9rem; border-radius: 2px; }

.essay { display: flex; flex-direction: column; gap: 1.6rem; }
.essay .prose p { font-size: 1.1rem; line-height: 1.7; }
.essay .prose p:first-child::first-letter { font-family: var(--f-display); float: left; font-size: 3.4em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--accent); }

.site-foot { border-top: 1px solid var(--rule); padding-top: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; font-size: 0.95rem; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.email { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.email code { font-family: var(--f-mono); font-size: 0.88rem; user-select: all; overflow-wrap: anywhere; }
.copy-btn { appearance: none; font: inherit; font-size: 0.82rem; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); padding: 0.15rem 0.55rem; cursor: pointer; border-radius: 2px; }
.copy-btn:hover { border-color: var(--accent); }
.fine { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 40; background: var(--shade); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.75rem;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb-bar { display: flex; justify-content: flex-end; gap: 0.5rem; }
.lb-btn { appearance: none; font: inherit; color: #F3E8CC; background: rgba(255, 245, 225, 0.08); border: 1px solid rgba(255, 245, 225, 0.25); padding: 0.35rem 0.8rem; cursor: pointer; border-radius: 2px; }
.lb-btn:hover { background: rgba(255, 245, 225, 0.18); }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lb-cap { color: #F3E8CC; text-align: center; font-size: 0.95rem; max-width: 40rem; margin: 0 auto; }

@media (max-width: 34rem) {
  .wrap { padding-block: 1.5rem 2.5rem; gap: 2.75rem; }
  main { gap: 2.75rem; }
  .portrait { width: 6.5rem; height: 6.5rem; }
  .strip { gap: 0.45rem; }
  .strip figcaption { font-size: 0.66rem; }
  .now { grid-template-columns: minmax(0, 1fr); }
  .sites .w { display: none; }
}
@media (prefers-reduced-motion: reduce) { main > *, .strip img { animation: none; } }
