/* Entelexia — entelexiagames.com */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111113;
  --fg-secondary: #4a4a52;
  --fg-muted: #71717a;
  --border: #e6e6e9;
  --link-underline: #c8c8cf;
  --link-underline-hover: #111113;
  --mark-bg: #111113;
  --mark-fg: #f7f7f8;
  --focus: #111113;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --fg: #f3f3f5;
    --fg-secondary: #a8a8b2;
    --fg-muted: #858592;
    --border: #232328;
    --link-underline: #3f3f48;
    --link-underline-hover: #f3f3f5;
    --mark-bg: #f3f3f5;
    --mark-fg: #0e0e10;
    --focus: #f3f3f5;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--link-underline-hover);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */

.site-header {
  padding-top: 32px;
  padding-bottom: 16px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.brand-mark-bg {
  fill: var(--mark-bg);
}

.brand-mark-fg {
  fill: var(--mark-fg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--fg-secondary);
}

.site-nav a {
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 500;
}

/* Main */

main {
  flex: 1 0 auto;
}

.home-main {
  padding-top: clamp(2.75rem, 10vh, 5.5rem);
  padding-bottom: clamp(2rem, 6vh, 3.75rem);
}

.statement {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.025em;
  max-width: 28ch;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--fg-secondary);
  max-width: 52ch;
}

.section-rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0 28px;
}

.section-label {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
  font-size: 0.9375rem;
}

.contact-row dt {
  color: var(--fg-secondary);
}

.contact-row dd {
  margin: 0;
  word-break: break-word;
}

/* Policy document */

.doc-main {
  padding-top: clamp(2.5rem, 7vh, 4.25rem);
  padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
}

.doc-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.doc-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.doc-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.doc-body h2 {
  margin: 30px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.doc-body p {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--fg-secondary);
}

.doc-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--fg-secondary);
}

.doc-body li {
  margin-bottom: 8px;
}

.doc-body li:last-child {
  margin-bottom: 0;
}

.doc-body strong {
  color: var(--fg);
  font-weight: 600;
}

/* Footer */

.site-footer {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
}

.footer-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 0.8125rem;
  color: var(--fg-secondary);
}

.footer-legal {
  margin: 8px 0 0;
  font-size: 0.71875rem;
  line-height: 1.5;
  color: var(--fg-muted);
}

.footer-legal span {
  display: block;
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 20px;
  }

  .site-header {
    padding-top: 24px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-row dt {
    font-size: 0.8125rem;
    color: var(--fg-muted);
  }
}
