:root {
  color-scheme: light;
  --paper: #f7f1e4;
  --paper-deep: #eee2cd;
  --ink: #211e1a;
  --muted: #6d665d;
  --accent: #c84c3a;
  --accent-dark: #9e3528;
  --line: rgba(33, 30, 26, 0.17);
  --card: rgba(255, 252, 246, 0.82);
  --shadow: 0 22px 60px rgba(69, 51, 31, 0.11);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(200, 76, 58, 0.09), transparent 28rem),
    linear-gradient(145deg, var(--paper), #fbf7ef 48%, var(--paper-deep));
  min-height: 100vh;
  line-height: 1.65;
}

a { color: var(--accent-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(200, 76, 58, 0.42);
  outline-offset: 4px;
  border-radius: 4px;
}

.shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 4px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #fffaf1;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: inset 8px 0 0 rgba(255, 255, 255, 0.12);
  transform: rotate(-3deg);
}

.top-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.top-nav a { color: var(--muted); font-size: 0.92rem; font-weight: 650; text-decoration: none; }

.ticket {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 168px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ticket::before { left: -16px; }
.ticket::after { right: -16px; }

.hero { padding: clamp(34px, 7vw, 72px); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.035em; }
h1 { margin: 0; font-size: clamp(2.25rem, 7vw, 4.8rem); max-width: 11ch; }
h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 4vw, 2.25rem); }
h3 { margin: 26px 0 8px; font-size: 1.14rem; }
p { margin: 0 0 14px; }

.lede { max-width: 62ch; margin-top: 22px; color: var(--muted); font-size: 1.08rem; }

.actions, .link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.action, .link-card {
  display: block;
  padding: 18px 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.action:hover, .link-card:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(200, 76, 58, 0.38);
  transform: translateY(-2px);
}
.action strong, .link-card strong { display: block; font-size: 1.02rem; }
.action span, .link-card span { color: var(--muted); font-size: 0.9rem; }

.document { padding: clamp(28px, 6vw, 58px); }
.document-header {
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px dashed var(--line);
}
.document-header h1 { max-width: none; font-size: clamp(2rem, 6vw, 3.7rem); }
.meta { color: var(--muted); font-size: 0.92rem; }
.language-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.language-jump a {
  padding: 7px 12px;
  background: rgba(200, 76, 58, 0.08);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.policy-section + .policy-section {
  margin-top: 48px;
  padding-top: 42px;
  border-top: 1px dashed var(--line);
}

ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 8px; }

.notice {
  margin: 22px 0;
  padding: 16px 18px;
  color: #5d2a22;
  background: rgba(200, 76, 58, 0.09);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 680px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .actions, .link-grid { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { top: 146px; }
  .hero, .document { padding: 28px 24px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .action, .link-card { transition: none; }
}

@media print {
  body { background: #fff; }
  .shell { width: 100%; padding: 0; }
  .site-header, .site-footer, .language-jump { display: none; }
  .ticket { border: 0; box-shadow: none; }
  .ticket::before, .ticket::after { display: none; }
  .document { padding: 0; }
}
