@charset "UTF-8";
/**
 * huihao.github.io — the site stylesheet.
 *
 * The layout is plain CSS Grid and the breakpoints are plain media
 * queries, so no grid or breakpoint library is needed any more.
 */
/**
 * Design tokens.
 *
 * The palette follows the Apple Human Interface Guidelines system colours
 * (iOS / macOS) so the site reads like a native app: the same semantic
 * background, label, fill and separator colours, in both light and dark.
 *
 * Everything is exposed as a custom property, so the dark appearance is a
 * single media query away and the runtime can still override a token.
 */
:root {
  color-scheme: light dark;
  /* Typography — the system stack, so macOS / iOS get SF Pro and every
     other platform gets the closest equivalent. */
  --font-text:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, "Cascadia Code", "Roboto Mono",
    "Courier New", monospace;
  /* Type scale — the sizes Apple uses for large titles down to captions. */
  --text-large-title: 2.125rem; /* 34px */
  --text-title-1: 1.75rem; /* 28px */
  --text-title-2: 1.375rem; /* 22px */
  --text-title-3: 1.25rem; /* 20px */
  --text-headline: 1.0625rem; /* 17px */
  --text-body: 1rem; /* 16px */
  --text-callout: 1rem;
  --text-subhead: 0.9375rem; /* 15px */
  --text-footnote: 0.8125rem; /* 13px */
  --text-caption: 0.75rem; /* 12px */
  --tracking-tight: -0.022em;
  --tracking-tightest: -0.03em;
  --tracking-wide: 0.04em;
  /* Spacing — a 4pt grid, the way Apple lays things out. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  /* Corner radii — iOS keeps them generously round. */
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-xlarge: 22px;
  --radius-continuous: 28px;
  --radius-pill: 999px;
  /* Motion — Apple's standard easing plus the springy one used for
     interactive surfaces. */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast: 0.15s;
  --duration: 0.3s;
  --duration-slow: 0.5s;
  /* Layout */
  --container: 1040px;
  --gutter: 40px;
  --sidebar-width: 280px;
  /* The measure of a reading column, the way Apple Books and Safari
     keep the line length comfortable. */
  --measure: 720px;
  /* The artwork of a post, in the proportions the site has always used. */
  --media-ratio: 570 / 144;
  /* Accent — the cyan the site has always used, tuned for both appearances. */
  --accent: #20c6f2;
  --accent-strong: #0aa9d8;
  --accent-tint: rgb(32 198 242 / 12%);
  --accent-tint-hover: rgb(32 198 242 / 20%);
  /* The same cyan as a text colour. The bright cyan is a fill, not a
     label, so the text variant is deepened until it clears WCAG AA. */
  --accent-text: #0071a8;
  --accent-text-hover: #005a86;
  /* Light appearance */
  --blue: #007aff;
  --indigo: #5856d6;
  --green: #34c759;
  --orange: #ff9500;
  --pink: #ff2d55;
  --purple: #af52de;
  --red: #ff3b30;
  --teal: #5ac8fa;
  --yellow: #fc0;
  --gray: #8e8e93;
  --label: #000;
  /* Kept opaque enough to clear WCAG AA (4.5:1) against white and
     against the grouped background. */
  --label-secondary: rgb(60 60 67 / 80%);
  --label-tertiary: rgb(60 60 67 / 72%);
  --label-quaternary: rgb(60 60 67 / 18%);
  --background: #fff;
  --background-elevated: #fff;
  --background-secondary: #f2f2f7;
  --background-grouped: #f2f2f7;
  --background-card: #fff;
  --fill: rgb(120 120 128 / 20%);
  --fill-secondary: rgb(120 120 128 / 16%);
  --fill-tertiary: rgb(118 118 128 / 12%);
  --separator: rgb(60 60 67 / 29%);
  --separator-opaque: #c6c6c8;
  --border: rgb(60 60 67 / 16%);
  /* The tile behind the category artwork. It stays light in both
     appearances, the way an app icon keeps its own colours. */
  --badge-surface: #fff;
  /* The translucent layer iOS uses for bars and sheets. */
  --material: rgb(255 255 255 / 72%);
  --material-thick: rgb(255 255 255 / 88%);
  /* The refraction recipe of a glass surface: saturate the colours behind
     it, then blur them. */
  --glass-filter: saturate(180%) blur(20px);
  --glass-border: rgb(255 255 255 / 60%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 4%), 0 1px 8px rgb(0 0 0 / 4%);
  --shadow-md: 0 2px 6px rgb(0 0 0 / 5%), 0 8px 24px rgb(0 0 0 / 7%);
  --shadow-lg: 0 8px 32px rgb(0 0 0 / 12%);
  /* The card surface: a hairline plus a wide, very soft shadow. */
  --shadow-card: 0 1px 2px rgb(0 0 0 / 4%), 0 12px 32px rgb(0 0 0 / 6%);
  --selection: rgb(32 198 242 / 24%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #0a84ff;
    --indigo: #5e5ce6;
    --green: #30d158;
    --orange: #ff9f0a;
    --pink: #ff375f;
    --purple: #bf5af2;
    --red: #ff453a;
    --teal: #64d2ff;
    --yellow: #ffd60a;
    --gray: #8e8e93;
    --label: #fff;
    --label-secondary: rgb(235 235 245 / 70%);
    --label-tertiary: rgb(235 235 245 / 58%);
    --label-quaternary: rgb(235 235 245 / 18%);
    --background: #000;
    --background-elevated: #1c1c1e;
    --background-secondary: #1c1c1e;
    --background-grouped: #000;
    --background-card: #1c1c1e;
    --fill: rgb(120 120 128 / 36%);
    --fill-secondary: rgb(120 120 128 / 32%);
    --fill-tertiary: rgb(118 118 128 / 24%);
    --separator: rgb(84 84 88 / 65%);
    --separator-opaque: #38383a;
    --border: rgb(84 84 88 / 40%);
    --badge-surface: rgb(255 255 255 / 88%);
    --material: rgb(28 28 30 / 72%);
    --material-thick: rgb(28 28 30 / 88%);
    --glass-border: rgb(255 255 255 / 12%);
    --accent: #4ed4ff;
    --accent-strong: #7ce0ff;
    --accent-tint: rgb(78 212 255 / 16%);
    --accent-tint-hover: rgb(78 212 255 / 26%);
    --accent-text: #4ed4ff;
    --accent-text-hover: #7ce0ff;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%), 0 1px 8px rgb(0 0 0 / 24%);
    --shadow-md: 0 2px 6px rgb(0 0 0 / 36%), 0 8px 24px rgb(0 0 0 / 40%);
    --shadow-lg: 0 8px 32px rgb(0 0 0 / 56%);
    --shadow-card: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 44%);
    --selection: rgb(78 212 255 / 30%);
  }
}
/**
 * A small modern reset.
 *
 * Replaces normalize-scss 6 (normalize.css 6, from 2017) with just the rules
 * the site needs and the defaults every browser agrees on today.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
       text-size-adjust: 100%;
  line-height: 1.15;
  -moz-tab-size: 4;
       tab-size: 4;
}

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
}

textarea {
  resize: vertical;
}

a {
  color: inherit;
  -webkit-text-decoration: none;
  text-decoration: none;
}

hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--separator);
}

::-moz-selection {
  background: var(--selection);
}

::selection {
  background: var(--selection);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/**
 * Base typography and page frame.
 */
