/* Shared styles for the inner pages (brand kit, blog). The home page keeps its own inline styles. */
:root {
  --black: #000;
  --text: #F2F4F7;
  --mist: rgba(242, 244, 247, 0.62);
  --dim: rgba(242, 244, 247, 0.40);
  --line: rgba(242, 244, 247, 0.12);
  --brand: #3D5A8A;
  --accent: #7FA2DB;
  --display: "Outfit", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --sans: "Outfit", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--text); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.label.blue { color: var(--accent); }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }

/* Header */
header { position: fixed; inset: 0 0 auto; z-index: 10; background: linear-gradient(#000 0%, rgba(0,0,0,.75) 45%, transparent 100%); padding-bottom: 28px; pointer-events: none; }
header a, header button { pointer-events: auto; }
.nav { max-width: 1320px; margin: 0 auto; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; }
.nav img { height: 22px; display: block; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); transition: color .3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--mist); background: none; border: 0; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: rgba(127, 162, 219, .22); color: var(--text); }

/* Page */
main { position: relative; z-index: 2; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.page-head { padding-top: 22vh; padding-bottom: 9vh; }
.page-head h1 { margin: 22px 0 0; font-weight: 200; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -0.04em; }
.page-head .lede { margin: 28px 0 0; max-width: 460px; font-size: 17px; line-height: 1.65; color: var(--mist); }
.btn { display: inline-block; margin-top: 34px; padding: 13px 24px; border: 1px solid rgba(127, 162, 219, .45); border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--text); background: none; cursor: pointer; transition: border-color .4s, background .4s; }
.btn:hover { border-color: var(--accent); background: rgba(61, 90, 138, .22); }

.sec { padding-top: 9vh; padding-bottom: 9vh; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: 44px; align-items: baseline; }
.sec-head h2 { margin: 0; font-weight: 200; font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; }
.sec-head p { margin: 0; color: var(--mist); line-height: 1.7; max-width: 520px; font-size: 16px; }

/* Asset tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiles.two { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.tile { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .5); }
.tile .stage { height: 190px; display: grid; place-items: center; padding: 24px; }
.tile .stage img { display: block; max-width: 78%; max-height: 100%; }
.tile .stage img.mark { height: 70px; width: auto; }
.tile .stage img.avatar { height: 150px; width: 150px; max-width: none; border-radius: 14px; }
.stage.dark { background: #000; }
.stage.navy { background: #0E1520; }
.stage.light { background: #F7F7F9; }
.stage.white { background: #fff; }
.stage.blue { background: #3D5A8A; }
.tile .meta { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.tile .meta .label { color: var(--mist); }
.dl { display: flex; gap: 14px; }
.dl a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); border-bottom: 1px solid rgba(127, 162, 219, .35); padding-bottom: 1px; transition: border-color .3s; }
.dl a:hover { border-color: var(--accent); }

/* Rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; max-width: 880px; }
.rules li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--mist); line-height: 1.7; font-size: 16px; }
.rules li b { color: var(--text); font-weight: 400; }

/* Colour swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.swatch { text-align: left; font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .5); cursor: pointer; padding: 0; transition: border-color .3s; }
.swatch:hover { border-color: rgba(127, 162, 219, .55); }
.swatch .chip { height: 96px; display: block; }
.swatch .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.swatch .nm { font-size: 15px; color: var(--text); }
.swatch .hx { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--mist); }
.swatch .hint { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.swatch.light-chip .chip { border-bottom: 1px solid var(--line); }

/* Type specimens */
.type { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type .card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: rgba(0, 0, 0, .5); }
.type .big { margin: 18px 0 14px; font-weight: 200; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.type .big.mono { font-family: var(--mono); font-weight: 300; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.type p { margin: 0; color: var(--mist); font-size: 15px; line-height: 1.7; }

/* Boilerplate */
.boiler { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.boiler .card { border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 20px; background: rgba(0, 0, 0, .5); display: flex; flex-direction: column; align-items: flex-start; }
.boiler p { margin: 14px 0 0; line-height: 1.75; font-size: 16px; color: var(--text); }
.boiler .btn { margin-top: 20px; padding: 9px 18px; font-size: 11px; }

.press { margin-top: 36px; color: var(--mist); font-size: 16px; line-height: 1.7; }
.press a { color: var(--accent); border-bottom: 1px solid rgba(127, 162, 219, .4); }

/* Subscribe (locked for now) */
.subscribe { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 0 28px 10vh; text-align: center; }
.subscribe p { margin: 14px auto 0; max-width: 440px; color: var(--mist); font-size: 16px; line-height: 1.7; }
.sub-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.sub-form input { width: min(100%, 380px); height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(242, 244, 247, .14); background: rgba(242, 244, 247, .05); color: var(--dim); font: inherit; font-size: 16px; }
.sub-form input::placeholder { color: var(--dim); }
.sub-form button { height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: rgba(242, 244, 247, .1); color: var(--dim); font: inherit; font-weight: 400; font-size: 16px; }
.sub-form input:disabled, .sub-form button:disabled { cursor: not-allowed; }
.sub-soon { margin-top: 16px; }

/* Sources page */
.src-list { max-width: 820px; }
  /* About this observation: a short illustrated explainer above the citation */
  .about { margin: 0 0 8px; max-width: 540px; }
  .about .lead { margin: 0 0 18px; font-family: var(--display); font-weight: 300; font-size: 17px; line-height: 1.55; color: var(--text); }
  .about-fig { margin: 0 0 18px; padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 18, 30, .6); }
  .about-fig svg { display: block; width: 100%; height: auto; }
  .about-fig figcaption { margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--dim); }
  .about-block h4 { margin: 18px 0 4px; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .about-block p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--mist); }
  .about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
  .about-facts > div { display: flex; flex-direction: column; gap: 5px; padding: 12px; background: rgba(6, 10, 18, .96); }
  .about-facts .k { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
  .about-facts .v { font-family: var(--display); font-weight: 300; font-size: 15px; line-height: 1.35; color: var(--text); }
  .about-facts .v a { margin-left: 4px; color: var(--accent); font-size: 11px; border: 0; }
  .about-h { margin: 26px 0 -2px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
  html[lang="zh-Hant-TW"] .about-block p { letter-spacing: .03em; line-height: 1.85; }
.src-entry { padding: 22px 0; border-top: 1px solid var(--line); }
.src-entry:last-child { border-bottom: 1px solid var(--line); }
.src-entry h3 { margin: 10px 0 14px; font-family: var(--display); font-weight: 300; font-size: 14px; line-height: 1.55; letter-spacing: 0; }
.src-entry dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 6px 18px; }
.src-entry dt { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.src-entry dd { margin: 0; color: var(--mist); font-size: 11.5px; line-height: 1.65; }
.src-entry dd ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.src-entry dd a { color: var(--text); border-bottom: 1px solid rgba(127, 162, 219, .3); transition: border-color .3s, color .3s; }
.src-entry dd a:hover { color: var(--accent); border-color: var(--accent); }

/* Footer */
footer { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 40px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
footer .label { line-height: 1.7; }
footer img { height: 18px; opacity: .7; }
.foot-main { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.foot-side { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); transition: color .3s; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--accent); }
.foot-links a.mail-link { text-transform: none; letter-spacing: .04em; color: var(--text); }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--mist); transition: color .3s, border-color .3s, background .3s; }
.social a:hover { color: var(--text); border-color: var(--accent); background: rgba(61, 90, 138, .22); }
.social svg { width: 15px; height: 15px; display: block; }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* Traditional Chinese */
html[lang="zh-Hant-TW"] h1, html[lang="zh-Hant-TW"] h2 { letter-spacing: 0.04em; font-weight: 300; line-height: 1.25; }
html[lang="zh-Hant-TW"] .label { letter-spacing: .14em; }
html[lang="zh-Hant-TW"] .lede, html[lang="zh-Hant-TW"] p, html[lang="zh-Hant-TW"] li { letter-spacing: .04em; line-height: 1.85; }

