/* gear.charlessieg.com, "Gear and Goods": the rules for each page type, on the tokens and parts in style.css: the Ledger
   (home), the shelves directory and one shelf, an item, field notes and a post, the Colophon, and the 404. */

/* --- The Ledger (home) -------------------------------------------------------------------------------------------- */
.home-head { display: grid; gap: 2rem; padding-block: 2rem 1rem; align-items: start; }
@media (min-width: 900px) { .home-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; padding-block: 3rem 2rem; } }
.home-head .eyebrow { display: inline-block; }
.wordmark { margin-top: 0.75rem; text-transform: uppercase; }
.dek { margin-top: 1rem; max-width: 36rem; }
.home-head .stats { margin-top: 1.5rem; }
.note-box { display: flex; gap: 0.75rem; margin-top: 1rem; padding: 1rem; background: var(--paper-raised); border-radius: var(--radius); color: var(--ink-2); }
.note-box .icon { margin-top: 0.15rem; color: var(--ink-2); }
.note-box__title { font-family: var(--font-mono); font-size: 0.7rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.note-box p { font-size: 0.95rem; line-height: 1.5rem; }
.note-box__go { margin-top: 0.5rem; }
.plate--hero .plate__frame { padding: 1rem; }

.shelf-tiles { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .shelf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .shelf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shelf-tile { display: flex; }
.shelf-tile a { display: flex; flex-direction: column; flex: 1; gap: 0.35rem; padding: 1.25rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.shelf-tile a:hover { border-color: var(--ink); color: var(--ink); }
.shelf-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.shelf-tile__num { font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; line-height: 2.25rem; letter-spacing: -0.02em; color: var(--accent); }
.shelf-tile__count { background: var(--paper); border-color: var(--rule); }
.shelf-tile--empty .shelf-tile__count { color: var(--ink-3); }
.shelf-tile__name { font-size: 1.25rem; line-height: 1.6rem; }
.shelf-tile__long { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.shelf-tile__dek { font-size: 0.95rem; line-height: 1.55rem; color: var(--ink-2); }
.shelf-tile__foot { display: flex; align-items: center; justify-content: flex-end; gap: 0.35rem; margin-top: auto; padding-top: 1rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }

.chipbar { display: none; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.js .chipbar { display: flex; }
.chipbar__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.chip--pick { cursor: pointer; font: inherit; font-family: var(--font-mono); font-size: 0.68rem; line-height: 1rem; letter-spacing: 0.05em; text-transform: uppercase; background: transparent; color: var(--ink-2); padding: 0.3rem 0.6rem; }
.chip--pick:hover { color: var(--ink); border-color: var(--ink-3); }
.chip--pick[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.note-cards { display: grid; gap: 1rem; }
.note-card { display: grid; gap: 0.75rem 1.5rem; padding: 1.25rem; background: var(--paper-raised); border-radius: var(--radius); align-items: center; }
@media (min-width: 800px) { .note-card { grid-template-columns: 11rem minmax(0, 1fr) auto; padding: 1.5rem; } }
.note-card__date { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.note-card__title { font-size: 1.5rem; line-height: 1.9rem; }
.note-card__title a { text-decoration: none; }
.note-card__title a:hover { text-decoration: underline; }
.note-card__dek { margin-top: 0.4rem; max-width: 60ch; font-size: 1.0625rem; line-height: 1.6rem; color: var(--ink-2); }

.pillars { display: grid; gap: 1.5rem; padding: 1.5rem; background: var(--paper-raised); border-radius: var(--radius); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 1.75rem 2rem; } }
.pillar__no { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.pillar h3 { font-size: 1.125rem; line-height: 1.4rem; margin-bottom: 0.3rem; }
.pillar p:last-child { font-size: 0.95rem; line-height: 1.55rem; color: var(--ink-2); }

/* --- Page heads, the shelves directory, and one shelf ----------------------------------------------------------------- */
.page-head { padding-block: 1.5rem 0.5rem; }
.page-head .eyebrow, .shelf-head .eyebrow, .post__head .eyebrow { display: block; margin-top: 1.25rem; margin-bottom: 0.4rem; }
.page-head .stats { margin-top: 1.5rem; max-width: 40rem; }
.page-head .facts { max-width: 52rem; }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

.compartments { display: grid; gap: 1.5rem; margin-block: 2.5rem 0; }
.compartment { display: grid; gap: 1.25rem; padding: 1.5rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); scroll-margin-top: 1rem; }
@media (min-width: 800px) { .compartment { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; } }
.compartment--empty { border-style: dashed; background: transparent; }
.compartment h2 { margin-top: 0.25rem; }
.compartment__num { font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.compartment__long { margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.compartment__dek { margin-top: 0.6rem; font-size: 1.0625rem; line-height: 1.65rem; color: var(--ink-2); }
.compartment__info .chips { margin-top: 0.9rem; }
.compartment__info .label { margin-top: 0.6rem; }
.compartment__info > p:last-child { margin-top: 1rem; }
/* A shelf's items in the directory: the same cards as everywhere, two across, on the page ground so they stand off the compartment. */
.cards--compartment { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards--compartment { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards--compartment .card__link { background: var(--paper); }
.compartment__more { margin-top: 1rem; }

.tabs { padding-top: 1rem; }
.tabs__list { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.tabs__list li { flex: 1 0 auto; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; min-width: 4.5rem; padding: 0.6rem 0.75rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); border-radius: var(--radius); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.tabs__num { font-weight: 600; }
.shelf-head { padding-block: 1.25rem 0.5rem; }
.shelf-head__grid { display: grid; gap: 1.5rem; margin-top: 0.5rem; align-items: end; }
@media (min-width: 900px) { .shelf-head__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; } }
.shelf-head__num { color: var(--accent); }
.shelf-head__long { margin-top: 0.5rem; }
.shelf-head__grid .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shelf-body { margin-top: 2.5rem; }
@media (min-width: 1024px) { .shelf-body .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- An item ------------------------------------------------------------------------------------------------------- */
.record-head { padding-block: 1.25rem 1rem; }
.record__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin-top: 1.25rem; }
.record__name { margin-top: 0.6rem; max-width: 20ch; }
@media (min-width: 720px) { .record__name { font-size: 3.5rem; line-height: 3.75rem; } }
.record__maker { margin-top: 0.9rem; font-size: 1.25rem; line-height: 1.6rem; font-style: italic; color: var(--ink); }
.record__variant { margin-top: 0.25rem; max-width: 70ch; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-2); }
.panel { padding: 1.25rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.panel > .eyebrow { display: block; margin-bottom: 0.25rem; }
.record { display: grid; gap: 1.5rem; margin-top: 1rem; align-items: start; }
@media (min-width: 960px) { .record { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; } }
.record__side { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .record__plate { position: sticky; top: 1rem; } }
.plate--product .plate__frame { padding: 1.25rem; }
.specs { margin-top: 0.75rem; border-top: 1px solid var(--rule); }
.spec { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.25rem 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; line-height: 1.2rem; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 0; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.3rem; text-align: right; }
@media (max-width: 440px) { .spec { grid-template-columns: 1fr; } .spec dd { text-align: left; } }
.refs { margin-left: 0.2rem; font-size: 0.7rem; }
.refs a { color: var(--accent-text); text-decoration: none; padding: 0 0.1rem; }
.refs a:hover { text-decoration: underline; }
.buy__title { font-size: 1.25rem; }
.buy__maker, .buy__amazon { margin-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.buy__maker .btn, .buy__amazon .btn { flex: 1 1 auto; }
.buy__note, .buy__none { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.4rem; color: var(--ink-2); }
.buy__more { margin-top: 0.75rem; display: grid; gap: 0.25rem; font-size: 0.95rem; }
.buy__price { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.3rem; color: var(--ink-2); }
.stamp { display: inline-block; padding: 0 0.4rem; border: 1px solid var(--accent-text); border-radius: var(--radius); color: var(--accent-text); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.buy--compact { display: grid; gap: 0.5rem; max-width: 34rem; margin-top: 1rem; padding: 1.25rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.buy__name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.legal-wrap { margin-top: 1.5rem; }
.legal { border-left: 3px solid var(--warn); }
.legal p { font-size: 0.95rem; line-height: 1.55rem; }
.legal p + p { margin-top: 0.5rem; }
.dispatch { display: grid; gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 960px) { .dispatch { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; } }
.summary { max-width: 68ch; font-size: 1.1875rem; line-height: 1.85rem; }
.summary p + p { margin-top: 1rem; }
.curator { padding: 1.5rem; }
.curator blockquote { margin: 0.75rem 0 0; font-size: 1.1875rem; line-height: 1.8rem; font-style: italic; }
.curator__by { margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.section > h2 { padding-top: 1.25rem; margin-bottom: 1.5rem; border-top: 1px solid var(--rule-strong); }
.details { display: grid; gap: 1rem; }
@media (min-width: 720px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.detail { padding: 1.25rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.detail__no { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; line-height: 2.25rem; letter-spacing: -0.02em; color: var(--accent); }
.detail h3 { margin-top: 0.4rem; }
.detail p { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.55rem; }
.timeline { display: grid; gap: 0.75rem; }
.timeline__item { display: grid; gap: 0.25rem 1.5rem; padding: 0.9rem 1.1rem; background: var(--paper-raised); border-left: 2px solid var(--accent); border-radius: var(--radius); }
@media (min-width: 720px) { .timeline__item { grid-template-columns: 10rem minmax(0, 1fr); } }
.timeline__when { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-text); }
.timeline p, .lineup p, .notes p { max-width: 70ch; font-size: 1rem; line-height: 1.65rem; }
.lineup { display: grid; gap: 1rem; }
@media (min-width: 720px) { .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lineup__item { padding: 1.1rem 1.25rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.lineup__item p { margin-top: 0.3rem; }
.box { display: grid; gap: 0.4rem; max-width: 70ch; padding-left: 1.25rem; list-style: square; }
.box li::marker { color: var(--accent); }
.box__src { margin-top: 0.5rem; }
.notes { display: grid; gap: 0.9rem; max-width: 70ch; }
.sources { display: grid; gap: 0.5rem; padding-left: 2rem; list-style: decimal; font-size: 0.95rem; }
.sources li::marker { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-text); }
.sources li:target { background: var(--paper-sunk); }

/* --- Field notes and a post ------------------------------------------------------------------------------------------ */
.entries { display: grid; gap: 1.25rem; margin-block: 2rem 0; }
.entry { display: grid; gap: 1rem 1.5rem; padding: 1.5rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
@media (min-width: 900px) { .entry { grid-template-columns: 11rem minmax(0, 1fr) auto; } }
.entry__date time { display: block; margin-top: 0.25rem; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.entry__title { font-size: 1.75rem; line-height: 2.1rem; }
.entry__title a { text-decoration: none; }
.entry__title a:hover { text-decoration: underline; }
.entry__dek { margin-top: 0.5rem; font-style: italic; color: var(--ink-2); }
.prose--excerpt { margin-top: 0.75rem; max-width: 66ch; font-size: 1rem; }
.entry .chips { margin-top: 1rem; }
.entry__go { align-self: start; }

.post__head { padding-block: 1.25rem 1.5rem; }
.post__title { max-width: 18ch; }
.post__head .dek { max-width: 46rem; font-style: italic; }
/* Cells grow to fill each row, so a short last row (five facts, two across on a phone) leaves no empty cell. */
.facts { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 1.5rem; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.fact { flex: 1 1 9rem; min-width: 0; padding: 0.7rem 0.9rem; background: var(--paper-raised); }
.fact dt { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.fact dd { margin: 0.15rem 0 0; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.3rem; }
.editor-note { margin-top: 1.5rem; max-width: 46rem; border-style: dashed; }
.editor-note p:last-child { margin-top: 0.3rem; font-size: 0.95rem; line-height: 1.55rem; }
.post__layout { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
@media (min-width: 960px) {
  .post__layout { grid-template-columns: 17rem minmax(0, 1fr); grid-template-areas: "rail body"; gap: 3rem; align-items: start; }
  .post__rail { grid-area: rail; position: sticky; top: 1rem; }
  .post__body { grid-area: body; }
}
.post__rail { display: grid; gap: 1.25rem; align-content: start; }
.rail-box { padding: 1rem 1.1rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.toc { margin-top: 0.6rem; display: grid; gap: 0.2rem; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 0.6rem; padding-block: 0.3rem; border-top: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.3rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); flex: none; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: var(--accent-text); padding-top: 0.15rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.cited-list { margin-top: 0.6rem; display: grid; gap: 0.5rem; }
.cited { display: grid; gap: 0.15rem; padding: 0.6rem 0.7rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; }
.cited:hover { border-color: var(--ink); }
.cited__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3rem; color: var(--ink); }
.cited__meta { display: flex; align-items: center; gap: 0.5rem; }
.prose { max-width: 68ch; }
.prose--post { max-width: none; font-size: 1.125rem; line-height: 1.8rem; }
.prose--post > * { max-width: 68ch; }
.prose p + p, .prose p + ul, .prose p + ol, .prose ul + p, .prose ol + p { margin-top: 1.1rem; }
.prose--post h2 { margin-top: 2.5rem; margin-bottom: 0.9rem; font-size: 1.75rem; scroll-margin-top: 1rem; }
.prose--post h3 { margin-top: 1.75rem; margin-bottom: 0.6rem; }
.prose--post h4 { margin-top: 1.5rem; margin-bottom: 0.4rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.prose ul, .prose ol { margin-top: 1rem; padding-left: 1.5rem; list-style: revert; }
.prose li { margin-top: 0.3rem; }
.prose--post > p:first-of-type::first-letter { float: left; margin: 0.15rem 0.6rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 4.1rem; line-height: 0.8; color: var(--ink); }
.prose blockquote { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background-color: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); font-size: 1.25rem; line-height: 1.85rem; font-style: italic; }
.prose code { padding: 0.05rem 0.3rem; background: var(--paper-sunk); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.9em; }
.prose hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--rule-strong); }
.prose a { text-decoration-color: var(--rule-strong); }

/* --- The Colophon ----------------------------------------------------------------------------------------------------- */
.colo-section { margin-block: 3rem; }
.colo-section__no { display: inline-block; margin-bottom: 0.5rem; padding: 0.15rem 0.5rem; background: var(--paper-sunk); border-radius: var(--radius); }
.colo-section .prose { max-width: 68ch; }
.colo-section .prose p + p { margin-top: 0.9rem; }
.colo-section > h2 { padding-top: 0; border-top: 0; margin-bottom: 1rem; }
.ledger-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-raised); }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ledger th, .ledger td { padding: 0.65rem 0.9rem; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--rule); }
.ledger th { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-sunk); }
.ledger td:first-child { font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }
.ledger tr:last-child td { border-bottom: 0; }

/* --- Not found -------------------------------------------------------------------------------------------------------- */
.not-found { padding-block: 3rem 1rem; }
.not-found__num { font-family: var(--font-display); font-weight: 700; font-size: 6rem; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.not-found h1 { margin-top: 0.5rem; }
.back-links { margin-top: 1.5rem; }
