@font-face { font-family: "Caprasimo"; src: url("fonts/Caprasimo-1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/Karla-1.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--back); color: var(--text); font: 17px/1.5 var(--body); }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--link); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }
input, select, button, .button { font: inherit; min-height: 44px; }
input, select { min-width: 0; }
button, .button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4em; white-space: nowrap; text-decoration: none; }
h3, .tagline, #maker-line, .listings { overflow-wrap: anywhere; }
canvas, img { max-width: 100%; height: auto; }
dialog { width: min(40rem, calc(100vw - 2rem)); }
summary { cursor: pointer; }
/* Direction A, "Greengrocer": paper, ink, one awning red. Goods are rows with a swing tag for the price. */
:root {
  --back: #f6efe2; --panel: #fffaf0; --text: #1f1a14; --muted: #62574a; --line: #1f1a14; --soft: #d9cdb8;
  --accent: #b92c1a; --green: #1b6444; --mustard: #f2c230; --link: #1f1a14; --focus: #1d4ed8;
  --display: "Caprasimo", Georgia, serif; --display-weight: 400; --body: "Karla", "Segoe UI", Arial, sans-serif;
  --card-back: #f6efe2; --card-panel: #fffaf0; --card-text: #1f1a14; --card-muted: #62574a; --card-accent: #b92c1a; --card-line: #1f1a14;
  --card-bar-1: #b92c1a; --card-bar-2: #1b6444; --card-bar-3: #d99a00; --card-band: awning; --card-tiles: tag;
  color-scheme: light;
}
h1, h2, h3, .brand, .price, .show b { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; line-height: 1.15; }
h3 { font-size: 1.45rem; line-height: 1.15; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--panel); border: 1px solid var(--soft); padding: .05em .3em; }
.note, small, .count { color: var(--muted); font-size: .94rem; }

/* The awning: the one loud thing on the page. */
body::before { content: ""; display: block; height: 30px; background: repeating-linear-gradient(90deg, var(--accent) 0 34px, var(--panel) 34px 68px); border-bottom: 2px solid var(--line);
  -webkit-mask: radial-gradient(circle 17px at 17px 13px, #000 98%, #0000) 0 100% / 34px 17px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 13px) no-repeat;
  mask: radial-gradient(circle 17px at 17px 13px, #000 98%, #0000) 0 100% / 34px 17px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 13px) no-repeat; height: 44px; }
.top { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding: .6rem clamp(1rem, 4vw, 3rem) 1rem; border-bottom: 2px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-size: 1.6rem; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.lookup { display: flex; flex: 1 1 16rem; max-width: 26rem; }
.lookup input { flex: 1 1 auto; background: var(--panel); color: var(--text); border: 2px solid var(--line); border-right: 0; border-radius: 3px 0 0 3px; padding: 0 .8rem; }
.lookup button { border-radius: 0 3px 3px 0; }
input::placeholder { color: var(--muted); }
button, .button { background: var(--text); color: var(--back); border: 2px solid var(--line); border-radius: 3px; padding: 0 1rem; font-weight: 700; }
button:hover, .button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
button.plain, .button.plain { background: none; color: var(--text); border: 0; padding: 0; min-height: 44px; font-weight: 400; text-decoration: underline; }
button.plain:hover, .button.plain:hover { color: var(--accent); background: none; }
button.link { background: none; border: 0; color: var(--text); padding: 0; min-height: 0; font-weight: 400; text-decoration: underline; }
select, #find { background: var(--panel); color: var(--text); border: 2px solid var(--line); border-radius: 3px; padding: 0 .7rem; }

main { max-width: 76rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 4rem; }
.row-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--line); padding-bottom: .4rem; margin-bottom: .6rem; }

/* Home */
.lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-bottom: 3.5rem; }
.lead-text p { font-size: 1.15rem; max-width: 34rem; margin-top: .9rem; }
.lookup.big { max-width: 30rem; margin-top: 1.4rem; }
.lookup.big input, .lookup.big button { min-height: 56px; font-size: 1.15rem; }
.tries { margin-top: .6rem; }
.sample { display: block; color: var(--muted); font-size: .94rem; text-decoration: none; transform: rotate(1.5deg); }
.sample img { display: block; border: 2px solid var(--line); margin-bottom: .4rem; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem; }
.makers a { display: flex; gap: .75rem; align-items: center; padding: .55rem 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--soft); }
.makers a:hover b { color: var(--accent); }
.makers img { border-radius: 50%; border: 2px solid var(--line); flex: none; }
.makers span { display: grid; min-width: 0; }
.wanted li { padding: .6rem 0; border-bottom: 1px solid var(--soft); display: grid; }
.how { margin-top: 3rem; max-width: 46rem; }
.how h2 { border-bottom: 2px solid var(--line); padding-bottom: .4rem; }
.how ol { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .5rem; margin: .8rem 0; }

