/* Studio: rheality.space colours (lavender ground, plum, orange pills, dark
   plum panels) with Chiron Hei HK headings, a sans built to the HK standard. */
:root {
  --plum: #33254E;
  --plum-deep: #1E1537;
  --brand: #CD5A1F;
  --brand-deep: #A84613;
  --brand-soft: rgba(205, 90, 31, 0.14);
  --peach: #F0A574;
  --ink: #352A4A;
  --muted: #6F6488;
  --bg: #F2EEF9;
  --white: #ffffff;
  --line: #E4DDF1;
  --warm: #FFF4EA;
  --warm-line: #F1D8C3;
  --radius: 20px;
  --maxw: 1080px;
  --disp: 'Chiron Hei HK', 'PingFang HK', 'Noto Sans TC', 'Inter', sans-serif;
  --body: 'Inter', -apple-system, "PingFang HK", "Noto Sans TC", system-ui, sans-serif;
  --cjk: "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", 'Inter', sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }

body {
  margin: 0;
  font: 16px/1.6 var(--body);
  color: var(--ink);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(122, 80, 255, 0.16) 0%, transparent 70%),
    radial-gradient(40% 40% at 90% 10%, rgba(205, 90, 31, 0.06) 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--brand-deep); }

/* nav: floating white pill, same as rheality.space */
nav.nav { position: sticky; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 40; margin: 18px auto 0; max-width: var(--maxw); padding: 0 20px; }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 12px 9px 20px;
  box-shadow: 0 6px 24px rgba(46, 31, 74, 0.08);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand .sub {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--plum);
  padding-left: 12px;
  border-left: 1.5px solid var(--line);
  line-height: 1.2;
}
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs a {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.tabs a:hover { color: var(--plum); }
.tabs a.active { background: rgba(205, 90, 31, 0.16); color: var(--brand-deep); }
.tabs a:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 80px; }

h1, h2, h3 { font-family: var(--disp); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0; color: var(--plum); }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 14px; text-wrap: balance; }
h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--brand-soft);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 20px;
}

.lede { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 22px;
}

.dark {
  background: var(--plum-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 22px;
}
.label {
  display: block;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 10px;
}
.dark .label { color: var(--peach); }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* buttons: orange pill, ghost pill */
button, .btn {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--plum);
  background: var(--white);
  border: 1.5px solid rgba(51, 37, 78, 0.22);
  border-radius: 100px;
  padding: 7px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
button:hover, .btn:hover { border-color: var(--brand); color: var(--brand-deep); }
button:focus-visible, .btn:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; padding: 8px 20px; }
button.primary:hover, .btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; transform: translateY(-1px); }
button.on { background: rgba(205, 90, 31, 0.16); border-color: transparent; color: var(--brand-deep); }
button:disabled { opacity: 0.4; cursor: default; }

@media (max-width: 640px) {
  nav.nav { padding: 0 12px; }
  .nav-inner { padding: 7px 8px 7px 14px; gap: 8px; }
  .brand img { height: 22px; }
  .brand .sub { font-size: 0.92rem; padding-left: 8px; }
  .tabs a { padding: 6px 9px; font-size: 0.78rem; }
  .wrap { padding: 0 16px 60px; }
  .card, .dark { padding: 20px 18px; }
}
@media (max-width: 400px) {
  .brand img { display: none; }
  .brand .sub { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  button, .btn, .tabs a { transition: none; }
}
