:root {
  --cream: #fdebc7;
  --gold: #c9a45a;
  --ember: #c45c2a;
  --crimson: #a12021;
  --ink: #4a2a22;
  --muted: #8a6248;
  --line: rgba(161, 32, 33, 0.16);
  --paper: #fff8ea;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--ink);
}
.clouds, .waves, .grain {
  pointer-events: none;
  position: fixed;
  z-index: 0;
}
.clouds, .waves { overflow: hidden; }
.clouds::after, .waves::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.clouds {
  top: 0; left: 0; right: 0;
  height: min(22vh, calc(100vw * 282 / 1800));
  background: url("/p2/clouds.png?v=9") no-repeat top center / 100% 100%;
}
.clouds::after {
  background: linear-gradient(to bottom, transparent 18%, var(--cream) 92%);
}
.waves {
  left: 0; right: 0; bottom: 0;
  height: min(22vh, calc(100vw * 381 / 2481));
  background: url("/p2/waves.png?v=9") no-repeat center bottom / 100% 100%;
}
.waves::after {
  background: linear-gradient(to bottom, var(--cream), transparent 46%);
}
.grain {
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 120px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--crimson); }
.back {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.back:hover { color: var(--crimson); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.nav a {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 248, 234, 0.7);
  padding: 8px 10px;
}
.nav a.on, .nav a:hover { color: var(--crimson); border-color: rgba(161, 32, 33, 0.35); }
h1 {
  font-weight: 500;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.25;
  margin-bottom: 10px;
}
.meta { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.article h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--crimson);
  margin: 26px 0 10px;
}
.article p, .article li { font-size: 15px; line-height: 1.7; color: var(--ink); }
.article p { margin-bottom: 12px; }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 14px; }
.article li { margin-bottom: 6px; color: var(--muted); }
.article li strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--crimson); }
details {
  border: 1px solid var(--line);
  background: rgba(255, 248, 234, 0.72);
  margin-bottom: 8px;
  padding: 12px 14px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details[open] summary { color: var(--crimson); margin-bottom: 8px; }
details p { margin: 0; color: var(--muted); }
footer.note {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #a07a58;
  font-size: 12px;
}
footer.note a { color: #8a6248; text-decoration: none; }
footer.note a:hover { color: var(--crimson); }
@media (max-width: 640px) {
  .brand span { display: none; }
  .nav a { flex: 1 1 calc(50% - 8px); text-align: center; }
}