/* Stall: whose stall it is comes first, the goods under it, and the card to post stays in view on the right. */
#stall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem); grid-template-rows: auto auto auto 1fr; column-gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.sign { display: contents; }
.maker { grid-column: 1; grid-row: 1; display: flex; gap: 1.2rem; align-items: center; }
.sign .actions { grid-column: 1; grid-row: 2; margin-top: .5rem; }
#stall-note { grid-column: 1; grid-row: 3; margin-top: .4rem; max-width: 44rem; }
#stall-note:empty { display: none; }
.goods { grid-column: 1; grid-row: 4; min-width: 0; margin-top: 2rem; }
.card { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 1rem; }
.maker img { border-radius: 50%; border: 2px solid var(--line); width: 96px; height: 96px; flex: none; }
.maker-text { min-width: 0; }
.kicker { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.sign h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); }
#maker-line { color: var(--muted); font-size: 1.05rem; max-width: 40rem; margin-top: .25rem; }
.sign .actions { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.card canvas { display: block; width: 100%; border: 2px solid var(--line); }
.card figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin-top: .6rem; }
.goods-title { font-size: 1.7rem; margin-bottom: .7rem; }
.shows { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.show { background: var(--panel); color: var(--text); border: 2px solid var(--line); border-radius: 3px; padding: .15rem .8rem; font-weight: 400; gap: .45rem; }
.show b { font-size: 1.25rem; }
.show[aria-pressed="true"] { background: var(--text); color: var(--back); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filters #find { flex: 2 1 11rem; }
.filters select { flex: 1 1 17rem; }
.projects { margin-top: 1rem; border-top: 2px solid var(--line); }
.project { display: grid; gap: .3rem; padding: 1.15rem 0 1.05rem; border-bottom: 1px solid var(--soft); }
.none { padding: 1.2rem 0; color: var(--muted); }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tagline { max-width: 44rem; }
/* The price is a swing tag: clipped corners, a punched hole, hung a little crooked. */
.price { flex: none; font-size: 1.15rem; line-height: 1; padding: .5rem .8rem .5rem 1.7rem; color: var(--text); background: radial-gradient(circle at .8rem 50%, var(--back) 0 .22rem, var(--line) .22rem .32rem, #0000 .34rem), var(--mustard);
  clip-path: polygon(.7rem 0, 100% 0, 100% 100%, .7rem 100%, 0 70%, 0 30%); transform: rotate(-2deg); }
.price.free { background: radial-gradient(circle at .8rem 50%, var(--back) 0 .22rem, var(--line) .22rem .32rem, #0000 .34rem), var(--green); color: #fff; }
.price.unset { background: none; clip-path: none; transform: none; padding: .3rem 0 0; font-family: var(--body); font-size: .9rem; color: var(--muted); }
.listings { font-size: .94rem; color: var(--muted); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7rem; row-gap: .1rem; margin-top: .15rem; }
.listings::before { content: "Listed on"; grid-row: 1 / span 8; font-weight: 700; color: var(--text); }
.listings li { grid-column: 2; }
.listings a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .9rem; color: var(--muted); }
.project .actions { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; align-items: center; margin-top: .25rem; }
.project .button:not(.plain) { min-height: 40px; }

footer { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding: 1.25rem clamp(1rem, 4vw, 3rem); border-top: 2px solid var(--line); color: var(--muted); font-size: .94rem; }
dialog { background: var(--back); color: var(--text); border: 2px solid var(--line); border-radius: 3px; padding: 1.25rem; }
dialog::backdrop { background: rgb(31 26 20 / .6); }
details { border-bottom: 1px solid var(--soft); padding: .6rem 0; }
details ul { list-style: disc; padding-left: 1.25rem; margin-top: .5rem; color: var(--muted); }
#message { max-width: 40rem; display: grid; gap: .6rem; }

@media (max-width: 860px) {
  .lead { grid-template-columns: minmax(0, 1fr); }
  .sample { transform: none; max-width: 26rem; }
  #stall { display: flex; flex-direction: column; }
  .card { order: 9; margin-top: 1.5rem; position: static; }
  .maker { gap: .8rem; align-items: flex-start; }
  .maker img { width: 56px; height: 56px; }
  #maker-line { font-size: .98rem; }
  .sign .actions { gap: 0 1.1rem; margin-top: .3rem; }
  .goods { margin-top: 1.1rem; }
  .goods-title { font-size: 1.45rem; margin-bottom: .6rem; }
  .shows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show { justify-content: flex-start; white-space: normal; text-align: left; line-height: 1.15; padding: .3rem .7rem; }
  .project-top { gap: .6rem; }
}

@media (max-height: 700px) { .card { position: static; } }
@media print { body::before, .top, .filters, .shows, .card figcaption, footer { display: none; } }
