:root {
  color-scheme: light;
  --bg: #f7f1e8;
  --paper: #fffaf2;
  --ink: #221813;
  --muted: #6f6258;
  --line: #e4d6c6;
  --brand: #c56548;
  --brand-dark: #7a392d;
  --leaf: #5d7a57;
  --sky: #dfe9e7;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.88), rgba(247, 241, 232, 1) 520px),
    var(--bg);
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
}

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

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: min(620px, calc(100vh - 96px));
  display: flex;
  align-items: center;
  padding: 36px 0 42px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--brand);
  padding: 11px 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 250, 242, 0.72);
  color: var(--brand-dark);
}

.page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.page.wide {
  width: min(1040px, calc(100% - 32px));
}

.page-header {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  margin: 30px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.25;
}

.section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.section ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.notice {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.82);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.link-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.74);
  text-decoration: none;
}

.link-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.link-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.invite-panel {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.invite-panel img {
  width: 82px;
  height: 82px;
  border-radius: 18px;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

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

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

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

  .invite-panel {
    grid-template-columns: 1fr;
  }
}