body {
  min-height: 100vh;
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--label);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  transition: background-color var(--duration) var(--ease-standard), color var(--duration) var(--ease-standard);
}

/* The list is a grouped page, the cards float on top of it. The reader
   is a plain page, the way a book is. */
body.layout-list {
  background-color: var(--background-grouped);
}

#wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* The soft colour wash behind the page, the way a native app tints the
   top of a grouped list. */
#wrapper::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 520px;
  content: "";
  pointer-events: none;
  background: radial-gradient(60% 100% at 12% 0%, var(--accent-tint) 0%, transparent 70%), radial-gradient(50% 90% at 92% 4%, rgba(88, 86, 214, 0.08) 0%, transparent 72%);
}

@media (prefers-color-scheme: dark) {
  #wrapper::before {
    background: radial-gradient(60% 100% at 12% 0%, rgba(78, 212, 255, 0.12) 0%, transparent 70%), radial-gradient(50% 90% at 92% 4%, rgba(94, 92, 230, 0.16) 0%, transparent 72%);
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
}

.icon {
  background-image: url("../img/icon.png");
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;
}

/* The sprite is drawn in black. In the dark appearance every glyph is
   flattened to white, the way a monochrome symbol behaves in the system. */
@media (prefers-color-scheme: dark) {
  .icon {
    filter: brightness(0) invert(1);
  }
}
.icon-arrow {
  width: 13px;
  height: 19px;
  background-position: -10px -10px;
}

