@font-face {
  font-family: "Rounded";
  src: url("/fonts/MPLUSRounded1c-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #f6ead6;
  --bg-deep: #efdcc0;
  --card: #fffaf1;
  --ink: #1f4b52;
  --text: #3d3a35;
  --muted: #7a6f60;
  --accent: #e2583a;
  --wood: #c99a62;
  --line: #e4d3b8;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: "Rounded", system-ui, sans-serif; font-weight: 900; color: var(--ink); font-size: 19px; }
.lang {
  font-size: 15px; padding: 6px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); text-decoration: none;
}

h1, h2, h3 { font-family: "Rounded", system-ui, sans-serif; font-weight: 900; color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(30px, 6vw, 46px); margin: 0 0 12px; }
h2 { font-size: clamp(23px, 4vw, 30px); margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center;
  padding-top: 16px; padding-bottom: 40px;
}
.hero img.art { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.hero p.lead { font-size: 19px; margin: 0 0 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.badges li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 13px; font-size: 15px; color: var(--ink);
}
.cta {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
}
.cta:hover { color: #fff; filter: brightness(1.05); }
.note { color: var(--muted); font-size: 15px; margin-top: 10px; }

section.band { padding: 44px 0; border-top: 1px solid var(--line); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 10px 24px rgba(80, 55, 25, 0.16);
}
.shots figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; text-align: center; }

.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chapter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.chapter .n { font-size: 14px; color: var(--muted); }
.chapter p { margin: 0; font-size: 16px; }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin: 10px 0 44px; }
.doc h2 { margin-top: 28px; font-size: 22px; }
.doc h2:first-of-type { margin-top: 8px; }
.doc .date { color: var(--muted); font-size: 15px; }
.doc code { overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 4px; }
  .hero > * { min-width: 0; }
  .hero .art-col { order: -1; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:nth-child(3) { display: none; }
  .chapters { grid-template-columns: 1fr; }
  .doc { padding: 20px 18px; }
}
