:root {
  --ink: #16120e;
  --paper: #f3ead7;
  --paper-2: #e7dcc4;
  --red: #d61f26;
  --red-deep: #9e1218;
  --mute: #6b6154;
  --line: rgba(22, 18, 14, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #fff6e4 0%, transparent 55%),
    linear-gradient(180deg, #efe4cb 0%, #d8c9ab 100%);
  color: var(--ink);
  padding: 28px 18px 48px;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: 0;
}

.top,
.ticket,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  max-width: 980px;
  margin: 0 auto 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.langs {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.langs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.mark {
  font-family: Syne, sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}

.route {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.ticket {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 540px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(70, 42, 12, 0.18);
}

.stub {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.stub::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 18px;
  bottom: 18px;
  border-right: 2px dashed rgba(243, 234, 215, 0.28);
}

.stub-kana {
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: #cbbfa6;
}

.stub-en {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.stamp {
  width: 92px;
  height: 92px;
  border: 3px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
  color: var(--red);
  font-family: Syne, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.stub-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #9a8f7d;
}

.board {
  padding: 48px 48px 40px;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--red-deep);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

h1 {
  font-family: "Noto Sans SC", "Noto Sans KR", Syne, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}

.lede {
  font-size: 16px;
  line-height: 1.7;
  color: #3d372f;
  max-width: 38em;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.btn-primary,
.btn-ghost {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.btn-primary {
  background: var(--red);
  color: #fff8ef;
  padding: 16px 22px;
  min-width: 260px;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-label {
  font-weight: 700;
  font-size: 17px;
}

.btn-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  opacity: 0.86;
  margin-top: 4px;
}

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
}

.btn-ghost:hover {
  background: var(--paper-2);
}

.steps {
  list-style: none;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #3d372f;
}

.steps strong {
  font-family: "IBM Plex Mono", monospace;
  color: var(--red-deep);
}

.foot {
  max-width: 980px;
  margin: 18px auto 0;
  font-size: 12px;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.foot a {
  color: inherit;
}

@media (max-width: 780px) {
  .ticket {
    grid-template-columns: 1fr;
  }

  .stub {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: 0;
    padding: 18px 20px;
  }

  .stub::after,
  .stub-kana {
    display: none;
  }

  .stub-en {
    font-size: 22px;
  }

  .stamp {
    width: 64px;
    height: 64px;
    font-size: 9px;
    margin-left: auto;
  }

  .stub-meta {
    display: none;
  }

  .board {
    padding: 28px 22px 26px;
  }

  .foot {
    flex-direction: column;
  }

  .top {
    padding: 0 4px;
    align-items: flex-start;
  }

  .top-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}