.icon-calendar {
  width: 15px;
  height: 19px;
  background-position: -43px -10px;
}

.icon-chrome {
  width: 18px;
  height: 19px;
  background-position: -78px -10px;
}

.icon-chrome2 {
  width: 18px;
  height: 19px;
  background-position: -116px -10px;
}

.icon-circle {
  width: 15px;
  height: 19px;
  background-position: -10px -49px;
}

.icon-cross {
  width: 13px;
  height: 19px;
  background-position: -45px -49px;
}

.icon-css {
  width: 15px;
  height: 19px;
  background-position: -79px -49px;
}

.icon-css3 {
  width: 15px;
  height: 19px;
  background-position: -114px -49px;
}

.icon-facebook {
  width: 12px;
  height: 27px;
  background-position: -10px -88px;
}

.icon-git {
  width: 15px;
  height: 19px;
  background-position: -42px -88px;
}

.icon-github {
  width: 27px;
  height: 27px;
  background-position: -77px -88px;
}

.icon-html {
  width: 15px;
  height: 19px;
  background-position: -124px -88px;
}

.icon-html5 {
  width: 15px;
  height: 19px;
  background-position: -42px -127px;
}

.icon-js {
  width: 19px;
  height: 19px;
  background-position: -124px -127px;
}

.icon-linkdin {
  width: 23px;
  height: 27px;
  background-position: -154px -10px;
}

.icon-location {
  width: 12px;
  height: 19px;
  background-position: -192px -5px;
}

.icon-node {
  width: 15px;
  height: 19px;
  background-position: -159px -57px;
}

.icon-square {
  width: 16px;
  height: 19px;
  background-position: -163px -96px;
}

.icon-tag {
  width: 13px;
  height: 19px;
  background-position: -77px -135px;
}

.icon-triangle {
  width: 18px;
  height: 19px;
  background-position: -163px -135px;
}

.icon-default {
  width: 27px;
  height: 27px;
  background-position: -77px -88px;
}

/**
 * Shared primitives: links, the pill button and the category artwork.
 */
