@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap");

:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-deep: #e7e1d5;
  --ink: #161615;
  --ink-soft: #66645f;
  --line: rgba(22, 22, 21, 0.18);
  --lime: #c9ff3d;
  --blue: #789bff;
  --orange: #ff8b5c;
  --sage: #a7bd91;
  --white: #fffdf7;
  --display: "Manrope", "Noto Sans SC", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "DM Mono", monospace;
  --radius: 26px;
  --shadow: 0 28px 70px rgba(24, 22, 16, 0.14);
  /* Functional labels must remain readable; primary navigation gets its own stronger tier. */
  --font-nav: 0.95rem;
  --font-ui: 0.82rem;
  --font-meta: 0.76rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191918;
  --paper-deep: #242421;
  --ink: #f3f0e8;
  --ink-soft: #aaa79f;
  --line: rgba(243, 240, 232, 0.18);
  --white: #20201e;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --paper: #191918;
    --paper-deep: #242421;
    --ink: #f3f0e8;
    --ink-soft: #aaa79f;
    --line: rgba(243, 240, 232, 0.18);
    --white: #20201e;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% -10%, rgba(255, 255, 255, 0.72), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
  font: inherit;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--lime);
  color: #111;
}

.lang-en {
  display: none !important;
}

html[data-lang="en"] .lang-zh {
  display: none !important;
}

html[data-lang="en"] .lang-en {
  display: revert !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.site-header {
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 4.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: start;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font: 500 var(--font-meta) var(--mono);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.15rem;
  font: 600 var(--font-nav) var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav a {
  position: relative;
  padding: 0.75rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.18rem;
  height: 3px;
  background: var(--ink);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  right: 0;
}

.header-tools {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.45rem;
}

.icon-button,
.language-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
}

.language-toggle {
  min-width: 48px;
  height: 38px;
  border-radius: 99px;
  font: 500 var(--font-meta) var(--mono);
}

.icon-button:hover,
.language-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
}

.section {
  padding-left: 4.25rem;
  padding-right: 4.25rem;
}

.eyebrow {
  font: 500 var(--font-meta) var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  align-items: center;
  gap: 5vw;
  padding-top: 4.6rem;
  padding-bottom: 4.9rem;
}

.hero-copy h1,
.page-intro h1,
.about-intro h1 {
  max-width: 820px;
  margin: 1.7rem 0 1.7rem;
  font-size: clamp(3.75rem, 6.5vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
  font-weight: 600;
}

h1 em,
h2 em {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
}

.hero-copy h1 em {
  position: relative;
  z-index: 0;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.05em;
  right: -0.08em;
  bottom: 0.05em;
  height: 0.3em;
  border-radius: 99px;
  background: var(--lime);
  transform: rotate(-1deg);
}

.hero-intro {
  max-width: 570px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.35rem;
}


.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 99px;
  font: 500 var(--font-ui) var(--mono);
  letter-spacing: 0.04em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--lime);
  color: #121212;
}

.button-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-stage {
  min-height: 505px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-note {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: calc(100% - 1rem);
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--paper);
  font: 500 var(--font-ui) var(--mono);
  white-space: nowrap;
}

.stage-note-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}

.stage-card {
  position: absolute;
  width: min(430px, 76%);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stage-prime {
  z-index: 2;
  transform: translate(-12%, -4%) rotate(-4deg);
}

.stage-magic {
  z-index: 1;
  transform: translate(17%, 9%) rotate(6deg);
}

.stage-caption {
  position: absolute;
  z-index: 4;
  right: 0.5rem;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font: 500 var(--font-meta) var(--mono);
  text-transform: uppercase;
}

.stage-caption i {
  width: 26px;
  height: 1px;
  background: var(--ink);
}

.product-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
}

.product-visual.compact {
  border-radius: 15px;
}

.primeplayer-visual {
  display: grid;
  grid-template-rows: 38px 1fr 50px;
  background: #151515;
}

.player-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  font: 500 0.52rem var(--mono);
}

.player-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4e4e4e;
}

.player-top b {
  margin-left: auto;
  margin-right: auto;
  color: #8d8d8d;
  font-weight: 400;
}

.player-scene {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #a39bea 0%, #e3a2b7 45%, #ffb270 100%);
}

.player-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(75, 38, 134, 0.35), transparent 45%);
}

