:root {
  color-scheme: light;
  --ink: #1a1720;
  --muted: #635d6d;
  --paper: #fffaf0;
  --panel: #ffffff;
  --line: #ded4c6;
  --accent: #8a4f19;
  --accent-strong: #3f275f;
  --gold: #c89539;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}

.shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.brand-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.brand-domain {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  font-size: 0.94rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 32px;
  align-items: center;
  padding: 56px 0 42px;
}

.hero h1,
.page h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 660px;
}

.hero-art {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
  box-shadow: 0 20px 45px rgba(63, 39, 95, 0.14);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 0 48px;
}

.link-card {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  text-decoration: none;
}

.link-card strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1.02rem;
  line-height: 1.2;
}

.link-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 500;
}

.page {
  padding: 44px 0 64px;
}

.content {
  max-width: 760px;
}

.content h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.content p {
  margin: 0 0 14px;
}

.content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.content li {
  margin: 7px 0;
}

.note {
  border-left: 4px solid var(--gold);
  background: #fff4d8;
  padding: 14px 16px;
  margin: 24px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fffdf8;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 0.92rem;
}

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

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .hero-art {
    width: 132px;
    height: 132px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
