/* LOM+you — the grid of lom.audio (a page is a stack of bands; each band is a row of cells on a
   12-column grid with 1px lines between them: .band, .cell, .c3 … .c12; on phones the cells
   stack) with its own wordmark and colours, so it reads as a sibling of the other LOM sites, not a copy:
   pale lichen paper, deep moss ink for text, lines and caption bars, ultramarine as the signal. */
:root {
  --bg: #e3e7d6;          /* lichen */
  --tile: #cdd3bd;        /* empty picture */
  --ink: #13231a;         /* moss: text, hairlines, caption bars */
  --muted: #535d4c;
  --on-ink: #e3e7d6;
  --on-ink-muted: #9eab96;
  --accent: #2b3bff;      /* ultramarine: hover, numbers, the call to action */
  --on-accent: #fff;
  --edge: 16px;
  --line: 1px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header + menu */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 16px var(--edge) 14px;
  border-bottom: var(--line) solid var(--ink);
}
/* the wordmark is just "+you", flat, in the signal colour; the other LOM sites use the etched grey one */
.wordmark {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 64px;
  font-style: italic;
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.035em;
  color: var(--accent);
  text-decoration: none;
  margin-left: -.04em;
}
.wordmark:hover { color: var(--ink); }
.tagline { margin: 0; font-size: 15px; line-height: 1.25; }
.tagline a { font-style: italic; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }  /* LOM as in its own wordmark */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 10px var(--edge);
  border-bottom: var(--line) solid var(--ink);
  font-size: 15px;
}
.site-nav a { text-decoration: none; }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .25em; }
.site-nav .gap { flex: 1; }
.site-nav .out { color: var(--muted); margin-left: 2px; font-size: .9em; }

