:root {
  color-scheme: dark;
  --ink: #180e20;
  --paper: #fff4e7;
  --muted: #d9cddb;
  --amber: #ffc397;
  --rule: #62475d;
  font: 16px/1.65 "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  color: var(--paper);
  background: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1200px; padding: 0 clamp(20px, 5vw, 72px); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
header, footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
header { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
header nav { font-size: .88rem; }
main {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 100px);
  padding: clamp(30px, 5.5vw, 76px) 0;
}
.cover {
  width: 100%;
  display: block;
  height: clamp(140px, 16vw, 200px);
  object-fit: cover;
  object-position: center 44%;
  border-bottom: 3px solid var(--amber);
}
h1 { font: 700 clamp(32px, 4.1vw, 52px)/1.25 "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; margin: 24px 0 12px; }
.intro { color: var(--muted); margin: 0; }
form { align-self: start; }
fieldset { margin: 0 0 24px; border: 0; padding: 0; min-width: 0; }
legend, .message-label { display: block; padding: 0; font-weight: 700; margin-bottom: 10px; }
.options { display: flex; flex-wrap: wrap; gap: 7px; }
.options label {
  display: inline-flex; gap: 7px; align-items: center; min-height: 44px;
  padding: 6px 13px; border: 1px solid var(--rule); border-radius: 6px;
  cursor: pointer; font-size: .9rem;
}
.options label:has(:checked) { background: #392333; border-color: var(--amber); }
input { accent-color: var(--amber); margin: 0; }
textarea {
  display: block; width: 100%; min-height: 11rem; resize: vertical;
  background: #241729; color: var(--paper); border: 1px solid #856f82;
  border-radius: 6px; padding: 14px; font: inherit;
}
textarea::placeholder { color: #b7a9b6; }
.form-meta { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 24px; color: var(--muted); font-size: .82rem; }
#count { white-space: nowrap; }
.turnstile-note { margin: 0 0 8px; color: var(--muted); font-size: .82rem; }
#turnstile-widget { min-height: 65px; margin-bottom: 12px; }
button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; cursor: pointer;
  border: 0; border-radius: 6px; background: var(--amber); color: var(--ink);
  font: inherit; font-weight: 750; min-height: 46px; padding: 9px 18px;
}
button:hover { background: #ffd4b3; }
button:disabled { opacity: .7; cursor: wait; }
#status { margin: 12px 0 0; }
#status:empty { margin: 0; }
#status[data-state="error"] { color: #ffc4c2; }
footer { padding: 18px 0 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .82rem; }
@media (max-width: 740px) {
  main { grid-template-columns: 1fr; gap: 26px; }
  .cover { height: clamp(95px, 22vw, 145px); }
  h1 { margin-top: 16px; }
}
@media (max-width: 340px) {
  #turnstile-widget { min-height: 140px; }
}
