/* Sierra Yard Index — high-desert ledger.
   Hand-written for this publication only. It shares no rule, no class name and no token with the
   other two sites in this network, which is the whole point: a network is identified by a shared
   literal in the markup, not by where it is hosted. Prefix: syi-. */

:root {
  --syi-paper:   #f6f3ec;   /* bone, sampled off high-desert soil rather than pure white */
  --syi-card:    #fffdf8;
  --syi-rule:    #ddd6c6;
  --syi-ink:     #24261f;   /* 13.6:1 on paper */
  --syi-ink-2:   #5c5f52;   /* 6.1:1  on paper */
  --syi-sage:    #3d5a45;   /* 7.9:1  on paper — headings, marks, band A */
  --syi-sage-lo: #eaefe7;
  --syi-rust:    #9c4a1f;   /* 6.2:1  on paper — accents, rank numerals */
  --syi-rust-lo: #f6e9e0;
  --syi-gold:    #8a6a17;   /* 5.3:1  — band B */
  --syi-measure: 68ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--syi-paper);
  color: var(--syi-ink);
  font: 400 17px/1.65 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "kern" 1;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--syi-sage);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 1.25rem + 2.6vw, 2.9rem); letter-spacing: -.012em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); margin-top: 0; }
h3 { font-size: 1.12rem; color: var(--syi-ink); }

p { margin: 0 0 1.05em; }

a { color: var(--syi-rust); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: #7d3a15; }

.syi-wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }

.syi-skip {
  position: absolute; left: -9999px; top: 0; background: var(--syi-sage); color: #fff;
  padding: 10px 16px; z-index: 9;
}
.syi-skip:focus { left: 0; }

/* ---------------------------------------------------------------- masthead */
.syi-top {
  background: var(--syi-card);
  border-bottom: 2px solid var(--syi-sage);
  position: sticky; top: 0; z-index: 5;
}
.syi-top-in {
  display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap;
  padding: 12px 0 10px;
}
.syi-mark {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.22rem; font-weight: 700; text-decoration: none; line-height: 1.05;
  display: flex; flex-direction: column;
}
.syi-mark-a { color: var(--syi-sage); }
.syi-mark-b {
  color: var(--syi-rust); font: 500 .62rem/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .26em; text-transform: uppercase; padding-top: 4px;
}
.syi-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.syi-nav a {
  color: var(--syi-ink-2); text-decoration: none;
  font-size: .845rem; font-weight: 500; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.syi-nav a:hover { color: var(--syi-sage); border-bottom-color: var(--syi-rule); }
.syi-nav a[aria-current="page"] { color: var(--syi-sage); border-bottom-color: var(--syi-rust); }

/* ---------------------------------------------------------------- hub */
.syi-hero { padding: 46px 0 8px; max-width: 72ch; }
.syi-lede { font-size: 1.12rem; color: var(--syi-ink-2); }
.syi-lede-2 {
  font-size: 1.02rem; border-left: 3px solid var(--syi-rust);
  padding: 2px 0 2px 16px; margin-top: 22px;
}

.syi-cards { list-style: none; padding: 0; margin: 30px auto 10px; display: grid; gap: 18px; }
@media (min-width: 720px) { .syi-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.syi-card {
  background: var(--syi-card); border: 1px solid var(--syi-rule);
  border-top: 3px solid var(--syi-sage); padding: 20px 22px 18px;
}
.syi-card h2 { font-size: 1.16rem; margin-bottom: .45em; }
.syi-card h2 a { color: var(--syi-sage); text-decoration: none; }
.syi-card h2 a:hover { text-decoration: underline; }
.syi-card p { font-size: .94rem; color: var(--syi-ink-2); margin-bottom: .6em; }
.syi-card-k {
  font: 500 .66rem/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .2em; text-transform: uppercase; color: var(--syi-rust); margin-bottom: 10px;
}
.syi-card-n { font-size: .8rem !important; color: #7d8071 !important; margin: 0 !important; }

.syi-note { max-width: var(--syi-measure); padding: 26px 0 50px; }
.syi-note h2 { margin-top: 26px; }

/* ---------------------------------------------------------------- article */
.syi-art { max-width: var(--syi-measure); padding: 40px 0 56px; }
.syi-art-plain { }

.syi-kicker {
  font: 500 .68rem/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .2em; text-transform: uppercase; color: var(--syi-rust); margin-bottom: 14px;
}
.syi-bluf {
  font-size: 1.1rem; background: var(--syi-sage-lo);
  border-left: 4px solid var(--syi-sage); padding: 16px 18px; margin: 0 0 16px;
}
.syi-byline {
  font-size: .85rem; color: var(--syi-ink-2);
  border-bottom: 1px solid var(--syi-rule); padding-bottom: 18px; margin-bottom: 34px;
}
.syi-h-table { font-size: 1.28rem; }

/* table: the wrapper scrolls, never the page (memory: mobile-overflow-two-questions) */
.syi-tw { overflow-x: auto; margin: 0 0 40px; }
.syi-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .9rem; }
.syi-table caption {
  caption-side: top; text-align: left; font-size: .8rem; color: var(--syi-ink-2);
  padding-bottom: 8px;
}
.syi-table th, .syi-table td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--syi-rule);
  vertical-align: top;
}
.syi-table thead th {
  font: 500 .72rem/1.3 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em; text-transform: uppercase; color: var(--syi-ink-2);
  border-bottom: 2px solid var(--syi-sage);
}
.syi-table tbody th { font-weight: 600; }
.syi-table .syi-r {
  font: 500 .9rem "IBM Plex Mono", ui-monospace, monospace; color: var(--syi-ink-2); width: 2.6rem;
}
.syi-lead { background: var(--syi-sage-lo); }
.syi-lead .syi-r { color: var(--syi-rust); }

