/* Prairie Auction Map. Direction: "The Sale Bill" (James picked C1).
   The week is a canary farm-sale handbill tacked to a painted board, beside a
   printed directions map on newsprint. Red is the bill's second ink. */
:root {
  --bg: #1d2b1c;        /* the painted board the bills are tacked to */
  --paper: #f3d43a;     /* canary sale-bill stock */
  --paper-2: #f6f1e3;   /* newsprint for the map sheet */
  --ink: #141412;
  --muted: #4a4223;
  --accent: #c4161c;    /* red second ink */
  --on-bg: #f3d43a;
  --on-bg-soft: #efe7c8;
  --m: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  font-family: Archivo, "Arial Narrow", Arial, sans-serif; font-stretch: 100%; color: var(--ink);
  background: var(--bg); font-size: 1.0625rem; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cond { font-stretch: 62%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.88; }
.soft { color: var(--muted); }

/* the board's top edge */
nav.top { display: flex; align-items: center; gap: 28px; padding: 0 var(--m); height: 76px; color: var(--on-bg); }
.mark { white-space: nowrap; font-stretch: 62%; font-weight: 900; font-size: 1.9rem; text-transform: uppercase; text-decoration: none; margin-right: auto; letter-spacing: 0.01em; }
nav.top a:not(.mark):not(.btn) { text-decoration: none; font-weight: 600; }
nav.top a:not(.mark):not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 800; padding: 12px 20px; border: 0; cursor: pointer; transition: transform 150ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-big { padding: 16px 26px; font-size: 1.15rem; }

/* the wall: bill on the left, map sheet on the right */
.wall { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; padding: 10px var(--m) 0; align-items: start; }
.wall.single { grid-template-columns: minmax(0, 900px); justify-content: center; }
.bill { background: var(--paper); padding: 36px 44px 56px; position: relative; }
.bill::before, .bill::after { content: ""; position: absolute; top: 12px; width: 14px; height: 5px; background: #9b9b93; }
.bill::before { left: 18px; }
.bill::after { right: 18px; }
.bill header { text-align: center; }
.bill .over { font-weight: 800; font-size: 1.25rem; font-stretch: 80%; text-transform: uppercase; }
.bill h1 { margin: 0 0 2px; }
.bill h1 .over { display: block; line-height: 1.45; }
.bill h1 .big, .bill:not(.salebill) h1.cond { display: block; font-size: clamp(4rem, 1rem + 6.6vw, 7.4rem); margin-top: 4px; }
.bill .dates { font-stretch: 75%; font-weight: 800; font-size: clamp(1.3rem, 0.9rem + 1.1vw, 2rem); text-transform: uppercase; line-height: 1.05; }
.bill .dates b { color: #a30f14; }
.bill .dates .short { display: none; }
.bill .note { margin: 10px auto 0; max-width: 52ch; font-size: 1rem; }
.show { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 6px; }
.show button {
  background: transparent; border: 0; padding: 5px 10px; font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  font-size: 1rem; cursor: pointer; box-shadow: inset 0 0 0 2.5px var(--ink); transition: background-color 150ms, color 150ms; /* taste-skill-ignore: printed box rule */
}
.show button[aria-pressed="true"], .show button:hover { background: var(--ink); color: var(--paper); }

.list { columns: 2; column-gap: 40px; margin-top: 20px; }
.day { break-inside: avoid-column; }
.dayhead {
  break-inside: avoid; break-after: avoid; background: var(--ink); color: var(--paper); font-stretch: 70%; font-weight: 900;
  text-transform: uppercase; font-size: 1.35rem; line-height: 1.2; padding: 3px 10px; margin: 14px 0 8px; display: flex; justify-content: space-between;
}
.day:first-child .dayhead { margin-top: 0; }
.sale { break-inside: avoid; padding: 6px 0 10px; text-decoration: none; display: block; transition: opacity 250ms; }
.sale .when { display: block; font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 1.15rem; line-height: 1.1; }
.sale .when .km { color: #a30f14; } /* the red ink, darkened to read on canary */
.sale .t { font-weight: 700; line-height: 1.25; display: block; }
.sale .h { display: block; font-size: 0.95rem; color: var(--muted); }
.sale .items { display: block; font-size: 0.95rem; line-height: 1.35; margin-top: 2px; }
.sale:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.sale.dim { opacity: 0.28; }
.empty { margin-top: 16px; font-weight: 700; }

/* the printed directions map */
.mapsheet { background: var(--paper-2); padding: 26px 28px 24px; position: sticky; top: 12px; }
.mapsheet h2 { font-size: 2.6rem; }
.mapsheet > p { font-size: 1rem; margin-top: 6px; }
.themap { display: block; width: 100%; height: auto; margin-top: 12px; }
.themap .border { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 10 5; opacity: 0.6; }
.themap .road { stroke: var(--ink); stroke-width: 2; opacity: 0.3; }
.themap .ring { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 6; }
.themap .ringlabel { font-size: 14px; font-weight: 700; text-anchor: middle; stroke: var(--paper-2); stroke-width: 4px; paint-order: stroke; }
.themap .towndot { fill: var(--ink); opacity: 0.6; }
.themap .townlabel { font-size: 14px; fill: var(--ink); opacity: 0.7; }
.themap .pin circle { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2.5; transition: fill 200ms, opacity 200ms; }
.themap .pin.hot circle { fill: var(--accent); stroke: var(--accent); }
.themap .pin.focus circle { stroke: var(--ink); stroke-width: 4; }
.themap .pin.dim { opacity: 0.25; }
.themap .pincount { font-size: 13px; font-weight: 800; fill: #fff; text-anchor: middle; }
.themap .pinlabel { font-weight: 800; font-stretch: 75%; fill: var(--ink); stroke: var(--paper-2); stroke-width: 4px; paint-order: stroke; }
.dist { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; }
.dist select {
  appearance: none; border: 0; background-color: var(--ink); color: var(--paper-2); padding: 7px 30px 7px 10px; font-weight: 700; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f6f1e3' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.picksh { font-size: 2rem; margin-top: 22px; }
.picks { list-style: none; margin-top: 6px; font-size: 1rem; }
.picks li { padding: 6px 0; }
.picks a { text-decoration: none; }
.picks a:hover { text-decoration: underline; }
.picks b { font-weight: 800; }
.back { margin-top: 18px; font-weight: 700; }
.phone-map { display: none; background: var(--paper-2); margin: 12px -16px 0; }
.phone-map .themap { margin-top: 0; }

/* next week, calendar, the tear-off notice */
.next { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; padding: 160px var(--m) 0; color: var(--on-bg); }
.next h2, .calendar > h2 { font-size: clamp(3rem, 1rem + 5vw, 6rem); }
.next p { color: var(--on-bg-soft); margin-top: 14px; max-width: 38ch; }
.nextlist { background: var(--paper-2); color: var(--ink); padding: 28px 32px; }
.nextlist table { width: 100%; border-collapse: collapse; }
.nextlist td { padding: 8px 6px; border-bottom: 2px dotted rgba(20, 20, 18, 0.35); vertical-align: top; }
.nextlist td:first-child { font-weight: 900; font-stretch: 70%; text-transform: uppercase; white-space: nowrap; font-size: 1.1rem; }
.nextlist td:last-child { text-align: right; color: var(--muted); white-space: nowrap; }
.nextlist a { text-decoration: none; font-weight: 700; }
.nextlist a:hover { text-decoration: underline; }

.calendar { padding: 160px var(--m) 0; color: var(--on-bg); }
.grids { display: grid; grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)); gap: 28px; margin-top: 24px; }
.month { background: var(--paper-2); color: var(--ink); padding: 22px 24px 24px; }
.month h3 { font-size: 2.2rem; margin-bottom: 12px; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; text-align: left; padding: 4px; background: var(--ink); color: var(--paper-2); }
.cal td { vertical-align: top; height: 92px; padding: 4px; border: 1px solid #c9c2ad; font-size: 0.8125rem; line-height: 1.2; overflow: hidden; } /* taste-skill-ignore: a real calendar table */
.cal td.out { background: #ece6d4; color: #9a937e; }
.cal td.past { color: #9a937e; }
.cal td.today { box-shadow: inset 0 0 0 3px var(--accent); } /* taste-skill-ignore: today ring on a printed calendar */
.cal .n { font-weight: 800; }
.cal .c { float: right; background: var(--accent); color: #fff; font-weight: 800; padding: 0 6px; }
.cal a { display: block; text-decoration: none; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal a:hover { text-decoration: underline; }
.cal .more { display: block; color: var(--muted); margin-top: 2px; }
.agenda { display: none; list-style: none; }
.further { grid-column: 1 / -1; background: var(--paper-2); color: var(--ink); padding: 22px 24px; }
.further h3 { font-size: 2.2rem; margin-bottom: 8px; }
.further ul { list-style: none; }
.further li { padding: 6px 0; }
.further a { font-weight: 700; text-decoration: none; }
.further span { color: var(--muted); }

.notice { margin: 180px var(--m) 0; background: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; padding: 48px 48px 0; }
.notice h2 { font-size: clamp(3.4rem, 1rem + 5.4vw, 6.6rem); }
.notice .what { font-size: 1.25rem; line-height: 1.4; }
.notice .what p + p { margin-top: 12px; }
.notice .free { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }
.tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, 1fr); margin-top: 40px; }
.tabs a {
  display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); height: 210px;
  text-decoration: none; font-weight: 800; font-stretch: 75%; font-size: 1.05rem; border-right: 3px dotted var(--ink); padding: 10px 0; transition: transform 200ms var(--ease);
}
.tabs a:first-child { border-left: 3px dotted var(--ink); }
.tabs a:hover { transform: rotate(180deg) translateY(-8px); }
.tabs a b { color: #a30f14; margin-bottom: 8px; }

footer { padding: 160px var(--m) 36px; color: var(--on-bg); }
footer .big { font-size: clamp(4rem, 1rem + 9.5vw, 11rem); line-height: 0.8; }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 28px; color: var(--on-bg-soft); }
footer .row a { margin-right: 22px; }

/* a sale's own handbill */
.salebill header { padding-bottom: 8px; }
.salebill h1 { font-size: clamp(2.8rem, 1rem + 4.2vw, 5.4rem); margin: 10px 0 8px; }
.salebill .place { font-weight: 700; font-size: 1.2rem; margin: 14px auto 18px; max-width: 46ch; }
.salebill .place span { display: block; font-weight: 400; font-size: 1rem; color: var(--muted); }
.salebill section { margin-top: 28px; }
.salebill .about { max-width: 70ch; }
.lots { columns: 2; column-gap: 40px; list-style: none; }
.lots li { break-inside: avoid; padding: 4px 0; font-weight: 600; }
.lots li::before { content: "\2022  "; color: var(--accent); }
.flag { margin-top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; display: inline-block; font-weight: 700; }

/* home */
.provs { list-style: none; margin-top: 28px; }
.provs li a, .provs li.soon { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none; border-top: 3px solid var(--ink); }
.provs .cond { font-size: 3rem; }
.provs li.soon { color: var(--muted); }
.provs a:hover .cond { color: var(--accent); }

/* motion: one rise per section, kept for people who allow motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .btn, .tabs a, .sale { transition: none; } }

@media (max-width: 820px) {
  :root { --m: 16px; }
  nav.top { height: 60px; gap: 12px; }
  nav.top .hide-m { display: none; }
  .mark { font-size: 1.35rem; }
  .btn { padding: 9px 12px; }
  .btn-big { padding: 14px 20px; width: 100%; }
  .wall { display: block; padding-top: 0; }
  .bill { padding: 22px 16px 36px; }
  .bill .over { font-size: 1rem; }
  .bill h1 .big, .bill:not(.salebill) h1.cond { font-size: 14.2vw; }
  .salebill h1 { font-size: 11vw; }
  .bill .dates { font-size: 1.2rem; }
  .bill .dates .long { display: none; }
  .bill .dates .short { display: inline; }
  .province .bill .note { font-size: 0.95rem; margin-top: 6px; }
  .show { margin-top: 10px; }
  .show button { font-size: 0.95rem; padding: 6px 9px; }
  .list, .lots { columns: 1; margin-top: 14px; }
  .province .mapsheet { display: none; }
  .salepage .mapsheet { position: static; margin-top: 16px; padding: 20px 16px; }
  .phone-map { display: block; }
  .next { display: block; padding-top: 100px; }
  .nextlist { margin-top: 20px; padding: 16px; }
  .nextlist td:first-child { white-space: normal; }
  .calendar { padding-top: 100px; }
  .grids { display: none; }
  .cal td { height: 80px; }
  .agenda { display: block; background: var(--paper-2); color: var(--ink); margin-top: 20px; padding: 8px 16px; }
  .agenda li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 0; border-bottom: 2px dotted rgba(20, 20, 18, 0.35); }
  .agenda .ad { font-weight: 900; font-stretch: 70%; text-transform: uppercase; }
  .agenda a { font-weight: 700; text-decoration: none; }
  .notice { display: block; margin-top: 110px; padding: 28px 20px 0; }
  .notice .what { margin-top: 16px; }
  .tabs { grid-template-columns: repeat(5, 1fr); }
  .tabs a:nth-child(n+6) { display: none; }
  .tabs a { height: 170px; }
  footer { padding-top: 100px; }
  footer .big { font-size: 9.4vw; }
  .salepage .themap .townlabel, .stripmap .townlabel { font-size: 20px; }
  .provs .cond { font-size: 2rem; }
}
