/* The field atlas: toasted paper, orchard greens and plum outlines. */
@font-face {
  font-family: Workbench;
  src: url('./pixel-display.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f4edda;
  --card: #fff9e9;
  --ink: #3d3540;
  --green: #315d47;
  --leaf: #447457;
  --muted: #665b59;
  --rule: #b9a68a;
  --gold: #d58d3e;
  --edge: #524047;
  --shadow: #bda985;
  --display: Workbench, 'PingFang SC', 'Microsoft Yahei', sans-serif;
  --serif: var(--sans);
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
body {
  background-color: var(--paper);
  background-image: repeating-conic-gradient(#bca47614 0 25%, transparent 0 50%);
  background-size: 6px 6px;
}
.wrap { width: min(1176px, calc(100% - 64px)); }
.mast { background: #fff8e9; border-bottom: 3px solid var(--edge); box-shadow: 0 3px #cab58f; }
.mast-inner { min-height: 64px; gap: 15px; }
.brand { gap: 8px; color: #483747; font: 400 clamp(23px,2.8vw,32px)/1 var(--display); letter-spacing: -.045em; }
.brand-mark { width: 37px; height: 37px; border-radius: 0; transform: none; background: url('./pixel-sprout.png') center / contain no-repeat; image-rendering: pixelated; }
.brand-mark i { display: none; }
.mast-label { border-left: 2px solid #d3bea0; color: var(--green); font-weight: 700; }
.author, .evidence-link { color: #4b4147; }
.author:hover, .evidence-link:hover, .text-link:hover { color: #2d6c4a; text-decoration: underline; }
.locale-switch, .seg { border: 2px solid var(--edge); border-radius: 3px; box-shadow: 0 2px #beab8e; background: #f9ecd2; }
.locale-switch button, .seg button { color: #53424a; font-weight: 700; }
.locale-switch button + button, .seg button + button { border-left: 1px solid var(--edge); }
.locale-switch button[aria-pressed=true], .seg button[aria-pressed=true] { color: #fff7e2; background: #4c7051; box-shadow: inset 0 2px #76916c; }
button:focus-visible, a:focus-visible, select:focus-visible, .table-wrap:focus-visible { outline: 3px solid #377dac; outline-offset: 2px; }
.locale-switch button:focus-visible, .seg button:focus-visible { outline-offset: -3px; }
#top {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  margin-top: 24px;
  min-height: 170px;
  padding: 20px clamp(18px, 2.6vw, 32px);
  background-color: #343541;
  color: #fff6de;
  border: 3px solid var(--edge);
  border-radius: 4px;
  box-shadow: 0 4px var(--shadow), inset 0 2px #64616b;
}
#top::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 53%;
  background: #aacaac url('./pixel-farm.png') 68% center / cover no-repeat;
  image-rendering: pixelated;
  clip-path: polygon(12px 0,100% 0,100% 100%,0 100%,0 72%,4px 72%,4px 43%,8px 43%,8px 16%,12px 16%);
}
#top #landscape { display: none; }
#top .hero-copy { width: 50%; max-width: none; min-width: 0; }
#top h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  font: 400 clamp(23px,2.7vw,35px)/1 var(--display);
  letter-spacing: .02em;
  color: #ffe09a;
}
#top h1::before {
  content: '';
  width: 11px;
  height: 13px;
  background: #ffc665;
  border-inline: 3px solid #b8793b;
  box-shadow: 0 -3px #f5d784, 0 3px #ad6937, inset 2px 0 #fff1b5;
}
.price-quotes { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 24px; margin: 0; }
.price-quotes > div { min-width: 0; }
.price-quotes dt { color: #ebdabe; font: 700 11px/1.5 var(--mono); letter-spacing: .08em; }
.price-quotes dd { margin: 0; font: 700 clamp(16px,1.85vw,25px)/1.12 var(--mono); letter-spacing: -.055em; color: #fff8e9; overflow-wrap: anywhere; }
.price-quotes > div:first-child dd { font-size: clamp(28px,3.6vw,48px); }
#top .price-source { max-width: 100%; margin-top: 9px; font-size: 11px; line-height: 1.45; color: #e5d5bd; overflow-wrap: anywhere; }
#top .price-source a { color: #ffe1a4; }
.dateline { gap: 4px 14px; padding: 13px 1px 11px; }
.signal { font-weight: 700; }
.signal::before { width: 7px; height: 7px; border-radius: 0; background: #4c8d59; box-shadow: 1px 1px #326345; }
.signal.warn::before { background: #df9b46; box-shadow: 1px 1px #9e6e36; }
.refresh { border: 1px solid #aa9478; background: #fff5db; color: #554348; border-radius: 2px; padding: 3px 8px; font-weight: 600; }
.metrics { gap: 10px; background: transparent; border-radius: 0; overflow: visible; }
.metric {
  border: 2px solid var(--edge);
  border-top: 5px solid var(--metric-top,#6f9058);
  border-radius: 3px;
  padding: 14px 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 3px var(--shadow), inset 0 -2px #efe2c7;
}
.metric:nth-child(2) { --metric-top: #c48546; }
.metric:nth-child(3) { --metric-top: #739ca2; }
.metric:nth-child(4) { --metric-top: #9b7998; }
.metric + .metric::before { display: none; }
.metric-label { color: var(--muted); line-height: 1.45; font-weight: 650; }
.metric strong { color: #40363e; margin-top: 7px; font: 700 clamp(21px,2.45vw,32px)/1.18 var(--mono); letter-spacing: -.07em; }
.metric small { color: #6c5c55; font: 600 11px/1.2 var(--sans); }
.section-nav { gap: 3px; margin: 19px 0 0; padding: 5px; border: 2px solid var(--edge); border-radius: 3px; box-shadow: 0 3px var(--shadow); background: #ead6ac; }
.section-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 5px clamp(8px,2vw,24px); font-weight: 700; color: #493b42; border: 1px solid transparent; }
.section-nav a::before { content: ''; flex: none; width: 20px; height: 20px; background: url('./pixel-menu.png') 0 center / 100px 20px no-repeat; image-rendering: pixelated; }
.section-nav a[href='#crops']::before { background-position-x: -20px; }
.section-nav a[href='#market']::before { background-position-x: -40px; }
.section-nav a[href='#rewards']::before { background-position-x: -60px; }
.section-nav a[href='#transactions']::before { background-position-x: -80px; }
.section-nav a:hover, .section-nav a:focus-visible { background: #fff4d8; border-color: #b99b74; box-shadow: inset 0 -2px #ddc392; }
.section { padding-top: 33px; }
.section-head { margin-bottom: 13px; }
.section-head h2 { font: 700 clamp(23px,2.5vw,31px)/1.25 var(--sans); letter-spacing: -.035em; color: #443645; }
html[lang='en'] .section-head h2 { font: 400 clamp(24px,2.55vw,34px)/1.2 var(--display); }
h3 { color: #483e46; font: 720 18px/1.4 var(--sans); }
.panel, .market-card, .table-wrap {
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: 3px;
  box-shadow: 0 3px var(--shadow), inset 0 2px #fffdf4;
}
.chart-grid, .market-grid { gap: 14px; }
.panel, .market-card { padding: 18px 20px; }
.panel > .caption { margin-bottom: 14px; }
.bar-plot { height: 158px; border-color: #987957; background: repeating-linear-gradient(to top,transparent 0 37px,#ddcfb3 37px 38px); }
.bar-fill { max-width: 52px; width: 90%; background: #8fae70; border-radius: 0; box-shadow: inset 0 2px #c2d492, inset -2px 0 #6d9058; }
.bar-hit[aria-pressed=true] .bar-fill, .bar-hit:hover .bar-fill { background: #df9a49; box-shadow: inset 0 3px #f8c670, inset -2px 0 #b2773e; }
.plot-axis { font-family: var(--mono); }
.plot-readout { display: inline-block; margin: 13px 0 0; padding: 4px 7px; background: #f0e6ce; border-left: 3px solid #ba8044; color: #4f4442; }
.tier-list { gap: 10px; margin-top: 12px; }
.tier-line { align-items: center; }
.track { height: 7px; margin-top: 3px; border-radius: 0; background: #e3d7bf; }
.track i { background: #789b5d; }
.tier-item:nth-child(3n+2) .track i { background: #cc994c; }
.tier-item:nth-child(3n) .track i { background: #6b969e; }
.tier-item:nth-child(4) .track i { background: #a287ab; }
.tier-item:nth-child(5) .track i { background: #c47d65; }
select, .source-links a { color: #4b4140; border: 2px solid #806b5c; border-radius: 2px; background-color: #fff6df; box-shadow: 0 2px #c1ae8c; }
select { padding: 5px 8px; }
.text-link, .source-links a { color: #375f4a; }
.source-links a:hover, .refresh:hover { background-color: #f3e0b7; }
.table-wrap { scrollbar-color: #96816d #eddec1; }
th { color: #58463e; background: #ecdcb9; border-bottom: 1px solid #c2aa85; }
tbody tr + tr td, .ledger-line { border-color: #e5d8bd; }
tbody tr:nth-child(even) { background: #f7efd9; }
.ledger-line { padding: 8px 0; }
td a { color: #356047; }
.ledger-line strong, .tier-line span { font-variant-numeric: tabular-nums; }
footer { background: #e9d8b5; border-top: 2px solid #87735d; }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 36px); }
  #top { min-height: 164px; }
  #top::before { inset-inline-start: 54%; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 12px 14px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 24px); }
  .mast-inner { gap: 7px 8px; min-height: 52px; }
  .brand { font-size: 23px; gap: 3px; }
  .brand-mark { width: 26px; height: 26px; }
  .author { font-size: 12px; }
  .locale-switch button { padding: 5px 6px; font-size: 12px; }
  #top { min-height: 146px; margin-top: 14px; padding: 14px; }
  #top .hero-copy { width: 68%; }
  #top::before { inset-inline-start: 73%; background-position: 69% center; }
  #top h1 { font-size: 23px; margin-bottom: 7px; }
  .price-quotes { display: grid; gap: 3px; }
  .price-quotes > div { display: flex; align-items: baseline; gap: 7px; }
  .price-quotes dt { flex: none; width: 23px; font-size: 10px; }
  .price-quotes dd { font-size: 15px; }
  .price-quotes > div:first-child dd { font-size: clamp(22px,5.8vw,30px); }
  #top .price-source { margin-top: 7px; font-size: 10px; }
  .dateline { padding: 10px 0; gap: 4px 9px; }
  .metrics { gap: 7px; }
  .metric, .metric:nth-child(n+3) { border-top: 4px solid var(--metric-top,#6f9058); padding: 10px; }
  .metric-label { font-size: 11px; }
  .metric strong { font-size: clamp(19px,5.6vw,27px); }
  .metric small { font-size: 10px; }
  .section-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 14px; padding: 2px; gap: 1px; }
  .section-nav a { flex-direction: column; justify-content: center; align-items: center; padding: 4px 0; gap: 2px; font-size: 11px; line-height: 1.3; }
  .section { padding-top: 25px; }
  .section-head h2, html[lang='en'] .section-head h2 { font-size: 23px; }
  .panel, .market-card { padding: 13px; }
  .chart-grid, .market-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .bar-plot { height: 122px; }
  .control { flex-wrap: wrap; justify-content: flex-end; }
  select { max-width: min(44vw,155px); }
}
@media (max-width: 390px) {
  .mast-inner { gap: 5px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 22px; height: 22px; }
  .author { font-size: 11px; }
  html[lang='en'] .section-nav a { font-size: 10px; }
  .metric small { display: inline-block; }
}
