/* KU / phase one: graphite, artwork-first feed, typographic interface. */
/* Local IBM Plex Sans fonts: see static/content/fonts/README.md. */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Light.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #353a3b;
  --ink: #e8ecea;
  --reading: #d8dedc;
  --muted: #b5c0bd;
  --line: #616b6c;
  --accent: #adc3bc;
  --empty: #2b3132;
  --font: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.1; overflow-wrap: anywhere; }
time { color: var(--muted); font-variant-numeric: tabular-nums; }
.shell { width: min(var(--max-width), calc(100% - 80px)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link { position: fixed; z-index: 10; top: -100px; left: 20px; padding: 12px 18px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header {
  padding-block: 29px 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; border-bottom: 1px solid var(--line);
}
.brand { display: inline-block; font-size: 31px; font-weight: 300; letter-spacing: .01em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 45px; max-height: 45px; width: auto; margin-left: 5px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 38px; }
.site-nav[hidden] { display: none; }
.site-nav a {
  font-size: 15px; font-weight: 300;
  letter-spacing: .055em; text-transform: uppercase;
}
.site-nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 9px; }
main.shell { min-height: 65vh; padding-block: 0 90px; }
.site-footer {
  display: flex; justify-content: space-between; gap: 24px;
  padding-block: 23px 44px;
  color: var(--muted); font-size: 13px; font-weight: 300;
  letter-spacing: .07em;
}
.footer-email { color: var(--reading); }
/* Homepage has no ornamental hero. Each entry starts at the header rule. */
.feed-entry { padding-block: 48px 56px; border-bottom: 1px solid var(--line); min-width: 0; }
.feed-entry-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 10px 24px; margin-bottom: 23px;
  color: var(--muted); font-size: 14px;
  letter-spacing: .065em; text-transform: uppercase; font-weight: 300;
}
.feed-entry-head time { font-size: inherit; margin-left: auto; }
.entry-kind { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 17px; }
.updated-label { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); }
.updated-label::before { content: ''; display: block; width: 6px; height: 6px; background: var(--accent); }
.cover-mosaic {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%; gap: 3px; text-decoration: none; align-items: start;
}
.cover-mosaic:hover { text-decoration: none; }
.cover-mosaic > img,
.cover-mosaic > .mosaic-placeholder {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  object-fit: cover; min-width: 0;
}
.cover-mosaic.mosaic--count-1 { grid-template-columns: minmax(0, 1fr); max-width: 450px; }
.cover-mosaic.mosaic--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.cover-mosaic.mosaic--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 990px; }
.cover-mosaic.mosaic--count-0 { display: grid; grid-template-columns: 1fr; }
.mosaic-placeholder,
.mosaic-empty {
  display: grid !important; place-items: center;
  padding: 15px; text-align: center; background: var(--empty);
  color: var(--muted); font-size: 14px; text-transform: uppercase;
  letter-spacing: .065em; border: 1px solid var(--line);
}
.mosaic-empty { min-height: 190px; width: 100%; }
.feed-collection-text { padding-top: 26px; }
.entry-excerpt { max-width: 760px; color: var(--reading); font-size: 18px; line-height: 1.6; margin-top: 17px; overflow-wrap: anywhere; }
.entry-excerpt > p:last-of-type:has(+ .excerpt-more) { display: inline; }
.entry-excerpt > .excerpt-more { margin-top: 0; }
.feed-post { padding-block: 42px 45px; }
.feed-post .feed-entry-head { margin-bottom: 11px; }
.feed-collection h2, .feed-post h2 { font-size: clamp(30px, 3.2vw, 43px); max-width: 930px; letter-spacing: -.012em; }
.feed-post .entry-excerpt { margin-top: 13px; max-width: 780px; }
.tags {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 0; margin: 21px 0 0; list-style: none;
  color: var(--muted); font-weight: 300; font-size: 13px;
  text-transform: uppercase; letter-spacing: .065em;
}
.tag-feed-heading { padding-top: 32px; }
.tag-feed-heading h1 { font-size: clamp(30px, 3.2vw, 43px); margin-bottom: 12px; }
.tag-feed-heading > a { color: var(--muted); font-size: 14px; text-decoration: underline; }
.tags li { overflow-wrap: anywhere; }
.tags li + li::before { content: '/'; display: inline-block; margin-right: 22px; color: var(--line); }
/* Existing list and detail templates remain functional during phase one. */
.intro { max-width: 900px; padding-block: 58px 40px; margin-bottom: 35px; }
.intro h1 { font-size: clamp(38px, 5vw, 65px); margin: 8px 0 20px; }
.intro > p:not(.eyebrow), .intro > .prose { max-width: 740px; color: var(--reading); }
.intro time { display: block; margin: 12px 0; font-size: 14px; }
.eyebrow, .album-meta { color: var(--muted); font-size: 13px; letter-spacing: .065em; text-transform: uppercase; font-weight: 300; }
.collection-grid, .album-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 30px; }
.collection-card { min-width: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.collection-card h2, .album-card h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 15px 0 10px; }
.collection-card > p:not(.eyebrow) { color: var(--reading); }
.collection-card time { display: block; margin-top: 18px; font-size: 13px; }
.post-list { max-width: 910px; }
.post-preview { border-bottom: 1px solid var(--line); padding: 27px 0 38px; }
.post-preview h2 { font-size: clamp(31px, 3vw, 42px); margin: 12px 0; }
.post-preview > p { color: var(--reading); }
.post-preview time { font-size: 14px; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.missing-cover { display: grid; place-items: center; background: var(--empty); color: var(--muted); border: 1px solid var(--line); font-size: 14px; }
.album-card { min-width: 0; }
.album-card .artist { font-size: 16px; color: var(--muted); text-transform: uppercase; }
.album-card .album-meta { margin-top: 10px; }
.album-comment { padding-top: 16px; margin-top: 18px; }
.album-links { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 15px; color: var(--muted); }
.album-links summary { cursor: pointer; width: fit-content; }
.album-links summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.album-links summary::marker { color: var(--accent); }
.album-links[open] summary { color: var(--ink); }
.album-links ul { list-style: none; margin: 12px 0 0; padding: 0; }
.album-links li { margin-top: 8px; overflow-wrap: anywhere; }
.album-links a { text-decoration: underline; color: var(--reading); }
.link-count { font-size: 13px; }
.post-detail { max-width: 800px; margin-inline: auto; }
.post-body { max-width: 740px; }
.post-featured-image { width: 100%; max-width: 700px; margin: 24px auto; }
.post-featured-image img { display: block; width: 100%; height: auto; }
.post-featured-image figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.feed-post .post-featured-image figcaption { font-weight: 300; letter-spacing: .065em; }
.post-body img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.prose { color: var(--reading); font-size: 18px; line-height: 1.72; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h1 { font-size: 38px; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 25px; }
.prose a { text-decoration: underline; }
.prose blockquote { border-left: 2px solid var(--line); padding-left: 20px; margin-left: 0; color: var(--muted); }
.prose pre { padding: 18px; background: var(--empty); overflow-x: auto; white-space: pre; }
.prose code { font: .87em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.prose :not(pre) > code { background: var(--empty); padding: .1em .25em; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.back-link { display: inline-block; margin-top: 26px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.empty { padding-block: 45px; color: var(--muted); }
.pagination {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 42px; color: var(--muted); font-size: 14px;
  text-transform: uppercase; letter-spacing: .05em;
}
.pagination a { min-width: 36px; min-height: 44px; display: grid; place-items: center; }
.pagination a[aria-current='page'] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .cover-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-mosaic.mosaic--count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .cover-mosaic.mosaic--count-1 { max-width: 100%; }
  .cover-mosaic.mosaic--count-2 { max-width: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .shell { width: calc(100% - 40px); }
  .site-header { display: block; min-height: 0; padding-block: 24px 12px; }
  .brand { font-size: 29px; }
  .site-nav { margin-top: 23px; min-height: 49px; gap: 28px; }
  .site-nav a { font-size: 15px; }
  main.shell { padding-bottom: 65px; }
  .feed-entry { padding-block: 31px 39px; }
  .feed-entry-head { font-size: 13px; margin-bottom: 18px; }
  .feed-post .post-featured-image figcaption { font-size: 13px; }
  .cover-mosaic { gap: 2px; }
  .mosaic-placeholder, .mosaic-empty { font-size: 12px; }
  .mosaic-empty { min-height: 150px; }
  .feed-collection-text { padding-top: 22px; }
  .entry-excerpt { font-size: 17px; }
  .feed-collection h2, .feed-post h2 { font-size: clamp(29px, 7.5vw, 36px); }
  .feed-post { padding-block: 28px 34px; }
  .tags { gap: 8px 13px; }
  .tags li + li::before { margin-right: 13px; }
  .collection-grid, .album-grid { grid-template-columns: 1fr; }
  .intro { padding-block: 38px 28px; }
  .intro h1 { font-size: clamp(36px, 9vw, 46px); }
  .prose { font-size: 17px; }
  .site-footer { padding-bottom: 30px; }
}
