/* fabnet.foo — Blue Note design system
 * Tokens transcribed verbatim from design_handoff_fabnet_site/README.md.
 * Do not invent values here; if something is missing, it is missing from the handoff.
 */

:root {
  --ink:             #0D131D;
  --ink-raised:      #131A26;
  --navy:            #16345F;
  --accent:          #CDEA2B;
  --paper:           #F2EEE3;
  --white:           #FFFFFF;
  --body:            #DCE4EE;
  --muted:           #A9BCD8;
  --dim:             #8FA6C6;
  --hairline:        rgba(242, 238, 227, 0.12);
  --hairline-strong: rgba(242, 238, 227, 0.16);
  --hairline-rail:   rgba(242, 238, 227, 0.14);
  --rule-minor:      rgba(242, 238, 227, 0.3);

  --gutter: 52px;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --text:    Archivo, system-ui, -apple-system, sans-serif;
}

/* The design is dark-only by intent — an album cover, not a themed UI.
   Declaring the scheme stops browsers from auto-inverting form controls. */
:root { color-scheme: dark; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--paper);
  font-family: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* Not specified in the mocks. Required for accessibility — README, Interactions. */
a:focus-visible,
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------- page shell */

.page {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
}

.spacer { flex: 1; min-height: 60px; }

/* ---------------------------------------------------------------- header */

.masthead {
  padding: 30px var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  border-bottom: 1px solid var(--hairline-strong);
}

.wordmark {
  font-family: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper);
}

.nav { display: flex; flex-wrap: wrap; gap: 26px; }

.nav a {
  font-family: var(--text);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  /* Tap target — README flags header nav as under 44px. Enforce the height
     directly; padding math depends on font metrics and came up short at 38px. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -14px 0;
}

.nav a[aria-current='page'] { color: var(--accent); }

.backlink {
  font-family: var(--text);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -14px 0;
}

/* ---------------------------------------------------------------- section title block */

.titleblock {
  padding: 54px var(--gutter) 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.titleblock h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 11vw, 124px);
  line-height: 0.82;
  text-transform: uppercase;
  color: var(--accent);
}

.titleblock .description {
  max-width: 400px;
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  padding-bottom: 10px;
}

/* ---------------------------------------------------------------- footer */

.colophon {
  padding: 44px var(--gutter) 34px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--text);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.colophon--ruled {
  border-top: 1px solid var(--hairline-rail);
  margin-top: 52px;
}

/* ---------------------------------------------------------------- home */

.cover {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cover__photo { position: absolute; inset: 0; }
.cover__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder ground for before the photograph is supplied. */
.cover__photo--empty { background: var(--navy); }

.cover__scrim-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 14, 26, 0.94) 0%,
    rgba(8, 14, 26, 0.9) 44%,
    rgba(8, 14, 26, 0.82) 58%,
    rgba(8, 14, 26, 0) 76%);
  pointer-events: none;
}

.cover__scrim-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  /* Handoff README specifies 30%. Reduced to 10% at Cory's request
     (2026-09-20) — at 30% the corner scrim climbed too far up the
     photograph. Deliberate deviation from the spec; do not "correct" it. */
  height: 10%;
  background: linear-gradient(315deg,
    rgba(8, 14, 26, 0.92) 0%,
    rgba(8, 14, 26, 0.7) 42%,
    rgba(8, 14, 26, 0) 78%);
  pointer-events: none;
}

.cover__top {
  position: relative;
  padding: 46px var(--gutter) 0;
  display: flex;
  justify-content: flex-end;
}

.cover__block { max-width: 760px; text-align: right; }

.cover__wordmark {
  font-family: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--white);
}

.cover__title {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--accent);
}

