:root {
  color-scheme: light;
  --ink: #20241f;
  --muted: #505953;
  --paper: #f5f3eb;
  --white: #fff;
  --line: #d3d8cb;
  --brand: #114f44;
  --accent: #9b431e;
  font-family: system-ui, "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--brand); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 72rem; padding-inline: 1.25rem; margin-inline: auto; }
.narrow { max-width: 40rem; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top .wrap { min-height: 4rem; display: flex; gap: .65rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.top a { padding-block: .65rem; }
.brand { font-weight: 800; }
main { padding-block: clamp(1.4rem, 4vw, 4rem); }
h1, h2, h3, p, dd, button { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.32; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); margin-top: 0; }
.intro p { max-width: 42em; }
section { margin-block: 2rem; }
.intro { margin-top: 0; }
.grid, .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: .85rem; }
article, #editor, #admin, .row { padding: 1rem; border: 1px solid var(--line); background: var(--white); border-radius: .4rem; }
article h3, #editor h3, #admin h2, .row h3 { margin-top: 0; }
button, .button, input, select, textarea { font: inherit; min-height: 44px; }
button, .button { display: inline-flex; align-items: center; border-radius: .35rem; padding: .45rem .8rem; cursor: pointer; text-decoration: none; }
button { background: var(--white); color: var(--brand); border: 1px solid var(--brand); }
.button { background: var(--brand); border: 1px solid var(--brand); color: var(--white); }
button[aria-pressed="true"] { background: var(--brand); color: var(--white); }
button:disabled { cursor: default; opacity: .65; }
input, select, textarea { background: var(--white); border: 1px solid #858e82; border-radius: .25rem; width: 100%; padding: .5rem; color: var(--ink); }
textarea { min-height: 6rem; resize: vertical; }
label { display: grid; gap: .3rem; margin-block-end: .8rem; font-weight: 650; min-width: 0; }
.tabs, .actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: .75rem; }
.status:empty { display: none; }
.status, .notice { padding: .55rem .75rem; background: #edf5ef; border-left: 4px solid var(--brand); }
.notice, .status[data-error] { background: #fff0df; border-color: var(--accent); }
.row { margin-block: .7rem; }
.row dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: .45rem; }
.row dt { color: var(--muted); font-size: .9rem; }
.row dd { margin: 0; white-space: pre-wrap; }
#turnstile { max-width: 100%; }
@media (max-width: 450px) { .wrap { padding-inline: .85rem; } .top .brand { font-size: .94rem; } }
