/* Food Rush — public web pages (privacy / support / landing)
   Self-contained: no external fonts, no CDN, no JS required. */

:root {
  --bg:        #fbf7f0;
  --surface:   #ffffff;
  --surface-2: #f3ece1;
  --border:    #e3d8c7;
  --text:      #26211b;
  --text-dim:  #6b6153;
  --accent:    #c2410c;
  --accent-dim:#9a3412;
  --warn-bg:   #fff5e6;
  --warn-bd:   #e8b45a;
  --shadow:    0 1px 2px rgba(38, 33, 27, .06), 0 8px 24px rgba(38, 33, 27, .05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #17140f;
    --surface:   #201c16;
    --surface-2: #2a251d;
    --border:    #3a332a;
    --text:      #f0e9df;
    --text-dim:  #a89c8b;
    --accent:    #fb923c;
    --accent-dim:#fdba74;
    --warn-bg:   #2b2116;
    --warn-bd:   #8a6127;
    --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --bg:        #17140f;
  --surface:   #201c16;
  --surface-2: #2a251d;
  --border:    #3a332a;
  --text:      #f0e9df;
  --text-dim:  #a89c8b;
  --accent:    #fb923c;
  --accent-dim:#fdba74;
  --warn-bg:   #2b2116;
  --warn-bd:   #8a6127;
  --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

/* ---- masthead ---- */

.masthead {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}

.masthead .mark {
  font-size: 1.75rem;
  line-height: 1;
}

.masthead .name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}

.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: .9375rem;
}

.masthead nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--accent);
}

/* ---- type ---- */

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 2.75rem 0 .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 .5rem;
}

p, ul, ol { margin: 0 0 1.1rem; }

ul, ol { padding-left: 1.35rem; }

li { margin-bottom: .4rem; }

a { color: var(--accent); }

a:hover { color: var(--accent-dim); }

strong { font-weight: 650; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
               "Liberation Mono", monospace;
  font-size: .875em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .35em;
}

.lede {
  font-size: 1.0625rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.meta {
  font-size: .875rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.meta span { white-space: nowrap; }

.meta span + span::before {
  content: "·";
  margin: 0 .5rem;
}

/* ---- blocks ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.375rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

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

.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-bd);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 1rem 1.125rem;
  margin: 0 0 2rem;
  font-size: .9375rem;
}

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

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9375rem;
  background: var(--surface);
}

th, td {
  text-align: left;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: var(--surface-2);
  font-weight: 650;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }

/* ---- link list (landing page) ---- */

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .75rem;
}

.links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}

.links a:hover { border-color: var(--accent); }

.links .t {
  font-weight: 650;
  display: block;
  margin-bottom: .15rem;
}

.links .d {
  display: block;
  font-size: .9375rem;
  color: var(--text-dim);
}

/* ---- unfilled placeholder marker ----
   Deliberately loud. If one of these is still visible on the live site,
   it has not been filled in yet. */

.ph {
  background: #fde047;
  color: #1c1917;
  font-weight: 700;
  padding: .05em .3em;
  border-radius: 3px;
  border: 1px dashed #a16207;
}

/* ---- footer ---- */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  color: var(--text-dim);
}

footer a { color: var(--text-dim); }

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .75rem;
}

@media (max-width: 40rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.625rem; }
  .wrap { padding: 1rem 1rem 3rem; }
  .masthead { flex-wrap: wrap; gap: .5rem; }
  .masthead nav { width: 100%; margin-left: 0; }
}
