@font-face {
  font-family: "Bebas Neue";
  src:
    url("assets/fonts/bebas-neue.woff2") format("woff2"),
    url("assets/fonts/bebas-neue.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --page-width: 720px;
  --bg-top: #f8f1e6;
  --bg-bottom: #ead9c2;
  --surface: #fffdfa;
  --surface-soft: rgba(255, 251, 245, 0.92);
  --surface-strong: #211915;
  --text: #201713;
  --muted: #5f4d43;
  --line: rgba(32, 23, 19, 0.12);
  --accent: #c85a31;
  --accent-strong: #8f361c;
  --shadow: 0 12px 28px rgba(31, 22, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(220, 171, 102, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(200, 90, 49, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(200, 90, 49, 0.42);
  outline-offset: 3px;
  box-shadow: none;
}

.page {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding:
    calc(0.95rem + env(safe-area-inset-top, 0px))
    0.9rem
    calc(1.3rem + env(safe-area-inset-bottom, 0px));
}

.topbar,
.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem;
  margin-bottom: 0.92rem;
}

.brand small {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.9rem, 8vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.75);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel {
  padding: 1.08rem;
}

.notice {
  margin: 0 0 1rem;
  padding: 0.92rem 0.98rem;
  border-radius: 18px;
  background: rgba(200, 90, 49, 0.1);
  color: var(--accent-strong);
  font-size: 0.88rem;
  line-height: 1.5;
}

.section + .section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.62rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.46rem;
  letter-spacing: 0.04em;
}

.section p,
.section li {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.section ul {
  display: grid;
  gap: 0.44rem;
  margin: 0;
  padding-left: 1.15rem;
}

.meta {
  display: grid;
  gap: 0.55rem;
}

.meta-line {
  color: var(--muted);
  line-height: 1.55;
}

.meta-line strong {
  color: var(--text);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.stamp {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (hover: hover) {
  .back-link:hover {
    transform: translate3d(0, -1px, 0);
    color: var(--accent);
    box-shadow: var(--shadow);
  }

  .footer-nav a:hover {
    color: var(--accent);
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