a {
  color: var(--accent-text);
  -webkit-text-decoration: none;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

/* Visited links keep the accent, the way they always have. */
a:link,
a:visited {
  color: var(--accent-text);
}

a:hover,
a:active {
  color: var(--accent-text-hover);
}

/* The small pill used by the "read more" button and by the pagination. */
.base-link {
  display: inline-block;
  cursor: pointer;
}
.base-link span {
  cursor: pointer;
}

/* Category artwork. The badge falls back to the JavaScript mark, so a post
   without a known category still gets a badge. */
.box {
  background-color: var(--badge-surface);
  background-image: url("../img/tag-icon-javascript.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.tag-icon-default {
  background-image: url("../img/tag-icon-javascript.png");
}

.tag-icon-javascript {
  background-image: url("../img/tag-icon-javascript.png");
}

.tag-icon-css {
  background-image: url("../img/tag-icon-css.png");
}

.tag-icon-html {
  background-image: url("../img/tag-icon-html.png");
}

.tag-icon-skill {
  background-image: url("../img/tag-icon-css2.png");
}

.tag-icon-ide {
  background-image: url("../img/tag-icon-html2.png");
}

/**
 * The header: a translucent bar on top and the profile card underneath.
 */
#wrapper header {
  position: relative;
  z-index: 10;
  /* The ambient washes are allowed to bleed past the edge of the header,
     but they must never widen the page. `clip` keeps the sticky bar
     working, unlike `hidden`. */
  overflow-x: clip;
  /* The thin bar on top. It floats above the page with the material
     treatment iOS gives its bars. */
}
#wrapper header .top-line {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 52px;
  border-bottom: 1px solid var(--separator);
  background: var(--material);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
#wrapper header .top-line .bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--space-5);
}
#wrapper header .top-line .brand {
  font-family: var(--font-display);
  font-size: var(--text-subhead);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--label);
}
#wrapper header .top-line {
  /* Once the page moves, the bar lifts a little off the content. */
}
#wrapper header .top-line.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 28px rgba(0, 0, 0, 0.08);
}
#wrapper header .con {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: end;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-6) var(--space-5) var(--space-5);
}
#wrapper header {
  /* Profile block */
}
#wrapper header .info {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}
#wrapper header .info .avator {
  position: relative;
  flex: none;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--background-card);
  background-image: url("../img/avator.jpeg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 0 4px var(--background), 0 0 0 6px var(--accent), var(--shadow-md);
  transition: transform var(--duration) var(--ease-spring);
}
#wrapper header .info .avator:hover {
  transform: scale(1.04);
}
#wrapper header .info .basic {
  min-width: 0;
  padding-top: var(--space-1);
}
#wrapper header .info .basic .name {
  font-family: var(--font-display);
  font-size: var(--text-large-title);
  font-weight: 700;
  letter-spacing: var(--tracking-tightest);
  line-height: 1.1;
  color: var(--label);
}
#wrapper header .info .basic .basic-line {
  width: 72px;
  height: 2px;
  margin: var(--space-3) 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent) 0%, rgba(32, 198, 242, 0) 100%);
}
#wrapper header .info .basic .position {
  font-size: var(--text-headline);
  font-weight: 500;
  color: var(--label-secondary);
}
#wrapper header .info .basic .icon-con {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
#wrapper header .info .basic .icon-con .icon {
  margin: 0;
  opacity: 0.75;
  transition: opacity var(--duration-fast) var(--ease-standard), transform var(--duration) var(--ease-spring);
}
#wrapper header .info .basic .icon-con .icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}
#wrapper header .info .basic .location {
  display: flex;
  align-items: center;
  margin-top: var(--space-3);
  font-size: var(--text-footnote);
  color: var(--label-tertiary);
}
#wrapper header .info .basic .location .icon {
  position: static;
  margin-right: var(--space-2);
  opacity: 0.6;
}
#wrapper header {
  /* Navigation, as a segmented control. */
}
#wrapper header nav {
  padding-bottom: var(--space-2);
}
#wrapper header nav ul {
  position: static;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-medium);
  background: var(--fill);
  list-style: none;
}
#wrapper header nav ul li {
  float: none;
  margin: 0;
}
#wrapper header nav ul a {
  display: block;
  padding: 6px 18px;
  border-radius: 9px;
  font-size: var(--text-subhead);
  font-weight: 500;
  color: var(--label-secondary);
  transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
