:root {
  --ink: #1b1914;
  --muted: #4a453c;
  --paper: #f4f0e6;
  --card: #fffdf8;
  --line: #ddd3c2;
  --green: #0c654c;
  --green-ink: #f3fbf7;
  --seal: #8c2e2a;
  --focus: #0b57d0;
  --warn: #6d4e00;
  --shadow: 0 1px 0 rgba(28, 25, 21, 0.04);
  color-scheme: light;
  font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip {
  position: absolute; left: 0.5rem; top: -4rem; background: var(--ink); color: white; padding: 0.5rem 0.8rem; z-index: 5;
}
.skip:focus { top: 0.5rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
header.bar {
  position: sticky; top: 0; z-index: 4; background: rgba(244, 240, 230, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-row { display: flex; align-items: center; gap: 0.75rem 1rem; min-height: 64px; flex-wrap: wrap; padding: 0.4rem 0; }
.brand { font-family: Palatino, "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 0.25rem; }
.lang {
  margin-left: auto; min-height: 44px; min-width: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 0 0.9rem; font: inherit; cursor: pointer;
}
main { padding: 1.5rem 0 3rem; }
h1, h2, h3 { font-family: Palatino, "Iowan Old Style", Georgia, serif; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0.2rem 0 0.6rem; }
h2 { font-size: 1.5rem; }
.eyebrow { color: var(--seal); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.lead { font-size: 1.15rem; max-width: 42rem; }
.grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.path-grid .card { color: inherit; text-decoration: none; display: block; }
.table-scroll { overflow-x: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.steps { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
ol.howto { margin: 0.4rem 0 1rem; padding-left: 1.3rem; }
ol.howto li { margin: 0.3rem 0; }
.steps li { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 0.35rem 0.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
#signup-submit:not(:disabled) { opacity: 1; cursor: pointer; }
#market-filters { margin: 1rem 0 1.2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
#market-filters .field, #market-filters select, #market-filters input { min-width: 0; width: 100%; }
#privacy-choice button[aria-pressed="true"], #reward-picks button[aria-pressed="true"] { outline: 3px solid var(--focus); }
.btn, button {
  min-height: 44px; font: inherit; border-radius: 10px; border: 1px solid var(--green); background: var(--green); color: var(--green-ink);
  padding: 0.4rem 0.9rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.btn.ghost, button.ghost { background: transparent; color: var(--green); }
button.danger { background: transparent; color: var(--seal); border-color: var(--seal); }
.field { display: flex; flex-direction: column; gap: 0.25rem; margin: 0.7rem 0; font-weight: 600; }
.field span { font-weight: 600; }
input, textarea, select {
  font: inherit; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.7rem; min-height: 44px;
}
textarea { min-height: 7rem; font-weight: 400; }
.hint, .muted { color: var(--muted); font-weight: 400; }
.alert { background: #fff4f2; border: 1px solid var(--seal); color: #6d1f1c; padding: 0.7rem 0.9rem; border-radius: 10px; }
.note { background: #f4f8f2; border: 1px solid #c9ddcf; padding: 0.7rem 0.9rem; border-radius: 10px; }
.list { display: flex; flex-direction: column; gap: 0.7rem; }
.task { display: block; color: inherit; text-decoration: none; }
.task:hover { border-color: var(--green); }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; color: var(--muted); font-size: 0.92rem; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.5rem; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; align-items: end; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 1.2rem 0 2rem; color: var(--muted); }
footer a { margin-right: 0.8rem; }
pre { white-space: pre-wrap; word-break: break-word; background: #1b1914; color: #f4f0e6; padding: 0.8rem; border-radius: 10px; overflow: auto; }
.delivery-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; }
.check input { margin-top: 0.25rem; }
.who { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; color: var(--ink); }
header .who { margin-left: auto; }
header .who + .lang { margin-left: 0; }
#signed-in-name { font-weight: 700; }
#point-balance, #point-held { font-variant-numeric: tabular-nums; }
.next-step { border-color: var(--green); }
#credential-once { border: 3px solid var(--seal); }
#credential-once input { font-size: 1.2rem; font-weight: 700; }
details.more { margin: 1rem 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) {
  .grid, .split, .path-grid { grid-template-columns: 1fr; }
  .lang { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
