:root {
  color-scheme: light;
  --ink: #252f2b;
  --muted: #54645c;
  --line: #dce4db;
  --accent: #285c48;
  background: #f7f8f3;
  color: var(--ink);
  font: 1rem/1.6 "Zen Kaku Gothic New", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 32px, 1160px); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-inner img { max-width: 38%; height: auto; }
.header-inner a { color: var(--accent); text-underline-offset: 4px; font-weight: 700; }
main { padding-block: clamp(28px, 5vw, 58px) 64px; }
.intro {
  padding-bottom: 24px;
}
h1, h2, p { margin: 0; }
h1 {
  font: 900 clamp(2rem, 5vw, 3.6rem)/1.2 "Zen Maru Gothic", "Yu Gothic", sans-serif;
  margin-bottom: .55rem;
}
.intro p, #flyer-status { color: var(--muted); }
.intro .roles { color: var(--accent); margin-top: 8px; font-weight: 700; }
#flyer-status:empty { display: none; }
.editor {
  display: grid;
  align-items: start;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.editor-controls {
  display: grid;
  gap: 18px;
  align-content: start;
  align-self: stretch;
  padding: clamp(18px, 4vw, 34px);
  background: #fff;
}
.field {
  min-width: 0;
  display: grid;
  gap: 5px;
  font-weight: 700;
}
.field input, .field select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b6cbbd;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.custom-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.custom-copy[hidden] { display: none; }
.custom-copy legend { padding-inline: 4px; color: var(--muted); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-preview { min-width: 0; margin: 0; padding: clamp(16px, 3vw, 28px); background: #e9eee8; }
.editor-preview canvas {
  display: block;
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 1 / 1.414;
  margin-inline: auto;
  background: #fff;
  box-shadow: 0 3px 14px #23392f35;
}
@media (min-width: 720px) {
  .editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.gallery { margin-top: 34px; }
.gallery h2 { font-size: 1.25rem; }
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 14px;
  margin-top: 14px;
}
.design-choice {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 9px;
  text-align: left;
}
.design-choice[aria-pressed="true"] {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: #e9f2eb;
}
.design-choice canvas { display: block; width: 100%; height: auto; box-shadow: 0 2px 8px #23392f28; }
.design-choice span { font-size: .95rem; line-height: 1.35; }
button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #b6cbbd;
  border-radius: 9px;
  background: #f8fbf8;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
}
button:hover:not(:disabled) { background: #e8f1eb; }
.primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.primary:hover:not(:disabled) { background: #1b4937; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible, .design-choice[aria-pressed="true"]:focus-visible { outline: 3px solid #5b917b; outline-offset: 3px; }