#wrapper header nav ul a:hover {
  color: var(--label);
  background: var(--fill-tertiary);
}
#wrapper header nav ul a.active {
  color: var(--label);
  background: var(--background-card);
  box-shadow: var(--shadow-sm);
}
#wrapper header nav ul a:active {
  transform: scale(0.97);
}
#wrapper header {
  /* The decorative circles. They are blurred into soft ambient washes,
     the way the wallpaper colours bleed behind a native window. */
}
#wrapper header .circle-1,
#wrapper header .circle-2,
#wrapper header .circle-3,
#wrapper header .circle-4 {
  position: absolute;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
#wrapper header .circle-1 {
  top: 96px;
  left: 208px;
  width: 124px;
  height: 124px;
  background-image: url("../img/Oval1.png");
  filter: blur(28px);
  opacity: 0.4;
}
#wrapper header .circle-2 {
  top: 56px;
  left: 252px;
  width: 158px;
  height: 158px;
  background-image: url("../img/Oval2.png");
  filter: blur(34px);
  opacity: 0.35;
}
#wrapper header .circle-3 {
  top: -46px;
  left: 346px;
  width: 272px;
  height: 272px;
  background-image: url("../img/Oval4.png");
  filter: blur(46px);
  opacity: 0.28;
}
#wrapper header .circle-4 {
  top: 55px;
  left: 493px;
  width: 210px;
  height: 210px;
  background-image: url("../img/Oval3.png");
  filter: blur(40px);
  opacity: 0.3;
}

@media (width <= 760px) {
  #wrapper header .con {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    padding-block: var(--space-5) var(--space-4);
  }
  #wrapper header .info {
    gap: var(--space-4);
  }
  #wrapper header .info .avator {
    width: 60px;
    height: 60px;
    box-shadow: 0 0 0 3px var(--background), 0 0 0 5px var(--accent), var(--shadow-sm);
  }
  #wrapper header .info .basic .name {
    font-size: var(--text-title-1);
  }
  #wrapper header .info .basic .position {
    font-size: var(--text-subhead);
  }
  #wrapper header .info .basic .basic-line {
    margin: var(--space-2) 0;
  }
  #wrapper header nav {
    justify-self: start;
    padding-bottom: 0;
  }
  #wrapper header nav ul a {
    padding: 5px 16px;
  }
  #wrapper header .circle-1,
  #wrapper header .circle-2,
  #wrapper header .circle-3,
  #wrapper header .circle-4 {
    opacity: 0.2;
  }
  #wrapper header .circle-1 {
    top: 12px;
    left: -40px;
  }
  #wrapper header .circle-2 {
    top: -20px;
    left: 10px;
  }
  #wrapper header .circle-3 {
    top: -110px;
    left: 90px;
  }
  #wrapper header .circle-4 {
    top: -50px;
    right: -30px;
    left: auto;
  }
}
/**
 * The article list: cards, the tag badge and the pagination.
 *
 * The card follows the shape of a native app: a media band on top, a
 * category kicker, a headline, a short excerpt and a footer row with the
 * read more action and the date.
 */
#main .categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
#main .categories-list .categories-list-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--fill);
  color: var(--label-secondary);
  font-size: var(--text-footnote);
  line-height: 1.4;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
