:root {
  --paper: #f7f7f4;
  --ink: #161616;
  --yellow: #e2b100;
  --line: #d9d9d2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", serif;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; font-weight: 560; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 0.4em; }
.disc {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.disc::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: turn 28s linear infinite;
}
.head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}
.logo img { width: 32px; height: 32px; }
.head nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.head nav a { text-decoration: none; }
.sheet {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 28px;
}
.note {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 36px 0 12px;
}
.num { font-family: "Space Grotesk", sans-serif; font-size: 3rem; line-height: 1; }
.frame {
  overflow: hidden;
  width: min(100%, 300px);
  margin-inline: auto;
  border: 1px solid var(--ink);
  background: #ecece6;
}
.frame img { width: 100%; height: auto; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.grid article {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.grid h2 { font-size: 1.15rem; }
.btn {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  max-width: 100%;
  white-space: normal;
}
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 28px; }
.cells a {
  display: block;
  padding: 16px;
  border: 1px solid var(--ink);
  text-decoration: none;
  min-width: 0;
}
.cells a:hover { background: var(--yellow); }
.base {
  border-top: 1px solid var(--ink);
  padding: 22px 0 12px;
}
.base-in {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.base ul { list-style: none; padding: 0; margin: 0; }
.year { width: min(920px, calc(100% - 32px)); margin: 8px auto 0; }
.jel {
  position: fixed;
  z-index: 4;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.jel p { margin: 0; max-width: 36rem; }
.jel a { color: var(--yellow); }
.jel .btn { background: var(--yellow); color: var(--ink); }
.no {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
  padding: 10px 12px;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
}
@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .note, .grid, .cells, .base-in { grid-template-columns: 1fr; }
  .cells a { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

img[src^="images/"] {
  width: min(100%, 300px);
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
