:root {
  --ink: #12181f;
  --muted: #5a6673;
  --line: #dfe4ea;
  --bg: #ffffff;
  --wash: #f5f7f9;
  --accent: #0f5c4a;
  --accent-ink: #ffffff;
  --warn-bg: #fdf6e3;
  --warn-line: #e8d9a8;
  --radius: 6px;
  --max: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
header.site .wrap { display: flex; align-items: baseline; gap: 12px; }
.logo { font-weight: 700; letter-spacing: -0.02em; font-size: 19px; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }
.tag { color: var(--muted); font-size: 14px; }

h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin: 40px 0 14px; }
h2 { font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 10px; }
h3 { font-size: 16px; margin: 24px 0 6px; }
p { margin: 0 0 16px; }
.lede { font-size: 19px; color: #2b3540; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

ul.plain { padding-left: 20px; margin: 0 0 16px; }
ul.plain li { margin-bottom: 8px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--wash);
  margin: 26px 0;
}
.card.plain { background: var(--bg); }

.price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--radius);
  padding: 13px 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.notice {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  margin: 24px 0;
}
.notice strong { display: block; margin-bottom: 4px; }

.err { color: #922; font-size: 15px; }

table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 20px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

label { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 6px; }
input[type="file"], input[type="text"], select, textarea {
  width: 100%; padding: 10px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
textarea { min-height: 180px; resize: vertical; font-size: 15px; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 24px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
footer.site a { color: var(--muted); }

/* --- the export sheet ------------------------------------------------- */
.sheet { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 24px 0; }
.q { margin: 0 0 22px; }
.q .stem { font-weight: 600; }
.q ol { margin: 8px 0 0; padding-left: 26px; }
.q ol li { margin-bottom: 4px; }
.ack td { padding: 14px 10px; }
.ruled { display: inline-block; border-bottom: 1px solid #99a; min-width: 220px; }

@media print {
  header.site, footer.site, .no-print { display: none !important; }
  body { font-size: 12pt; }
  .sheet { border: 0; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .page-break { break-before: page; }
}

@media (max-width: 560px) {
  h1 { font-size: 27px; }
  body { font-size: 16px; }
}
