/* The field guide: warm paper, espresso ink, and observations before ornament. */
:root {
  --bg-top: #f6f0e6;
  --surface: #fbf7f0;
  --surface-strong: #fffaf3;
  --surface-soft: #eee5d8;
  --text: #30231a;
  --muted: #766655;
  --line: #30231a19;
  --line-strong: #30231a32;
  --accent: #8a4e2b;
  --accent-soft: #8a4e2b10;
  --input-bg: #fffaf3;
  --table-head: #f0e8db;
  --row-hover: #efe5d7;
  --shadow: 0 8px 24px #30231a06;
  --radius-xxl: 18px;
  --radius-xl: 14px;
}
html[data-theme="dark"] {
  --bg-top: #1b1612;
  --surface: #211b16;
  --surface-strong: #29211b;
  --surface-soft: #30261e;
  --text: #f2e8d9;
  --muted: #b8a48e;
  --line: #f2e8d91a;
  --line-strong: #f2e8d932;
  --accent: #e9b47c;
  --accent-soft: #e9b47c15;
  --input-bg: #251e18;
  --table-head: #2a221b;
  --row-hover: #30261e;
  --shadow: 0 8px 24px #0000000a;
}
body { background: var(--bg-top); -webkit-font-smoothing: antialiased; }
body::before, body::after, .hero::before, .hero::after, .hero-side::before,
.table-panel::before, .stat::after { display: none; }
.page { width: min(1360px, calc(100% - 80px)); padding-top: 28px; }
.topbar { padding-bottom: 22px; margin-bottom: 0; border-bottom: 1px solid var(--line-strong); }
.brand-mark { font-size: 32px; line-height: 1; }
.brand-note { font-size: 9px; letter-spacing: .16em; margin-top: 4px; }
.index-date { color: var(--muted); font-size: 11px; margin-right: 12px; }
.theme-toggle, .admin-link { background: transparent; box-shadow: none; min-height: 40px; padding: 8px 12px; }
html[data-theme="dark"] .theme-toggle, html[data-theme="dark"] .admin-link { background: transparent; box-shadow: none; }
.theme-toggle-copy strong { display: none; }
.theme-toggle-swatch { width: 34px; height: 20px; }
.theme-toggle-swatch::after { width: 14px; height: 14px; box-shadow: none; }
html[data-theme="dark"] .theme-toggle-swatch::after { transform: translateX(14px); }
.theme-toggle-copy span, .admin-link { font-size: 11px; }
.hero, .stat, .table-panel { background: transparent; box-shadow: none; backdrop-filter: none; animation: none; }
.hero { grid-template-columns: minmax(0, 1fr) 300px; padding: 46px 0 38px; gap: 56px; border: 0; border-radius: 0; align-items: center; }
.eyebrow { padding: 0; background: transparent; font-size: 10px; letter-spacing: .16em; }
.hero h1 { max-width: none; font-size: clamp(40px, 4.1vw, 61px); line-height: 1.04; letter-spacing: -.055em; margin: 18px 0; font-weight: 600; }
.hero h1 em { font-weight: 600; color: var(--accent); }
.hero p { max-width: 510px; font-size: 14px; line-height: 1.8; }
.hero-link { display: inline-flex; margin-top: 22px; padding: 11px 18px; background: var(--text); color: var(--bg-top); border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 700; transition: transform 140ms ease, opacity 140ms ease; }
.hero-link:hover { transform: translateY(-2px); opacity: .9; }
.hero-link:active { transform: translateY(0); }
.hero-map-link { margin-left: 18px; color: var(--muted); font-size: 11px; text-underline-offset: 4px; }
.hero-side { padding: 8px 0 8px 28px; gap: 16px; border: 0; border-left: 1px solid var(--line-strong); border-radius: 0; background: transparent; box-shadow: none; }
.side-label { font-size: 9px; letter-spacing: .16em; }
.hero-side h2 { font-family: "Fraunces", serif; font-size: 28px; line-height: 1.08; font-weight: 600; margin: 0; letter-spacing: -.04em; }
.observation-legend { margin: 0; display: grid; gap: 10px; }
.observation-legend div { display: grid; gap: 2px; }
.observation-legend dt { font-size: 11px; font-weight: 800; }
.observation-legend dd { margin: 0; font-size: 10px; color: var(--muted); line-height: 1.6; }
.tracking-link { width: fit-content; font-size: 10px; color: var(--accent); text-underline-offset: 4px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 22px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.stat { display: flex; flex-direction: column-reverse; gap: 7px; padding: 0 28px; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }
.stat-value { font-family: "Fraunces", serif; font-size: 34px; font-weight: 600; line-height: 1; margin: 0; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 9px; letter-spacing: .09em; font-weight: 600; }
.table-panel { margin-top: 36px; padding: 0; border: 0; border-radius: 0; overflow: visible; }
.panel-head { align-items: center; margin-bottom: 20px; }
.panel-head h2 { font-family: "Fraunces", serif; font-size: 28px; letter-spacing: -.04em; font-weight: 600; }
.panel-head p { font-size: 12px; }
.explore-tabs { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0; gap: 24px; box-shadow: none; width: 100%; }
.explore-tab { padding: 11px 0; border: 0; border-radius: 0; border-bottom: 2px solid transparent; box-shadow: none; background: transparent; color: var(--muted); font-size: 12px; }
.explore-tab[aria-selected="true"], html[data-theme="dark"] .explore-tab[aria-selected="true"] { background: transparent; color: var(--text); border-bottom-color: var(--accent); box-shadow: none; }
.activity-filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px 0 0; }
.activity-filters button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; transition: background 140ms ease, color 140ms ease, transform 140ms ease; }
.activity-filters button:hover { background: var(--accent-soft); }
.activity-filters button:active { transform: scale(.98); }
.activity-filters button[aria-pressed="true"] { color: var(--bg-top); background: var(--text); border-color: var(--text); }
.activity-filters button small { font-size: 9px; font-weight: 500; opacity: .75; }
.activity-filters button [data-activity-count] { font-variant-numeric: tabular-nums; padding-left: 9px; border-left: 1px solid currentColor; opacity: .7; font-size: 10px; }
.catalog-notice { color: var(--muted); font-size: 12px; }
.catalog-notice:empty { display: none; }
.toolbar, html[data-theme="dark"] .toolbar { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 16px 0 20px; gap: 14px; }
.search-box input, select.f, .filter-reset { border-radius: 6px; box-shadow: none; }
.search-box input { min-height: 44px; font-size: 12px; }
.filter-reset { font-size: 11px; }
.filter-fields { gap: 14px; }
.filter-field span, .size-filter-label, .column-chooser-label { font-size: 9px; letter-spacing: .09em; }
select.f { min-height: 38px; font-size: 11px; }
.size-chip-btn { border-radius: 6px; box-shadow: none; background: transparent; padding: 8px 11px; }
.size-chip-btn[aria-pressed="true"], html[data-theme="dark"] .size-chip-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); box-shadow: none; color: var(--accent); }
.size-chip-btn span { font-size: 11px; }
.size-chip-btn small { font-size: 9px; }
.filter-actions { gap: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.filter-refinements { border-top: 1px solid var(--line); padding-top: 12px; }
.filter-refinements > summary { cursor: pointer; color: var(--muted); font-size: 10px; width: fit-content; }
.refinement-content { display: grid; gap: 14px; padding-top: 16px; }
.refinement-content .specific-size { padding: 0; border: 0; }
.chk { font-size: 11px; }
.column-chip span { border-radius: 4px; font-size: 10px; padding: 5px 9px; box-shadow: none; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.result-count { margin: 0; font-size: 11px; }
.catalog-sort-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.catalog-sort-label select { min-width: 170px; min-height: 34px; background-color: transparent; }
.table-wrap, html[data-theme="dark"] .table-wrap { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { font-size: 12px; }
thead th { padding: 13px 14px; font-size: 9px; letter-spacing: .08em; font-weight: 700; }
td { padding: 17px 14px; }
tbody tr { border-bottom-color: var(--line); }
tbody tr:last-child { border-bottom: 0; }
tbody tr:nth-child(even) { background: transparent; }
tbody tr[data-url]:hover { transform: none; }
.col-roaster { width: 15%; font-size: 11px; color: var(--muted); }
.col-product { width: 28%; line-height: 1.6; font-size: 12px; font-weight: 700; }
.col-product a { text-decoration: none; }
.col-product a:hover { text-decoration: underline; text-underline-offset: 3px; }
.coffee-option-label { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.coffee-options-toggle { display: flex; align-items: center; gap: 5px; margin-top: 7px; padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; color: var(--accent); font: inherit; font-size: 10px; cursor: pointer; }
.coffee-options-toggle:hover { background: var(--accent-soft); }
.coffee-options-toggle:active { transform: translateY(1px); }
.coffee-options-toggle > span:first-child { display: inline-block; font-size: 15px; line-height: 1; transition: transform 120ms ease; }
.coffee-options-toggle[aria-expanded="true"] > span:first-child { transform: rotate(90deg); }
.coffee-options-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
tbody tr.coffee-option-row { background: var(--accent-soft); }
.coffee-option-row .col-product { border-left: 2px solid var(--line-strong); font-weight: 500; }
tr[hidden] { display: none !important; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 20px 0 0; color: var(--muted); font-size: 11px; }
.catalog-pagination[hidden] { display: none; }
.catalog-pagination button { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.catalog-pagination button:hover { background: var(--accent-soft); }
.catalog-pagination button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.col-price { font-size: 13px; font-variant-numeric: tabular-nums; }
.col-unit { font-size: 11px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.size-cell strong { font-size: 11px; font-weight: 600; }
.size-cell span { font-size: 9px; }
.sighting-badge { display: table; margin-top: 5px; padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.sighting-badge.is-new { background: var(--green-soft); color: var(--green); }
.sighting-badge.is-returned { background: var(--accent-soft); color: var(--accent); }
.sighting-badge.is-sold-out { background: var(--surface-soft); color: var(--muted); }
.catalog-stock-filter { width: fit-content; margin-top: 14px; }
.listing-history { min-width: 86px; }
.listing-history summary { cursor: pointer; color: var(--text); font-size: 11px; list-style: none; }
.listing-history summary::-webkit-details-marker { display: none; }
.listing-history summary time { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.listing-history summary span { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; white-space: nowrap; }
.listing-history[open] { min-width: 170px; max-width: 210px; }
.listing-history dl { margin: 14px 0 8px; font-size: 10px; line-height: 1.7; }
.listing-history dt { color: var(--muted); margin-top: 5px; }
.listing-history dd { margin: 0; }
.listing-history p { color: var(--muted); font-size: 9px; line-height: 1.6; }
.streak-value { display: block; color: var(--accent); font-size: 21px; font-family: "Fraunces", serif; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.streak-value small { font-family: "Manrope", sans-serif; font-size: 10px; margin-left: 2px; }
.streak-value.is-pending { color: var(--muted); }
.streak-note { display: block; color: var(--muted); font-size: 9px; line-height: 1.5; margin-top: 5px; max-width: 90px; }
.col-checked { font-size: 10px; white-space: nowrap; }
.observation-guide { margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.observation-guide summary { cursor: pointer; width: fit-content; text-underline-offset: 3px; }
.observation-guide div { max-width: 760px; line-height: 1.9; font-size: 11px; padding-top: 6px; }
.observation-guide strong { color: var(--text); font-weight: 700; }
:is(.activity-filters button,.hero-link,.listing-history summary,.observation-guide summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1080px) {
  .page { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
  .hero h1 { font-size: 45px; }
  .hero-side { padding-left: 24px; }
  .hero-side h2 { font-size: 25px; }
  .index-date { display: none; }
  .col-roaster { min-width: 100px; }
  .col-product { min-width: 190px; }
  td, thead th { padding-left: 11px; padding-right: 11px; }
}
@media (max-width: 720px) {
  .page { width: calc(100% - 32px); padding-top: 20px; }
  .topbar { flex-direction: row; align-items: center; gap: 10px; padding-bottom: 18px; }
  .brand-mark { font-size: 28px; }
  .brand-note { font-size: 7px; }
  .topbar-actions { flex-wrap: nowrap; gap: 4px; }
  .topbar-actions > * { width: auto; }
  .theme-toggle { border: 0; padding: 6px; min-height: 36px; }
  .theme-toggle-copy { display: none; }
  .admin-link { font-size: 9px; padding: 8px 9px; min-height: 36px; }
  .hero { grid-template-columns: 1fr; gap: 0; padding: 30px 0; }
  .hero h1 { font-size: clamp(35px, 8.8vw, 56px); margin: 16px 0; line-height: 1.08; }
  .hero p { font-size: 12px; max-width: 420px; }
  .eyebrow { font-size: 8px; letter-spacing: .1em; }
  .hero-link { padding: 10px 14px; margin-top: 18px; font-size: 11px; }
  .hero-side { display: none; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 20px; padding: 20px 0; }
  .stat { padding: 0 18px; gap: 6px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border: 0; }
  .stat-value { font-size: 30px; }
  .stat-label { font-size: 8px; }
  .table-panel { margin-top: 28px; padding: 0; }
  .panel-head h2 { font-size: 26px; }
  .panel-head p { font-size: 11px; }
  .explore-tabs { display: flex; grid-template-columns: none; gap: 24px; }
  .activity-filters { gap: 6px; padding-top: 18px; }
  .activity-filters button { padding: 9px 10px; font-size: 10px; gap: 6px; }
  .activity-filters button [data-activity-count] { padding-left: 6px; font-size: 9px; }
  .toolbar { padding: 12px; gap: 12px; }
  .filter-topline { flex-direction: row; gap: 6px; }
  .search-box { min-width: 0; }
  .search-box input { font-size: 11px; padding-right: 8px; }
  .filter-reset { min-height: 44px; padding: 8px; font-size: 10px; }
  .filter-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
  .size-options { gap: 6px; }
  .size-chip-btn { flex: 1 1 90px; padding: 7px 8px; }
  .size-chip-btn span { font-size: 10px; }
  .size-chip-btn small { font-size: 8px; }
  .filter-actions { gap: 12px; }
  .result-bar { flex-wrap: wrap; gap: 12px; }
  .catalog-sort-label { margin-left: auto; }
  .table-wrap, html[data-theme="dark"] .table-wrap { overflow: visible; border: 0; background: transparent; border-radius: 0; }
  table, tbody { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #tb tr[data-url] { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 16px; margin-bottom: 10px; column-gap: 10px; row-gap: 12px; }
  #tb td { display: block; padding: 0; min-width: 0; }
  #tb .col-roaster { grid-column: 1 / -1; width: auto; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
  #tb .col-product { grid-column: 1 / -1; width: auto; font-size: 15px; line-height: 1.5; margin-top: -5px; }
  #tb :is(.col-size,.col-price,.col-unit) { grid-column: span 2; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  #tb :is(.col-history,.col-streak,.col-checked) { grid-column: span 2; }
  #tb [data-label]::before { content: attr(data-label); display: block; color: var(--muted); font: 500 8px "Manrope",sans-serif; margin-bottom: 7px; letter-spacing: .04em; }
  #tb .col-price { font-size: 15px; }
  #tb .col-unit { font-size: 12px; color: var(--text); }
  #tb .col-checked { font-size: 10px; }
  .listing-history { min-width: 0; }
  .listing-history summary { font-size: 11px; }
  .listing-history summary span { white-space: normal; font-size: 8px; }
  .listing-history[open] { min-width: 0; max-width: none; }
  .listing-history dl { font-size: 9px; overflow-wrap: anywhere; }
  .streak-note { font-size: 8px; }
  #tb [data-optional-column] { grid-column: span 3; color: var(--muted); font-size: 10px; }
  #tb td.is-optional-hidden { display: none; }
  #tb .empty { display: block; padding: 40px 18px; border: 1px dashed var(--line-strong); border-radius: 8px; font-size: 12px; line-height: 1.8; }
}
