/* color tokens */
:root {
  --bg: #ffffff;
  --surface: #f3f1ef;
  --text: #222222;
  --muted: #5c5752;
  --border: #e6e2de;
  --accent-1: #d84315;
  --accent-2: #e65100;
  --accent-3: #b86e00;
  --on-accent: #ffffff;
  --backdrop: rgba(0, 0, 0, 0.55);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #221f1c;
    --text: #ece8e4;
    --muted: #b3aca5;
    --border: #36312c;
    --accent-1: #ff7043;
    --accent-2: #ffa040;
    --accent-3: #ffca28;
    --on-accent: #1a0f0a;
    --backdrop: rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', YuGothic, Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ul {
  margin: 0;
}

/* layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.section {
  margin-bottom: 72px;
}

.hero {
  padding: 72px 0 0;
}

.heading {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 6vw, 36px);
  letter-spacing: 6px;
  line-height: 1.3;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .heading {
    letter-spacing: 3px;
  }
}

.accent-1 { color: var(--accent-1); }
.accent-2 { color: var(--accent-2); }
.accent-3 { color: var(--accent-3); }

.lead {
  margin-bottom: 24px;
}

.prose {
  color: var(--muted);
  line-height: 2;
}

.prose + .prose {
  margin-top: 2em;
}

.muted,
.note {
  color: var(--muted);
}

.note {
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  font-weight: 400;
  margin: 10px 0;
}

/* br that only breaks on wide screens */
@media (max-width: 767px) {
  br.pc-only {
    display: none;
  }
}

/* two-column lists */
.columns {
  display: grid;
  gap: 20px 32px;
}

@media (min-width: 601px) {
  .columns {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.list {
  list-style: none;
  padding: 0;
  color: var(--muted);
}

.list li {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}

.list li:last-child {
  border-bottom: none;
}

.prose.emphasis {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.prose.small {
  font-size: 13px;
}

.section .columns {
  margin-top: 40px;
}

/* tools */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  list-style: none;
}

.tags li {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

/* how it works */
.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 601px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  padding: 20px 16px;
  background: var(--surface);
  border-radius: 4px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 28px;
  color: var(--accent-2);
}

.steps h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 8px;
}

.steps p {
  color: var(--muted);
  font-size: 14px;
}

.terms {
  max-width: 560px;
  margin: 32px auto 0;
  text-align: left;
}

.terms div {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.terms dt {
  flex: none;
  width: 4em;
  font-weight: 700;
}

.terms dd {
  margin: 0;
  color: var(--muted);
}

/* button */
.button {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--accent-1);
  border-radius: 2px;
  background: var(--accent-1);
  color: var(--on-accent);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: filter 0.15s;
}

.button:hover {
  filter: brightness(1.1);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.button-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.section .muted + .button {
  margin-top: 16px;
}

/* contact dialog */
.dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: none;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dialog::backdrop {
  background: var(--backdrop);
}

.dialog[open] {
  animation: zoom-in 0.25s ease-out;
}

@keyframes zoom-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dialog[open] {
    animation: none;
  }
}

.contact-form {
  padding: 30px;
}

@media (max-width: 480px) {
  .contact-form {
    padding: 20px 16px;
  }
}

.dialog-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.contact-form > .muted {
  margin-bottom: 20px;
  font-size: 14px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--accent-1);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

/* honeypot: hidden from people, visible to naive bots */
.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.turnstile {
  min-height: 65px;
  margin-bottom: 8px;
}

.form-status.is-success {
  color: var(--text);
  font-weight: 700;
}

.form-status {
  min-height: 1.6em;
  margin-bottom: 8px;
}

.form-status.is-error {
  color: var(--accent-1);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dialog-actions .button {
  font-size: 16px;
  padding: 8px 20px;
}

/* footer */
.footer {
  padding: 64px 16px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  font-size: 18px;
}