/* bands and cells */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--line);
  margin: 0;
  background: var(--ink);          /* shows through the gaps as the hairlines */
  border-bottom: var(--line) solid var(--ink);
}
.cell { background: var(--bg); padding: 20px var(--edge) 22px; min-width: 0; }
.title { margin: 0; font-size: 22px; font-weight: 400; line-height: 1.25; }
.kicker { margin: 0 0 6px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
.text p, .text ul, .text ol, .text blockquote { max-width: 66ch; margin: 0 0 .9em; }
.text h2, .text h3 { font-size: 18px; font-weight: 700; margin: 1.4em 0 .5em; }
.text ul, .text ol { padding-left: 1.2em; }
.text li { margin-bottom: .3em; }
.text blockquote { border-left: 3px solid var(--ink); padding-left: 14px; margin-left: 0; }
.text a { overflow-wrap: anywhere; }
.more { font-weight: 700; text-decoration: none; }
.button {
  display: inline-block;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 16px;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.button:hover { background: var(--accent); color: var(--on-accent); }

/* ---- front page ---- */

/* hero: the featured projects' photos, one after another, in an 8-column cell; the statement
   has its own moss cell beside it, so it never covers a photo */
.hero .slides { position: relative; padding: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.hero .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 22px var(--edge) 0;
  background: var(--ink);
  color: var(--on-ink);
}
.hero .statement {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 26px 0 0; font-size: 15px; }
.hero .actions .button { background: var(--accent); color: var(--on-accent); }
.hero .actions .button:hover { background: var(--on-ink); color: var(--ink); }
.hero .actions .more { color: var(--on-ink); font-weight: 400; }
.hero .actions .more:hover { color: #9aa3ff; }
.hero .statement .num { color: var(--on-accent); background: var(--accent); padding: 0 .12em; }
/* bottom of the moss panel: which photo is showing. Each part has its own line, so any number
   of photos and any length of name fit. */
.hero .credit {
  margin: 0 calc(-1 * var(--edge));
  padding: 0 var(--edge) 16px;
  border-top: var(--line) solid #2c3d31;
}
/* with several photos the progress bar is the divider line itself */
.hero .credit:has(.dots:not([hidden])) { border-top: 0; }
.hero .dots { display: flex; gap: 4px; margin: -1px 0 12px; padding: 0; list-style: none; }
.hero .dots li { flex: 1; }
.hero .dots button { display: block; width: 100%; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero .dots button::before { content: ""; display: block; height: 2px; background: #3e5144; transition: background-color .2s ease; }
.hero .dots button[aria-current="true"]::before { background: var(--on-ink); }
.hero .dots button:hover::before { background: #9aa3ff; }
.hero .credit .kicker { margin: 12px 0 4px; color: var(--on-ink-muted); }
.hero .dots:not([hidden]) + .kicker { margin-top: 0; }
.hero .credit .count { font-variant-numeric: tabular-nums; }
.hero .credit .who { display: inline-block; color: var(--on-ink); text-decoration: none; font-size: 19px; line-height: 1.2; }
.hero .credit .who .arrow { color: var(--on-ink-muted); transition: color .15s ease; }
.hero .credit .who:hover, .hero .credit .who:hover .arrow { color: #9aa3ff; }
.hero .credit .tags { margin: 3px 0 0; min-height: 1.3em; color: var(--on-ink-muted); font-size: 14px; }

/* about */
.about .lead { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.18; letter-spacing: -0.01em; margin: 0; max-width: 18ch; }

/* focus areas: a row of five picture tiles */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ink);
  border-bottom: var(--line) solid var(--ink);
}
.focus-grid li { display: flex; min-width: 0; background: var(--ink); }
.focus-grid li:last-child:nth-child(odd) { grid-column: span 2; }
.focus-grid li:last-child:nth-child(odd) .pic { aspect-ratio: 2 / 1; }
.focus-grid .cap { flex-direction: row; justify-content: space-between; align-items: baseline; }
.focus-grid .count { color: var(--on-ink-muted); font-variant-numeric: tabular-nums; transition: color .15s ease; }
.tile:hover .count, .tile:focus-visible .count { color: var(--on-accent); }

.section-head .cell { padding-top: 26px; padding-bottom: 14px; }
.section-head .title { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.01em; }

.filters .cell { padding-top: 14px; padding-bottom: 14px; }
.facet { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 6px; margin: 0 0 8px; }
.facet .label { width: 100%; font-size: 13px; color: var(--muted); }
.chip {
  display: inline-block;
  border: var(--line) solid var(--ink);
  padding: 3px 10px 4px;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 999px;
  background: transparent;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.showing { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* project tiles */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ink);
  border-bottom: var(--line) solid var(--ink);
}
.grid li { display: flex; min-width: 0; background: var(--ink); }
.tile { flex: 1; display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.tile:hover { color: inherit; }
.pic { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: var(--tile); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px var(--edge) 12px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
  line-height: 1.3;
  transition: background-color .15s ease, color .15s ease;
}
.cap .meta { color: var(--on-ink-muted); font-size: 13px; transition: color .15s ease; }
.tile:hover .cap, .tile:focus-visible .cap { background: var(--accent); color: var(--on-accent); }
.tile:hover .meta, .tile:focus-visible .meta { color: var(--on-accent); }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.empty .cell { display: block; }

/* call to action: the one ultramarine band */
.cta { background: var(--accent); border-bottom-color: var(--ink); }
.cta .cell { background: var(--accent); color: var(--on-accent); padding-top: 34px; padding-bottom: 36px; }
.cta .title { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.015em; font-weight: 500; max-width: 16ch; }
.cta a:hover { color: var(--on-accent); }
.cta .button { background: var(--on-accent); color: var(--accent); font-weight: 700; }
.cta .button:hover { background: var(--ink); color: var(--on-ink); }

/* ---- project page ---- */
.project-head .photo { padding: 0; background: var(--bg); }
.project-head figure, .gallery figure { margin: 0; }
.project-head .photo img { width: 100%; }
figcaption { padding: 8px var(--edge) 10px; font-size: 13px; color: var(--muted); background: var(--bg); }
.info h1 { margin: 6px 0 18px; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.crumbs { margin: 0; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 22px; padding-bottom: 18px; border-bottom: var(--line) solid var(--ink); font-size: 15px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; }
.player { margin: 1.2em 0; max-width: 66ch; }
.player iframe { display: block; width: 100%; border: 0; background: var(--tile); }
.player.video iframe { aspect-ratio: 16 / 9; height: auto; }
.player.audio iframe { height: 120px; }
.player figcaption { padding-left: 0; }
.gallery figure { padding: 0; background: var(--tile); }
.gallery img { width: 100%; }
.gallery .filler { display: none; }
.pager .cell { padding-top: 14px; padding-bottom: 14px; font-size: 15px; }
.pager a { text-decoration: none; }
.pager .cell:empty { display: none; }

/* footer */
.site-footer { font-size: 13px; color: var(--muted); }
.site-footer p, .site-footer ul { margin: 0; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer strong { color: var(--ink); }

@media (min-width: 720px) {
  :root { --edge: 20px; }
  .site-header { padding-top: 26px; padding-bottom: 20px; gap: 4px 18px; }
  .wordmark { font-size: clamp(88px, 9vw, 132px); }
  .tagline { font-size: clamp(16px, 1.5vw, 20px); }
  .band { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .band > .cell { grid-column: span 12; }
  .band > .c3 { grid-column: span 3; }
  .band > .c4 { grid-column: span 4; }
  .band > .c5 { grid-column: span 5; }
  .band > .c6 { grid-column: span 6; }
  .band > .c7 { grid-column: span 7; }
  .band > .c8 { grid-column: span 8; }
  .band > .c12 { grid-column: span 12; }
  .title { font-size: clamp(22px, 2vw, 28px); }
  .text p, .text li { font-size: 17px; }

  /* header + menu are about 210px: together with the hero they fill the first screen. The band sets
     the height; the photo cell stretches with the row (also when the text beside it runs longer)
     and the photo is cropped to fill it, never letterboxed. */
  .hero { min-height: max(480px, min(calc(100vh - 210px), 52vw)); }
  .hero .slides { aspect-ratio: auto; height: auto; }
  .hero .panel { padding-top: 26px; }

  .focus-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .focus-grid li:last-child:nth-child(odd) { grid-column: auto; }
  .focus-grid li:last-child:nth-child(odd) .pic { aspect-ratio: 1; }

  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cap { font-size: 17px; padding-top: 12px; padding-bottom: 14px; }
  .facet .label { width: 6.5em; flex: none; }
  .info h1 { font-size: clamp(32px, 3.4vw, 52px); }
  .gallery .filler { display: block; }
  /* the photo stays in view while the text beside it scrolls */
  .project-head .photo figure { position: sticky; top: 0; }
  .project-head .photo img { max-height: 100vh; object-fit: cover; }
  .pager .cell:empty { display: block; }
  .pager .middle { text-align: center; }
  .pager .end { text-align: right; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .cap, .meta, .button, .hero .slide { transition: none; }
}
