:root {
  color-scheme: light;
  --ink: #1c1915;
  --muted: #5c564c;
  --paper: #f3efe4;
  --card: #fffdf8;
  --line: #ddd4c3;
  --green: #0e5c45;
  --green-ink: #f4f0e6;
  --clay: #8f3d1b;
  --focus: #0b4f3c;
  --danger: #8d1d3b;
  --serif: Georgia, "Liberation Serif", "Nimbus Roman", serif;
  --sans: "Liberation Sans", "Nimbus Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); margin: 0 0 0.6rem; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 2vw, 2rem); margin: 0 0 0.6rem; }
p { margin: 0 0 0.8rem; }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.5rem; }

.site-header, .desk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 4px solid var(--green);
  background: var(--card);
}
.brand { color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.brand span, .brand small { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.site-header nav, .desk-nav { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.site-header nav a, .desk-nav button, .text-button {
  color: var(--ink);
  background: none;
  border: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.button, button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--green-ink);
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
button.secondary, a.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
button:disabled { opacity: 0.6; cursor: wait; }

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.hero { padding: 2.5rem 0 1rem; }
.lede { font-size: 1.25rem; max-width: 40rem; }
.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: 1fr; margin: 1.5rem 0 2rem; }
.card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.2rem;
}
.card h2 { font-size: 1.45rem; }
.step { font-variant-numeric: tabular-nums; color: var(--green); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.2rem 0; }
.site-footer { padding: 2rem 1.2rem 2.5rem; color: var(--muted); }
.site-footer a { margin-right: 0.9rem; }
.narrow { width: min(460px, calc(100% - 2rem)); margin: 2rem auto 3rem; }
label { display: block; font-weight: 650; margin: 0.85rem 0; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
.hint, .fine { color: var(--muted); font-size: 0.95rem; }
.check label { font-weight: 450; }
.banner {
  background: #f8e7df;
  border: 1px solid #e4c2b2;
  color: var(--clay);
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
}
.ok { background: #e5f2ec; border-color: #b7d8c9; color: var(--green); }
.secret {
  font-family: ui-monospace, "Liberation Mono", monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: var(--paper);
  padding: 0.7rem;
  border-radius: 10px;
  word-break: break-all;
}
.desk {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  min-height: 100vh;
}
.desk-nav { padding: 0.6rem 1rem 0.8rem; background: var(--card); border-bottom: 1px solid var(--line); }
.desk-nav button[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 0.25rem; }
.desk-main { padding: 1rem 1rem 3rem; }
.list { display: grid; gap: 0.7rem; }
.enquiry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  justify-items: start;
  align-items: start;
  gap: 0.2rem;
  text-align: left;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  width: 100%;
  margin: 0;
}
.qr {
  width: 11.5rem;
  height: 11.5rem;
  background: white;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0.4rem 0 0.8rem;
}
.qr svg { display: block; width: 100%; height: 100%; }
.desk-main h2,
.narrow h2,
.legal h2 {
  margin-top: 1.6rem;
}
.desk-main > section > h1,
.narrow > h1 {
  margin-top: 0;
}
.desk-main > section > button,
.narrow form button,
.narrow .actions {
  margin-top: 0.85rem;
}
.desk-nav button,
.desk-bar button,
.text-button {
  margin-top: 0;
}
.meta { color: var(--muted); font-size: 0.92rem; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.pill.front { background: #f8e7df; color: var(--clay); border-color: #e4c2b2; }
.draft { margin: 1rem 0; }
.draft-label {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.draft-label.template { background: var(--green); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal { width: min(760px, calc(100% - 2rem)); margin: 1.5rem auto 2rem; }
.legal table { font-size: 0.95rem; }
.embed { background: var(--card); }
.embed main { width: min(640px, calc(100% - 1.5rem)); margin: 0 auto; padding: 1rem 0 2rem; }
.embed h1 { font-size: 1.8rem; }
.honey { position: absolute; left: -10000px; height: 1px; width: 1px; overflow: hidden; }
.disclosure, .terms { font-size: 0.95rem; }
code, .snippet {
  font-family: ui-monospace, "Liberation Mono", monospace;
  font-size: 0.86rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--paper);
  display: block;
  padding: 0.7rem;
  border-radius: 10px;
}
.row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }

@media (min-width: 800px) {
  .cards { grid-template-columns: 1fr 1fr 1fr; }
  .desk {
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .desk-bar { grid-column: 1 / -1; }
  .desk-nav {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 1.2rem;
  }
  .desk-main { padding: 1.5rem 1.8rem 3rem; }
}
