@font-face {
  font-family: "Comic Relief";
  src: url("/assets/ComicRelief-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Comic Relief";
  src: url("/assets/ComicRelief-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #171513;
  --muted: #625b54;
  --paper: #fffdf7;
  --card: #fff7df;
  --orange: #ef4c17;
  --yellow: #ffc63d;
  --line: rgb(23 21 19 / 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgb(255 198 61 / 0.16), transparent 26rem),
    radial-gradient(circle at 90% 32%, rgb(255 79 23 / 0.08), transparent 30rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

.site-header {
  width: min(100% - 40px, 940px);
  margin: 0 auto;
  padding: 28px 0 14px;
}

.brand {
  display: inline-flex;
}

.brand img {
  display: block;
  width: clamp(190px, 27vw, 270px);
  height: auto;
}

.policy {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 18px 0 88px;
}

.back {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--orange);
  font-family: "Comic Relief", ui-rounded, system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.back:hover,
.back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--ink);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--orange);
  font-family: "Comic Relief", ui-rounded, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Comic Relief", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 64px);
}

h2 {
  margin: 52px 0 14px;
  font-size: clamp(25px, 4vw, 33px);
}

h3 {
  margin: 32px 0 8px;
  font-size: clamp(19px, 3vw, 23px);
}

p {
  margin: 0 0 18px;
}

ul {
  margin: 12px 0 22px;
  padding-left: 24px;
}

li {
  margin-bottom: 9px;
}

a {
  color: #b73710;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgb(23 21 19 / 0.07);
  font-size: 0.9em;
}

.updated {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.junko {
  display: block;
  width: clamp(112px, 18vw, 170px);
  height: auto;
  filter: drop-shadow(0 10px 8px rgb(104 40 7 / 0.13));
}

.summary {
  margin: 34px 0 44px;
  padding: 24px 26px 18px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 5px 0 var(--ink);
}

.summary h2 {
  margin: 0 0 12px;
}

.summary ul {
  margin-bottom: 0;
}

.table-wrap {
  width: 100%;
  margin: 20px 0 24px;
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.58);
  box-shadow: 0 4px 0 var(--ink);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

th,
td {
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--yellow);
  font-family: "Comic Relief", ui-rounded, system-ui, sans-serif;
  font-weight: 700;
}

td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .policy {
    width: min(100% - 28px, 860px);
  }

  .site-header {
    padding-top: 20px;
  }

  .policy {
    padding-top: 8px;
  }

  .title-row {
    align-items: flex-end;
    gap: 8px;
  }

  .junko {
    width: 105px;
  }

  .summary {
    padding: 21px 20px 15px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
