/* PartyBook's palette, from lib/theme/app_theme.dart, so the site and the
   app are recognisably the same thing. */
:root {
  --forest: #0b5a3a;
  --forest-soft: #147559;
  --mint: #25d07e;
  --mint-light: #d8f5e4;
  --ink: #0c3325;
  --ink-muted: #44705f;
  --rule: #d5e6dd;
  --page: #f7fbf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

/* Header ------------------------------------------------------------------ */

header.site {
  background: linear-gradient(160deg, var(--mint-light), var(--page));
  border-bottom: 1px solid var(--rule);
}

.bar {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: baseline;
}

.brand {
  font-size: 19px;
  font-weight: 800;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.2px;
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
  font-size: 14px;
}

.bar nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
}

.bar nav a:hover { color: var(--forest); text-decoration: underline; }

/* Body ------------------------------------------------------------------- */

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 22px 60px;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--forest);
  margin: 0 0 6px;
}

.tagline {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0 0 30px;
}

h2 {
  font-size: 20px;
  color: var(--forest);
  margin: 36px 0 10px;
}

h3 {
  font-size: 16px;
  margin: 24px 0 6px;
}

p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
a { color: var(--forest-soft); }

.updated {
  font-size: 13.5px;
  color: var(--ink-muted);
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 8px;
}

/* A point worth stopping on. */
.note {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--mint);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
}

.note :last-child { margin-bottom: 0; }

/* Something the reader must not miss. */
.note.warn { border-left-color: #c8862a; background: #fffdf7; }

/* Cards ------------------------------------------------------------------ */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 24px 0;
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px 22px;
}

.card h3 { margin-top: 0; color: var(--forest); font-size: 17px; }
.card :last-child { margin-bottom: 0; }

.price {
  font-size: 30px;
  font-weight: 800;
  color: var(--forest);
  line-height: 1.1;
  margin: 6px 0 2px;
}

.price small {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Definition-style rows, for "what we store". */
dl { margin: 16px 0; }
dt { font-weight: 700; color: var(--forest); margin-top: 16px; }
dd { margin: 4px 0 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { color: var(--forest); font-size: 13.5px; text-transform: uppercase;
     letter-spacing: 0.6px; }

/* Footer ----------------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--rule);
  background: #fff;
}

footer.site div {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 22px 40px;
  font-size: 14px;
  color: var(--ink-muted);
}

footer.site a { color: var(--forest-soft); }

/* Anything still to be filled in. Deliberately loud, and nothing uses it.
   Every past use reached the live site, which is the failure it was meant to
   prevent -- a marker only works if somebody is checking for it, and the site
   publishes on push with nobody in between. Grep for `class="todo"` before a
   push if you use it; better, do not put the placeholder up at all. */
.todo {
  background: #fff3cd;
  border-bottom: 2px dotted #c8862a;
  padding: 0 3px;
  font-weight: 700;
}

/* The one button on the site that takes money. Deliberately the only thing
   styled like a button, so it is unmistakably the action on the page. */
a.pay {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid var(--forest);
}

a.pay:hover { background: var(--forest-soft); }