#main .categories-list .categories-list-item i {
  position: static;
  opacity: 0.7;
}
#main .categories-list .categories-list-item:hover {
  background: var(--accent-tint);
  color: var(--accent-text-hover);
}
#main .category h2 {
  margin: var(--space-6) 0 var(--space-4);
  font-size: var(--text-title-3);
  color: var(--label);
}
#main .category {
  /* The category index is a compact list, not a media card. */
}
#main .category article.article {
  margin-bottom: var(--space-3);
  padding: var(--space-4) var(--space-5);
}
#main .category article.article:hover {
  transform: translateY(-1px);
}
#main .category article.article .con h1 {
  margin: 0;
  font-size: var(--text-headline);
  font-weight: 600;
}
#main .category article.article .date {
  margin-top: var(--space-1);
  font-size: var(--text-caption);
}
#main article.article {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: var(--space-5);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-continuous);
  background: var(--background-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease-spring), box-shadow var(--duration) var(--ease-standard), border-color var(--duration) var(--ease-standard);
}
#main article.article:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 198, 242, 0.32);
  box-shadow: var(--shadow-lg);
}
#main article.article {
  /* The media band. It sits on top of the card and keeps the radius of
     the card's top corners. */
}
#main article.article .cover {
  display: block;
  overflow: hidden;
  background: var(--fill-tertiary);
}
#main article.article .cover .img {
  aspect-ratio: var(--media-ratio);
  overflow: hidden;
}
#main article.article .cover .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-spring);
}
#main article.article:hover .cover .img img {
  transform: scale(1.04);
}
#main article.article .con {
  padding: var(--space-5);
  /* The kicker: the category artwork next to the category name. */
}
#main article.article .con .meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
#main article.article .con .meta .diamond {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
}
#main article.article .con .meta .diamond .box {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background-color: var(--badge-surface);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), var(--shadow-sm);
}
#main article.article .con .meta .cat {
  font-size: var(--text-footnote);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-text);
}
#main article.article .con h1 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-title-2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--tracking-tight);
  color: var(--label);
}
#main article.article .con h1 a {
  color: inherit;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard);
}
#main article.article .con h1 a:hover {
  color: var(--accent-text-hover);
}
#main article.article .con .tip {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: var(--text-subhead);
  line-height: 1.65;
  color: var(--label-secondary);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
#main article.article .con {
  /* The footer of the card: the action on the left, the date on the
     right, the way a native list row is laid out. */
}
#main article.article .con .addition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--separator);
}
#main article.article .con .addition .more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: auto;
  padding: 5px 10px 5px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-text);
  font-size: var(--text-footnote);
  font-weight: 500;
  line-height: 1.3;
  transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-spring);
  /* The disclosure chevron. */
}
#main article.article .con .addition .more::after {
  content: "›";
  font-size: 1.1em;
  line-height: 1;
  transform: translateY(-1px);
}
#main article.article .con .addition .more:hover {
  background-color: var(--accent-tint-hover);
  color: var(--accent-text-hover);
}
#main article.article .con .addition .more:active {
  transform: scale(0.96);
}
#main article.article .con .addition .date {
  margin: 0;
  font-size: var(--text-footnote);
  line-height: 1.4;
  color: var(--label-tertiary);
}
#main {
  /* Pagination, as a pair of capsule buttons around the page counter. */
}
#main .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  font-size: var(--text-footnote);
}
#main .page .pager {
  flex: 1 1 auto;
  color: var(--label-secondary);
  text-align: center;
}
#main .page .next,
#main .page .prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 88px;
  height: 36px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--background-card);
  color: var(--accent-text);
  font-size: var(--text-footnote);
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-spring);
}
#main .page .next:hover,
#main .page .prev:hover {
  background: var(--accent-tint);
}
#main .page .next:active,
#main .page .prev:active {
  transform: scale(0.96);
}
#main .page .prev {
  float: none;
}
#main .page .next {
  float: none;
}

@media (width <= 760px) {
  #main article.article {
    border-radius: var(--radius-large);
  }
  #main article.article .con {
    padding: var(--space-4);
  }
  #main article.article .con h1 {
    font-size: var(--text-title-3);
  }
  #main article.article .con .tip {
    font-size: var(--text-subhead);
  }
  #main .page .next,
  #main .page .prev {
    min-width: 72px;
    padding: 0 var(--space-3);
  }
}
/**
 * The single post view: the large title block above the article body.
 *
 * The body is kept to a comfortable measure, the way a native reader
 * lays the text out, instead of stretching over the full page.
 */
