* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 150, 32, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 116, 24, 0.06), transparent 26%),
    linear-gradient(180deg, #fcfefc 0%, #f7faf7 100%);
  color: var(--color-ink);
  font-family: var(--font-sans);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(
      90deg,
      rgba(0, 54, 9, 0.94) 0%,
      rgba(0, 78, 15, 0.94) 48%,
      rgba(0, 116, 24, 0.92) 100%
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-banner__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.9rem 1.25rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.brand-lockup__icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.brand-lockup__wordmark {
  color: var(--color-on-brand);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.brand-page {
  position: relative;
  z-index: 1;
}

.page-shell {
  width: min(100% - 2.5rem, 1120px);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.4rem) 0 clamp(3rem, 6vw, 5rem);
}

.page-shell-wide {
  width: min(100% - 2.5rem, 1180px);
}

.page-shell-auth {
  width: min(100% - 2.5rem, 1060px);
}

.intro-band,
.site-header,
.confirmation,
.moderation-shell,
.moderation-header {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  align-items: start;
}

.page-intro-grid-home {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  align-items: stretch;
}

.page-intro-grid-auth {
  align-items: start;
}

.auth-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: start;
}

.page-intro-grid-site {
  align-items: stretch;
}

.page-intro-grid-auth > div:first-child,
.page-intro-grid-site > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  min-height: 100%;
}

.page-intro-grid-auth > div.auth-hero-card:first-child {
  position: sticky;
  top: calc(4.8rem + var(--space-3));
  align-self: start;
  justify-content: center;
  gap: var(--space-5);
  min-height: 30rem;
  height: auto;
  max-height: calc(100vh - 6.5rem);
  padding: clamp(1.5rem, 3vw, 2.15rem);
}

.intro-band > div:first-child,
.site-header > div:first-child,
.moderation-shell > div:first-child,
.moderation-header > div:first-child,
.confirmation,
.page-intro-grid > div:first-child {
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    var(--brand-header-start) 0%,
    var(--brand-header-mid) 42%,
    var(--brand-header-accent) 100%
  );
  box-shadow: var(--shadow-floating);
  color: var(--color-on-brand);
  padding: clamp(1.6rem, 4vw, 2.5rem);
}

.intro-band h1,
.site-header h1,
.confirmation h1,
.moderation-shell h1,
.moderation-header h1,
.page-intro-grid h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 0.94;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.intro-band p,
.site-header p,
.confirmation p,
.moderation-shell p,
.moderation-header p,
.page-intro-grid p {
  max-width: 54rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-wordmark {
  display: block;
  width: min(14rem, 48vw);
  margin-bottom: var(--space-5, 1.25rem);
}

.site-index-hero .hero-wordmark {
  margin-bottom: calc(var(--space-6) + var(--space-4));
}

.hero-title {
  max-width: 12ch;
}

.intro-band h1.hero-title-home,
.page-intro-grid h1.hero-title-home {
  max-width: 14ch;
  font-size: clamp(1.95rem, 4.2vw, 3.55rem) !important;
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.site-header h1.hero-title-public,
.page-intro-grid h1.hero-title-public {
  max-width: 10ch;
  font-size: clamp(2rem, 4.4vw, 3.8rem) !important;
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.page-intro-grid h1.hero-title-login {
  max-width: none;
  font-size: clamp(1.7rem, 3vw, 2.75rem) !important;
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.page-intro-grid-auth > div.auth-hero-card:first-child .hero-title-home__line {
  white-space: nowrap;
}

.page-intro-grid-auth > div.auth-hero-card:first-child p {
  max-width: 34rem;
}

.confirmation h1.hero-title-confirmation {
  max-width: none;
  font-size: clamp(2rem, 4.6vw, 4rem) !important;
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.moderation-header h1.hero-title-moderation,
.moderation-shell h1.hero-title-moderation {
  max-width: 16ch;
  font-size: clamp(2.1rem, 4.4vw, 3.85rem) !important;
  line-height: 1.01;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.hero-title-home__line {
  display: block;
}

.hero-title-home__line-nowrap {
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-centered {
  justify-items: center;
  text-align: center;
}

.confirmation-centered .hero-wordmark,
.confirmation-centered .reference {
  margin-left: auto;
  margin-right: auto;
}

.confirmation-centered p {
  text-align: center;
}

.hint {
  margin: calc(var(--space-4) * -1) 0 0;
  color: var(--color-ink-soft);
}

@media (max-width: 760px) {
  .page-shell,
  .page-shell-wide {
    width: min(100% - 1.25rem, 1180px);
  }

  .brand-banner__inner {
    padding: 0.85rem 0.75rem;
  }

  .page-intro-grid {
    grid-template-columns: 1fr;
  }

  .brand-lockup__wordmark {
    display: none;
  }

  .moderation-header h1.hero-title-moderation,
  .moderation-shell h1.hero-title-moderation {
    max-width: 12ch;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .page-intro-grid-auth > div.auth-hero-card:first-child {
    position: static;
    min-height: auto;
    max-height: none;
  }
}
