@font-face {
  font-family: "Yuji Syuku";
  src: url("./fonts/YujiSyuku-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --navy: #17263a;
  --ink: #282723;
  --muted: #68645c;
  --gold: #aa8b4f;
  --gold-pale: #cfbd91;
  --line: #d8cfbc;
  --paper: #fffefb;
  --wash: #f7f2e8;
  --vermilion: #a53c34;
  --error: #85372f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--wash);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: "Yuji Syuku", "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.9;
}

.gold-thread {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(24px, calc(50% - 430px));
  width: 1px;
  background: var(--gold-pale);
  opacity: 0.58;
  pointer-events: none;
}

.shell {
  width: min(100% - 40px, 740px);
  margin: 0 auto;
  padding: 76px 0 68px;
}

.hero {
  position: relative;
  min-height: 340px;
  padding: 38px 0 54px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.seal {
  position: absolute;
  top: 32px;
  right: 2px;
  width: 72px;
  height: 72px;
  color: var(--vermilion);
  transform: rotate(-2deg);
}

.seal circle,
.seal path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seal > circle:first-child {
  stroke-width: 2.2;
}

.seal .rabbit {
  stroke-width: 2.6;
}

.seal .rabbit-eye {
  fill: currentColor;
  stroke: none;
}

.seal text {
  fill: currentColor;
  font-family: "Yuji Syuku", "Yu Mincho", serif;
  font-size: 16px;
  letter-spacing: 0.12em;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.2em;
}

h1,
legend {
  font-family: "Yuji Syuku", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

h1 {
  max-width: 620px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 8vw, 62px);
  line-height: 1.45;
  letter-spacing: 0.09em;
}

.tagline {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: 0.12em;
}

.intro {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.progress {
  margin: 42px 0 50px;
}

.progress ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.progress li {
  margin: 0 0 -1px;
  padding: 0 4px 12px;
  border-bottom: 1px solid transparent;
  color: #8a857b;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

.progress li span {
  display: block;
  margin-bottom: 2px;
  font-family: "Yuji Syuku", "Yu Mincho", serif;
  font-size: 18px;
}

.progress li[aria-current="step"] {
  border-bottom-color: var(--gold);
  color: var(--navy);
}

.progress li.is-complete {
  color: var(--gold);
}

form {
  position: relative;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 44px;
  border: 0;
  border-bottom: 1px solid var(--gold);
}

legend {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--navy);
  font-size: clamp(27px, 5vw, 36px);
  letter-spacing: 0.08em;
}

.step-number {
  display: inline-block;
  margin-right: 17px;
  color: var(--gold);
  font-size: 0.72em;
  vertical-align: 0.12em;
}

.step-lead {
  max-width: 590px;
  margin: 12px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  margin-bottom: 38px;
}

label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.required,
.optional {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.required {
  color: var(--vermilion);
}

.optional,
.hint,
footer,
.submit-status,
.quiet {
  color: var(--muted);
}

.hint {
  margin: 5px 0 12px;
  font-size: 13px;
}

input[type="text"],
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aaa18f;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 12px 4px;
}

textarea {
  min-height: 140px;
  border: 1px solid #bdb29d;
  font-family: "Yuji Syuku", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  line-height: 1.9;
  padding: 14px 16px;
  resize: vertical;
}

.username-input {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: end;
  border-bottom: 1px solid #aaa18f;
}

.username-input span {
  padding: 12px 0;
  color: var(--gold);
  font-size: 20px;
}

.username-input input {
  border: 0;
}

input:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid rgba(155, 122, 60, 0.52);
  outline-offset: 3px;
}

.username-input:focus-within {
  border-bottom-color: var(--gold);
}

.notice {
  margin: 32px 0;
  padding: 20px 0 20px 22px;
  border-left: 1px solid var(--gold);
}

.notice h2,
.destination-confirmation h2 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.notice p,
.notice ul {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.error {
  margin: 0 0 34px;
  border-left-color: var(--error);
}

.error h2,
.error li {
  color: var(--error);
}

.step-actions {
  display: grid;
  grid-template-columns: minmax(100px, 0.42fr) minmax(180px, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.step-actions.single {
  grid-template-columns: minmax(180px, 360px);
  justify-content: end;
}

button {
  min-height: 54px;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.08em;
  padding: 13px 20px;
}

.primary-button {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.primary-button:hover:not(:disabled) {
  background: #263a58;
}

.back-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
}

.back-button:hover {
  border-color: var(--gold);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.destination-confirmation {
  margin: 0 0 46px;
  padding: 28px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  text-align: center;
}

.destination-confirmation .destination {
  margin: 8px 0 10px;
  color: var(--navy);
  font-family: "Yuji Syuku", "Yu Mincho", serif;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-check-link {
  margin: 0;
}

.profile-check-link a {
  color: var(--navy);
  font-size: 14px;
  text-underline-offset: 5px;
}

.username-warning {
  max-width: 560px;
  margin: 10px auto 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.destination-guidance {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.destination-confirmation .dm-note {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.destination-confirmation .account-confirmation {
  max-width: 560px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.review-list {
  margin: 0;
}

.review-list > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.review-list dt {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.review-list dd {
  margin: 0;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review-list .empty-value {
  color: #88837a;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 32px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--navy);
}

.submit-status {
  min-height: 1.9em;
  margin: 12px 0 0;
  font-size: 13px;
  text-align: right;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

footer {
  margin-top: 26px;
  font-size: 12px;
  text-align: center;
}

.completion {
  position: relative;
  min-height: calc(100vh - 144px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 80px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  text-align: center;
}

.completion:focus {
  outline: none;
}

.completion-seal {
  position: static;
  margin: 0 auto 28px;
}

.completion h1 {
  margin: 0 auto;
  font-size: clamp(32px, 7vw, 52px);
}

.completion > p {
  max-width: 560px;
  margin: 22px auto 0;
}

.completion .completion-destination {
  margin-top: 34px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  overflow-wrap: anywhere;
}

.completion .quiet {
  margin-top: 7px;
}

.completion .completion-dm-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

noscript {
  display: block;
  margin-top: 24px;
  color: var(--error);
}

@media (max-width: 600px) {
  .gold-thread {
    left: 14px;
  }

  .shell {
    width: min(100% - 40px, 740px);
    padding-top: 34px;
  }

  .hero {
    min-height: 0;
    padding: 30px 0 42px;
  }

  .seal {
    top: 25px;
    width: 60px;
    height: 60px;
  }

  h1 {
    padding-right: 44px;
  }

  .progress {
    margin: 32px 0 40px;
  }

  .progress li {
    font-size: 10px;
  }

  .step-actions,
  .step-actions.single {
    grid-template-columns: 1fr;
  }

  .step-actions.single {
    justify-content: stretch;
  }

  .final-actions .primary-button {
    grid-row: 1;
  }

  .final-actions .back-button {
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