.sun {
  position: absolute;
  top: 18%;
  right: 23%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe3a5;
  box-shadow: 0 0 34px rgba(255, 223, 159, 0.75);
}

.ridge {
  position: absolute;
  bottom: -35%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 44% 56% 10% 10%;
  transform: rotate(29deg);
}

.ridge-one {
  left: -27%;
  background: #393058;
}

.ridge-two {
  right: -38%;
  bottom: -48%;
  background: #1a182b;
  transform: rotate(51deg);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  font: 400 0.5rem var(--mono);
  color: #999;
}

.player-controls .play {
  color: #fff;
}

.timeline {
  flex: 1;
  height: 2px;
  background: #484848;
}

.timeline i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--lime);
}

.magicdesk-visual {
  background: #83b7dc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.desktop-menu {
  position: relative;
  z-index: 3;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.75rem;
  background: rgba(245, 245, 245, 0.72);
  color: #171717;
  backdrop-filter: blur(10px);
  font: 500 0.45rem var(--mono);
}

.desktop-menu i {
  margin-left: auto;
  font-style: normal;
}

.desktop-sky {
  position: absolute;
  inset: 28px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #75b0dc 0%, #f2b8c1 62%, #e48382 100%);
}

.desktop-sky::before {
  content: "";
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  top: 14%;
  right: 18%;
  border-radius: 50%;
  background: rgba(255, 227, 181, 0.85);
  filter: blur(1px);
}

.cloud {
  position: absolute;
  z-index: 1;
  width: 23%;
  height: 8%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(3px);
}

.cloud-one {
  top: 27%;
  left: 16%;
}

.cloud-two {
  top: 17%;
  right: 3%;
}

.mountain {
  position: absolute;
  bottom: -30%;
  width: 72%;
  aspect-ratio: 1;
  background: #365a58;
  transform: rotate(45deg);
  border-radius: 18%;
}

.mountain-one {
  left: -21%;
}

.mountain-two {
  right: -29%;
  bottom: -42%;
  background: #1d3b3e;
}

.desktop-dock {
  position: absolute;
  z-index: 4;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background: rgba(245, 245, 245, 0.27);
  backdrop-filter: blur(10px);
}

.desktop-dock span {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #faf6ef;
}

.desktop-dock span:nth-child(2) {
  background: #9f79ef;
}

.desktop-dock span:nth-child(3) {
  background: #68bfd1;
}

.desktop-dock span:nth-child(4) {
  background: #f2c75c;
}