#container .article-content {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
}
#container .article-content .title {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: auto;
  padding: var(--space-6) 0 var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--separator);
  /* The category artwork, kept as an app icon: an upright squircle
     with the artwork inside it. */
}
#container .article-content .title .diamond {
  flex: none;
  width: 72px;
  height: 72px;
  margin: 0;
}
#container .article-content .title .diamond .box {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 17px;
  background-color: var(--badge-surface);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), var(--shadow-md);
}
#container .article-content .title .heading {
  flex: 1 1 auto;
  min-width: 0;
}
#container .article-content .title .heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-large-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--tracking-tightest);
  color: var(--label);
}
#container .article-content .title .heading .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-footnote);
  line-height: 1.4;
  color: var(--label-secondary);
}
#container .article-content .title .heading .meta .cat {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
#container .article-content .title .heading .meta .date {
  margin: 0;
}
#container .article-content .title .heading .meta {
  /* Filled in by the script, empty when JavaScript is off. */
}
#container .article-content .title .heading .meta .read-time:not(:empty)::before {
  content: "·";
  margin-right: var(--space-2);
}
#container .article-content .con {
  padding-top: 0;
}
#container .article-content {
  /* The way back to the list. */
}
#container .article-content .article-footer {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--separator);
}
#container .article-content .article-footer .back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--fill);
  color: var(--accent-text);
  font-size: var(--text-footnote);
  font-weight: 500;
  transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-spring);
}
#container .article-content .article-footer .back::before {
  content: "‹";
  font-size: 1.2em;
  line-height: 1;
}
#container .article-content .article-footer .back:hover {
  background: var(--accent-tint);
}
#container .article-content .article-footer .back:active {
  transform: scale(0.97);
}

@media (width <= 760px) {
  #container .article-content .title {
    gap: var(--space-4);
    padding: var(--space-5) 0 var(--space-4);
    margin-bottom: var(--space-5);
  }
  #container .article-content .title .diamond {
    width: 52px;
    height: 52px;
  }
  #container .article-content .title .diamond .box {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }
  #container .article-content .title .heading h1 {
    font-size: var(--text-title-1);
  }
}
/**
 * The sidebar, laid out like an inset grouped list.
 */
#container aside .aside-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: auto;
  margin-bottom: var(--space-2);
  padding-inline: var(--space-1);
  line-height: 1.4;
  font-size: var(--text-footnote);
  font-weight: 600;
  color: var(--label-secondary);
}
#container aside .aside-header i {
  position: static;
  top: 0;
  left: 0;
  min-width: 26px;
  min-height: 26px;
  padding: 4px;
  border-radius: 7px;
  background-color: var(--accent-tint);
  background-origin: content-box;
}
#container aside .aside-header span {
  position: static;
  left: auto;
  top: auto;
}
#container aside .aside-header span a {
  color: inherit;
}
#container aside section {
  margin-bottom: var(--space-6);
}
#container aside ul {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--background-card);
  box-shadow: var(--shadow-sm);
  list-style: none;
  overflow: hidden;
}
#container aside ul li {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  height: auto;
  line-height: 1.4;
  font-size: var(--text-subhead);
  color: var(--label);
}
#container aside ul li + li::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 52px;
  height: 1px;
  content: "";
  background: var(--separator);
}
#container aside ul li i {
  flex: none;
  min-width: 30px;
  min-height: 30px;
  padding: 5px;
  border-radius: 8px;
  background-color: var(--fill);
  background-origin: content-box;
  opacity: 0.85;
}
#container aside ul li span {
  flex: 1 1 auto;
  min-width: 0;
}
#container aside ul li span a {
  color: inherit;
  transition: color var(--duration-fast) var(--ease-standard);
}
#container aside ul li span a:hover {
  color: var(--accent-text-hover);
}
#container aside ul li::after {
  flex: none;
  content: "›";
  color: var(--label-tertiary);
  font-size: var(--text-title-3);
  line-height: 1;
}

/**
 * The footer: a soft colour wash that closes the page.
 */
