/* Field Hours — desktop-first editorial stylesheet.
   System fonts only; no external requests. Palette mirrors tools/make_figures.py. */

:root {
  --paper: #f6f2e9;
  --paper-2: #ece5d6;
  --card: #fbf9f3;
  --ink: #1f2723;
  --ink-2: #55605a;
  --ink-3: #7c847d;
  --rule: #d3cbb9;
  --green: #2f5d4a;
  --green-deep: #1c3a2f;
  --route: #c8402f;
  --route-ink: #a93323;
  --contour: #9a5a32;
  --ochre: #d59f3a;
  --water: #3f7d9c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gutter: 40px;
  --col: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--route); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--route-ink); }
a:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; font: 600 14px var(--sans); z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.kicker { font: 600 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
.num { font-family: var(--mono); font-weight: 400; letter-spacing: 0; color: var(--contour); }
.mono { font-family: var(--mono); }
.chip { display: inline-block; font: 600 10.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--contour); border: 1px solid currentColor; border-radius: 99px; padding: 4px 8px 3px; vertical-align: 2px; white-space: nowrap; }
.standfirst { font-size: 22px; line-height: 1.45; color: var(--ink-2); max-width: 34em; }
.text-link { font: 600 14px var(--sans); }
.btn { display: inline-block; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); letter-spacing: .02em; padding: 14px 20px; border-radius: 3px; text-decoration: none; }
.btn:hover { background: var(--green); color: var(--paper); }
.btn-small { padding: 11px 16px; font-size: 13px; }

/* ------------------------------------------------------------ header */
.strip { border-bottom: 1px solid var(--rule); font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.strip-in { display: flex; justify-content: space-between; padding-top: 11px; padding-bottom: 10px; }
.mast { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; position: relative; }
.mast::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; border-bottom: 3px double var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 34px; letter-spacing: -.01em; line-height: 1; }
.mark { flex: none; }
.nav { display: flex; gap: 34px; list-style: none; }
.nav a { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; display: block; }
.nav a:hover { border-bottom-color: var(--rule); color: var(--ink); }
.nav a.is-current { border-bottom-color: var(--route); }

/* -------------------------------------------------------------- home */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: 68px; line-height: 1; letter-spacing: -.022em; margin-bottom: 26px; }
.hero .standfirst { font-size: 21px; margin-bottom: 30px; }
.hero-links { display: flex; align-items: center; gap: 22px; margin: 0; }
figure { margin: 0; }
.fig-frame { border: 1px solid var(--ink); background: var(--paper); padding: 6px; box-shadow: 6px 6px 0 var(--paper-2); }
.fig-frame img { width: 100%; }
figcaption { font: 400 13.5px/1.5 var(--sans); color: var(--ink-2); margin-top: 14px; max-width: 60em; }
.cap-no { font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: 11.5px; color: var(--ink); margin-right: 6px; }
.cap-text { margin-right: 6px; }

