/* timqua.
 *
 * Kept deliberately clear of the shapes and surfaces this portfolio has already
 * used. Four of these apps independently landed on a warm ivory (#f0efe9,
 * #f2efec, #f3f2f2, #fbfaf9); one went dark neutral; one went cool slate. This
 * one is PLAIN WHITE with black hairlines and a single red — a list on a card,
 * priced. Names and money are set in a serif at a size you can read across a
 * kitchen table; everything else is small and quiet.
 *
 * No style="" attributes anywhere in the app: `style-src 'self'` blocks them and
 * the page still returns 200, so the failure is invisible to curl.
 */

:root {
  --ink: #111;
  --soft: #6a6a6a;
  --rule: #d8d8d8;
  --red: #a8201a;
  --amber: #9a6314;
  --green: #2f6b3f;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

main, .head, .feet, .flash { max-width: 42rem; margin-inline: auto; padding-inline: 1.25rem; }

a { color: var(--ink); }
a:hover { color: var(--red); }

/* ------------------------------------------------------------------ chrome */

.head {
  display: flex; align-items: baseline; gap: .75rem;
  padding-block: 2rem .5rem;
}
.name { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; letter-spacing: .01em; }
.gloss { font-size: .78rem; color: var(--soft); font-style: italic; }
.who { margin-left: auto; font-size: .8rem; color: var(--soft); }

.flash { padding: .5rem 1.25rem; margin: .5rem auto; border-left: 3px solid var(--green); font-size: .9rem; }
.flash.no { border-left-color: var(--red); }

.feet {
  margin-top: 3.5rem; padding-block: 1.25rem 3rem;
  border-top: 1px dashed var(--rule);
  font-size: .8rem; color: var(--soft);
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem;
}
.feet a { color: var(--soft); }
.feet p { flex-basis: 100%; margin: .75rem 0 0; }

/* -------------------------------------------------------------- typography */

h1 { font-family: var(--serif); font-weight: normal; font-size: 1.75rem; line-height: 1.25;
     margin: 1.25rem 0 .75rem; max-width: 24ch; }
h2 { font-size: 1rem; margin: 2rem 0 .4rem; }
.lede { max-width: 56ch; }
.aside { max-width: 56ch; font-size: .86rem; color: var(--soft); }
.crumb { margin-top: 2.5rem; font-size: .85rem; }
.empty { color: var(--soft); font-style: italic; }

.fig { font-family: var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------------ person */

.person { padding: 1.25rem 0; border-top: 1px dashed var(--rule); }
.person:first-of-type { border-top: 0; }
.sampled { opacity: .95; }

.who-line { display: flex; align-items: baseline; gap: 1rem; }
.who-line h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: normal; margin: 0; }
.budget { margin-left: auto; font-size: 1.15rem; }

.idea { margin: .1rem 0 .5rem; font-size: .82rem; color: var(--soft); letter-spacing: .04em; text-transform: uppercase; }

.verdict { margin: .4rem 0; font-size: .9rem; font-weight: 600; }
.f-gone, .f-dry { color: var(--red); }
.f-over, .f-thin { color: var(--amber); }

.chosen { margin: .4rem 0; display: flex; align-items: baseline; gap: .6rem; }
.chosen a, .chosen span:first-child { flex: 1 1 auto; }
.chosen.none { color: var(--soft); font-style: italic; }
.chosen.dead a, .chosen.dead span:first-child, .short li.dead a { text-decoration: line-through; color: var(--soft); }

.tag {
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--red); color: var(--red); padding: .05rem .3rem; white-space: nowrap;
}

.field { margin: .35rem 0; font-size: .84rem; color: var(--soft); }

.short { list-style: none; margin: .6rem 0 0; padding: 0; }
.short li { display: flex; align-items: baseline; gap: .6rem; padding: .2rem 0; font-size: .9rem; }
.short li a { flex: 1 1 auto; }
.short.find li { padding: .35rem 0; border-bottom: 1px solid #f0f0f0; }

.acts { margin: .8rem 0 0; font-size: .85rem; display: flex; gap: 1rem; }

/* ------------------------------------------------------------------- total */

.total { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.total .row { display: flex; margin: .2rem 0; font-size: .95rem; }
.total .row b { margin-left: auto; }
.total .sum { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--rule); font-weight: 600; }
.total .sum.over { color: var(--red); }
.total .sum.under { color: var(--green); }
.total.mixed p { font-size: .86rem; color: var(--soft); max-width: 52ch; }

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

.enter { margin: 2rem 0; }
.go {
  display: inline-block; background: var(--ink); color: #fff; border: 0;
  padding: .65rem 1.3rem; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer;
}
.go:hover { background: var(--red); color: #fff; }
.go.small { padding: .4rem .9rem; font-size: .88rem; }

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

.add { margin: 2rem 0; padding: 1rem 0; border-top: 1px dashed var(--rule); max-width: 30rem; }
.add .cap { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: .6rem; }
.add label { display: block; font-size: .8rem; color: var(--soft); margin-bottom: .6rem; }
.add input, select {
  display: block; width: 100%; margin-top: .15rem; padding: .45rem .55rem;
  border: 1px solid var(--rule); font: inherit; color: var(--ink); background: #fff;
}
select { width: auto; display: inline-block; margin-right: .5rem; }

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

.doc { max-width: 54ch; }
.doc h1 { font-size: 1.45rem; }
.doc h2 { font-size: 1rem; margin-top: 1.8rem; }
.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-bottom: 1px solid var(--rule); padding: .4rem .5rem .4rem 0; text-align: left; vertical-align: top; }
.doc code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; }

@media (max-width: 34rem) {
  h1 { font-size: 1.45rem; }
  .who-line { flex-wrap: wrap; }
  .budget { margin-left: 0; }
}