#wrapper footer {
  position: relative;
  margin-top: auto;
  padding: var(--space-8) var(--space-5) var(--space-6);
  overflow: hidden;
  border-top: 1px solid var(--separator);
  background: linear-gradient(180deg, rgba(32, 198, 242, 0) 0%, rgba(32, 198, 242, 0.1) 55%, rgba(32, 198, 242, 0.2) 100%);
  /* A blurred accent bloom, the way the wallpaper colours bleed into
     the bottom of a native screen. */
}
#wrapper footer::before {
  position: absolute;
  bottom: -160px;
  left: 50%;
  width: 640px;
  height: 320px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(32, 198, 242, 0.26), transparent 72%);
  filter: blur(24px);
}
#wrapper footer p {
  position: relative;
  margin: 0;
  text-align: center;
  font-size: var(--text-footnote);
  color: var(--label-secondary);
}
#wrapper footer .copyright {
  font-weight: 500;
}
#wrapper footer .subtitle {
  margin-top: var(--space-1);
  color: var(--label-tertiary);
}
#wrapper footer .subtitle a {
  color: var(--accent-text);
  font-weight: 500;
  -webkit-text-decoration: none;
  text-decoration: none;
}
#wrapper footer .subtitle a:hover, #wrapper footer .subtitle a:focus-visible {
  color: var(--accent-text-hover);
  -webkit-text-decoration: underline;
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  #wrapper footer {
    background: linear-gradient(180deg, rgba(78, 212, 255, 0) 0%, rgba(78, 212, 255, 0.08) 55%, rgba(78, 212, 255, 0.16) 100%);
  }
  #wrapper footer::before {
    background: radial-gradient(closest-side, rgba(78, 212, 255, 0.2), transparent 72%);
  }
}
/**
 * The surfaces that the script drives: the reading progress, the copy
 * buttons on the code blocks and the back to top button.
 */
/* The thin progress line under the top bar. */
.reading-progress {
  position: fixed;
  z-index: 30;
  top: 50px;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform 0.1s linear;
}

/* A code block gets a small bar of its own, the way a native code view
   does, with the language and the copy action in the corner. */
.code-block {
  position: relative;
  margin: 0 0 var(--space-5);
}
.code-block pre {
  margin-bottom: 0;
}
.code-block .copy-code {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--material-thick);
  box-shadow: var(--shadow-sm);
  color: var(--label-secondary);
  font-family: var(--font-text);
  font-size: var(--text-caption);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-spring);
}
.code-block .copy-code .copy-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.code-block .copy-code .copy-action {
  color: var(--accent-text);
  font-weight: 500;
}
.code-block .copy-code:hover {
  color: var(--label);
}
.code-block .copy-code:active {
  transform: scale(0.96);
}
.code-block:hover .copy-code,
.code-block .copy-code:focus-visible {
  opacity: 1;
}
.code-block .copy-code.is-copied .copy-action {
  color: var(--green);
}

/* Without a pointer there is no hover, so the action stays visible. */
@media (hover: none) {
  .code-block .copy-code {
    opacity: 1;
  }
}
/* The button that takes the reader back to the top of the article. */
.back-to-top {
  position: fixed;
  z-index: 25;
  right: max(var(--space-5), env(safe-area-inset-right));
  bottom: max(var(--space-5), env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--material-thick);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  box-shadow: var(--shadow-md);
  color: var(--accent-text);
  font-size: var(--text-headline);
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity var(--duration) var(--ease-standard), transform var(--duration) var(--ease-spring);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.back-to-top:active {
  transform: scale(0.92);
}

#wrapper #container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--gutter);
  align-items: start;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-6) var(--space-5);
}
#wrapper {
  /* A post spans the whole grid, it has no sidebar. */
}
#wrapper #container > .article-content {
  grid-column: 1/-1;
}

@media (width <= 900px) {
  #wrapper #container {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}
@media (width <= 760px) {
  #wrapper #container {
    padding: var(--space-5) var(--space-4);
  }
}
/*# sourceMappingURL=main.css.map */
