:root {
  color-scheme: light;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #17211b;
  background: #f1f0e8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: #f1f0e8;
}

main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8vh 0 80px;
}

form {
  margin-top: 0;
  padding: 32px;
  border: 1px solid #17211b;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 9px 9px 0 #c8c8c2;
}

form > label:first-child {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.input-row { display: flex; gap: 10px; }

input[type="url"] {
  min-width: 0;
  flex: 1;
  border: 1px solid #88928b;
  border-radius: 0;
  padding: 15px 16px;
  background: #fff;
  color: inherit;
  font: inherit;
}

input:focus-visible, button:focus-visible {
  outline: 3px solid #e9a23b;
  outline-offset: 2px;
}

button {
  border: 1px solid #17211b;
  border-radius: 0;
  padding: 14px 24px;
  background: #17211b;
  color: #fff;
  font: 700 0.95rem/1 inherit;
  cursor: pointer;
}

button:hover { background: #26734d; }
button:disabled { cursor: wait; opacity: 0.55; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #4a554e;
  font-size: 0.88rem;
  line-height: 1.6;
}

.consent input { margin-top: 4px; accent-color: #26734d; }

.turnstile-widget { min-height: 65px; margin-top: 18px; }

#status { min-height: 1.5em; margin: 18px 0 0; font-size: 0.9rem; }
#status[data-kind="progress"] { color: #73500e; }
#status[data-kind="success"] { color: #17623d; }
#status[data-kind="error"] { color: #a02e25; }

section { margin-top: 80px; }
h2 { font: 500 1.45rem/1.4 "Yu Mincho", serif; }
dl { border-top: 1px solid #9aa29d; }
dl div { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid #9aa29d; padding: 16px 0; }
dt { font-weight: 700; }
dd { margin: 0; color: #4a554e; }

footer {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid #9aa29d;
  color: #67716a;
  font: 0.72rem/1.4 ui-monospace, monospace;
}

@media (max-width: 640px) {
  main { padding-top: 64px; }
  form { margin-top: 48px; padding: 22px; box-shadow: 6px 6px 0 #c8c8c2; }
  .input-row { flex-direction: column; }
  button { min-height: 50px; }
  dl div { grid-template-columns: 1fr; gap: 6px; }
}
