@font-face{font-family:Desk Serif;src:url('/assets/serif.woff2') format('woff2');font-weight:200 900;font-display:swap}
@font-face{font-family:Desk Sans;src:url('/assets/sans.woff2') format('woff2');font-weight:200 900;font-display:swap}
:root{
  color-scheme:light;--paper:#f8f6f1;--panel:#fffdf8;--ink:#282b24;--muted:#565b50;
  --green:#28382a;--green-strong:#172b1e;--line:#d9d6ca;--fog:#ebefe6;--straw:#f2e6c8;
  --amber:#9b6328;--radius:16px;--serif:"Desk Serif",Georgia,serif;--sans:"Desk Sans",system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:1.2rem}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.5 var(--sans)}
a{color:var(--green-strong);text-underline-offset:.2em}
a:hover{color:#765022}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:625;letter-spacing:-.025em;line-height:1.08}
h1{font-size:clamp(2.65rem,6.4vw,4.75rem);text-wrap:pretty}
h2{font-size:clamp(1.7rem,3.2vw,2.28rem)}
h3{font-size:clamp(1.34rem,2.4vw,1.62rem)}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #97551d;outline-offset:4px}
.wrap{width:min(100% - 3.75rem,1100px);margin-inline:auto}
.skip-link{position:absolute;top:.4rem;left:.5rem;z-index:5;transform:translateY(-160%);padding:.65rem;background:#fff}
.skip-link:focus{transform:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-header{background:var(--panel);border-bottom:1px solid var(--line)}
.nav-row,.footer-row{display:flex;align-items:center;justify-content:space-between;gap:1.25rem}
.nav-row{min-height:72px}
.brand{display:inline-flex;align-items:center;gap:.65rem;text-decoration:none;font:650 1.18rem/1 var(--serif);white-space:nowrap;min-height:44px}
.brand img{width:36px;height:36px}
nav{display:flex;align-items:center;gap:1.25rem}
nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-weight:650}
nav a[aria-current]{text-decoration:underline;text-decoration-color:var(--amber);text-decoration-thickness:2px;text-underline-offset:.45em}
.hero{display:grid;grid-template-columns:1fr .92fr;align-items:center;gap:clamp(2rem,6vw,5rem);padding:clamp(2.8rem,7vw,5.3rem) 0 2rem}
.hero-copy .lede{max-width:39ch}
.hero-photo{border-radius:var(--radius);overflow:hidden;background:var(--straw)}
.hero-photo img{width:100%;aspect-ratio:1.25;object-fit:cover;object-position:52% 54%}
.eyebrow{text-transform:uppercase;letter-spacing:.085em;font-size:.8rem;font-weight:760;color:#704e29;display:flex;align-items:center;gap:.55rem}
.hero .eyebrow,.page-intro .eyebrow{margin-bottom:.9rem}
.dot{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;background:#a86f31;flex:none}
.lede{font-size:clamp(1.13rem,2vw,1.35rem);line-height:1.45;color:var(--muted);margin-top:1.05rem;max-width:63ch}
.actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.4rem;align-items:center}
.button{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:46px;padding:.55rem .95rem;border-radius:9px;font-weight:700;text-decoration:none;text-align:center;border:1px solid transparent}
.button-primary{background:var(--green);color:#fffdf4}
.button-primary:hover{background:var(--green-strong);color:white}
.button-secondary{background:var(--panel);border-color:#c5c6b9;color:var(--green-strong)}
.button-secondary:hover{background:var(--fog);color:var(--green-strong)}
.section{margin:clamp(2.3rem,6vw,4rem) 0}
.section.compact{margin-top:1.95rem}
.section-head{display:flex;gap:.7rem 1.2rem;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin-bottom:.9rem}
.section-head a{font-weight:650}
.tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tile,.detail-card,.offer-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(1rem,2.7vw,1.55rem)}
.tile h2{font-size:1.78rem}
.tile h2 a,.tile h3 a{text-decoration:none}
.tile h2 a:hover,.tile h3 a:hover{text-decoration:underline}
.tile h2 span,.tile h3 span{font-family:var(--sans);font-size:.8em;margin-left:.2em;color:#825824}
.tile p:not(.eyebrow),.edition-band p:not(.eyebrow){color:var(--muted);margin-top:.48rem}
.market-tile{border-top:3px solid #9a793f}
.market-date{margin-bottom:.65rem}
.tool-mark{background:var(--fog);color:#284431;font-size:1.55rem;line-height:1;display:inline-grid;place-items:center;width:38px;height:38px;border-radius:8px;margin-bottom:.7rem}
.edition-band{display:flex;justify-content:space-between;align-items:center;gap:1.2rem;background:var(--straw);padding:clamp(1rem,3vw,1.8rem);border-radius:var(--radius)}
.edition-band h2{margin-top:.3rem}
.site-footer{margin-top:4.5rem;border-top:1px solid var(--line);padding:1.1rem 0;background:var(--panel)}
.site-footer p{color:var(--muted)}
.page-intro{padding:clamp(2.1rem,6vw,4rem) 0 1.55rem}
.page-intro h1{font-size:clamp(2.45rem,5.9vw,4.1rem);max-width:21ch}
.note,.math-callout{padding:1rem 1.2rem;border:1px solid #d9dbc9;border-radius:12px;background:var(--fog)}
.note p,.math-callout p{margin-top:.35rem}
.note a{display:inline-block;margin-top:.4rem}
.filters,.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem .9rem;align-items:end}
.filters{grid-template-columns:repeat(5,minmax(0,1fr))}
.four-fields{grid-template-columns:repeat(4,minmax(0,1fr))}
.filters{margin-top:1rem;margin-bottom:.65rem}
label{font-weight:700;display:flex;flex-direction:column;gap:.24rem;font-size:.94rem}
input,select{width:100%;background:#fff;border:1px solid #aaa99b;border-radius:8px;min-height:46px;padding:.48rem .55rem;font-size:1rem;font-weight:500}
input::placeholder{color:#66695d}
input:invalid{border-color:#9c6029}
.helper{color:var(--muted);font-size:.95rem;max-width:75ch}
.helper:empty{display:none}
.source-line{margin-top:.85rem}
.table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--panel);margin-top:.7rem}
table{width:100%;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}
thead{background:#efeee5}
thead th{font-weight:750}
th,td{padding:.65rem .75rem;vertical-align:top;border-bottom:1px solid #e5e2d7}
tbody tr:last-child>*{border-bottom:0}
tbody th{font-weight:inherit}
.market-table strong{font-weight:800}
.market-table small,.market-table th span,.price-unit{color:var(--muted)}
.kind{display:inline-block;padding:.04rem .39rem;border-radius:4px;background:var(--fog);font-size:.88rem;font-weight:750;color:var(--green-strong)}
.kind.ask{background:#f5e8cf;color:#694619}
.row-action{font-weight:760;display:inline-block;padding-block:.2rem}
.source-link{font-size:.88rem}
.worksheet-nav{flex-wrap:wrap;gap:.32rem .7rem;border-bottom:1px solid var(--line);padding-bottom:.5rem}
.worksheet-nav a{padding-inline:.55rem;min-height:42px;border-radius:6px;background:#eeece2}
.workspace-section h3{margin-bottom:.6rem}
.workspace-section>.helper + .helper{margin-top:.35rem}
.offer-grid,.benchmark,#inventory-form{margin-top:.85rem}
.offer-card form>.field-grid{margin-top:.6rem}
.offer-card details{margin-top:.6rem}
.offer-card details label{margin-top:.35rem}
summary{cursor:pointer;font-weight:700;color:var(--green-strong);padding-block:.42rem}
details .field-grid{margin-top:.35rem}
.form-feedback{margin-top:.45rem}
.result-block{margin-top:.8rem}
.result-block:empty{display:none}
.result-lead{background:var(--green);color:#fdfbf1;padding:.8rem 1rem;border-radius:11px}
.result-lead strong{font-size:1.12rem}
.result-lead p{margin-top:.18rem;color:#e4ecde}
.result-block .note{margin-top:.6rem}
.result-table th,.result-table td{padding:.5rem .68rem}
.result-table thead th:first-child{width:36%}
.tool-actions{margin-top:.8rem}
.tool-actions+.helper{margin-top:.5rem}
.detail-card .section-head{margin-bottom:.45rem}
.detail-card>.helper + form{margin-top:.75rem}
.detail-card .field-grid + .helper{margin-top:.55rem}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:0}
.metric{background:var(--fog);border:1px solid #d9dbc9;border-radius:8px;padding:.55rem .7rem}
.metric dt{font-size:.93rem;color:var(--muted)}
.metric dd{font-size:1.25rem;font-weight:780;margin:0;color:var(--green-strong);font-variant-numeric:tabular-nums}
#inventory-results .helper{margin-top:.55rem}
.index-grid{margin-top:.65rem}
.article-layout{max-width:790px}
.prose{font-size:1.07rem;margin:0 0 2rem}
.prose h2{margin:1.6rem 0 .65rem}
.prose p,.prose ul{margin:0 0 .7rem}
.prose li+li{margin-top:.4rem}
.prose .math-callout{margin:.8rem 0}
.prose .math-callout h2{margin:0 0 .5rem;font-size:1.6rem}
.prose .reading-links{color:var(--muted);margin-top:1.1rem;font-size:.96rem}
.article-layout>.note{margin-bottom:1.05rem}
#print-sheet{display:none}

@media(max-width:790px){
  .wrap{width:min(100% - 2.2rem,1100px)}
  .hero{gap:1.65rem}
  .hero-photo img{aspect-ratio:1}
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-row{flex-wrap:wrap}
  .market-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .market-table,.market-table tbody,.market-table tr{display:block}
  .market-table tr{padding:.75rem .9rem;border-bottom:1px solid var(--line)}
  .market-table tr:last-child{border-bottom:0}
  .market-table tbody tr>*{border:0;display:block;padding:.15rem 0}
  .market-table tbody tr>td:first-child{font-size:.88rem;font-weight:750;color:#704e29}
  .market-table tbody tr>td:last-child{margin-top:.2rem}
  .market-table .row-action{padding:.5rem 0;display:inline-flex;min-height:42px;align-items:center;gap:.25rem}
  .market-table .source-link{display:inline-flex;align-items:center;min-height:38px}
  .market-table td:last-child br{display:none}
  .market-table .source-link{margin-left:.95rem}
}
@media(max-width:550px){
  .wrap{width:calc(100% - 1.6rem)}
  .nav-row{display:block;padding-top:.4rem}
  .nav-row nav{justify-content:space-between;gap:.25rem}
  .nav-row nav a{font-size:.96rem}
  .hero{grid-template-columns:1fr;padding-top:2.4rem;padding-bottom:.35rem}
  .hero-photo img{aspect-ratio:1.8;object-position:center 57%}
  .hero-copy .actions{gap:.4rem}
  .hero-copy .button-primary{padding-inline:.65rem}
  .hero-copy .button-secondary{border-color:transparent;background:transparent;padding-inline:.12rem;text-decoration:underline}
  .tile-grid,.tool-grid,.edition-band{display:grid;grid-template-columns:1fr}
  .tile-grid,.tool-grid{gap:.7rem}
  .section-head{align-items:center}
  .section-head .button{min-height:44px}
  .filters,.four-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-intro{padding-bottom:1.1rem}
  .field-grid{gap:.65rem}
  .tool-actions{gap:.42rem}
  .tool-actions .button{padding-inline:.65rem}
  .worksheet-nav{gap:.35rem}
  .worksheet-nav a{font-size:.94rem}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .result-table th,.result-table td{padding:.42rem .38rem}
  .result-table td,.result-table th{overflow-wrap:anywhere}
  .footer-row{display:block}
  .footer-row p{font-size:.92rem}
}
@media(max-width:350px){.offer-card .field-grid,.filters{grid-template-columns:1fr}.hero h1{font-size:2.35rem}}
@media(max-width:550px) and (max-height:900px){
  main:has(>.hero){display:grid}
  .hero{display:contents}
  .hero-copy{grid-row:1;padding-top:2.35rem}
  #markets{grid-row:2;margin:2rem 0 1.35rem}
  .hero-photo{grid-row:3}
}
@media print{
  body{background:#fff;color:#000;font:11pt/1.35 Georgia,serif}
  .site-header,.site-footer,.skip-link,.worksheet-nav,.workspace-section,main:has(#print-sheet)>.page-intro,.prose .actions,.button{display:none!important}
  .wrap,.article-layout{width:100%;max-width:none}
  #print-sheet{display:block}
  #print-sheet h1{font-size:22pt;margin-bottom:8pt}
  #print-sheet h2{font-size:15pt;margin:10pt 0 5pt}
  #print-sheet p{margin:3pt 0}
  #print-sheet table{break-inside:avoid}
  #print-sheet .math-callout,.market-table tr{break-inside:avoid}
  .note,.result-lead,.metric{color:#000;background:#fff;border:1px solid #777}
}
.plain-button{background:transparent;border:0;text-decoration:underline;text-underline-offset:.2em;color:var(--green-strong);padding:.35rem .1rem;font-weight:700}
.plan-offer{font-size:.92rem;min-height:42px}
#reuse-reference{margin-top:.65rem}
