/* Henry Kc: portfolio, case study and DateObserver pages.
   One stylesheet, no frameworks. Dark by default; [data-theme="light"]
   switches to light (js/site.js keeps the choice). */
:root {
  --bg: #0b1120;
  --bg-2: #111a2e;
  --surface: #131d33;
  --ink: #e6ecf5;
  --ink-2: #b4c0d3;
  --ink-3: #8592a8;
  --line: #22304d;
  --accent: #7aa7ff;
  --accent-strong: #2f6fe0;
  --accent-soft: rgba(122, 167, 255, 0.12);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --accent: #2f6fe0;
  --accent-strong: #2f6fe0;
  --accent-soft: #eaf1fd;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.07);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
}

h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

strong {
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 30;
}

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

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

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- Two-column home ---------- */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  /* minmax(0, …): a column may shrink below its widest content, so
     nothing pushes the page wider than the screen. */
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}

/* Under the top bar (62px), which stays on screen. */
.panel {
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  padding: 56px 0 48px;
  display: flex;
  flex-direction: column;
}

.panel-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
  margin-bottom: 22px;
}

.panel h1 {
  margin-bottom: 6px;
}

.title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.pitch {
  max-width: 400px;
  color: var(--ink-3);
}

.toc {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc a::before {
  content: '';
  height: 1px;
  width: 28px;
  background: var(--ink-3);
  transition: width 0.2s ease, background 0.2s ease;
}

.toc a:hover,
.toc a.active {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover::before,
.toc a.active::before {
  width: 56px;
  background: var(--ink);
}

.panel-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.content {
  padding: 88px 0 64px;
}

.block {
  margin-bottom: 96px;
  scroll-margin-top: 48px;
}

.block-title {
  display: none;
}

/* ---------- Icons, toggles ---------- */
.icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.icon-links a,
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.icon-links a:hover,
.theme-toggle:hover {
  color: var(--ink);
  background: var(--accent-soft);
  text-decoration: none;
}

.icon-links svg,
.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun {
  display: none;
}

[data-theme='light'] .theme-toggle .sun {
  display: block;
}

[data-theme='light'] .theme-toggle .moon {
  display: none;
}

/* ---------- Experience ---------- */
.entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 20px;
  margin: 0 -20px 8px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.entry:hover {
  background: var(--accent-soft);
}

.entry-when {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}

.entry h3 a {
  color: var(--ink);
}

.entry p {
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.entry h3 {
  margin-bottom: 2px;
}

.entry .where {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 11px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
}

.more-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.more-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Work ---------- */
.work {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 20px;
  margin: 0 -20px 8px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.work:hover {
  background: var(--accent-soft);
}

.work-thumb {
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  width: 100%;
  background: var(--bg-2);
}

.work h3 a {
  color: var(--ink);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.button-sm {
  font-size: 0.88rem;
  padding: 8px 14px;
}

.thumb-link {
  display: block;
  align-self: start;
}

.work p {
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.featured {
  background: linear-gradient(140deg, var(--accent-strong), #1c3f8f);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  color: #dbe7ff;
}

.featured h3,
.featured h3 a {
  color: #fff;
  font-size: 1.4rem;
}

.featured .eyebrow {
  color: #c7dbff;
}

.featured .chips li {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.featured-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: center;
}

.featured-phone {
  border-radius: 18px;
  border: 5px solid #0b1120;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.featured .buttons {
  margin-top: 18px;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.numbers li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.numbers strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  white-space: nowrap;
}

.earlier {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
}

.earlier li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.earlier .year {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}

.earlier .name {
  color: var(--ink);
  font-weight: 600;
}

.earlier .what {
  color: var(--ink-3);
}

.earlier .links {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.button-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.button-ghost:hover {
  background: var(--accent-soft);
}

.featured .button-primary {
  background: #fff;
  color: #1c3f8f;
}

.featured .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---------- Writing, contact ---------- */
.post {
  display: block;
  padding: 20px;
  margin: 0 -20px;
  border-radius: var(--radius);
}

.post:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.post h3 {
  margin-bottom: 4px;
}

.post p {
  color: var(--ink-2);
  margin: 0;
}

.post span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}

form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 6px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.foot-note {
  font-size: 0.86rem;
  color: var(--ink-3);
  margin-top: 48px;
}

/* ---------- Single-column pages (case study, app, privacy) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav a:hover {
  background: var(--accent-soft);
  text-decoration: none;
  color: var(--ink);
}

.nav .cta {
  background: var(--accent-strong);
  color: #fff;
}

/* The portfolio's top bar spans the wider page; its DateObserver button
   stays visible on phones (the section links fold into the menu). */
.topbar .wrap.wide {
  max-width: 1200px;
  padding: 0 32px;
}

.topbar .nav {
  margin-left: auto;
}

.app-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.app-cta:hover {
  text-decoration: none;
  filter: brightness(1.1);
}

.app-cta img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
}

#about,
#experience,
#work,
#writing,
#contact {
  scroll-margin-top: 72px;
}

.menu-button {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.page-section {
  padding: 80px 0;
}

.page-section.alt {
  background: var(--bg-2);
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 660px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.app-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.app-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 18px;
}

.phones {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.phones img {
  width: 46%;
  border-radius: 20px;
  border: 5px solid #0b1120;
  box-shadow: var(--shadow);
}

.phones img:last-child {
  margin-top: 28px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.feature-item .icon svg {
  width: 21px;
  height: 21px;
}

.feature-item p {
  font-size: 0.95rem;
  margin: 0;
}

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  margin: 0;
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.shots img {
  border-radius: 20px;
  border: 5px solid #0b1120;
}

.shots figcaption {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 10px;
}

.terms {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 0;
}

.terms li {
  margin-bottom: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* DateObserver: bank transfer details, with copy buttons. */
.bank {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-top: 22px;
  scroll-margin-top: 90px;
}

.bank h3 {
  margin-top: 0;
}

.bank-details {
  display: grid;
  gap: 6px;
  margin: 16px 0 18px;
}

.bank-details div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.bank-details dt {
  color: var(--ink-3);
  min-width: 120px;
}

.bank-details dd {
  margin: 0;
  font-weight: 600;
}

.bank-accounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.bank-account {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.bank-currency {
  grid-column: 1;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.bank-symbol {
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
}

.bank-number {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.copy-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

.bank-note {
  font-size: 0.9rem;
  color: var(--ink-3);
  font-weight: 400;
}

.bank > .bank-note {
  margin: 16px 0 0;
}

@media (max-width: 640px) {
  .bank {
    padding: 20px;
  }

  .bank-accounts {
    grid-template-columns: 1fr;
  }
}

/* Long-form text: the case study and the privacy policy. */
.article {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 28px 88px;
}

.article h1 {
  font-size: clamp(2rem, 4.4vw, 2.7rem);
}

.article h2 {
  font-size: 1.35rem;
  margin-top: 44px;
}

.article li {
  margin-bottom: 8px;
}

.article .summary {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--ink);
}

.article .updated {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.article figure {
  margin: 28px 0;
}

.article figcaption {
  font-size: 0.86rem;
  color: var(--ink-3);
  margin-top: 8px;
}

.figure-phones {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.figure-phones img {
  width: 31%;
  border-radius: 16px;
  border: 4px solid #0b1120;
}

.facts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 28px 0;
}

.facts-row li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.85rem;
  margin: 0;
}

.facts-row strong {
  display: block;
  font-size: 1.3rem;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 22px;
  }

  .panel {
    position: static;
    height: auto;
    padding: 56px 0 24px;
  }

  .toc {
    display: none;
  }

  .panel-foot {
    margin-top: 24px;
  }

  .content {
    padding-top: 24px;
  }

  .block {
    margin-bottom: 72px;
  }

  .block-title {
    display: block;
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 -22px 16px;
    padding: 14px 22px;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(8px);
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
  }

  .app-hero,
  .features {
    grid-template-columns: 1fr;
  }

  .facts-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .entry,
  .work {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .work-thumb {
    max-width: 280px;
  }

  .featured-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured {
    padding: 22px 18px;
  }

  .numbers li {
    padding: 10px 8px;
  }

  .numbers strong {
    font-size: 1.05rem;
  }

  .featured-phone {
    max-width: 200px;
  }

  .numbers {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .earlier li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .earlier .links {
    white-space: normal;
  }

  .entry,
  .work,
  .post {
    margin-left: -12px;
    margin-right: -12px;
    padding: 16px 12px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .nav.open {
    display: flex;
  }

  .topbar .wrap.wide {
    padding: 0 16px;
  }

  .app-cta {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* The user guide's two downloads. */
.guide-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.download-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent);
}

.download-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.download-card span span {
  color: var(--ink-3);
  font-size: 0.92rem;
}

.download-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-strong);
  color: var(--on-accent);
}

.download-icon svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .guide-downloads {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Follow me: a label over the icons, and named buttons under Contact. */
.follow-label {
  flex-basis: 100%;
  margin: 0 0 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.follow {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.follow h3 {
  margin: 0 0 6px;
}

.follow p {
  margin: 0 0 16px;
}

.follow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.follow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.follow-chip:hover {
  background: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.follow-chip svg {
  width: 18px;
  height: 18px;
}

/* Seven networks and the theme switch in one row on a phone. */
@media (max-width: 420px) {
  .panel-foot,
  .icon-links {
    gap: 2px;
  }

  .icon-links a,
  .theme-toggle {
    width: 38px;
    height: 38px;
  }
}
