:root {
  --bg: #f7f3eb;
  --text: #1f1d1a;
  --muted: #6d655c;
  --border: #d6cec3;
  --accent: #1f1d1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.8;
}

.page {
  width: min(100% - 48px, 640px);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 52px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

h1,
h2 {
  margin: 0;
  color: var(--accent);
}

h1 {
  font-size: clamp(1.62rem, 4.25vw, 2.1rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: italic;
  line-height: 1.4;
}

.header-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  white-space: nowrap;
  padding-top: 4px;
}

main section {
  margin-bottom: 52px;
}

p,
li {
  margin: 0 0 18px;
  font-size: 0.92rem;
}

.rules-list {
  margin: 0;
  padding-left: 24px;
}

.rules-list li {
  padding-left: 6px;
}

.bio-block {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  align-items: start;
}

.bio-photo {
  display: block;
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 50%;
}

.bio-copy p:last-child {
  margin-bottom: 0;
}

.bio-contact {
  margin-top: 10px;
}

.form-embed {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.form-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 32px, 640px);
    padding-top: 22px;
  }

  .site-header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
  }

  .title-row {
    gap: 10px;
  }

  .title-logo {
    width: 34px;
    height: 34px;
  }

  main section {
    margin-bottom: 40px;
  }

  p,
  li {
    font-size: 0.86rem;
  }

  .bio-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