.cover__nav {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.cover__nav a {
  font-family: var(--text);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.cover__gap { flex: 1; min-height: 280px; }

.cover__tagline {
  position: relative;
  padding: 0 var(--gutter) 40px;
  display: flex;
  justify-content: flex-end;
  font-family: var(--text);
  font-size: 12px;
  font-style: italic;
  color: var(--white);
}

/* ---------------------------------------------------------------- index table (Writing, Projects) */

.index { padding: 0 var(--gutter); display: flex; flex-direction: column; }

.index__head,
.index__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px;
  gap: 24px;
}

.index__head {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  font-family: var(--text);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

.index__row {
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.index__date {
  font-family: var(--text);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.index__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
}

.index__meta {
  font-family: var(--text);
  font-size: 12px;
  color: var(--dim);
  text-align: right;
}

.index__head span:last-child { text-align: right; }

/* Intel dates carry the day (2026.10.02), so the column is a little wider. */
.index--intel .index__head,
.index--intel .index__row { grid-template-columns: 110px minmax(0, 1fr) 110px; }

/* ---------------------------------------------------------------- notes timeline */

.feed { padding: 0 var(--gutter); max-width: 760px; }

.note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 20px; }

.note__rail { display: flex; flex-direction: column; align-items: center; }

.note__marker {
  width: 9px;
  height: 9px;
  background: var(--accent);
  margin-top: 22px;
  flex: none;
}

.note__spine { width: 1px; flex: 1; background: var(--hairline-strong); }

/* The mock's markup leaves a 22px blank above every marker (the marker's own
   margin-top), which breaks the rail between entries. The README is explicit
   that "consecutive entries form a continuous spine", so fill that gap with
   spine for every entry after the first, leaving marker alignment untouched. */
.note:not(:first-child) .note__marker { margin-top: 0; }

.note:not(:first-child) .note__rail::before {
  content: '';
  width: 1px;
  height: 22px;
  background: var(--hairline-strong);
  flex: none;
}

.note__content { padding: 18px 0 26px; }

.note__when {
  font-family: var(--text);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.note__body {
  margin-top: 10px;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

.note__body p { margin: 0 0 14px; }
.note__body p:last-child { margin-bottom: 0; }

.note__links { margin-top: 12px; display: flex; gap: 18px; }

.note__links a {
  font-family: var(--text);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  /* Tap target — README flags these as under 44px. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -14px 0;
}

/* ---------------------------------------------------------------- listening grid */

.records {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 34px 28px;
}

.record { display: flex; flex-direction: column; gap: 14px; }

.record__cover {
  aspect-ratio: 1;
  background: var(--navy);
  color: var(--paper);
  position: relative;
}

.record__cover img { width: 100%; height: 100%; object-fit: cover; }

.record__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
}

.record__artist {
  margin-top: 6px;
  font-family: var(--text);
  font-size: 13px;
  color: var(--muted);
}

.record__cta {
  margin-top: 8px;
  font-family: var(--text);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------------- elsewhere columns */

.columns {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px 44px;
  align-items: start;
}

.column__label {
  font-family: var(--text);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.link-row {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.link-row__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
}

.link-row__note {
  margin-top: 6px;
  font-family: var(--text);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------------------------------------------------------------- article */

.article {
  padding: 52px var(--gutter) 0;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.liner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid var(--hairline-rail);
  padding-right: 24px;
}

.liner__label {
  font-family: var(--text);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

.liner__value {
  margin-top: 5px;
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
}

.liner__rule { width: 40px; height: 3px; background: var(--accent); }

.article__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.86;
  text-transform: uppercase;
  color: var(--accent);
}

.article__standfirst {
  margin-top: 24px;
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.5;
  font-style: italic;
  color: var(--muted);
  max-width: 620px;
}

.article__notice {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-family: var(--text);
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
  max-width: 620px;
}

.prose {
  margin-top: 30px;
  max-width: 620px;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  text-wrap: pretty;
}

.prose p { margin: 0 0 18px; }

.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
  margin: 34px 0 14px;
}

.prose hr {
  width: 40px;
  height: 1px;
  background: var(--rule-minor);
  border: 0;
  margin: 30px 0;
}

.prose a { color: var(--accent); }

.prose blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 1px solid var(--hairline-strong);
  color: var(--muted);
  font-style: italic;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--paper);
}

.prose pre {
  background: var(--ink-raised);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

.prose img { margin: 24px 0; }

/* Section permalinks (lib/heading-anchors.js). Shown on Intel articles only,
   where each desk is a section people may want to link to or repost. */
.heading-anchor { display: none; }

.prose--intel .heading-anchor {
  display: inline;
  margin-left: 0.15em;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.45;
}

.prose--intel .heading-anchor:hover,
.prose--intel .heading-anchor:focus-visible { opacity: 1; }

.prose h2[id],
.prose h3[id] { scroll-margin-top: 24px; }

.prose--intel h3:target { color: var(--accent); }

/* Lists, sub-heads and tables: the Intel reports use all three. */
.prose h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--paper);
  margin: 30px 0 12px;
}

.prose ul,
.prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose li > ul,
.prose li > ol { margin: 8px 0 0; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--paper); }

/* display: block lets a wide table scroll inside the column instead of
   pushing the page sideways on a phone. */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
  min-width: 7em;
}

.prose th {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 2px solid var(--accent);
}

/* ---------------------------------------------------------------- empty states */

.empty {
  padding: 0 var(--gutter);
}

.empty__rule { width: 40px; height: 3px; background: var(--accent); }

.empty__label {
  margin-top: 16px;
  font-family: var(--text);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------------------------------------------------------------- responsive
 * The ~700px breakpoint is NOT in the mocks. README, Responsive behavior:
 * "This breakpoint is not in the mocks — implement it."
 */

@media (max-width: 700px) {
  :root { --gutter: 24px; }

  .article {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  /* The rail becomes a horizontal metadata strip above the title. */
  .liner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline-rail);
    padding-right: 0;
    padding-bottom: 20px;
  }

  .liner__rule { display: none; }

  .index__head,
  .index__row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px 16px;
  }

  .index__head span:last-child,
  .index__row .index__meta {
    grid-column: 2;
    text-align: left;
  }

  .index__title { font-size: 30px; }

  .index--intel .index__head,
  .index--intel .index__row { grid-template-columns: 88px minmax(0, 1fr); }
}

.next-link { color: var(--accent); }











