@font-face {
  font-family: "Fraunces";
  src: url("Fraunces-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("Nunito-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --midnight: #020b1c;
  --deep: #051431;
  --glow: #0a2d5a;
  --card: rgba(12, 26, 49, 0.72);
  --line: #16305a;
  --text: #eaf2fb;
  --muted: #8aa3c4;
  --accent: #6cc0f5;
  --accent-pale: #a6dbfb;
  --lime: #a9c264;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(10, 45, 90, 0.9), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(108, 192, 245, 0.08), transparent 60%),
    linear-gradient(180deg, #0b1f38 0%, var(--midnight) 45%, #031026 100%);
  background-attachment: fixed;
}

a { color: var(--accent-pale); text-underline-offset: 3px; }
a:hover { color: var(--text); }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.prose { width: min(760px, 100% - 40px); margin-inline: auto; }

header.site {
  padding: 22px 0;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav.links { display: flex; gap: 20px; flex-wrap: wrap; }
nav.links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--text); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1px;
}
h1 { font-size: clamp(36px, 6vw, 60px); margin: 0 0 18px; }
h2 { font-size: clamp(24px, 3.2vw, 32px); margin: 48px 0 12px; }
h3 { font-size: 20px; margin: 28px 0 6px; }

.hero {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.hero .art {
  justify-self: center;
  width: min(300px, 70vw);
  aspect-ratio: 1;
  border-radius: 28%;
  background: radial-gradient(circle at 50% 40%, rgba(108, 192, 245, 0.25), transparent 65%);
  display: grid;
  place-items: center;
}
.hero .art img { width: 64%; border-radius: 22%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }

.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  min-width: 170px;
}
.store small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.store strong { font-size: 17px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0 8px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 18px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

.note {
  background: rgba(169, 194, 100, 0.08);
  border: 1px solid rgba(169, 194, 100, 0.35);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0;
}

.prose { padding: 24px 0 64px; }
.prose .updated { color: var(--muted); margin-top: -8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
th { color: var(--accent-pale); font-weight: 700; }
.table-scroll { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero .art { order: -1; width: 180px; }
}

.phones {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
  height: 560px;
}
.phones::before {
  content: "";
  position: absolute;
  inset: 10% 5% 0;
  background: radial-gradient(closest-side, rgba(108, 192, 245, 0.28), transparent);
  filter: blur(20px);
}
.phone {
  position: absolute;
  margin: 0;
  width: 236px;
  aspect-ratio: 414 / 900;
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(160deg, #22324a, #0a1426 60%, #1b2a40);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.35);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}
.phone.back { right: 0; top: 0; transform: rotate(6deg); opacity: 0.92; }
.phone.front { left: 0; top: 44px; transform: rotate(-4deg); }

@media (max-width: 760px) {
  .phones { order: -1; height: 440px; width: min(340px, 100%); }
  .phone { width: 190px; border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
  .phone.front { top: 34px; }
}
