:root {
  --bg: #f3f2f1;
  --surface: #ffffff;
  --text: #0b0c0c;
  --muted: #505a5f;
  --border: #b1b4b6;
  --accent: #1d70b8;
  --accent-dark: #003078;
  --warm: #fbf6e9;
  --stroke: var(--border);

  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --surface-soft: color-mix(in srgb, var(--surface) 92%, transparent);
  --shadow-soft: 0 10px 30px color-mix(in srgb, var(--text) 10%, transparent);

  --wl-paper: var(--bg);
  --wl-ink: var(--text);
  --wl-muted: var(--muted);
  --wl-rule: var(--stroke);
  --wl-primary: var(--accent);
  --wl-primary-hover: var(--accent-dark);
  --wl-primary-soft: var(--accent-soft);
  --wl-accent: var(--accent);
  --wl-accent-soft: var(--accent-soft);
  --wl-link-visited: #4c2c92;
  --wl-radius: 12px;
  --wl-shadow: var(--shadow-soft);

  --wl-space-1: 0.25rem;
  --wl-space-2: 0.5rem;
  --wl-space-3: 0.75rem;
  --wl-space-4: 1rem;
  --wl-space-5: 1.5rem;
  --wl-space-6: 2rem;
  --wl-space-7: 3rem;
  --wl-space-8: 4rem;

  --wl-font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wl-font-heading: "Georgia", "Times New Roman", serif;

  --wl-step--1: 0.875rem;
  --wl-step-0: 1rem;
  --wl-step-1: 1.25rem;
  --wl-step-2: 1.5rem;
  --wl-step-3: 1.875rem;
  --wl-step-4: 2.25rem;
}

:root {
  --paper: var(--wl-paper);
  --ink: var(--wl-ink);
  --muted: var(--wl-muted);
  --rule: var(--wl-rule);
  --link: var(--wl-primary);
  --link-hover: var(--wl-primary-hover);
  --link-visited: var(--wl-link-visited);
  --radius: var(--wl-radius);
}

* { box-sizing: border-box; }

html {
  height: 100%;
  scroll-behavior: smooth;
  background: var(--wl-paper);
}

html::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(900px 380px at 12% 12%, var(--wl-accent-soft), transparent 60%),
    radial-gradient(900px 380px at 88% 18%, color-mix(in srgb, var(--wl-accent) 3%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--text) 2%, transparent), transparent 70%);
  pointer-events:none;
  z-index:-1;
}

html::after{
  content:"";
  position:fixed;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%231d70b8' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='100' cy='100' r='58'/%3E%3Cpath d='M100 20v160'/%3E%3Cpath d='M20 100h160'/%3E%3Cpath d='M60 60c20 20 60 20 80 0'/%3E%3Cpath d='M60 140c20-20 60-20 80 0'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:calc(50% - 420px) 140px;
  background-size:min(55vw, 520px);
  opacity:0.04;
  pointer-events:none;
  z-index:-2;
}

body {
  min-height: 100%;
  margin: 0;
  background: transparent;
  color: var(--wl-ink);
  font-family: var(--wl-font-body);
  font-size: var(--wl-step-0);
  line-height: 1.6;
  position: relative;
  z-index: 0;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--wl-space-3);
  font-family: var(--wl-font-heading);
  color: var(--wl-ink);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 var(--wl-space-4); }

a {
  color: var(--wl-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--wl-primary-hover);
  text-decoration-thickness: 2px;
}

a:visited { color: var(--wl-link-visited); }

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

a:active { opacity: 0.8; }

button,
.btn,
.btn-primary,
.cta-primary,
.wl-button,
input[type="submit"],
input[type="button"],
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wl-space-2);
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--wl-primary);
  background: var(--wl-primary);
  color: var(--surface);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

button:hover,
.btn:hover,
.btn-primary:hover,
.cta-primary:hover,
.wl-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.button:hover {
  background: var(--wl-primary-hover);
  border-color: var(--wl-primary-hover);
}

button:active,
.btn:active,
.btn-primary:active,
.cta-primary:active,
.wl-button:active,
input[type="submit"]:active,
input[type="button"]:active,
a.button:active {
  transform: translateY(1px);
}

button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.cta-primary:focus-visible,
.wl-button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
a.button:focus-visible {
  outline: 2px solid var(--wl-primary);
  outline-offset: 2px;
}

.btn-ghost,
.wl-button--ghost {
  background: transparent;
  color: var(--wl-primary);
}

.btn-ghost:hover,
.wl-button--ghost:hover {
  background: var(--wl-primary-soft);
  border-color: var(--wl-primary);
}

.wl-stack > * + * { margin-top: var(--wl-space-4); }
.wl-surface { background: var(--surface); border: 1px solid var(--wl-rule); border-radius: var(--wl-radius); }

.wl-footer {
  margin-top: var(--wl-space-7);
  padding: var(--wl-space-5) 0;
  border-top: 1px solid var(--wl-rule);
  background: var(--surface-soft);
}

.wl-footer__grid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wl-space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .wl-footer__grid {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }
  .wl-footer__center {
    text-align: center;
  }
  .wl-footer__right {
    text-align: right;
  }
}

.wl-footer__line {
  display: inline-flex;
  align-items: center;
  gap: var(--wl-space-2);
  font-size: var(--wl-step--1);
}

.wl-footer__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--wl-rule);
  text-decoration: none;
  font-size: 0.75rem;
  color: var(--wl-ink);
}

.wl-footer__meta {
  margin-top: var(--wl-space-2);
  font-size: var(--wl-step--1);
  color: var(--wl-muted);
  display: inline-flex;
  gap: var(--wl-space-2);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 900px) {
  .wl-footer__meta {
    justify-content: flex-start;
  }
  .wl-footer__right .wl-footer__actions {
    justify-content: flex-end;
  }
}

.wl-footer__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--wl-space-2);
  margin-top: var(--wl-space-2);
}

.wl-footer__share {
  font-size: var(--wl-step--1);
  padding: 0.45rem 0.9rem;
}

.wl-footer__hint {
  font-size: var(--wl-step--1);
  color: var(--wl-muted);
}

.wl-footer__family {
  width: min(1120px, calc(100% - 2rem));
  margin: var(--wl-space-2) auto 0;
  text-align: center;
  font-size: var(--wl-step--1);
  color: var(--wl-muted);
}

.wl-footer__family a {
  color: var(--wl-primary);
  text-decoration: none;
}

.wl-footer__family a:hover {
  text-decoration: underline;
}
