/* Warm but modern: white pages, light maple wood accents (with a little grain), soft rounded cards, a serif for headings.
   Maple is too light to carry text on white, so it fills shapes that hold dark ink text; text accents use --wood-text. */
:root {
  --ink: #2b2621; --muted: #776b5e; --paper: #ffffff; --surface: #ffffff; --band: #f9f1e4; --line: #ece2d2;
  --wood: #e2be88; --honey: #cda066; --wood-text: #8a6338; --grain: url("wood-grain.5b5f617e9b21.svg"); --deal-red: #c62828;
  --radius: 14px; --shadow: 0 1px 2px rgba(60, 45, 30, .05), 0 6px 18px rgba(60, 45, 30, .07);
  --serif: "Fraunces", Georgia, ui-serif, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Our own copies of the type (founder, Nov 9: option A), latin only, served from this site like everything else. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
             src: url("fonts/Fraunces-normal.9a1814381455.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap;
             src: url("fonts/Fraunces-italic.7c1d820d2597.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
             src: url("fonts/Inter-normal.260c81a4759b.woff2") format("woff2"); }
* { box-sizing: border-box; }
/* The scrollbar's space is always kept, so the header doesn't shift between short and long pages; the footer sits at
   the bottom of short pages. */
html { scrollbar-gutter: stable; }
body { margin: 0; font: 1rem/1.6 var(--sans); color: var(--ink);
       background: var(--paper); display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; text-decoration-color: rgba(205, 160, 102, .8); text-underline-offset: 3px; }
a:hover { color: var(--wood-text); }
/* Fraunces a little soft, like rounded wood edges; it picks its optical size from the type size. */
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.2; letter-spacing: -.015em;
             font-variation-settings: "SOFT" 60, "WONK" 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .4em 0 .5em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 .6em; }
main { flex: 1 0 auto; width: 100%; max-width: 1160px; margin: 0 auto; padding: .5rem 20px 3rem; }
.message { background: var(--band); border-radius: 10px; padding: .5rem .75rem; }

/* Header and menu */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92);
               backdrop-filter: blur(8px); }
/* A thin strip of maple, like a desk edge, under the header and above the footer. */
.site-header::after, .site-footer::before { content: ""; display: block; height: 5px;
                                            background: var(--wood) var(--grain) 0 -9px / 240px 48px repeat-x; }
.header-inner { max-width: 1160px; margin: 0 auto; padding: .75rem 20px; display: flex; flex-wrap: wrap;
                align-items: center; gap: .5rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; font-family: var(--serif); font-size: 1.25rem;
         font-weight: 620; letter-spacing: -.015em; text-decoration: none; color: var(--ink);
         font-variation-settings: "SOFT" 60, "WONK" 0; }
.brand img { display: block; flex: none; width: 2.125rem; height: 2.125rem; }
.menu { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.menu a { padding: .375rem .75rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .9375rem;
          font-weight: 500; }
.menu a:hover { background: var(--band); color: var(--ink); }
.menu a[aria-current="page"] { background: var(--band); color: var(--ink); font-weight: 600; }
/* Deals stand out (founder, Oct 28): bold red, with a slow breathing red highlight and a pulsing dot. The highlight
   only fades, so it shows for people who ask for less motion too; the dot's ring moves, so it stays still for them. */
.menu a.nav-deals, .menu a.nav-deals:hover { color: var(--deal-red); font-weight: 700; }
.menu a.nav-deals { display: inline-flex; align-items: center; gap: .4375rem; animation: deal-glow 3s ease-in-out infinite; }
.menu a.nav-deals[aria-current="page"] { animation: none; }
.menu a.nav-deals::before { content: ""; flex: none; width: .4375rem; height: .4375rem; border-radius: 50%; background: currentColor;
                            animation: deal-pulse 3s ease-in-out infinite; }
@keyframes deal-glow { 0%, 100% { background-color: rgba(198, 40, 40, 0); } 50% { background-color: rgba(198, 40, 40, .14); } }
@keyframes deal-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(198, 40, 40, .55); }
                        50% { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(198, 40, 40, 0); } }
@media (prefers-reduced-motion: reduce) { .menu a.nav-deals::before { animation: none; } }
/* On a phone the menu takes a second row, so the header scrolls away instead of covering a sixth of the screen. */
@media (max-width: 700px) {
  .site-header { position: static; }
  .menu { margin-left: 0; }
  .menu a { padding: .25rem .625rem; font-size: .875rem; }
}

