/* pigeon.
 *
 * A dated column of plain cards, and NO PHOTOGRAPHS -- see the note in
 * worker/html.js. The type does the work: the title large, the theme and date
 * small above it, the price and shop below.
 *
 * Surfaces already used in this portfolio: warm ivory (four apps), cool slate,
 * plain white, pale yellow-green, lilac-grey, warm dark. This one is blush.
 *
 * No style="" attributes: `style-src 'self'` blocks them while the page still
 * returns 200, a failure invisible to curl.
 */

:root {
  --bg: #f7ecec;
  --card: #fffafa;
  --ink: #2a1e1e;
  --soft: #7a6363;
  --rule: #e2cdcd;
  --teal: #1f6f6b;
  --dry: #a03c2e;
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main, .perch, .foot, .note { max-width: 44rem; margin-inline: auto; padding-inline: 1.25rem; }

a { color: var(--teal); }
a:hover { color: var(--dry); }

.perch {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: baseline; justify-content: space-between; padding-block: 1.75rem .75rem;
}
.name { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.perch nav { display: flex; gap: 1.25rem; font-size: .85rem; }
.perch nav a { color: var(--soft); }

.note { padding: .55rem 1.25rem; margin: .5rem auto 1rem; border-left: 3px solid var(--teal); background: var(--card); font-size: .92rem; }
.note.no { border-left-color: var(--dry); }

.foot {
  margin-top: 4rem; padding-block: 1.25rem 3rem; border-top: 1px solid var(--rule);
  font-size: .82rem; color: var(--soft); display: flex; flex-wrap: wrap; gap: .35rem 1.15rem;
}
.foot a { color: var(--soft); }
.foot p { flex-basis: 100%; margin: .7rem 0 0; max-width: 42rem; }

h1 { font-family: var(--serif); font-weight: normal; font-size: 1.8rem; line-height: 1.25;
     margin: 1.25rem 0 .75rem; max-width: 26ch; }
h2 { font-size: .95rem; margin: 2.5rem 0 .5rem; color: var(--soft);
     letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
h2.claim { font-family: var(--serif); font-size: 1.4rem; text-transform: none; letter-spacing: 0;
           color: var(--ink); max-width: 24ch; margin-top: 3rem; }
.lede { max-width: 56ch; }
.aside { max-width: 56ch; font-size: .88rem; color: var(--soft); }
.crumb { margin-top: 2.5rem; font-size: .88rem; }
.empty { color: var(--soft); font-style: italic; }

/* ------------------------------------------------------------------ finds */

.finds { list-style: none; margin: 1.5rem 0; padding: 0; }
.find { background: var(--card); border: 1px solid var(--rule); padding: .9rem 1.1rem; margin-bottom: .75rem; }
.find.pinned { border-left: 4px solid var(--teal); }
.find.dryish { border-left: 4px solid var(--dry); }

.stamp { margin: 0 0 .3rem; display: flex; gap: .75rem; align-items: baseline; font-size: .74rem; }
.theme { letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.date { color: var(--soft); font-family: ui-monospace, Menlo, Consolas, monospace; margin-left: auto; }

.find h3 { font-family: var(--serif); font-weight: normal; font-size: 1.2rem; line-height: 1.3; margin: 0 0 .35rem; }
.find h3 a { color: var(--ink); text-decoration: none; }
.find h3 a:hover { color: var(--dry); text-decoration: underline; }
.asif { color: var(--ink); }

.line { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .35rem .8rem; align-items: baseline; font-size: .88rem; }
.cost { font-family: ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.shop, .hearts { color: var(--soft); }

/* ----------------------------------------------------------------- themes */

.themes { list-style: none; margin: 1rem 0; padding: 0; }
.theme-row { display: block; }
.themes li {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px solid var(--rule);
}
.themes .words { font-weight: 600; }
.shape { flex: 1 1 auto; font-size: .8rem; color: var(--soft); }
.s-dry .words { color: var(--dry); }

/* ------------------------------------------------------------------- forms */

.enter { margin: 2.5rem 0; }
.go {
  display: inline-block; background: var(--ink); color: var(--bg); border: 0;
  padding: .65rem 1.3rem; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer;
}
.go:hover { background: var(--teal); }
.go.small { padding: .38rem .85rem; font-size: .88rem; }

.inline { display: inline; }
.link { background: none; border: 0; padding: 0; cursor: pointer;
        font: inherit; font-size: .85rem; color: var(--teal); text-decoration: underline; }
.link:hover { color: var(--dry); }
.link.dim { color: var(--soft); }

.ask { display: block; margin: 1.5rem 0; padding: 1rem 0; border-top: 1px solid var(--rule); max-width: 32rem; }
.ask label { display: block; font-size: .85rem; color: var(--soft); margin-bottom: .6rem; }
.ask input, select {
  display: block; width: 100%; margin-top: .2rem; padding: .5rem .6rem;
  border: 1px solid var(--rule); background: #fff; font: inherit; color: var(--ink);
}
select { width: auto; display: inline-block; margin-right: .5rem; }
.tiny { font-size: .78rem; color: var(--soft); margin: .7rem 0 0; }

/* -------------------------------------------------------------- legal text */

.doc { max-width: 56ch; }
.doc h1 { font-size: 1.5rem; }
.doc h2 { font-size: .95rem; }
.doc dt { font-weight: 600; margin-top: 1rem; }
.doc dd { margin: .15rem 0 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .88rem; }
.doc th, .doc td { border: 1px solid var(--rule); padding: .4rem .55rem; text-align: left; vertical-align: top; }
.doc th { background: var(--card); }
.doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: var(--card); padding: .1em .3em; }
.doc .callout { border-left: 3px solid var(--dry); background: var(--card); padding: .8rem 1rem; }

@media (max-width: 34rem) { h1 { font-size: 1.5rem; } }