.thread { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 34px 0 38px; }
.thread-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 20px; }
.thread-head h2 { font-size: 26px; }
.thread-head p { margin: 0; font: 400 14px var(--sans); color: var(--ink-2); }
.thread-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.thread-steps li { position: relative; }
.thread-steps li + li::before { content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); font: 400 18px var(--sans); color: var(--ink-2); }
.thread-steps a { display: block; height: 100%; background: var(--card); border: 1px solid var(--ink); border-top-width: 3px; padding: 16px 18px 15px; text-decoration: none; }
.thread-steps a:hover { background: #fff; color: var(--ink); border-color: var(--route); }
.step-title { display: block; font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.step-desc { display: block; font: 400 13.5px/1.45 var(--sans); color: var(--ink-2); }

.band-title { font-size: 34px; letter-spacing: -.01em; margin-bottom: 26px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; }
.sections { padding-top: 64px; padding-bottom: 64px; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.sec { border-top: 3px solid var(--ink); padding-top: 22px; }
.sec-title { font-size: 32px; margin-bottom: 12px; }
.sec-title a { text-decoration: none; }
.sec-desc { color: var(--ink-2); font-size: 17px; margin-bottom: 22px; min-height: 5.2em; }
.sub { border-top: 1px solid var(--rule); padding: 14px 0 10px; }
.sub h4 { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.sub h4 a { text-decoration: none; }
.sub h4 a::after { content: " →"; color: var(--route); }
.sub ul { list-style: none; }
.sub li { display: grid; grid-template-columns: 30px 1fr; align-items: baseline; padding: 4px 0; font-size: 18px; line-height: 1.3; }
.sub li .num { font-size: 12px; }
.sub li a { text-decoration-color: var(--rule); }
.sub li a:hover { text-decoration-color: var(--route); }

.loop-band { background: var(--green-deep); color: var(--paper); padding: 64px 0; }
.loop-band .kicker { color: #b9cdbf; }
.loop-band a { text-decoration-color: var(--ochre); }
.loop-band a:hover { color: #fff; }
.loop-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.loop-intro h2 { font-size: 36px; margin-bottom: 18px; }
.loop-intro p { color: #dfe6dc; font-size: 17px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0 24px; border-top: 1px solid #4a6a5c; }
.tiles div { padding: 16px 0 14px; border-bottom: 1px solid #4a6a5c; }
.tiles dt { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #b9cdbf; margin-bottom: 4px; }
.tiles dd { margin: 0; font-size: 44px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.tiles dd span { font-size: 18px; color: #b9cdbf; }
.loop-links { font: 600 14px var(--sans); margin: 0; }
.loop-table { background: var(--paper); color: var(--ink); padding: 22px 24px 16px; border-radius: 2px; }
.loop-table .tab-note { margin: 12px 0 0; }

.latest { padding-top: 64px; padding-bottom: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 36px; }
.card { display: flex; flex-direction: column; }
.card-img { display: block; border: 1px solid var(--ink); background: var(--paper); margin-bottom: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card-img:hover img { transform: scale(1.03); }
.fit-contain img { object-fit: contain !important; padding: 12px; }
.card-title { font-size: 25px; line-height: 1.16; margin-bottom: 10px; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--route); }
.card-desc { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 10px; }
.card-meta { font: 400 12.5px var(--sans); color: var(--ink-3); margin: 0; }
.card .kicker { margin-bottom: 8px; }

.note-list { list-style: none; border-top: 1px solid var(--ink); }
.note-list li { display: grid; grid-template-columns: 54px 1fr 250px; gap: 12px; align-items: baseline; padding: 16px 0 14px; border-bottom: 1px solid var(--rule); }
.note-list .num { font-size: 13px; }
.note-title { font-size: 22px; line-height: 1.2; text-decoration: none; }
.note-title:hover { text-decoration: underline; text-decoration-color: var(--route); }
.note-list p { margin: 4px 0 0; font-size: 16px; color: var(--ink-2); max-width: 46em; }
.note-where { font: 600 11.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: right; }

.about-band { padding-top: 26px; padding-bottom: 72px; }
.about-band .prose-lite { max-width: 820px; border-left: 3px solid var(--ochre); padding-left: 26px; }
.prose-lite h2 { font-size: 24px; margin: 0 0 10px; }
.prose-lite p { font-size: 17px; color: var(--ink-2); }
.prose-lite p:last-child { margin-bottom: 0; }
.prose-lite ul { padding-left: 1.1em; color: var(--ink-2); font-size: 17px; margin-bottom: 1em; }
.prose-lite li { margin-bottom: .3em; }
.prose-lite strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------- page heads, breadcrumbs */
.crumbs { padding: 22px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; font: 500 13px/1.4 var(--sans); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--rule); }
.crumbs a { text-decoration-color: var(--rule); }
.crumbs [aria-current] { color: var(--ink); }
.page-head::after { content: ""; display: block; margin-top: 44px; border-bottom: 1px solid var(--ink); }
.page-head-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; padding-top: 44px; }
.page-head h1 { font-size: 60px; letter-spacing: -.02em; line-height: 1.02; margin-bottom: 20px; }
.page-head .standfirst { margin-bottom: 0; }
.page-head-body { border-left: 1px solid var(--rule); padding-left: 28px; }

/* ----------------------------------------- level 2: section landing */
.sub-row { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 48px 0; border-bottom: 1px solid var(--rule); }
.sub-row:last-child { border-bottom: 0; padding-bottom: 80px; }
.sub-row-head h2 { font-size: 34px; margin-bottom: 14px; }
.sub-row-head h2 a { text-decoration: none; }
.sub-row-head p:not(.kicker) { font-size: 16.5px; color: var(--ink-2); }
.sub-row-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }

/* -------------------------------------------- level 3: sub-section */
.sub-notes { padding: 12px 0 8px; }
.feature-card { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--rule); }
.feature-card:nth-child(even) .feature-img { order: 2; }
.feature-img { display: block; border: 1px solid var(--ink); padding: 6px; background: var(--paper); box-shadow: 6px 6px 0 var(--paper-2); }
.feature-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-body h2 { font-size: 38px; letter-spacing: -.01em; margin-bottom: 14px; }
.feature-body h2 a { text-decoration: none; }
.feature-body h2 a:hover { text-decoration: underline; text-decoration-color: var(--route); }
.feature-desc { font-size: 18.5px; color: var(--ink-2); }
.feature-facts { list-style: none; margin: 0 0 22px; border-top: 1px solid var(--rule); }
.feature-facts li { font: 400 14px/1.45 var(--sans); padding: 8px 0 8px 18px; border-bottom: 1px solid var(--rule); position: relative; }
.feature-facts li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--route); }
.siblings { padding: 36px 0 80px; }
.siblings ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.siblings li { border-top: 3px solid var(--ink); padding-top: 12px; }
.siblings a { display: block; font-size: 23px; text-decoration: none; margin-bottom: 6px; }
.siblings a:hover { text-decoration: underline; text-decoration-color: var(--route); }
.siblings span { font: 400 14px/1.45 var(--sans); color: var(--ink-2); }

/* ------------------------------------------------- level 4: a note */
.note-head-grid { display: grid; grid-template-columns: 1fr 330px; gap: 64px; align-items: start; padding-top: 40px; }
.note .page-head h1, .plain .page-head h1 { font-size: 56px; }
.note-meta { font: 400 13.5px var(--sans); color: var(--ink-2); margin: 22px 0 0; }
.note-meta .chip { margin-left: 8px; }
.glance { border: 1px solid var(--ink); background: var(--card); padding: 20px 22px 12px; }
.glance h2 { font: 700 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.glance h2:not(:first-child) { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.glance ul { list-style: none; }
.glance li { font: 400 14px/1.45 var(--sans); padding: 5px 0; }
.glance-facts li { padding-left: 16px; position: relative; }
.glance-facts li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--route); }
.glance nav a { text-decoration-color: var(--rule); }
.glance nav li::before { content: "§ "; color: var(--contour); font-family: var(--mono); font-size: 12px; }

.prose { width: var(--col); margin: 0 auto; padding: 52px 0 40px; font-size: 19px; line-height: 1.66; }
.prose > p:first-child::first-letter { font-size: 3.5em; line-height: .86; float: left; padding: 6px 10px 0 0; font-weight: 500; color: var(--green); }
.prose h2 { font-size: 32px; letter-spacing: -.01em; margin: 56px 0 18px; padding-top: 18px; border-top: 1px solid var(--ink); }
.prose h3 { font: 700 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 34px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--contour); font-family: var(--mono); font-size: .8em; }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .82em; background: var(--paper-2); padding: 2px 5px; border-radius: 2px; }
.prose .fig, .prose .tab { margin: 44px 0; }
.prose .wide { width: 1160px; margin-left: -220px; clear: both; }
.prose .fig:not(.wide) .fig-frame { box-shadow: 6px 6px 0 var(--paper-2); }
.prose figcaption { max-width: var(--col); }
.prose .wide figcaption { margin-left: 220px; }
.prose .tab figcaption { margin: 0 0 12px; }
.prose .tab.wide figcaption { margin-left: 220px; }

.tab-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font: 400 14.5px/1.45 var(--sans); font-variant-numeric: lining-nums tabular-nums; }
thead th { font: 700 11.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-align: left; vertical-align: bottom; padding: 10px 14px 9px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--ink); }
tbody td, tbody th { padding: 10px 14px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; font-weight: 400; }
tbody th { font-weight: 600; }
tbody th.mono { white-space: nowrap; font-weight: 400; font-size: 13.5px; }
.tab td:first-child, .tab th:first-child { min-width: 6.5em; }
tbody tr:hover { background: rgba(213, 159, 58, .09); }
tfoot th, tfoot td { padding: 10px 14px 9px 0; border-bottom: 2px solid var(--ink); font-weight: 700; text-align: left; }
th:last-child, td:last-child { padding-right: 0; }
.r, td[style*="right"], th[style*="right"] { text-align: right !important; }
td.r, td[style*="right"] { font-family: var(--mono); font-size: 13.5px; }
tfoot td.r { font-family: var(--mono); font-size: 13.5px; }
.tab-note { font: 400 12.5px/1.5 var(--sans); color: var(--ink-3); margin: 10px 0 0; }
.prose .tab.wide .tab-note { margin-left: 220px; max-width: var(--col); }

.margin-note { float: right; clear: right; width: 230px; margin: 6px -270px 18px 0; border-top: 2px solid var(--ochre); padding-top: 10px; font: 400 13.5px/1.5 var(--sans); color: var(--ink-2); }
.margin-note p { margin-bottom: .6em; }
.margin-label { font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.working-rule { border: 1px solid var(--ink); border-left: 5px solid var(--route); background: var(--card); padding: 18px 22px 6px; margin: 30px 0; }
.rule-label { font: 700 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--route-ink); margin-bottom: 8px; }
.working-rule p { font-size: 18px; }

.note-foot { padding-bottom: 80px; }
.disclosure { width: var(--col); margin: 0 auto 44px; font: 400 13.5px/1.55 var(--sans); color: var(--ink-2); border: 1px dashed var(--ink-3); padding: 14px 18px; }
.disclosure strong { color: var(--ink); }
.pager { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; border-top: 3px double var(--ink); padding-top: 22px; }
.pager a { display: block; text-decoration: none; }
.pager .kicker { display: block; margin-bottom: 8px; }
.pager-title { display: block; font-size: 23px; line-height: 1.2; }
.pager a:hover .pager-title { text-decoration: underline; text-decoration-color: var(--route); }
.pager-up { text-align: center; }
.pager-next { text-align: right; }

/* plain pages (about) reuse the note layout without the drop cap */
.plain .prose > p:first-child::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; line-height: inherit; }
.plain .prose { padding-bottom: 88px; }