/* Footer */
.site-footer { background: var(--band); color: var(--muted); font-size: .875rem; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 1.5rem 20px; }
.signup label { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: .375rem; }
.signup-row { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.footer-button { display: inline-block; padding: .125rem .75rem; border: 1px solid var(--line); border-radius: 999px;
                 background: var(--surface); color: var(--ink); text-decoration: none; }
.footer-button:hover { border-color: var(--honey); }

/* Forms and buttons */
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
                          border-radius: 10px; padding: .4375rem .625rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(205, 160, 102, .5); border-color: var(--honey); }
button { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: .5rem 1.125rem;
         background: var(--wood) var(--grain) center / 240px 48px; color: var(--ink); }
button:hover { background: var(--honey); }
textarea { width: 100%; min-height: 6em; }
details summary { cursor: pointer; color: var(--muted); }

/* Home */
/* The headline is set as one piece, light and large, so the type itself carries the page (frontend-design review). */
.hero { padding: 2.6rem 0 1.4rem; max-width: 56rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 420; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 .9rem; }
/* "cool finds" in maple italic, as in option A that the founder picked (Nov 9) */
.hero h1 em { font-style: italic; font-weight: 380; color: var(--wood-text); }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 40rem; margin: 0; }
.browse { margin-top: 1.5rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-block; padding: .375rem .875rem; border-radius: 999px; background: var(--surface);
           border: 1px solid var(--line); text-decoration: none; font-size: .9375rem; }
.chips a:hover { border-color: var(--honey); color: var(--wood-text); }
.tag-chips { gap: .375rem; }
.tag-chips a { padding: .125rem .625rem; font-size: .8125rem; color: var(--muted); }
.chosen-tags a { background: var(--band); border-color: var(--honey); }
.more-tags { margin-top: .625rem; }
.setup .tag-chips { margin-bottom: .75rem; }

/* Setup cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 1rem; }
/* Masonry (founder, Oct 28): site.js sets each card's row span from its height, so a card sits right under the one
   above it. The gap below each card is part of its span. Without the script the grid keeps plain rows. */
.grid.masonry { grid-auto-rows: 2px; row-gap: 0; align-items: start; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card .tag-chips { padding: .5rem 1rem .875rem; }
.card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60, 40, 25, .08), 0 12px 28px rgba(60, 40, 25, .12); color: inherit; }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-title { display: block; font-family: var(--serif); font-weight: 560; font-size: 1.1rem; letter-spacing: -.01em;
              padding: .75rem 1rem 0; font-variation-settings: "SOFT" 60, "WONK" 0; }
