:root {
  --bg: #13223F;
  --ink-bright: #F2F1EF;
  --ink: rgba(235, 235, 235, 0.74);
  --ink-muted: rgba(235, 235, 235, 0.58);
  --ink-faint: rgba(235, 235, 235, 0.42);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: rgba(134, 216, 223, 0.20); color: #fff; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(65% 50% at 12% 0%, rgba(28, 25, 80, 0.34), transparent 70%),
    radial-gradient(55% 45% at 92% 100%, rgba(46, 33, 102, 0.26), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.corner {
  position: fixed;
  top: 1.9rem;
  z-index: 60;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(235, 235, 235, 0.55);
  transition: color 0.4s ease;
}

.corner:hover { color: var(--ink-bright); }
.corner.brand { left: clamp(1.5rem, 5vw, 3rem); color: rgba(235, 235, 235, 0.68); }
.corner.contact { right: clamp(1.5rem, 5vw, 3rem); }
a:focus-visible { outline: 1px solid var(--ink-faint); outline-offset: 4px; }

.page {
  max-width: 45rem;
  margin: 0 auto;
  padding: 9.5rem clamp(1.5rem, 6vw, 2rem) 5rem;
}

.page.hub {
  max-width: 68rem;
  padding-inline: clamp(1.5rem, 6vw, 3rem);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(199, 208, 244, 0.72);
  margin-bottom: 1.3rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 6.2vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink-bright);
  text-wrap: balance;
}

.dek {
  margin-top: 1.5rem;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.85;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.meta {
  margin-top: 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(235, 235, 235, 0.5);
}

.cluster-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
}

.cluster-nav a {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: rgba(235, 235, 235, 0.76);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.cluster-nav a:hover {
  color: var(--ink-bright);
  border-color: rgba(199, 208, 244, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.cluster {
  margin-top: 4.6rem;
  scroll-margin-top: 5rem;
}

.cluster h2 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(199, 208, 244, 0.72);
  margin-bottom: 1rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.35rem;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease;
}

.guide-card:hover {
  border-color: rgba(199, 208, 244, 0.34);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.guide-card .topic {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(199, 208, 244, 0.72);
}

.guide-card h3 {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.16;
  color: var(--ink-bright);
  text-wrap: balance;
}

.guide-card p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--ink-muted);
}

article { margin-top: 4.6rem; }

article h2 {
  margin: 3.2rem 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.72rem, 3.2vw, 2.45rem);
  line-height: 1.18;
  color: var(--ink-bright);
  text-wrap: balance;
}

article h3 {
  margin: 2rem 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(235, 235, 235, 0.8);
}

p, li {
  font-size: 1rem;
  line-height: 1.85;
  text-wrap: pretty;
}

p { margin-bottom: 1rem; }
ul, ol { margin: 1rem 0 1.4rem 1.25rem; }
li + li { margin-top: 0.75rem; }
strong { color: rgba(245, 245, 245, 0.92); font-weight: 500; }

article a, footer a {
  color: rgba(235, 235, 235, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

article a:hover, footer a:hover { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.6); }

.callout {
  margin: 2rem 0;
  border-left: 1px solid rgba(199, 208, 244, 0.45);
  padding: 0.35rem 0 0.35rem 1.2rem;
  color: rgba(235, 235, 235, 0.82);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(199, 208, 244, 0.12);
  color: rgba(242, 241, 239, 0.92);
  font-size: 0.72rem;
  font-weight: 500;
}

.cta-box {
  margin: 3.2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: clamp(1.3rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.04);
}

.cta-box h2 { margin-top: 0; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
  background: #ECEBE9;
  color: #0D0D0D;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.4s ease;
}

.store:hover {
  background: #fff;
  color: #0D0D0D;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.store:active { transform: scale(0.985); }
.store svg { width: 1.05em; height: 1.05em; display: block; margin-top: -2px; }

.related {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer {
  margin-top: 6rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(235, 235, 235, 0.52);
  line-height: 2.15;
}

footer .sep { margin: 0 0.7em; }

@media (max-width: 640px) {
  .corner { top: 1.5rem; }
  .store { width: 100%; justify-content: center; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 14rem; }
}

@media (min-width: 641px) and (max-width: 980px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
