:root {
  --bg: #dae7bd;
  --ink: #303d10;
  --muted: #516028;
  --accent: #c7f642;
  --panel: rgba(255, 255, 255, 0.35);
  --line: rgba(48, 61, 16, 0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(199, 246, 66, 0.55), transparent 34rem),
    linear-gradient(145deg, #eef6d3 0%, var(--bg) 48%, #c7d99b 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
}

a {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.35);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 10%, transparent 11%),
    conic-gradient(from 15deg, #303d10, #c7f642, #516028, #303d10);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.35);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  border-color: var(--line);
  background: var(--panel);
}

.content {
  width: min(960px, calc(100% - 32px));
  margin: 36px auto 80px;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 28px 70px rgba(48, 61, 16, 0.14);
  backdrop-filter: blur(12px);
}

h1, h2, h3 {
  margin: 0 0 0.65em;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 8vw, 6.5rem);
  font-weight: 500;
}

h2 {
  margin-top: 2.2em;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

p { margin: 1em 0; }

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

figure {
  max-width: 100%;
  margin: 1.5em 0;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

code,
pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

ul,
ol {
  padding-left: 1.35em;
}

strong {
  font-weight: 750;
  background: linear-gradient(transparent 62%, rgba(199, 246, 66, 0.6) 0);
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 0% 0%, rgba(199, 246, 66, 0.48), transparent 20rem),
      linear-gradient(160deg, #eef6d3 0%, var(--bg) 56%, #c7d99b 100%);
    font-size: 16px;
    line-height: 1.68;
  }

  .site-header, footer {
    width: min(100% - 22px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-header {
    padding: 18px 0 12px;
  }

  .brand {
    gap: 10px;
    max-width: 100%;
    letter-spacing: 0.035em;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
  }

  nav {
    justify-content: flex-start;
    gap: 7px;
  }

  nav a {
    padding: 6px 9px;
    font-size: 0.9rem;
  }

  .content {
    width: min(100% - 22px, 960px);
    margin: 12px auto 42px;
    padding: 22px 18px;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(48, 61, 16, 0.12);
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.3rem);
    letter-spacing: -0.045em;
  }

  h2 {
    margin-top: 1.8em;
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.08rem;
  }

  p,
  li {
    text-wrap: pretty;
  }
}

@media (max-width: 420px) {
  .content {
    padding: 20px 15px;
  }

  h1 {
    font-size: clamp(1.75rem, 11vw, 2.6rem);
  }

  nav a {
    padding: 5px 8px;
  }
}