/* ----------------------------------------------------- index of notes */
.index-sec { padding: 44px 0 8px; }
.index-sec:last-child { padding-bottom: 88px; }
.index-sec h2 { font-size: 32px; margin-bottom: 16px; }
.index-sec h2 a { text-decoration: none; }
.index-table th[scope="row"] a { font: 400 21px/1.25 var(--serif); text-decoration: none; }
.index-table th[scope="row"] a:hover { text-decoration: underline; text-decoration-color: var(--route); }
.index-desc { display: block; font-weight: 400; color: var(--ink-2); margin-top: 3px; max-width: 52em; }
.index-table td { white-space: nowrap; }
.index-table td:nth-child(3) { white-space: normal; width: 190px; }

/* ---------------------------------------------------------------- 404 */
.nf { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.nf h1 { font-size: 64px; letter-spacing: -.02em; line-height: 1; margin-bottom: 22px; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.nf-links li:first-child { flex-basis: 100%; margin-bottom: 6px; }

/* ------------------------------------------------------------- footer */
.site-foot { background: var(--paper-2); border-top: 3px double var(--ink); margin-top: 0; padding: 48px 0 0; font-family: var(--sans); }
.foot-grid { display: grid; grid-template-columns: 4fr 4fr 5fr; gap: 56px; padding-bottom: 48px; }
.site-foot h2 { font: 700 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.foot-sections { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.foot-sections > li > a { font: 500 19px var(--serif); text-decoration: none; }
.foot-sections ul { list-style: none; margin-top: 8px; }
.foot-sections ul a { font-size: 13.5px; line-height: 1.9; text-decoration-color: var(--rule); color: var(--ink-2); }

/* A single courtesy breakpoint; the design target is desktop. */
@media (max-width: 1220px) {
  .prose .wide { width: 100%; margin-left: 0; }
  .prose .wide figcaption, .prose .tab.wide figcaption, .prose .tab.wide .tab-note { margin-left: 0; }
  .margin-note { float: none; width: auto; margin: 24px 0; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .hero, .loop-grid, .page-head-grid, .note-head-grid, .sub-row, .feature-card, .nf, .foot-grid, .sec-grid, .card-grid, .thread-steps, .sub-row-cards, .siblings ul, .pager { grid-template-columns: 1fr; gap: 28px; }
  .hero h1, .page-head h1, .nf h1 { font-size: 42px; }
  .prose { width: auto; }
  .disclosure { width: auto; }
  .mast, .strip-in { flex-direction: column; gap: 12px; align-items: flex-start; }
  .nav { flex-wrap: wrap; gap: 16px; }
  .note-list li { grid-template-columns: 40px 1fr; }
  .note-where { display: none; }
  .thread-steps li + li::before { display: none; }
}
@media print {
  .site-head nav, .site-foot, .pager, .skip { display: none; }
  body { background: #fff; }
}