.card-blurb { display: block; padding: .125rem 1rem 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.find-blurb { color: var(--muted); font-size: 1.15rem; margin: -.2em 0 .8em; }
.card-gear { display: block; margin: .625rem 8px 0; padding: .625rem .75rem .75rem; border-radius: 10px; background: var(--band);
             color: var(--ink); text-decoration: none; }
.card-gear:hover { color: var(--ink); }
.gear-label { display: block; font-family: var(--serif); font-size: .9rem; font-weight: 600; color: var(--wood-text);
              font-variation-settings: "SOFT" 60, "WONK" 0; }
.gear-names { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
              margin: .125rem 0 .625rem; font-size: .9375rem; line-height: 1.45; }
.gear-cta { display: block; padding: .5625rem .875rem; border-radius: 999px; text-align: center; font-weight: 700;
            background: var(--wood) var(--grain) center / 240px 48px; }
.card-gear:hover .gear-cta { background: var(--honey); }
.card:has(.card-gear) { cursor: pointer; }

/* Reddit's embed of a post (setups whose owners haven't said yes): Reddit draws it; only the space around it is ours. */
.post-embed { margin: .25rem 0 1rem; }
.card .post-embed { margin: .5rem 8px 0; }
.reddit-post { margin: 0; padding: .875rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
/* Until Reddit's script draws a card's embed, its space is about the height Reddit's embed takes, so the list moves
   less as embeds load. */
.card .reddit-post { min-height: 460px; background: var(--band); }
.show-post { margin-top: .625rem; }

/* The photo stays clean: dots and labels appear only on hover (desktop) or after a tap (touch). */
.photo { position: relative; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.zone { position: absolute; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.dot { position: absolute; left: 50%; top: 50%; width: 1rem; height: 1rem; margin: -.5rem 0 0 -.5rem; padding: 0;
       border: 2px solid #fff; border-radius: 50%; background: var(--wood); opacity: 0; cursor: pointer;
       box-shadow: 0 0 0 1px rgba(43, 38, 33, .45), 0 0 0 5px rgba(255, 255, 255, .3); }
.dot:hover { background: var(--honey); }
.label { position: absolute; left: 50%; top: calc(50% + .875rem); transform: translateX(-50%); z-index: 2;
         display: none; min-width: 10.625rem; max-width: 15.625rem; padding: .5rem .625rem; border-radius: 10px;
         background: rgba(43, 38, 33, .94); color: #fff; font-size: .8125rem; line-height: 1.4; box-shadow: var(--shadow); }
.label a { color: #fff; }
.label-name { display: block; font-weight: 600; }
.label-status { display: block; color: #d9cfc4; }
.paid { color: var(--muted); font-size: .75rem; }
.label .paid { color: #d9cfc4; }
@media (hover: hover) {
  .zone:hover .dot { opacity: 1; }
  .zone:hover .label { display: block; }
  .tap-hint { display: none; }
}
.zone:focus-within .dot, .photo.show-dots .dot, .zone.highlight .dot { opacity: 1; }
.zone:focus-within .label, .zone.open .label { display: block; }

/* Setup page */
.count-line { color: var(--muted); font-size: .875rem; margin: .625rem 0 1rem; }
.gear h2 { margin-top: .4em; }
/* Wide screens: an embedded setup's post on the left, its gear list beside it. */
@media (min-width: 900px) {
  .embed-setup .setup-body { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 40px;
                             align-items: start; }
}
.item-list { padding: 0; margin: 0 0 1.25rem; list-style: none; counter-reset: item; }
.item-list li { counter-increment: item; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem;
                padding: .625rem 0; border-bottom: 1px solid var(--line); }
.item-list li::before { content: counter(item); min-width: 1.6em; color: var(--wood-text); font-weight: 600; }
.item-name { font-weight: 600; }
.item-cat, .item-status { color: var(--muted); font-size: .875rem; }
.credit { color: var(--muted); font-size: .875rem; }
.setup form { margin: .75rem 0; }
.thumbs button[disabled] { cursor: default; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.find-photo { max-width: 720px; margin: 0 0 1.125rem; }
.find .tag-chips { margin-bottom: .75rem; }
.buy-line { margin: .625rem 0; }
.buy { display: inline-block; padding: .5625rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none;
       background: var(--wood) var(--grain) center / 240px 48px; color: var(--ink); }
.buy:hover { background: var(--honey); color: var(--ink); }
/* Wide screens: photos on the left, the name and store links beside them, staying in view while the photos scroll. */
@media (min-width: 900px) {
  .find { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 40px; align-items: start;
          margin-top: 1.75rem; }
  .find-photos { grid-column: 1; grid-row: 1; }
  .find-info { grid-column: 2; grid-row: 1; position: sticky; top: 5.25rem; }
  .find-info h1 { margin-top: 0; font-size: 2rem; }
}
.find-photo figcaption { color: var(--muted); font-size: .875rem; margin-top: .375rem; }
.find-note { overflow-wrap: anywhere; }  /* a post's long photo-credit links */
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1.75rem 0 .5rem; color: var(--muted); }
.see-all { text-align: center; margin: 1.5rem 0 0; }

/* Text pages */
.prose { max-width: 45rem; }
.prose table { border-collapse: collapse; width: 100%; margin: .5rem 0 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .375rem .5rem; border-bottom: 1px solid var(--line); }

/* Deals and cool finds */
.deal-card, .verdict { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
                       padding: 1rem 1.25rem; margin: 0 0 1rem; }
.feedback { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.feedback button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.feedback button:hover { border-color: var(--honey); background: var(--surface); color: var(--wood-text); }
.deal-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: .75rem 0 0; }
.deal-tabs a { padding: .375rem .75rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .9375rem; }
.deal-tabs a:hover, .deal-tabs a[aria-current="page"] { background: var(--band); color: var(--ink); }
.deal-tabs a[aria-current="page"] { font-weight: 600; }
/* Popular or Newest (founder, Nov 10): a quiet text switch under the heading, the order shown in bold. */
.deal-sort { display: flex; gap: 1rem; margin: -.25rem 0 1rem; font-size: .9375rem; }
.deal-sort a { color: var(--muted); text-decoration: none; }
.deal-sort a:hover, .deal-sort a[aria-current="true"] { color: var(--ink); }
.deal-sort a[aria-current="true"] { font-weight: 600; }
.deal-card h2 { font-size: 1.15rem; margin: 0 0 .3em; }
/* A click anywhere on a deal card opens its page (founder, Nov 9): the title link's box stretches over the whole card,
   so it stays one real link (middle-click and "open in new tab" work). It sits on top inside the card, since a price
   chip with clip-path would otherwise paint over it and take the click. Keep other links out of the card. */
.deal-card { position: relative; isolation: isolate; }
.deal-card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.deal-card p { margin: .2em 0; }
.deal-card .from { order: -2; font-size: .85rem; color: var(--muted); }
.deal-card .platforms { list-style: none; margin: .3em 0 0; padding: 0; font-size: .92em; }
.deal-card .platforms li { margin: .1em 0; }
.verdict h2 { font-size: 1.15rem; margin: 0 0 .3em; }
.low-price { font-weight: 600; }
.deal-card .low-price { order: -2; margin: 0 0 .4rem; font-size: .85rem; }  /* under the price on the deal sites' cards */
/* The usual price, struck through after the price with no words (founder, Nov 17); its label is for screen readers.
   On the deal sites' cards, where the price paragraph's parts are laid out one by one, it sits under the price. */
.usual { color: var(--muted); font-weight: 400; }
.usual .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.deal-card > p:first-of-type > .usual { order: -2; margin: 0 0 .4rem; font-size: .95rem; }
/* A deal's picture, the maker's own (founder, Nov 10): whole on a white tile, never cropped, so the product can be
   judged. On .site-homebase's Deals tab the cards sit in a grid with the picture across the top, as on the deal sites
   (founder, Nov 11: bigger pictures are more enticing and easier to act on); each deal site places it in its theme. */
.deal-picture { display: block; max-width: 100%; height: auto; background: #fff; object-fit: contain; }
.site-homebase .deal-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); }
.site-homebase .deal-card { margin: 0; }
.site-homebase .deal-card > .deal-picture { width: 100%; aspect-ratio: 4 / 3; margin: 0 0 .75rem; padding: .5rem;
                                            border: 1px solid var(--line); border-radius: 10px; }
.deal > .deal-picture { width: 100%; max-width: 28rem; aspect-ratio: 4 / 3; margin: 0 0 1.25rem; padding: 1rem;
                        border: 1px solid var(--line); border-radius: var(--radius); }
.ended { color: var(--deal-red); font-weight: 600; }
.go-to-store { display: inline-block; padding: .625rem 1.125rem; border-radius: 999px; background: var(--ink); color: var(--paper);
               text-decoration: none; font-weight: 600; }
.go-to-store:hover { color: var(--paper); background: var(--wood-text); }

/* .site-homebase about half again as big (founder, Nov 8: "make everything bigger ... maybe 50%"): a wider page,
   so a wide screen shows three cards about 550px wide instead of about 360px, and a laptop two; pictures and Reddit's
   embeds grow with their cards, and a find's own page with its column. Phones already use the full width. A setup
   page's embed stops at 640px, the widest Reddit draws it (wider, it pads the picture with bars). Text and the space
   around it are in rem, so the root size makes them half again as big too ("yes, everything", Nov 9); a phone gets a
   quarter more, which still leaves room for a readable line. */
html.site-homebase { font-size: 150%; }
@media (max-width: 700px) { html.site-homebase { font-size: 125%; } }
.site-homebase main, .site-homebase .header-inner, .site-homebase .footer-inner { max-width: 1740px; }
.site-homebase .grid { grid-template-columns: repeat(auto-fill, minmax(min(540px, 100%), 1fr)); }
.site-homebase .card .reddit-post { min-height: 600px; }
.site-homebase .find-photo { max-width: 1080px; }
@media (min-width: 900px) {
  .site-homebase .embed-setup .setup-body { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); }
  .site-homebase .find { grid-template-columns: minmax(0, 1020px) minmax(0, 1fr); }
}

/* Owner page */
.owner-form textarea { width: 100%; min-height: 6em; }
/* The Feedback form's spam trap: off-screen, so people never see it and bots still fill it (pages.py). */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.styles { border: 0; padding: 0; margin: 0 0 .75rem; }
.styles legend { padding: 0; }
.styles div { display: flex; flex-wrap: wrap; gap: .125rem 1rem; }
.item-row { display: flex; gap: .375rem; margin: .375rem 0; flex-wrap: wrap; }
.item-row input[name="item_name"] { flex: 1 1 13.75rem; }
.item-row.placing { outline: 2px solid var(--honey); border-radius: 10px; }
.place { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.place:disabled { opacity: .45; cursor: default; }
.owner-photo { cursor: crosshair; max-width: 800px; }
.marker { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%;
          background: var(--honey); color: #fff; font: 600 13px/26px sans-serif; text-align: center;
          box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.row-number { min-width: 1.6em; align-self: center; color: var(--wood-text); font-weight: 600; }
.item-rows { padding: 0; list-style: none; }
.owner-section { margin: 1.75rem 0; }
.note { color: var(--muted); font-size: .875rem; }

/* The Black Friday deal sheet (Nov 16): a plain list meant to be read and copied from; ended deals are greyed. */
.deal-sheet ul { padding-left: 1.2rem; }
.deal-sheet li { margin: 0 0 .8rem; }
.deal-sheet .ended { color: var(--muted); }