.ph { margin-left: 10px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); vertical-align: middle; }

/* Blog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chips button { font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--mist); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.chips button:hover { color: var(--text); }
.chips button[aria-pressed="true"] { color: var(--text); border-color: rgba(127, 162, 219, .5); background: rgba(61, 90, 138, .2); }
.posts { list-style: none; margin: 0; padding: 0; }
.post { display: grid; grid-template-columns: 150px 1fr; gap: 12px 24px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.post:last-child { border-bottom: 1px solid var(--line); }
.post .meta { display: flex; flex-direction: column; gap: 8px; }
.post h3 { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.2; }
.post p { margin: 10px 0 0; color: var(--mist); line-height: 1.7; font-size: 16px; max-width: 560px; }
.post a h3 { transition: color .3s; }
.post a:hover h3 { color: var(--accent); }
.empty { padding: 40px 0; color: var(--mist); font-size: 16px; line-height: 1.7; border-top: 1px solid var(--line); }

/* Article */
.back { display: inline-block; margin-bottom: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); transition: color .3s; }
.back:hover { color: var(--accent); }
.article-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.hero-logo { margin: 0 0 7vh; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(ellipse 70% 90% at 50% 130%, rgba(61, 90, 138, .38), transparent 70%), #000; display: grid; place-items: center; padding: 11vh 24px; }
.hero-logo img { width: min(62%, 380px); display: block; }
.article { max-width: 680px; padding-bottom: 8vh; }
.article p { margin: 0 0 24px; font-size: 19px; line-height: 1.8; color: var(--mist); }
.article .lead { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.35; color: var(--text); font-weight: 200; letter-spacing: -0.02em; margin-bottom: 30px; }
.article ul { list-style: none; margin: 6px 0 34px; padding: 0; }
.article li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--mist); line-height: 1.7; font-size: 17px; }
.article li:last-child { border-bottom: 1px solid var(--line); }
.article li b { font-family: var(--display); font-weight: 300; font-size: 20px; color: var(--text); }
.article a { color: var(--accent); border-bottom: 1px solid rgba(127, 162, 219, .4); }
.article .sign { margin-top: 38px; font-family: var(--display); font-weight: 200; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; color: var(--text); }

@media (max-width: 860px) {
  .hero-logo { padding: 8vh 20px; }
  .article p { font-size: 17px; }
  .article li { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .post { grid-template-columns: 1fr; gap: 14px; }
  .post { padding: 22px 0; }
  .post .meta { flex-direction: row; align-items: center; gap: 14px; }
  .wrap { padding: 0 20px; }
  .nav { padding: 18px 20px; }
  .nav-right { gap: 0; }
  .nav-links { display: none; }
  header { background: linear-gradient(#000 0%, #000 58%, transparent 100%); }
  .page-head { padding-top: 17vh; padding-bottom: 5vh; }
  .sec { padding-top: 6vh; padding-bottom: 6vh; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .tiles, .tiles.two, .type, .boiler, .rules { grid-template-columns: 1fr; }
  .tile .stage { height: 120px; padding: 18px; }
  .tile .stage img.avatar { height: 110px; width: 110px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .btn { margin-top: 26px; }
  .src-entry dl { grid-template-columns: 1fr; gap: 2px; }
  .src-entry dt { margin-top: 8px; }
  footer { padding: 32px 20px; }
  .subscribe { padding: 0 20px 7vh; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
