/* /gifts -- Phase 1 of the affiliate plan. docs/advertising.md §5.
   VERSION: 20261115-0120

   Built on games.css's proportions, with one difference that drives all the
   rest: the hub is a column of two or three big targets, and this is twelve
   to fifteen things somebody browses. So this one does get a grid.

   WIDER THAN THE HUB (72ch against 62ch). A column of prose wants a narrow
   measure; a grid of photographs wants room for two of them side by side on
   a laptop without either being a stamp. The lede above it is still readable
   at this width because it is two lines, not two paragraphs. */
body.gifts{background:#161e26;overflow:auto;height:auto;min-height:100%}
.giftswrap{max-width:72ch;margin:0 auto;padding:40px 24px 72px;
  font-size:16px;line-height:1.65}
.giftswrap h1{margin:0 0 6px;font-size:30px;letter-spacing:-.01em}
.giftswrap .lede{margin:0 0 14px;font-size:17px;color:rgba(245,241,232,.78)}

/* The plain-English commission note. Quieter than the lede and louder than
   the footer's formal line. It sat above the first card until 2026-11-15 and
   now sits under the last one -- Bryce's call; gifts.html has the note on
   what that trades away and what covers it. Centred and borderless down
   there, because a left rule under a centred grid reads as a stray quote. */
.gfnote{max-width:52ch;margin:34px auto 0;text-align:center;font-size:14px;
  line-height:1.55;color:rgba(245,241,232,.56)}

/* TWO COLUMNS AT MOST, and one on a phone. auto-fill with a 260px minimum
   would give three or four columns on a wide screen, which turns a page of
   fifteen considered objects into a catalogue -- the opposite of "things we
   actually own". The max-width above caps it at two in practice; the
   minmax() is what makes it one as soon as there is not room for two. */
.gflist{list-style:none;margin:0;padding:0;display:grid;gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.gfitem{margin:0;border-radius:12px;background:#1E2730;
  border:1px solid var(--line);overflow:hidden;
  transition:border-color .12s,background .12s}
.gfitem:hover,.gfitem:focus-within{border-color:var(--orange);background:#222c37}
/* The whole card is the anchor -- see the note in gifts.html. A column, so
   the "See it on Amazon" line sits at the bottom of every card whatever the
   length of the sentence above it. */
.gfitem > a{display:flex;flex-direction:column;height:100%;
  text-decoration:none;color:inherit}
.gfitem > a:hover{text-decoration:none}

/* ONE ASPECT RATIO FOR EVERY PHOTOGRAPH, and it is PORTRAIT -- changed
   2026-11-14 when the first ten arrived. The ratio was 4:3 landscape on the
   guess that a gift photograph is a landscape photograph. Nine of Bryce's ten
   came in at 3:4 portrait, because the things on this page are books and a
   book stood on a desk is taller than it is wide. A 4:3 tile with
   object-fit:cover took the top and bottom off every cover, which is the one
   crop a book cannot survive -- the cover IS how somebody recognises it.

   object-fit:contain, NOT cover. tools/trim_gift_photos.py already pads every
   tile to exactly 3:4, so for a photograph that went through it the two are
   identical and this choice costs nothing. It matters for the one that did
   not: contain letterboxes an odd ratio onto the background below, where
   cover would silently cut it. The background is .gfitem's own colour, so the
   letterboxing is invisible rather than a grey band.

   The width/height attributes in the markup are 900x1200 to match, and they
   are what reserves the space before the photograph loads. */
/* height:auto IS LOAD-BEARING, and its absence is why this was broken for
   twenty minutes on 2026-11-14. The width/height attributes also set a
   presentational `height`, and an explicit height beats aspect-ratio -- so
   every card rendered at the attribute's height instead of its own ratio and
   the grid was a column of slabs. width:100% overrode the width hint;
   nothing was overriding the height one. */
.gfpic{display:block;width:100%;height:auto;aspect-ratio:3/4;
  object-fit:contain;background:#1E2730}
.gfname{display:block;padding:14px 16px 0;font-size:17px;font-weight:600;
  color:var(--offwhite)}
.gfwhy{display:block;padding:5px 16px 0;font-size:14.5px;line-height:1.5;
  color:rgba(245,241,232,.66)}
/* margin-top:auto is what pins this to the bottom of the card. */
.gfgo{display:block;margin-top:auto;padding:12px 16px 14px;font-size:13.5px;
  font-weight:600;color:var(--orange)}

.gfnone{margin:0;padding:22px 0;font-size:15.5px;color:rgba(245,241,232,.55)}

/* --- owner only ---------------------------------------------------------
   The same treatment as the hub's unlisted games: dashed and dimmed, so it
   reads as a workbench rather than as part of the page. */
.gfheld{margin-top:40px;padding-top:22px;border-top:1px solid var(--line)}
.gfheld h2{margin:0 0 4px;font-size:15px;color:var(--orange)}
.gfnote2{margin:0 0 14px;font-size:13.5px;color:rgba(245,241,232,.55)}
.gfnote2 code{font-family:var(--mono);font-size:12.5px;
  background:#1E2730;padding:1px 5px;border-radius:4px}
.gfholdlist{margin:0;padding-left:20px;font-size:14px}
.gfholdlist > li{margin:0 0 10px;border-left:2px dashed var(--line);
  padding-left:12px;list-style:none}
.gfholdlist ul{margin:4px 0 0;padding-left:18px;
  color:rgba(245,241,232,.6);font-size:13.5px}

@media (max-width:640px){
  .giftswrap{padding:28px 18px 56px;font-size:15.5px}
  .gfnote{margin-top:28px}
}
