/* lenadesterro.com — collage artist portfolio.
   Palette and type carried over from the WordPress twentytwentyfour theme the
   site used, so the migration is not also a redesign: base #f9f9f9, contrast
   #111, muted #636363, Cardo for headings and Inter for body.
   Fonts are self-hosted; the WP site loaded them from the theme directory, and
   pulling them from a CDN instead would trade one origin dependency for another. */

@font-face {
  font-family: "Cardo";
  src: url("/fonts/cardo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #f9f9f9;
  --paper: #fff;
  --ink: #111;
  --muted: #636363;
  --line: #e2e2e2;
  --maxw: 68rem;
  --serif: "Cardo", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-underline-offset: .18em; }
a:hover { color: var(--muted); }

/* ---------- chrome ---------- */

.topbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem; letter-spacing: .01em; text-decoration: none;
}
.topbar nav { display: flex; gap: 1.5rem; }
.topbar nav a {
  font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink); }

main { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem 5rem; }

h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.2; margin: 1rem 0 2rem; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 .5rem; }

.lede { font-size: 1.15rem; max-width: 42rem; }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1.4rem; }

.site-footer {
  border-top: 1px solid var(--line);
  max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.5rem 3rem;
  color: var(--muted); font-size: .9rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }

/* ---------- gallery ----------
   Replaces the MetaSlider carousel. A slider hides six of seven works behind an
   interaction and needs JavaScript to show anything at all; a grid shows the
   whole body of work at once, which is what a portfolio is for. */

.gallery {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  margin: 0 0 4rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; background: var(--paper);
  border: 1px solid var(--line);
}
.gallery figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); }

/* ---------- works with video ---------- */

.work {
  display: grid; gap: 1.5rem 2.5rem; align-items: center;
  grid-template-columns: 1fr;
  padding: 2.5rem 0; border-top: 1px solid var(--line);
}
@media (min-width: 46rem) {
  .work { grid-template-columns: 1fr 1fr; }
  /* The media div comes first in the DOM so that on a phone, where the grid
     collapses to one column, the work is seen before it is described. `flip`
     therefore has to push it right, not left — ordering it -1 was a no-op. */
  .work.flip .work-media { order: 2; }
  .work.flip { justify-items: end; }
  .work.flip > :not(.work-media) { justify-self: start; }
}
.work-media { max-width: 26rem; width: 100%; }
.work video { width: 100%; background: #000; }
.work h2 { font-size: 1.35rem; }
.work p { margin: 0; color: var(--muted); }