.diple-visual {
  display: grid;
  place-items: end center;
  padding: 5% 13% 0;
  background:
    radial-gradient(circle at 74% 17%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(145deg, #dce8d2 0%, #718a62 100%);
}

.diple-device {
  width: min(76%, 360px);
  height: 94%;
  overflow: hidden;
  border: 5px solid #171815;
  border-bottom: 0;
  border-radius: 27px 27px 0 0;
  background: #f8f5ed;
  color: #20211e;
  box-shadow: 0 24px 42px rgba(25, 32, 21, 0.35);
}

.diple-status,
.diple-nav,
.diple-toolbar {
  display: flex;
  align-items: center;
}

.diple-status {
  height: 9%;
  justify-content: space-between;
  padding: 0 8%;
  font: 600 0.43rem var(--display);
}

.diple-status i {
  width: 27%;
  height: 8px;
  border-radius: 99px;
  background: #171815;
}

.diple-status b,
.diple-nav b {
  font-size: 0.45rem;
  letter-spacing: 0.06em;
}

.diple-nav {
  height: 12%;
  justify-content: space-between;
  padding: 0 7%;
  border-bottom: 1px solid rgba(32, 33, 30, 0.12);
}

.diple-nav span {
  color: #617653;
  font-size: 1rem;
}

.diple-nav strong {
  font-size: 0.55rem;
}

.diple-editor {
  height: 67%;
  padding: 12% 11%;
}

.diple-editor small {
  color: #718465;
  font: 500 0.38rem var(--mono);
  letter-spacing: 0.08em;
}

.diple-editor h4 {
  margin: 7% 0 6%;
  font-size: clamp(0.85rem, 2.2vw, 1.35rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.diple-editor p {
  margin: 0;
  color: #65665f;
  font-size: clamp(0.38rem, 0.75vw, 0.58rem);
  line-height: 1.65;
}

.diple-editor ul {
  display: grid;
  gap: 0.42rem;
  margin: 10% 0 0;
  padding: 0;
  list-style: none;
  font: 500 clamp(0.38rem, 0.72vw, 0.55rem) var(--mono);
}

.diple-editor li {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.diple-editor li i {
  width: 0.35rem;
  height: 0.35rem;
  border: 1px solid #708563;
  border-radius: 50%;
}

.diple-toolbar {
  height: 12%;
  justify-content: space-around;
  border-top: 1px solid rgba(32, 33, 30, 0.12);
  color: #5d6f52;
  font: 600 clamp(0.42rem, 0.8vw, 0.62rem) var(--mono);
}

.diple-toolbar em {
  font-family: Georgia, serif;
}

.diple-toolbar code,
.diple-toolbar em,
.diple-toolbar b,
.diple-toolbar i {
  font-style: normal;
}

.ticker {
  width: calc(100% + 4rem);
  margin-left: -2rem;
  padding: 0.95rem 0;
  overflow: hidden;
  transform: rotate(-1.5deg);
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}

.ticker > div {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font: 500 var(--font-meta) var(--mono);
  letter-spacing: 0.1em;
}

.ticker i {
  color: var(--lime);
  font-style: normal;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-heading h2,
.app-features h2,
.app-story h2,
.about-story h2 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-number {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: 500 var(--font-meta) var(--mono);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
  font: 500 var(--font-ui) var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-link span:last-child {
  transition: transform 160ms ease;
}

.text-link:hover span:last-child {
  transform: translate(2px, -2px);
}

.latest-section,
.apps-section,
.more-writing,
.app-writing {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.article-card {
  min-width: 0;
  border-top: 1px solid var(--ink);
  transition: transform 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card-link {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  padding: 0 0.15rem;
}

.article-card-large .article-card-link {
  min-height: 350px;
  padding: 0 1.6rem 1.2rem;
}

.article-card-large {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.24);
}

.article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.15rem 0;
}

.article-card-large .article-card-top {
  padding: 1.4rem 1.6rem 0;
}

.article-category {
  transition: opacity 160ms ease;
}

.article-category:hover {
  opacity: 0.58;
}

.article-app {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font: 500 var(--font-meta) var(--mono);
  transition: background 160ms ease, color 160ms ease;
}

.article-app:hover {
  background: var(--ink);
  color: var(--paper);
}

/* iOS/iPadOS apps keep the phone glyph and full pill shape; macOS apps get a
   squared badge with a monitor glyph, so the two platforms read apart at a
   glance without adding a second color language. */
.article-app.platform-mac {
  border-radius: 0;
}

.platform-icon {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-title {
  max-width: 590px;
  margin: 3.8rem 0 1.25rem;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.article-card-large:nth-child(2) {
  background: var(--lime);
  color: #111;
  border-radius: var(--radius);
}

.article-excerpt {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}

.article-card-large:nth-child(2) .article-excerpt {
  color: #414533;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
  font: 400 var(--font-meta) var(--mono);
  text-transform: uppercase;
}

.round-arrow {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.9rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.app-card {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius);
  color: #131313;
}

.app-card.app-lime {
  background: var(--lime);
}

.app-card.app-blue {
  background: var(--blue);
}

.app-card.app-orange {
  background: var(--orange);
}

.app-card.app-sage {
  background: var(--sage);
}

.app-card-copy {
  padding: 2.15rem 2.15rem 0;
}

.app-card-head,
.app-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-icon {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: #151515;
  color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  font: 600 1.2rem var(--display);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-blue .app-icon {
  color: #a9bdff;
}

.app-orange .app-icon {
  color: #ffc4a3;
}

.app-sage .app-icon {
  color: #dce9ce;
}

.app-card h3 {
  margin: 2.2rem 0 0.6rem;
  font-size: clamp(3rem, 5vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.app-tagline {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.app-description {
  max-width: 520px;
  margin: 1.2rem 0 1.7rem;
  color: rgba(19, 19, 19, 0.68);
  line-height: 1.7;
}

.app-card .product-visual {
  width: 82%;
  margin: 2rem auto -4rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  transform: rotate(-2deg);
}

.app-card:nth-child(2) .product-visual {
  transform: rotate(2deg);
}

.manifesto {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 9rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.manifesto-mark {
  position: absolute;
  top: 2rem;
  left: 50%;
  color: var(--lime);
  font: 600 11rem/1 var(--serif);
  transform: translateX(-50%);
  opacity: 0.9;
}

.manifesto h2 {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto 2rem;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.manifesto p {
  font: 500 var(--font-meta) var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.manifesto-views {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  margin: 0;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0.02em;
  transform: translateX(-50%);
}

.site-footer {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: end;
  gap: 3rem;
  padding: 4.2rem;
  background: #151515;
  color: #f4f0e5;
}

.footer-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-footer p {
  margin: 0.55rem 0 0;
  color: #99978f;
  font-size: var(--font-ui);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  font: 400 var(--font-ui) var(--mono);
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--lime);
}

.site-footer .copyright {
  justify-self: end;
  font: 400 var(--font-meta) var(--mono);
  text-transform: uppercase;
}

/* Shared inner-page headings */
.page-intro {
  padding-top: 7rem;
  padding-bottom: 7rem;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 1050px;
  margin-bottom: 2.1rem;
}

.page-intro > p {
  max-width: 620px;
  margin: 0 0 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-intro em {
  position: relative;
}

.page-intro em::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  bottom: -0.12em;
  height: 7px;
  background: var(--lime);
  border-radius: 99px;
}

.journal-listing {
  padding-top: 4rem;
  padding-bottom: 8rem;
}

.journal-page .page-intro {
  padding-top: 2.9rem;
  padding-bottom: 3.2rem;
}

.journal-page .page-intro > .eyebrow,
.apps-page .apps-intro > .eyebrow,
.about-page .about-page-label {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  transform: translateY(-0.45rem);
}

.apps-page .apps-intro {
  padding-top: 2.9rem;
}

.journal-page .page-intro h1 {
  max-width: 820px;
  margin: 0.75rem auto 1rem;
  font-size: clamp(2.9rem, 4.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-align: center;
}

.journal-page .page-intro > p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.94rem;
  line-height: 1.6;
  text-align: center;
}

.journal-page .journal-listing {
  padding-top: 2.4rem;
}

.journal-page .filter-bar {
  margin-bottom: 2.4rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.5rem;
  margin-bottom: 4rem;
}

.filter-group {
  display: flex;
  flex: 1 1 320px;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
}

.filter-label {
  width: 100%;
  flex: 0 0 100%;
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
  font: 500 var(--font-meta) var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-options {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.filter-bar button[data-filter] {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font: 500 var(--font-ui) var(--mono);
}

.filter-bar button[data-filter]:hover,
.filter-bar button[data-filter].active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.journal-grid .article-card {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 2rem;
}

/* Author grid styles must never override the semantic hidden state used by filtering. */
.journal-grid .article-card[hidden],
.empty-state[hidden] {
  display: none !important;
}

.journal-grid .article-card-link {
  min-height: 195px;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1.2fr) 125px;
  align-items: start;
  gap: 2rem;
  padding: 1.4rem 0.15rem;
}

.journal-grid .article-card-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.4rem 0.15rem;
}

.journal-grid .article-title {
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.65rem);
}

.journal-grid .article-excerpt {
  max-width: 100%;
}

.journal-grid .article-meta {
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.journal-grid .round-arrow {
  margin: auto 0 0;
}

.empty-state {
  padding: 3rem 0;
  color: var(--ink-soft);
}

/* Article detail */
.post-header {
  max-width: 1150px;
  margin: 0 auto;
  padding-top: 4rem;
  padding-bottom: 2.8rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 3.2rem;
  font: 500 var(--font-ui) var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-kicker {
  display: flex;
  gap: 0.65rem;
}

.post-kicker > span,
.post-kicker > a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font: 500 var(--font-meta) var(--mono);
  text-transform: uppercase;
}

.post-kicker > a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.post-kicker > a.platform-mac {
  border-radius: 0;
}

.post-title {
  max-width: 980px;
  margin: 1.5rem 0 1.3rem;
  font-size: clamp(2.7rem, 4.8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.post-deck {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.post-author {
  position: sticky;
  top: 2rem;
  height: max-content;
}

.post-byline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Spacing is on the text block rather than a flex gap: the stats column
   (views + like) has to stay tight under the meta line in the sidebar layout,
   while the avatar keeps its original distance from the name. */
.post-byline-text {
  margin-top: 1.05rem;
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #111;
  font: 500 0.78rem var(--mono);
}

.post-byline strong,
.post-byline span {
  display: block;
}

/* .post-byline span above sets display:block on every span it contains,
   including the view counter and its bilingual copies — an author rule that
   otherwise beats the native [hidden] default and makes the "阅读 N 次" label
   flash on screen before the count is fetched. Reassert [hidden] here so the
   whole counter (label and number together) stays invisible until JS reveals
   it in one step. */
.post-byline .view-counter[hidden] {
  display: none;
}

.post-byline strong {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.post-byline-meta,
.post-byline .view-counter {
  color: var(--ink-soft);
  font: 400 var(--font-meta)/1.65 var(--mono);
}

/* The separator in front of the view count is generated rather than typed into
   the markup, so the counter can leave the meta line on narrow screens without
   carrying a stray "·" into its own column. */
.post-byline .view-counter::before {
  content: " · ";
}

.view-counter-count {
  color: var(--ink);
  font-weight: 600;
}

/* Like button. Same reveal rule as the view counter: [hidden] has to be
   reasserted inside .post-byline, whose author rules would otherwise win, so
   the control never flashes before the count arrives. */
.post-byline .like-button[hidden] {
  display: none;
}

.like-button {
  position: relative;
  margin: 1rem 0 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  /* Reserve the same width for short and compact counts to avoid layout shifts. */
  width: 72px;
  min-height: 76px;
  padding: 0.65rem 0.25rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font: 500 var(--font-ui) var(--display);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms ease, background-color 180ms ease;
}

/* Override the byline's block spans without overriding language visibility. */
.post-byline .like-button span {
  display: inline;
}

.like-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
  transition: transform 180ms ease, fill 180ms ease;
}

/* Hover is pointer-only so touch devices do not retain a hover appearance. */
@media (hover: hover) {
  .like-button:hover:not(:disabled) {
    color: var(--ink);
    background: var(--paper-deep);
  }
}

.like-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.like-button:active:not(:disabled) .like-icon {
  transform: scale(0.94);
}

.like-button:disabled {
  cursor: default;
}

/* Use the theme's ink: black on paper, light ink on dark backgrounds. */
.like-button.is-liked {
  color: var(--ink);
}

.like-button.is-liked .like-icon {
  fill: currentColor;
}

.like-button.just-liked .like-icon {
  animation: like-pop 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes like-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .like-button,
  .like-icon,
  .like-button.just-liked .like-icon {
    transition: none;
    animation: none;
  }

  .like-button:active:not(:disabled) .like-icon {
    transform: none;
  }
}

.like-count {
  color: var(--ink-soft);
  font: 400 var(--font-meta)/1 var(--mono);
  font-variant-numeric: tabular-nums;
  width: 100%;
  text-align: center;
}

.like-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.post-rule {
  height: 1px;
  margin: 0 4.25rem;
  background: var(--line);
}

.post-layout {
  max-width: 1160px;
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 4.5rem;
  margin: 0 auto;
  padding-top: 5rem;
  padding-bottom: 8rem;
}

.prose {
  font-size: 1.08rem;
  line-height: 1.95;
}

.prose h2 {
  margin: 4rem 0 1.2rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.65rem;
}

.prose .article-image {
  margin: 2.5rem 0 3rem;
}

.prose .article-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.prose blockquote {
  margin: 3rem 0;
  padding: 2rem 2.2rem;
  border-left: 5px solid var(--lime);
  background: var(--paper-deep);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.prose ul {
  margin: 1.5rem 0 2rem;
  padding-left: 1.3rem;
}

.prose li {
  margin: 0.7rem 0;
}

.related-app {
  min-height: 500px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5vw;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--lime);
  color: #131313;
}

.related-app-copy h2 {
  margin: 1rem 0;
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -0.07em;
}

.related-app-copy p {
  max-width: 540px;
  margin-bottom: 2rem;
  color: #414533;
  line-height: 1.7;
}

.related-app .product-visual {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.post-nav-link {
  position: relative;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.6rem;
  border-top: 1px solid var(--ink);
  transition: background 160ms ease, transform 160ms ease;
}

.post-nav-link:hover {
  background: var(--paper-deep);
  transform: translateY(-3px);
}

.post-nav-next {
  align-items: flex-end;
  text-align: right;
}

.post-nav-label {
  color: var(--ink-soft);
  font: 500 var(--font-meta) var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-nav-title {
  max-width: 520px;
  margin: 2.4rem 0 1.5rem;
  font-size: clamp(1.6rem, 2.5vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.post-nav-arrow {
  margin-top: auto;
  font-size: 1.45rem;
}

.post-nav-empty {
  min-height: 1px;
}

/* Apps */
.app-showcase-list {
  padding-top: 5rem;
  padding-bottom: 8rem;
}

.app-showcase {
  min-height: 670px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 34px;
  color: #141414;
}

.app-showcase.app-lime {
  background: var(--lime);
}

.app-showcase.app-blue {
  background: var(--blue);
}

.app-showcase.app-orange {
  background: var(--orange);
}

.app-showcase.app-sage {
  background: var(--sage);
}

.app-showcase-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3rem;
}

.app-index {
  align-self: flex-end;
  font: 500 var(--font-meta) var(--mono);
}

.app-showcase .app-title-row {
  margin-top: 4rem;
}

.app-showcase h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(3.4rem, 5.4vw, 5.7rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.app-showcase .app-tagline {
  margin-top: 2.2rem;
  font-size: 1.25rem;
}

.app-showcase .app-description {
  margin-bottom: 1.4rem;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.feature-pills li {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(20, 20, 20, 0.26);
  border-radius: 99px;
  font: 500 var(--font-meta) var(--mono);
}

.app-showcase-copy .button {
  margin-top: auto;
}

.app-showcase-visual {
  display: flex;
  align-items: center;
  padding: 3.2rem 0 3.2rem 3rem;
}

.app-showcase-visual .product-visual {
  width: 112%;
  box-shadow: 0 34px 80px rgba(16, 18, 20, 0.28);
  transform: rotate(-2deg);
}

.app-showcase:nth-child(2) .app-showcase-visual .product-visual {
  transform: rotate(2deg);
}

/* App detail */
.app-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 6vw;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.app-hero .back-link {
  margin-bottom: 3rem;
}

.app-icon-large {
  width: 70px;
  height: 70px;
  border-radius: 19px;
  font-size: 1.7rem;
}

.app-hero h1 {
  margin: 0.3rem 0 0;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.app-hero-tagline {
  margin: 2.5rem 0 0.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.app-hero-description {
  max-width: 590px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.app-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2.3rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 500 var(--font-meta) var(--mono);
  text-transform: uppercase;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #73bd3c;
  box-shadow: 0 0 0 5px rgba(115, 189, 60, 0.15);
}

.app-hero-visual {
  padding: 2rem;
  border-radius: 36px;
}

.app-hero.app-lime .app-hero-visual {
  background: var(--lime);
}

.app-hero.app-blue .app-hero-visual {
  background: var(--blue);
}

.app-hero.app-orange .app-hero-visual {
  background: var(--orange);
}

.app-hero.app-sage .app-hero-visual {
  background: var(--sage);
}

.app-hero-visual .product-visual {
  box-shadow: 0 36px 80px rgba(15, 16, 14, 0.3);
  transform: rotate(2deg);
}

.app-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-facts > div {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2.4rem 4.25rem;
  border-right: 1px solid var(--line);
}

.app-facts > div:last-child {
  border-right: 0;
}

.app-facts span {
  color: var(--ink-soft);
  font: 500 var(--font-meta) var(--mono);
  text-transform: uppercase;
}

.app-facts strong {
  font-size: 1.2rem;
}

.app-features {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.app-features > .section-heading > div,
.app-story > div:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

.feature-item {
  min-height: 230px;
  padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--line);
}

.feature-item:last-child {
  border-right: 0;
}

.feature-item > span {
  font: 500 var(--font-meta) var(--mono);
}

.feature-item h3 {
  max-width: 190px;
  margin: 5rem 0 0;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.app-story,
.about-story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: var(--paper-deep);
}

.app-story > div:last-child p {
  max-width: 700px;
  margin: 0 0 2rem;
  font-size: 1.55rem;
  line-height: 1.6;
  letter-spacing: -0.035em;
}

/* About */
.about-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: 7vw;
  row-gap: 2.4rem;
  padding-top: 2.9rem;
  padding-bottom: 6rem;
}

.about-page-label {
  grid-column: 1 / -1;
  align-self: start;
}

.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 40px 40px;
  background:
    radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.3), transparent 7rem),
    linear-gradient(145deg, #516cce, #9eb4ff 45%, #c9ff3d);
}

.about-portrait > span {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  color: #151515;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.1em;
}

.about-portrait i {
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  right: -15%;
  bottom: -8%;
  border-radius: 50%;
  background: var(--orange);
}

.about-portrait b {
  position: absolute;
  z-index: 3;
  left: 2rem;
  bottom: 2rem;
  color: #151515;
  font: 500 var(--font-meta)/1.5 var(--mono);
  letter-spacing: 0.12em;
}

.about-intro h1 {
  margin-top: 1.8rem;
}

.about-lead {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.8;
}

.about-location {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  font: 500 var(--font-meta) var(--mono);
  text-transform: uppercase;
}

.about-location > span {
  color: #66a835;
}

.about-prose p {
  max-width: 740px;
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  line-height: 1.75;
  letter-spacing: -0.025em;
}

.values {
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: #151515;
  color: #f3f0e8;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.value-grid > div {
  min-height: 310px;
  padding: 1.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.value-grid > div:last-child {
  border: 0;
}

.value-grid span {
  color: var(--lime);
  font: 500 var(--font-meta) var(--mono);
}

.value-grid h3 {
  margin: 5rem 0 1rem;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.value-grid p {
  max-width: 290px;
  color: #aaa79f;
  line-height: 1.65;
}

.contact-section {
  padding-top: 9rem;
  padding-bottom: 9rem;
  text-align: center;
}

.contact-section h2 {
  max-width: 900px;
  margin: 1.5rem auto;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.contact-section > p {
  max-width: 650px;
  margin: 0 auto 2.3rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.contact-section > div {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.not-found {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.not-found > span {
  color: var(--lime);
  font: 500 1rem var(--mono);
}

.not-found h1 {
  margin: 1rem 0;
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: -0.08em;
}

.not-found p {
  margin: 0 0 2rem;
  color: var(--ink-soft);
}

@media (max-width: 1050px) {
  .site-header,
  .section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .hero {
    grid-template-columns: 1fr 0.9fr;
    gap: 1rem;
  }

  .stage-card {
    width: 84%;
  }

  .journal-grid .article-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1.3rem;
  }

  .journal-grid .article-card-link {
    grid-template-columns: minmax(210px, 0.9fr) minmax(250px, 1.1fr) 105px;
    gap: 1.3rem;
  }

  .post-rule {
    margin: 0 2rem;
  }

  .app-facts > div {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .site-footer {
    padding: 3rem 2rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 78px;
    position: relative;
    z-index: 50;
    gap: 0.7rem;
  }

  .brand-name {
    display: none;
  }

  .menu-toggle {
    display: block;
    height: 38px;
    padding: 0 0.85rem;
    border-radius: 99px;
    font: 500 var(--font-ui) var(--mono);
  }

  .site-nav {
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem 2rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    font-size: 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

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

  .hero {
    padding-top: 4rem;
  }

  .hero-stage {
    min-height: 450px;
    margin-top: 1rem;
  }

  .article-grid,
  .app-grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-grid .article-card-link {
    min-height: 0;
    display: flex;
    padding: 0 0.15rem 1.5rem;
  }

  .journal-grid .article-card {
    display: block;
  }

  .journal-grid .article-card-top {
    flex-direction: row;
    align-items: center;
    padding: 1.5rem 0.15rem 0;
  }

  .journal-grid .article-title {
    margin: 2.2rem 0 0.9rem;
  }

  .journal-grid .article-meta {
    height: auto;
    flex-direction: row;
    align-items: center;
    margin-top: 1.2rem;
  }

  .journal-grid .round-arrow {
    margin: 0 0 0 auto;
  }

  .journal-grid .article-card:nth-child(3n) {
    grid-column: auto;
  }

  .article-card-large .article-card-link {
    min-height: 330px;
  }

  .app-showcase {
    grid-template-columns: 1fr;
  }

  .app-showcase-visual {
    padding: 0 2rem 3rem;
  }

  .app-showcase-visual .product-visual {
    width: 100%;
  }

  .app-hero-visual {
    margin-top: 1rem;
  }

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

  .app-facts > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-facts > div:last-child {
    border-bottom: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item:nth-child(2) {
    border-right: 0;
  }

  .feature-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .app-story,
  .about-story,
  .related-app {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .post-layout {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .post-author {
    position: static;
  }

  /* Horizontal byline: avatar | name + date | views above the like button.
     Keeping the counters in a column of their own stops them from stretching
     the name/date column, which used to leave the avatar floating opposite
     empty space. */
  .post-byline {
    flex-direction: row;
    align-items: center;
    gap: 1.05rem;
  }

  .post-byline .avatar {
    flex: 0 0 auto;
  }

  .post-byline-text {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
  }

  /* Side by side rather than stacked: the byline is only as tall as the like
     button, so the row stays compact and the avatar keeps its place. */
  .post-byline-stats {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .post-byline .view-counter {
    white-space: nowrap;
  }

  .post-byline .view-counter::before {
    content: none;
  }

  .post-byline .like-button {
    margin: 0;
    width: 60px;
    min-height: 64px;
    gap: 0.4rem;
  }

  .about-portrait {
    width: min(520px, 90%);
    margin: 0 auto;
  }

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

  .value-grid > div {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .value-grid h3 {
    margin-top: 3.5rem;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .copyright {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .header-tools {
    gap: 0.25rem;
  }

  .icon-button {
    display: none;
  }

  .hero-copy h1,
  .page-intro h1,
  .about-intro h1 {
    font-size: clamp(3.05rem, 15vw, 4.5rem);
  }

  .journal-page .page-intro {
    padding-top: 2.35rem;
    padding-bottom: 2.5rem;
  }

  .journal-page .page-intro > .eyebrow,
  .apps-page .apps-intro > .eyebrow,
  .about-page .about-page-label {
    font-size: 0.84rem;
    transform: translateY(-0.2rem);
  }

  .apps-page .apps-intro,
  .about-page .about-hero {
    padding-top: 2.35rem;
  }

  .journal-page .page-intro h1 {
    margin: 0.75rem auto 1rem;
    font-size: clamp(2.5rem, 11.5vw, 3.5rem);
  }

  .journal-page .journal-listing {
    padding-top: 2rem;
  }

  .journal-page .filter-bar {
    margin-bottom: 2rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-actions,
  .contact-section > div,
  .app-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stage {
    min-height: 345px;
  }

  .stage-note {
    left: 0;
  }

  .stage-card {
    width: 90%;
    padding: 0.55rem;
  }

  .stage-prime {
    transform: translate(-7%, -2%) rotate(-4deg);
  }

  .stage-magic {
    transform: translate(8%, 10%) rotate(5deg);
  }

  .stage-caption {
    display: none;
  }

  .ticker {
    margin-top: 1rem;
  }

  .latest-section,
  .apps-section,
  .more-writing,
  .app-writing,
  .app-features {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-title {
    margin-top: 2.8rem;
  }

  .app-card {
    min-height: 560px;
  }

  .app-card-copy,
  .app-showcase-copy {
    padding: 1.5rem;
  }

  .app-card h3 {
    font-size: 3.2rem;
  }

  .manifesto {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .site-footer .copyright {
    grid-column: auto;
  }

  .page-intro {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .page-intro > p {
    margin-left: 0;
  }

  .filter-bar {
    overflow: visible;
    padding-bottom: 0.4rem;
  }

  .filter-bar button[data-filter] {
    flex: 0 0 auto;
  }

  .post-header {
    padding-top: 3rem;
  }

  .post-header .back-link {
    margin-bottom: 3rem;
  }

  .post-title {
    font-size: clamp(2.55rem, 11vw, 3.8rem);
  }

  .post-rule {
    margin: 0 1.2rem;
  }

  .prose {
    font-size: 1rem;
    line-height: 1.85;
  }

  .prose blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 1.5rem;
    font-size: 1.25rem;
  }

  .related-app {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-nav-empty {
    display: none;
  }

  .app-showcase {
    min-height: 0;
    border-radius: 24px;
  }

  .app-showcase .app-title-row {
    margin-top: 3rem;
  }

  .app-showcase h2 {
    font-size: 3.3rem;
  }

  .app-showcase-visual {
    padding: 0 1rem 2rem;
  }

  .app-hero {
    padding-top: 3rem;
  }

  .app-hero h1 {
    font-size: 3.6rem;
  }

  .app-hero-visual {
    padding: 1rem;
    border-radius: 24px;
  }

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

  .feature-item {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-item:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  .feature-item h3 {
    margin-top: 3rem;
  }

  .app-story,
  .about-story {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .app-story > div:last-child p {
    font-size: 1.25rem;
  }

  .about-hero {
    padding-top: 3rem;
  }

  .about-portrait {
    width: 100%;
  }

  .contact-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
