:root {
  color-scheme: light;
  --ink: #202d39;
  --paper: #fcfbf7;
  --line: #ddd9ce;
  --accent: #883f32;
  --muted: #535d65;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.85 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { max-width: 540px; min-height: 100vh; margin: auto; border-inline: 1px solid var(--line); }
[hidden] { display: none !important; }
button, input, select, a { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.masthead { background: white; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.masthead a { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.symbol { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--accent); color: white; font-family: var(--mincho); }
main { padding: 26px 22px; }
h1, h2 { font-family: var(--mincho); line-height: 1.4; overflow-wrap: anywhere; }
h1 { font-size: clamp(25px, 6vw, 39px); margin: 0; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .16em; font-weight: 650; margin-bottom: 6px; }
p { margin: 10px 0 0; overflow-wrap: anywhere; }
.intro, .fine, footer { color: var(--muted); }
.fine, footer { font-size: 13px; }
form, #result-cards, .sharing { background: white; border: 1px solid var(--line); padding: 18px 17px; margin-top: 20px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 650; }
.date-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 6px; margin: 7px 0 12px; }
.date-fields label { font-size: 13px; }
.date-fields input, .date-fields select, #copy-url { width: 100%; min-width: 0; border: 1px solid var(--line); background: white; color: inherit; padding: 6px; font-size: 16px; min-height: 44px; }
.date-fields label > span { display: none; }
button, .actions a { min-height: 44px; border: 1px solid var(--accent); color: var(--accent); background: white; padding: 8px 14px; cursor: pointer; overflow-wrap: anywhere; }
button:hover, .actions a:hover { background: #f7eeea; }
button:disabled { opacity: .6; cursor: wait; }
.primary, .text-button { background: var(--accent); color: white; font-weight: 650; }
.primary:hover, .text-button:hover { background: #6d3027; }
.primary { width: 100%; }
.primary span { float: right; }
#form-error { color: var(--accent); }
#form-error:empty, #action-status:empty { display: none; }
.result-card + .result-card { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 19px; }
.card-category, .sharing h2 { font-size: 20px; margin: 0; }
.actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.actions a { display: grid; place-items: center; text-decoration: none; text-align: center; }
#copy-url { margin: 8px 0; }
.text-button, #error-restart { margin-top: 18px; }
footer { padding: 16px 22px 26px; border-top: 1px solid var(--line); }
summary { min-height: 44px; padding-block: 9px; cursor: pointer; }

.card-category { color: var(--accent); font-weight: 700; }
.creator summary { font-size: 16px; font-weight: 650; min-height: 48px; }
.symbol { flex-shrink: 0; }