.syi-sc { font: 500 .92rem "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.syi-sc-a { color: var(--syi-sage); }
.syi-sc-b { color: var(--syi-gold); }
.syi-sc-c { color: var(--syi-ink-2); }

/* entries */
.syi-entry { border-top: 1px solid var(--syi-rule); padding: 28px 0 6px; }
.syi-entry-lead {
  border-top: 3px solid var(--syi-rust); background: var(--syi-card);
  padding: 26px 22px 10px; margin-inline: -22px;
}
@media (max-width: 560px) { .syi-entry-lead { margin-inline: -16px; padding-inline: 16px; } }

.syi-entry-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.syi-rank { margin: 0; flex: 0 0 auto; }
.syi-rank span {
  display: grid; place-items: center; width: 40px; height: 40px;
  font: 500 1.05rem "IBM Plex Mono", ui-monospace, monospace;
  color: var(--syi-rust); background: var(--syi-rust-lo); border-radius: 50%;
}
.syi-entry-lead .syi-rank span { color: #fff; background: var(--syi-rust); }
.syi-entry-head h2 { margin-bottom: .2em; }
.syi-tag { font-size: .98rem; color: var(--syi-ink-2); margin-bottom: .35em; }
.syi-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem;
            color: var(--syi-ink-2); margin: 0; }

/* key facts: the grid belongs to the <dl>, never to a row (memory: no-grid-on-list-item) */
.syi-facts {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0; margin: 18px 0; border-top: 1px solid var(--syi-rule); font-size: .92rem;
}
.syi-facts dt {
  font: 500 .72rem/1.5 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em; text-transform: uppercase; color: var(--syi-ink-2);
  padding: 9px 12px 9px 0; border-bottom: 1px solid var(--syi-rule);
}
.syi-facts dd {
  margin: 0; padding: 9px 0; border-bottom: 1px solid var(--syi-rule);
}
.syi-facts-wide { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
@media (max-width: 620px) {
  .syi-facts, .syi-facts-wide { grid-template-columns: minmax(0, 1fr); }
  .syi-facts dt { border-bottom: 0; padding-bottom: 0; }
  .syi-facts dd { padding-top: 2px; }
}

.syi-why, .syi-bf { font-size: .96rem; }
.syi-why b, .syi-bf b { color: var(--syi-sage); }
.syi-cta { margin: 18px 0 4px; }
.syi-cta .syi-out {
  display: inline-block; background: var(--syi-sage); color: #fffdf8;
  padding: 11px 20px; text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: 2px;
}
.syi-cta .syi-out:hover { background: #334b3a; color: #fffdf8; }

.syi-method, .syi-faq { border-top: 2px solid var(--syi-sage); padding-top: 26px; margin-top: 34px; }
.syi-q { border-bottom: 1px solid var(--syi-rule); padding-bottom: 14px; margin-bottom: 16px; }
.syi-q h3 { margin-bottom: .35em; }
.syi-q p { margin: 0; font-size: .96rem; color: var(--syi-ink-2); }

.syi-bio {
  font-size: .87rem; color: var(--syi-ink-2); font-style: italic;
  border-top: 1px solid var(--syi-rule); padding-top: 20px; margin-top: 34px;
}

/* ---------------------------------------------------------------- footer */
.syi-foot {
  background: #2c3329; color: #d7d9cf; margin-top: 40px; padding: 34px 0 40px;
  font-size: .88rem;
}
.syi-foot a { color: #cbb69a; }
.syi-foot-lede {
  font-family: "Source Serif 4", Georgia, serif; font-size: 1.05rem; color: #f0efe6;
  margin-bottom: .8em;
}
.syi-foot-thin { color: #9ba095; font-size: .82rem; margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: 84px; }
