@font-face {
  font-family: "Inter";
  src: url("./fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("./fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/*
 * The Reading Room, cut down to its directory: a publisher masthead and one
 * list of the network. Colour arrives only as each project's own spine, numeral
 * and destination, so adding a site changes the palette and nothing else.
 *
 * The per-project accents are not written here. tools/build.mjs generates them
 * from network/sites.json into --accent-<slug>, once per ground, which is why
 * the manifest carries a colour pair rather than a single value.
 */

:root {
  color-scheme: light;

  --paper: #f7f4ec;
  --ink: #242922;
  --muted: #60675d;
  --rule: #cccec1;
  --accent: #3d5743;
  --live-ink: #385741;
  --live-ground: #e4ebdf;
  --live-rule: #bbc9b4;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

p {
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 2;
  left: 20px;
  top: -100px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 20px;
}

.page {
  max-width: 1380px;
  margin: auto;
  padding: 0 60px 96px;
}

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 106px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 26px/1 var(--serif);
  letter-spacing: -1px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-symbol {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 9px 8px;
  background: var(--ink);
  color: var(--paper);
  font: 600 10px/1 var(--sans);
  letter-spacing: 1px;
}

.brand-period {
  color: var(--accent);
}

.network-strip {
  display: flex;
  gap: 1px;
  height: 2px;
}

.network-strip span {
  flex: 1;
}

.masthead-note {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Directory */

.publication-directory {
  padding-top: 64px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.eyebrow {
  margin-bottom: 9px;
  font: 600 11px/1.6 var(--sans);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-heading h1 {
  font-size: clamp(33px, 4vw, 44px);
}

.section-aside {
  max-width: 26rem;
  font-size: 13px;
  text-align: right;
}

.publication-directory.link-tree {
  padding-top: 8px;
}

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-heading + .publication-list {
  border-top: 1px solid var(--rule);
}

.row-forever {
  --row-accent: var(--accent);
}

.publication-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.row-number {
  display: flex;
  align-items: center;
  height: 45px;
  padding-left: 10px;
  border-left: 3px solid var(--row-accent);
  color: var(--row-accent);
  font-size: 12px;
}

.publication-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.publication-title h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.publication-title a {
  text-decoration: none;
}

.publication-title a:hover {
  text-decoration: underline;
}

.publication-row p {
  margin-top: 7px;
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  color: var(--muted);
  font: 500 11px/1.2 var(--sans);
  white-space: nowrap;
}

.status-live {
  border-color: var(--live-rule);
  background: var(--live-ground);
  color: var(--live-ink);
}

.row-destination {
  color: var(--row-accent);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

a.row-destination:hover {
  text-decoration: underline;
}

/* Narrow */

@media (max-width: 900px) {
  .page {
    padding-inline: 22px;
  }

  .masthead {
    height: 83px;
  }

  .brand {
    gap: 9px;
    font-size: 24px;
  }

  .brand-symbol {
    padding: 8px 6px;
    font-size: 8px;
  }

  .publication-directory {
    padding-top: 44px;
  }

  .section-heading {
    display: block;
    margin-bottom: 22px;
  }

  .section-aside {
    margin-top: 10px;
    text-align: left;
  }

  .publication-row {
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 6px 12px;
    padding: 20px 0;
  }

  .row-number {
    height: 40px;
    padding-left: 7px;
    font-size: 10px;
  }

  .publication-title {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .publication-title h2 {
    font-size: 21px;
  }

  .row-destination {
    grid-column: 2;
  }
}

@media (max-width: 420px) {
  .masthead-note {
    display: none;
  }
}

/* Generated from network/sites.json by tools/build.mjs. Do not edit by hand. */
:root {
  --accent-g1: #155f7e;
  --accent-d4: #943a39;
  --accent-gw2: #77529c;
  --accent-pet: #8a3324;
  --accent-blog: #5955D1;
}

.row-g1 { --row-accent: var(--accent-g1); }
.row-d4 { --row-accent: var(--accent-d4); }
.row-gw2 { --row-accent: var(--accent-gw2); }
.row-pet { --row-accent: var(--accent-pet); }
.row-blog { --row-accent: var(--accent-blog); }

.strip-g1 { background: var(--accent-g1); }
.strip-d4 { background: var(--accent-d4); }
.strip-gw2 { background: var(--accent-gw2); }
.strip-pet { background: var(--accent-pet); }
.strip-blog { background: var(--accent-blog); }
