/* Blog pages: the explorer's colors (index.html), set for reading */
:root {
  --bg: #07080b; --ink: #d9dce3; --hi: #f0f2f6; --muted: #7d8494; --line: rgba(255, 255, 255, .09);
  --amber: #f6b93b; --amber-hi: #ffd68a;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;  /* the explorer's digits */
  /* Be Vietnam Pro (fonts.css, made by web/blog/fonts.py) for English and Vietnamese. Another script adds its font after
     it on its own pages, e.g. :lang(zh) { --sans: "Be Vietnam Pro", "Noto Sans SC", sans-serif; } */
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w: 720px;  /* reading width; the blog list is wider */
  /* the warm style (design/warm-style.md, dark): a coral haze with a fine grid, pills with a peach line */
  --pill: rgba(247, 170, 150, .5); --glow: rgba(240, 120, 90, .42); --glow2: rgba(246, 185, 59, .14);
  --grid: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 32px 32px,
          linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 32px 32px;
  color-scheme: dark;
}
.index { --w: 1040px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { position: relative; margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 17px/1.75 var(--sans); }
/* the haze behind the title, the grid only inside it */
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 600px; z-index: -1; pointer-events: none;
  background: var(--grid), radial-gradient(760px 420px at calc(50% - 300px) 42%, var(--glow) 0%, var(--glow2) 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(820px 460px at calc(50% - 300px) 42%, #000 30%, transparent 75%);
  mask-image: radial-gradient(820px 460px at calc(50% - 300px) 42%, #000 30%, transparent 75%); }
main { max-width: var(--w); margin: 0 auto; padding: 36px 16px 0; }

/* header and footer run edge to edge, their content lines up with the page */
header { display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 max(16px, calc((100% - 1040px) / 2 + 16px));
  border-bottom: 1px solid var(--line); font: 600 14px var(--sans);
  position: sticky; top: 0; z-index: 5; background: rgba(7, 8, 11, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }  /* stays in reach while reading */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 18px; font: 600 15px var(--sans); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); }
header a { color: var(--muted); text-decoration: none; }
header a:hover, header a[aria-current] { color: var(--hi); }
header .brand { color: var(--ink); font-family: var(--mono); font-weight: 800; margin-right: auto; font-size: 13px; letter-spacing: .3em; white-space: nowrap; }  /* the explorer's logo */
header .brand b { color: var(--amber); font-size: 17px; letter-spacing: 0; margin-right: .35em; text-shadow: 0 0 14px rgba(246, 185, 59, .6); }
/* type: headings fill their lines; build.py keeps the last two words together, so no word stands alone */
h1 { color: var(--hi); font-size: clamp(32px, 5vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; margin: 8px 0 20px; }
.index h1 { font-size: clamp(34px, 6vw, 56px); }
h1 span { display: block; font-weight: 400; }  /* build.py: after a colon or question mark the title goes on, regular, on its own line */
h2 { color: var(--hi); font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 48px 0 12px; }
h3 { color: var(--hi); font-size: 18px; font-weight: 600; line-height: 1.45; margin: 26px 0 6px; }
p, li, figcaption { text-wrap: pretty; }
p { margin: 0 0 16px; }
.meta { display: inline-block; margin: 0; padding: 3px 12px; border: 1.5px solid var(--pill); border-radius: 999px; background: rgba(255, 255, 255, .03);
  color: var(--hi); font: 500 13px/1.6 var(--sans); }  /* a pill: the date, the reading time */
.lead { color: var(--hi); font-size: 20px; line-height: 1.65; }
a { color: var(--amber-hi); text-underline-offset: 3px; }
.d { font-family: var(--mono); color: var(--amber); font-size: .94em; white-space: nowrap; }

/* the blog list: the newest article large, the others as rows, each picture the match it talks about */
.index .lead { max-width: 40em; color: var(--ink); font-size: 19px; }
.feat a, .rows a { display: grid; color: inherit; text-decoration: none; }
.pic { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #0d0f14; box-shadow: 0 18px 40px -18px rgba(240, 120, 90, .35); }
.pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .pic img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
  a:hover .pic img { transform: scale(1.04); }
}
.txt .meta { margin-bottom: 10px; }
.txt h2 { margin: 0; transition: color .15s; }
a:hover .txt h2 { color: var(--amber-hi); }
.sum { color: var(--muted); margin: 0; }
.feat { margin-top: 40px; }
.feat a { gap: 22px; }
.feat h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; letter-spacing: -.015em; margin-bottom: 14px; }
.feat .sum { font-size: 17px; line-height: 1.7; }
.rows { list-style: none; margin: 56px 0 0; padding: 0; }
.rows li { border-top: 1px solid var(--line); }
.rows a { grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px 0; }
.rows .pic { border-radius: 14px; }
.rows h2 { font-size: 17px; line-height: 1.4; }
.rows .sum { display: none; }
@media (min-width: 700px) {
  .rows a { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; padding: 32px 0; }
  .rows h2 { font-size: 23px; line-height: 1.3; margin-bottom: 10px; }
  .rows .sum { display: block; max-width: 60ch; font-size: 16px; line-height: 1.65; }
}
@media (min-width: 860px) { .feat a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; } }

table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
th { color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; }
th, td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.d { font-size: 14px; }
.n { font-family: var(--mono); font-size: 14px; text-align: right; white-space: nowrap; padding-left: 14px; padding-right: 0; }
th.n { font-size: 11px; white-space: normal; }

.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 20px; margin: 8px 0 20px;
  padding: 0; list-style: none; font: 14px var(--mono); }
.letters b { color: var(--amber); display: inline-block; width: 1.6em; }
.letters span { color: var(--muted); }

.try { display: inline-block; margin: 4px 0 8px; padding: 10px 20px; border-radius: 999px; background: var(--amber); color: #111;
  font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.try:hover { background: var(--amber-hi); }



/* screenshots */
figure { margin: 28px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #0d0f14; }
figure.phone img { max-width: 300px; margin: 0 auto; border-radius: 28px; }
figcaption { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 10px; }
figure.phone figcaption { text-align: center; }

/* charts (drawn by web/blog/build.py) */
.chart { padding: 18px 16px 10px; border: 1px solid var(--line); border-radius: 12px; background: #0b0d11; }
.chart figcaption { margin: 0 0 10px; }
.chart figcaption b { display: block; color: var(--hi); font-size: 16px; margin-bottom: 2px; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.keys span { display: inline-flex; align-items: center; gap: 7px; }
.keys i { display: inline-block; background: var(--c); }
.keys .sq { width: 10px; height: 10px; border-radius: 2px; }
.keys .ln { width: 16px; height: 2px; border-radius: 1px; }
.keys .dot { width: 10px; height: 10px; border-radius: 50%; }
.keys .band { width: 14px; height: 10px; border-radius: 2px; opacity: .35; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 11px var(--mono); fill: #8a91a0; }
@media (max-width: 600px) { .chart text { font-size: 16px; } }  /* the svg shrinks on a phone, so its text grows */
.chart text.v { fill: var(--ink); }
.chart text.lab { fill: var(--muted); }
.chart .grid { stroke: rgba(255, 255, 255, .07); }
.chart .zero { stroke: rgba(255, 255, 255, .35); }
.chart .tick { stroke: rgba(255, 255, 255, .3); stroke-dasharray: 2 3; }
.chart .m { fill: #c98500; }
.chart .m:hover { fill: #e09a10; }
.chart polyline.e { fill: none; stroke: #3987e5; stroke-width: 2; stroke-linejoin: round; }
.chart circle.e { fill: #3987e5; stroke: #0b0d11; stroke-width: 2; }
.chart .band { fill: #3987e5; opacity: .16; }

/* the search box, in the article and at the foot of every page */
.find { display: flex; gap: 8px; margin: 16px 0 24px; padding: 6px; border: 1.5px solid var(--pill); border-radius: 999px; background: #0d0f14; }
.find input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; outline: 0; background: transparent; color: var(--hi); font: 16px var(--mono); }
.find input::placeholder { color: #5d6472; }
.find button { padding: 0 18px; border: 0; border-radius: 999px; background: var(--amber); color: #111; cursor: pointer;
  font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.find button:hover { background: var(--amber-hi); }
.find:focus-within { border-color: rgba(246, 185, 59, .5); }

.more { margin-top: 56px; }
.more ul { list-style: none; padding: 0; margin: 0; }
.more li { border-top: 1px solid var(--line); }
.more a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; color: var(--hi); text-decoration: none; font-weight: 600; }
.more a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 10px rgba(246, 185, 59, .55); transform: translateY(-.14em); }  /* an amber dot by each title, on its first line */
.more a:hover { color: var(--amber-hi); }

footer { position: relative; isolation: isolate; margin-top: 72px; padding: 28px max(16px, calc((100% - var(--w)) / 2 + 16px)) 48px; color: var(--muted); font-size: 15px; }
footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;  /* the haze again, from the lower right */
  background: var(--grid), radial-gradient(70% 140% at 100% 100%, var(--glow) 0%, var(--glow2) 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(75% 150% at 100% 100%, #000 30%, transparent 75%);
  mask-image: radial-gradient(75% 150% at 100% 100%, #000 30%, transparent 75%); }
footer p { margin-bottom: 4px; }

/* the account page (account.js): Google's and Facebook's buttons, or the person, their plan, sign out and delete */
.acct .fine { color: var(--muted); font-size: 15px; }
.acct .fail { color: #ff8a8a; }
#google { min-height: 44px; margin: 28px 0 12px; color-scheme: light; }
/* Beside Google's filled_black pill (large, 280 wide): the same size and shape, in Facebook's blue */
.fb { display: flex; align-items: center; justify-content: center; gap: 10px; width: 280px; height: 40px; margin: 0 0 28px;
      border: 0; border-radius: 20px; background: #0866FF; color: #fff; font: 500 14px/1 var(--sans); cursor: pointer; }
.fb:hover { background: #0759E0; }  /* Google's button frame is light: same scheme, so no white box around it */
.who { display: flex; align-items: center; gap: 18px; margin: 8px 0 28px; }
.who img { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line); background: #0d0f14; }
.who p { margin: 0; overflow-wrap: anywhere; }
#name { color: var(--hi); font-size: 20px; font-weight: 600; }
#email { color: var(--muted); font-size: 15px; }
.acct dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0 0 32px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acct dt { align-self: center; color: var(--muted); font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.acct dd { margin: 0; color: var(--hi); }
.btn { cursor: pointer; padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .07);
  color: var(--ink); font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.btn:hover { background: rgba(255, 255, 255, .12); }
.btn.red { border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .1); color: #ff8a8a; }
.btn.red:hover { background: rgba(255, 107, 107, .18); }
.gone { margin-top: 44px; }
.gone summary { cursor: pointer; width: max-content; color: var(--muted); font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; list-style: none; }
.gone summary::before { content: "▸"; margin-right: 8px; }
.gone[open] summary::before { content: "▾"; }
.gone summary:hover { color: var(--ink); }
.gone p { margin: 14px 0; }
footer .small { margin-top: 18px; font-size: 13px; }
footer .small a { color: var(--muted); }
footer .small a:hover { color: var(--ink); }

/* the search history on the account page (account.js): each search, when, and its ✕; the list scrolls past about 10 */
.acct h2 { font-size: 20px; margin: 0 0 10px; }
.hist { list-style: none; padding: 0; margin: 0 0 18px; max-height: 470px; overflow-y: auto; border-top: 1px solid var(--line); }
.hist li { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hist a { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--amber); font-family: var(--mono); font-size: 15px; text-decoration: none; }
.hist a:hover { text-decoration: underline; }
.hist time { flex: none; color: var(--muted); font-size: 13px; }
.hist button { flex: none; cursor: pointer; padding: 4px 9px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 14px; }
.hist button:hover { background: rgba(255, 107, 107, .1); color: #ff8a8a; }
#forget, #yes { margin: 0 10px 12px 0; }
.sure p { margin: 0 0 12px; color: var(--hi); }
.acct .contact { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
