:root {
  --bg: #07080C; --bg-2: #0C0E14;
  --panel: rgba(255, 255, 255, .035); --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --text: #EEECF4; --text-2: #A7A5B3; --text-3: #73717F;
  --rec: #FF5A47; --amber: #FF9A6B; --violet: #C58BFF; --blue: #8EA2FF; --mint: #5EE0B5;
  --grad: linear-gradient(92deg, #FF5A47 0%, #FF9A6B 30%, #C58BFF 66%, #8EA2FF 100%);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  --serif: "Songti TC", "Noto Serif TC", "Source Han Serif TC", "New York", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.sub::before { content: ""; position: fixed; inset: -20% -10% auto; height: 75vh; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 60% at 28% 0%, rgba(255, 90, 71, .13), transparent 70%), radial-gradient(45% 55% at 76% 0%, rgba(142, 162, 255, .14), transparent 70%); }
a { color: #CFC6FF; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(197, 139, 255, .35); }

/* header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(7, 8, 12, .62); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
header.site .bar { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 650 19px var(--sans); letter-spacing: -.01em; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 24px rgba(255, 90, 71, .25); }
nav.site { display: flex; gap: 2px; font-size: 14px; overflow-x: auto; scrollbar-width: none; flex: 1; }
nav.site::-webkit-scrollbar { display: none; }
nav.site a { color: var(--text-2); text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); white-space: nowrap; flex: none; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 71, .65); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 90, 71, 0); } }
@media (max-width: 760px) { header.site .bar { gap: 10px; padding: 0 16px; } .bar .badge { display: none; } }

/* content pages */
.wrap { max-width: 860px; margin: 0 auto; padding: 56px 24px 0; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.wrap h1 { font-size: clamp(34px, 5.4vw, 54px); margin: 0 0 16px; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 30%, #B4B1C4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap h2 { font-size: 24px; margin: 64px 0 14px; }
.wrap h3 { font-size: 18px; margin: 28px 0 6px; }
p { margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--text-2); max-width: 36em; }
.note { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px 18px; color: var(--text-2); font-size: 15px; }
.seal { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--rec); margin-right: .4em; vertical-align: .08em; box-shadow: 0 0 8px rgba(255, 90, 71, .7); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 32px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--text-3); font-size: 13px; letter-spacing: .02em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
code, pre { font: 13.5px/1.65 var(--mono); }
pre { background: #0E1018; border: 1px solid var(--line); padding: 16px 18px; border-radius: 14px; overflow-x: auto; white-space: pre-wrap; color: #D9D6E8; }
code { background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 5px; }
pre code { background: none; padding: 0; }
label { display: block; font-size: 14px; color: var(--text-2); margin: 16px 0 6px; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type=number], input[type=password], input[type=text], input[type=file], select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .04); min-height: 46px; color: var(--text); }
input:focus, select:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(197, 139, 255, .22); }
select option { background: #14161E; color: var(--text); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 0;
  background: #fff; color: #0A0A0F; font-weight: 600; cursor: pointer; text-decoration: none; transition: box-shadow .2s, background .2s; }
button:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
button.quiet { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
button:disabled { opacity: .45; cursor: default; }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 16px 0; }
.total { font: 700 44px var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0 0 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-weight: 300; font-size: 22px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 4px; color: var(--text-2); }
.muted { color: var(--text-2); }
.error { color: #FF8A7A; }

/* privacy-architecture diagram, recoloured for the dark theme */
svg.flow g[stroke] { stroke: rgba(255, 255, 255, .38); }
svg.flow text { fill: var(--text); }
svg.flow text[fill] { fill: var(--text-2); }
svg.flow circle { fill: var(--rec); }

/* reader */
.day h2 { margin-top: 48px; }
.hour { margin: 28px 0 0; }
.hour h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.hour h3 span { font: 14px var(--sans); color: var(--text-2); font-weight: 400; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.line time { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 4px; }
.line .who { font-size: 12.5px; font-weight: 600; color: var(--violet); display: block; }
mark { background: rgba(255, 90, 71, .32); color: #fff; border-radius: 3px; padding: 0 1px; }

/* footer */
footer.site { border-top: 1px solid var(--line); margin-top: 120px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015)); }
footer.site .foot { max-width: 1160px; margin: 0 auto; padding: 48px 24px 24px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer.site .foot p { color: var(--text-3); font-size: 14px; margin: 14px 0 0; max-width: 24em; }
footer.site nav { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 40px; font-size: 14px; align-content: start; }
footer.site nav a { color: var(--text-2); text-decoration: none; }
footer.site nav a:hover { color: #fff; }
footer.site .fine { max-width: 1160px; margin: 0 auto; padding: 0 24px 40px; color: var(--text-3); font-size: 13px; }
@media (max-width: 560px) { footer.site nav { grid-template-columns: repeat(2, auto); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
