:root {
  --bg: #f5efe4;
  --paper: #fffaf1;
  --ink: #111820;
  --muted: #56616d;
  --line: rgba(17, 24, 32, 0.14);
  --deep: #101923;
  --deep-2: #172433;
  --accent: #b7512d;
  --accent-2: #db8b42;
  --green: #617b58;
  --gold: #d2a44d;
  --shadow: 0 22px 60px rgba(16, 25, 35, 0.14);
  --radius: 28px;
  --max: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(219, 139, 66, 0.22), transparent 28rem),
    radial-gradient(circle at 95% 18%, rgba(97, 123, 88, 0.16), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(17, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 86%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--deep);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 40;
  border-radius: 10px;
}

.skip-link:focus:not(:focus-visible) {
  left: -9999px;
}

.skip-link:focus-visible {
  left: 1rem;
  outline: 3px solid #0a84ff;
  outline-offset: 2px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  padding: 18px 32px;
  backdrop-filter: blur(18px);
  background: rgba(245, 239, 228, 0.78);
  border-bottom: 1px solid rgba(17, 24, 32, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}


.project-link {
  margin-right: auto;
  margin-left: -0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--accent);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--deep);
  color: #fffaf1;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 30px rgba(16, 25, 35, 0.18);
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  padding: 0.45rem 0.3rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.82fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 24px clamp(3rem, 6vw, 6rem);
}

.eyebrow,
.section-label,
.card-kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy {
  min-width: 0;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(4.2rem, 8.9vw, 7.7rem);
  line-height: 0.87;
  letter-spacing: -0.072em;
  margin-bottom: 1.4rem;
  max-width: 10ch;
}

.hero-line {
  font-size: clamp(1.45rem, 2.6vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 760px;
  margin-bottom: 1.2rem;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.3vw, 1.22rem);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--deep);
  color: var(--paper);
  box-shadow: 0 12px 34px rgba(16, 25, 35, 0.2);
}

.button.secondary {
  background: rgba(255, 250, 241, 0.66);
}

.games-threshold-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.72);
  color: var(--green);
  text-decoration: none;
  opacity: 0.75;
}

.games-threshold-link:hover,
.games-threshold-link:focus-visible {
  opacity: 1;
}

.hero-card,
.callout,
.warning-card,
.principles-grid article,
.three-cards article {
  background: rgba(255, 250, 241, 0.76);
  border: 1px solid rgba(17, 24, 32, 0.12);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.4vw, 2.5rem);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--green));
}

.hero-card h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 1.25rem;
}

.hero-card p {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-card .not-subversion {
  color: var(--ink);
  font-weight: 900;
  font-size: 1.18rem;
  margin-bottom: 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 24px;
  border-top: 1px solid rgba(17, 24, 32, 0.1);
}

.section h2 {
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 960px;
  margin-bottom: 1.4rem;
}

.section p {
  font-size: 1.08rem;
  color: var(--muted);
}

.section .large {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.45;
  max-width: 950px;
  color: #303943;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.split.reverse {
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1fr);
}

.callout,
.warning-card {
  border-radius: 24px;
  padding: 1.35rem;
}

.callout p,
.warning-card p {
  margin-bottom: 0.75rem;
}

.callout p:last-child,
.warning-card p:last-child {
  margin-bottom: 0;
}

.center {
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.4), rgba(255, 250, 241, 0));
}

.three-cards,
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.three-cards article,
.principles-grid article {
  border-radius: 22px;
  padding: 1.25rem;
}

.three-cards h3,
.principles-grid h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.three-cards p,
.principles-grid p {
  font-size: 0.98rem;
  margin-bottom: 0;
}

.manifesto {
  color: var(--paper);
  background: var(--deep);
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

.manifesto .section-label {
  color: var(--accent-2);
}

.manifesto h2,
.manifesto p {
  color: var(--paper);
}

.manifesto p {
  max-width: 920px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.warning-card {
  background: #fff3e0;
  border-color: rgba(183, 81, 45, 0.28);
}

.warning-card h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.test-list {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.test-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(17, 24, 32, 0.1);
}

.test-list span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--paper);
  font-weight: 900;
}

.test-list strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 0.2rem;
}

.test-list p {
  margin: 0;
  font-size: 0.98rem;
}

.principles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-note {
  margin-top: 2rem;
  font-size: 0.98rem !important;
}

.source-note a,
.disclaimer-links a {
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.disclaimer {
  background: rgba(255, 250, 241, 0.62);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-block: 3rem;
  padding: clamp(2rem, 4vw, 4rem);
}

.disclaimer h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.disclaimer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.final-word {
  background: var(--deep);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) max(24px, calc((100vw - var(--max)) / 2 + 24px));
  text-align: center;
}

.final-word h2 {
  font-size: clamp(2.4rem, 6vw, 6rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
  margin-inline: auto;
  max-width: 1000px;
}

.final-word p {
  max-width: 780px;
  margin-inline: auto;
  color: rgba(255, 250, 241, 0.78);
}

.final-word .closing {
  color: var(--paper);
  font-weight: 900;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  margin-top: 1.5rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 24px 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid rgba(17, 24, 32, 0.1);
}

.site-footer p {
  margin: 0;
}

.site-footer a,
.reasoning a {
  color: inherit;
  text-decoration-color: rgba(183, 81, 45, 0.55);
  text-underline-offset: 0.18em;
}

.uliua-association {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 100%;
  width: fit-content;
  padding: 0.9rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(17, 24, 32, 0.14);
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(230, 237, 255, 0.82));
  box-shadow: 0 10px 28px rgba(16, 25, 35, 0.08);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.uliua-association:hover,
.uliua-association:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(17, 24, 32, 0.2);
  box-shadow: 0 14px 32px rgba(16, 25, 35, 0.1);
}

.uliua-mark {
  display: block;
  width: min(170px, 44vw);
  height: auto;
  flex: 0 0 auto;
}

.uliua-copy {
  display: grid;
  gap: 0.08rem;
  line-height: 1.08;
}

.uliua-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
}

.uliua-name {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.uliua-domain {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 20px;
  }

  .uliua-association {
    width: 100%;
  }

  .uliua-mark {
    width: min(150px, 54vw);
  }

  .project-link,
  .nav {
    display: none;
  }

  .hero,
  .split,
  .split.reverse,
  .three-cards,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .test-list li {
    grid-template-columns: 54px 1fr;
    gap: 0.75rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


@media (min-width: 881px) and (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.8fr);
  }

  h1 {
    font-size: clamp(4.1rem, 8vw, 6.3rem);
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.45rem, 18vw, 4.9rem);
    letter-spacing: -0.078em;
  }
}
