@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --font-header: "Outfit", var(--font-sans);
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #f0f0f0;
  --text: #000000;
  --text-secondary: #3a3a3a;
  --text-tertiary: #6b6b6b;
  --accent: #000000;
  --accent-hover: #1a1a1a;
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  /* Same face as body / .h-label; legacy alias */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  /* Page titles: same rhythm as .h-label (wide tracking, Plus Jakarta Sans) */
  --font-heading-track: 0.1em;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.045), 0 14px 36px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.055), 0 22px 50px rgba(15, 23, 42, 0.075);
  --shadow-header: none;
  --shadow-footer: none;
  --shadow-line: inset 0 -1px 0 rgba(15, 23, 42, 0.055);
  --shadow-line-top: inset 0 1px 0 rgba(15, 23, 42, 0.055);
  --shadow-pill: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 18px rgba(15, 23, 42, 0.06);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --max-read: 38rem;
  --max-width: 76rem;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --duration: 220ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --bg-elevated: #161616;
    --bg-muted: #1c1c1c;
    --text: #f2f2f2;
    --text-secondary: #c4c4c4;
    --text-tertiary: #8e8e8e;
    --accent: #f2f2f2;
    --accent-hover: #ffffff;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4), 0 18px 48px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45), 0 26px 56px rgba(0, 0, 0, 0.38);
    --shadow-header: none;
    --shadow-footer: none;
    --shadow-line: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    --shadow-line-top: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-pill: 0 1px 4px rgba(0, 0, 0, 0.35), 0 8px 22px rgba(0, 0, 0, 0.32);
  }

}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--text);
  background-color: var(--bg);
  background-image: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

::selection {
  background: color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top var(--duration) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-md);
}

h1,
h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: var(--font-heading-track);
  font-feature-settings: "kern" 1, "liga" 1;
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.2em;
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.stack-tight {
  gap: var(--space-sm);
}

.muted {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.inline-code,
.page-head code {
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--bg-muted);
  box-shadow: var(--shadow-xs);
  font-family: ui-monospace, monospace;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: var(--shadow-header);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: max(var(--space-md), env(safe-area-inset-top, 0px)) max(var(--space-xl), env(safe-area-inset-right, 0px))
    var(--space-md) max(var(--space-xl), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}

.logo:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.nav a {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-header);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-muted);
  box-shadow: none;
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: max(var(--space-md), env(safe-area-inset-top, 0px)) max(var(--space-md), env(safe-area-inset-right, 0px))
      var(--space-md) max(var(--space-md), env(safe-area-inset-left, 0px));
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: var(--space-xs);
  }

  .nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: var(--space-sm) var(--space-xs);
    font-size: 0.8125rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .footer {
    padding-right: max(var(--space-md), env(safe-area-inset-right, 0px));
    padding-left: max(var(--space-md), env(safe-area-inset-left, 0px));
  }
}

/* Main */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: max(clamp(3rem, 8vw, 5rem), env(safe-area-inset-top, 0px));
  padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right, 0px));
  padding-bottom: max(clamp(3rem, 6vw, 4.5rem), env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left, 0px));
  min-height: 50vh;
  background: var(--bg);
}

.main--home {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

@media (max-width: 520px) {
  .main {
    padding-top: max(var(--space-2xl), env(safe-area-inset-top, 0px));
    padding-right: max(var(--space-md), env(safe-area-inset-right, 0px));
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom, 0px));
    padding-left: max(var(--space-md), env(safe-area-inset-left, 0px));
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Home */
.hero-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

@media (min-width: 52rem) {
  .hero-home {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 5vw, 3.5rem);
  }
}

.hero-home .hero {
  margin-bottom: 0;
  max-width: none;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  max-height: min(26rem, 52vh);
}

.hero-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.hero {
  position: relative;
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  padding-left: clamp(1rem, 3vw, 1.35rem);
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.1em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--text) 22%, transparent),
    color-mix(in srgb, var(--text) 6%, transparent)
  );
  box-shadow: 2px 0 12px color-mix(in srgb, var(--text) 8%, transparent);
}

#hero-title.hero-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: clamp(2.125rem, 5.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.035em !important;
  color: var(--text);
  font-feature-settings: "kern" 1;
}

/* Subheading: same rhythm as .h-label / section kickers */
.hero-sub {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1.45;
  word-spacing: 0.35em;
}

.hero-sub-sep {
  padding: 0 0.65em;
  font-weight: 500;
  color: color-mix(in srgb, var(--text-tertiary) 65%, transparent);
}

.hero-detail {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 36rem;
}

.hero-detail strong.hero-accent {
  font-weight: 600;
  color: var(--text);
}

.hero-one-liner {
  margin: var(--space-lg) 0 0;
  font-size: 0.9375rem;
  color: var(--text-tertiary);
}

.section-kicker {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.pillars-wrap {
  margin-top: var(--space-2xl);
}

.home-contact {
  margin-top: var(--space-2xl);
  max-width: 42rem;
  padding: var(--space-lg) var(--space-xl);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
}

.home-contact-copy {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.lede {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.intro {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  background: var(--bg-elevated);
  border: none;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-spring);
}

.pillar-media,
.app-card-media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}

.app-card-media--shelf {
  aspect-ratio: 3 / 2;
}

.app-card-media--shelf .app-card-tag {
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 0.3em 0.55em;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
}

.pillar-tag,
.app-card-tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 1;
  padding: 0.4em 0.75em;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.pillar-img,
.app-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter var(--duration) var(--ease-out);
}

.pillar:hover .pillar-img,
.app-card:hover .app-card-img {
  filter: grayscale(100%) contrast(1.12);
}

.pillar-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-xl) calc(var(--space-xl) + 2px);
  flex: 1;
}

.pillar:hover {
  box-shadow: var(--shadow-md), 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent);
  transform: translateY(-3px);
  text-decoration: none;
}

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

.pillar-title {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: var(--font-heading-track);
  color: var(--text);
}

.pillar-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 28ch;
}

/* Page sections */
.page-head {
  max-width: var(--max-read);
  margin-bottom: var(--space-2xl);
}

.page-section {
  margin-bottom: var(--space-2xl);
}

.h-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-md);
}

.page-head h1 {
  letter-spacing: var(--font-heading-track);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
}

.link-list a {
  font-weight: 500;
}

/* Apps */
.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  height: 100%;
  padding: var(--space-xl);
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-spring);
}

.app-card--featured {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  border-radius: calc(var(--radius) + 2px);
}

.app-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-xl) calc(var(--space-xl) + 2px);
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.app-card:hover {
  box-shadow: var(--shadow-md), 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent);
  transform: translateY(-1px);
  text-decoration: none;
}

.app-card--featured:hover {
  transform: translateY(-3px);
}

.app-card--shelf {
  width: 100%;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  border-radius: calc(var(--radius) + 1px);
}

.app-card--shelf:hover {
  transform: translateY(-2px);
}

.app-card-body--shelf {
  padding: var(--space-md);
  gap: var(--space-xs);
}

.app-card-body--shelf .app-shelf-name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-body--shelf .app-shelf-desc {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

a.app-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-status {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.app-card-tag.app-status {
  letter-spacing: 0.12em;
  color: #000000;
}

.app-name {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: var(--font-heading-track);
  color: var(--text);
}

.app-tagline {
  display: block;
  flex: 1;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.app-cta {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.app-card:hover .app-cta {
  color: var(--text);
}

.apps-strong {
  font-weight: 600;
  color: var(--text);
}

.app-featured-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

.app-card--static {
  cursor: default;
}

.app-card--static:hover {
  transform: none;
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
}

.app-card--featured.app-card--static:hover {
  transform: none;
}

.app-card--featured .app-name {
  font-size: 1.375rem;
}

.app-card--static .app-tagline {
  margin: 0;
  flex: 1;
}

.app-cta--muted {
  color: var(--text-tertiary);
  font-weight: 500;
}

.shelf-intro {
  margin: 0 0 var(--space-md);
  max-width: var(--max-read);
}

.app-shelf-section {
  margin-bottom: var(--space-2xl);
}

.app-shelf-section:last-of-type {
  margin-bottom: 0;
}

.app-shelf-category {
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.app-shelf--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.25rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-shelf--cards > li {
  display: flex;
  min-width: 0;
}

.app-shelf-name {
  color: var(--text);
  font-weight: 500;
  min-width: 0;
}

/* Writing — Substack RSS list */
.writing-feed {
  max-width: min(52rem, 100%);
  margin: 0 0 var(--space-2xl);
}

.writing-feed-heading {
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: var(--font-heading-track);
  line-height: 1.2;
  color: var(--text);
}

.writing-feed-root[data-loading="true"] .writing-feed-status {
  color: var(--text-secondary);
}

.writing-feed-status {
  margin: 0;
  padding: var(--space-sm) 0 var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.writing-feed-status--error {
  color: var(--text-tertiary);
}

.writing-feed-fallback {
  margin: var(--space-sm) 0 0;
  font-size: 0.875rem;
}

.writing-feed-fallback a {
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.writing-feed-fallback a:hover {
  color: var(--accent-hover);
}

.writing-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: var(--shadow-line-top);
}

.writing-feed-row {
  margin: 0;
  padding: 0;
  box-shadow: var(--shadow-line);
}

.writing-feed-list li:last-child .writing-feed-row {
  box-shadow: none;
}

.writing-feed-card {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.25rem) 1fr auto;
  gap: var(--space-md) var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.writing-feed-card--no-thumb {
  grid-template-columns: 1fr auto;
}

.writing-feed-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  background: var(--bg-muted);
}

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

.writing-feed-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

@media (max-width: 640px) {
  .app-featured-grid {
    grid-template-columns: 1fr;
  }

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

  .page-head {
    margin-bottom: var(--space-xl);
  }

  .writing-feed-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
  }

  .writing-feed-card--no-thumb {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-xs);
  }

  .writing-feed-cover {
    aspect-ratio: 16 / 9;
    max-height: 12.5rem;
  }

  .writing-feed-card:not(.writing-feed-card--no-thumb) .writing-feed-date,
  .writing-feed-card--no-thumb .writing-feed-date {
    justify-self: start;
    white-space: normal;
  }

  .post-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: var(--space-md) 0;
  }

  .post-date {
    white-space: normal;
  }
}

.writing-feed-card:hover .writing-feed-title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.writing-feed-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: var(--font-heading-track);
  color: var(--text);
}

.writing-feed-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.writing-feed-date {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.writing-site-heading {
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: var(--font-heading-track);
  line-height: 1.2;
  color: var(--text);
}

/* Writing list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: none;
  box-shadow: var(--shadow-line-top);
}

.post-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md) var(--space-xl);
  align-items: baseline;
  padding: var(--space-lg) 0;
  border-bottom: none;
  box-shadow: var(--shadow-line);
}

.post-list li:last-child .post-row {
  box-shadow: none;
}

.post-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.post-link:hover .post-title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.post-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: var(--font-heading-track);
  color: var(--text);
}

.post-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.post-date {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* Article */
.article {
  max-width: var(--max-read);
}

.crumb {
  margin: 0;
  font-size: 0.875rem;
}

.crumb a {
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.article-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.deck {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.prose p {
  margin-bottom: var(--space-md);
}

.prose a {
  font-weight: 500;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: none;
  box-shadow: var(--shadow-footer);
  padding: var(--space-lg) max(var(--space-xl), env(safe-area-inset-right, 0px)) max(var(--space-lg), env(safe-area-inset-bottom, 0px))
    max(var(--space-xl), env(safe-area-inset-left, 0px));
  min-height: 0;
  background: var(--bg);
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
}

.site-footer-brand {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.site-footer-links {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Hidden SVG sprite */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Music page */
.music-hero {
  max-width: var(--max-read);
  margin-bottom: var(--space-2xl);
}

.music-hero h1 {
  text-transform: none;
  letter-spacing: var(--font-heading-track);
}

.music-noscript {
  max-width: var(--max-read);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
}

.music-released {
  max-width: min(48rem, 100%);
}

.music-released-intro {
  margin: 0 0 var(--space-lg);
  max-width: var(--max-read);
  font-size: 0.875rem;
  line-height: 1.55;
}

.music-released-embed {
  margin-bottom: 0;
}

.music-embed-shell iframe,
.music-embed-iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 352px;
  border: 0;
  border-radius: 12px;
}

.music-stream-block {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.music-stream-heading {
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.music-demos-section {
  max-width: min(40rem, 100%);
}

.music-demos-lede {
  margin: 0 0 var(--space-lg);
  font-size: 0.875rem;
  line-height: 1.5;
}

.music-demos-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .music-demos-grid {
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  }
}

.music-demo-card {
  padding: var(--space-lg) var(--space-xl);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
}

.music-demo-title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: var(--font-heading-track);
  color: var(--text);
}

.music-demo-meta {
  margin: 0 0 var(--space-md);
  font-size: 0.8125rem;
}

.music-demo-audio {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
}

.stream-section.page-section {
  margin-top: 0;
}

.stream-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  align-items: stretch;
  /* Equal columns when the row fits 3 tiles — stops one cell shrinking and clipping labels */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

@media (min-width: 52rem) {
  .stream-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stream-grid > li {
  display: flex;
  min-width: 0;
  align-items: stretch;
}

.stream-grid > li[hidden] {
  display: none;
}

.stream-btn {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  min-height: 3.375rem;
  height: 100%;
  box-sizing: border-box;
  overflow: visible;
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.stream-btn:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text);
}

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

.stream-ico {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  align-self: center;
  color: var(--text-secondary);
  pointer-events: none;
}

.stream-btn:hover .stream-ico {
  color: var(--text);
}

.stream-btn--pending {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: var(--shadow-xs);
  pointer-events: none;
}

.stream-btn--pending:hover {
  transform: none;
  box-shadow: var(--shadow-xs);
}

.stream-label {
  flex: 1 1 auto;
  min-width: min-content;
  text-align: start;
  white-space: nowrap;
  overflow: visible;
  pointer-events: none;
}

.main--writing .page-head {
  margin-bottom: var(--space-xl);
}

.writing-intro {
  margin: 0;
  max-width: var(--max-read);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.writing-substack {
  max-width: min(52rem, 100%);
  margin: 0 0 var(--space-2xl);
  padding: clamp(var(--space-xl), 4vw, var(--space-2xl));
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md), 0 0 0 1px color-mix(in srgb, var(--text) 5%, transparent);
}

.writing-substack-head {
  margin-bottom: var(--space-lg);
}

.writing-substack-kicker {
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.writing-substack-heading {
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: var(--font-heading-track);
  line-height: 1.15;
}

.writing-substack-summary {
  margin: 0;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.writing-substack-actions {
  margin: var(--space-md) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.writing-substack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}

.writing-substack-btn:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--text) 88%, transparent);
}

.writing-substack-btn--ghost {
  background: var(--bg-muted);
  color: var(--text) !important;
}

.writing-substack-btn--ghost:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.writing-substack-heading-link {
  color: var(--text);
  text-decoration: none;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

.writing-substack-heading-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.writing-substack-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
}

.writing-substack-link:hover {
  color: var(--accent-hover);
}

.writing-substack-link--pending {
  color: var(--text-tertiary);
  cursor: not-allowed;
  pointer-events: none;
}

.writing-substack-heading-link.writing-substack-link--pending {
  color: var(--text-tertiary);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

.embed-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.embed-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.embed-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.embed-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.embed-shell--apple {
  display: flex;
  justify-content: center;
}

.embed-placeholder {
  padding: var(--space-xl);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.embed-placeholder p {
  margin: 0;
}

.embed-shell iframe:not([hidden]) {
  display: block;
}

.embed-shell--apple iframe:not([hidden]) {
  margin: 0 auto;
}

/* App detail (mock App Store / web product) */
.main--app-detail {
  max-width: 42rem;
}

.main--app-detail--editorial {
  max-width: 72rem;
}

/* Mileage Tracker — optional editorial hero (split + display type) */
.app-detail-display {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
}

.app-detail-display-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 14vw, 7rem);
  text-transform: uppercase;
  color: var(--text);
}

.app-detail-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

@media (min-width: 768px) {
  .app-detail-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }
}

.app-detail-visual {
  position: relative;
  min-height: clamp(18rem, 52vh, 36rem);
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.app-detail-visual::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
  pointer-events: none;
}

.app-detail-visual-lines {
  position: absolute;
  inset: 0;
  padding: 8%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
}

.app-detail-visual-lines span {
  display: block;
  height: 2px;
  background: color-mix(in srgb, var(--bg) 28%, transparent);
  max-width: 100%;
}

.app-detail-visual-lines span:nth-child(2) {
  max-width: 72%;
}

.app-detail-visual-lines span:nth-child(3) {
  max-width: 88%;
}

.app-detail-lede-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.app-detail-tagline {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  max-width: 26ch;
}

.app-detail-meta-swiss {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.app-detail-breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: var(--space-xl);
}

.app-detail-breadcrumb a {
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
}

.app-detail-breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.app-detail-bc-sep {
  margin: 0 0.35em;
  opacity: 0.5;
}

.app-detail-hero {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
}

.app-detail-hero--web {
  flex-wrap: wrap;
}

.app-detail-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.app-detail-icon--ios {
  background: linear-gradient(145deg, #5ac8fa 0%, #007aff 45%, #5856d6 100%);
  box-shadow: 0 8px 24px color-mix(in srgb, #007aff 35%, transparent);
}

.app-detail-icon--web {
  background: linear-gradient(145deg, var(--text-secondary) 0%, var(--text) 100%);
  box-shadow: var(--shadow-sm);
}

.app-detail-hero-text {
  min-width: 0;
  flex: 1;
}

.app-detail-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: var(--font-heading-track);
  margin: 0 0 var(--space-sm);
  color: var(--text);
}

.app-detail-subtitle {
  margin: 0 0 var(--space-sm);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.app-detail-meta-line {
  margin: 0 0 var(--space-lg);
  font-size: 0.875rem;
}

.app-detail-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.app-detail-get {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg) !important;
  text-decoration: none !important;
  background: var(--text);
  border: 2px solid var(--text);
  border-radius: 0;
  box-shadow: none;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.app-detail-get:hover {
  filter: none;
  transform: none;
  background: transparent;
  color: var(--text) !important;
}

.app-detail-get-note {
  font-size: 0.75rem;
  max-width: 28rem;
  line-height: 1.45;
}

.app-detail-actions--web {
  gap: var(--space-md);
}

.app-detail-web-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg) !important;
  text-decoration: none !important;
  background: var(--text);
  border: 2px solid var(--text);
  border-radius: 0;
  box-shadow: none;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.app-detail-web-primary:hover {
  box-shadow: none;
  transform: none;
  background: transparent;
  color: var(--text) !important;
}

.app-detail-section {
  margin-bottom: var(--space-2xl);
}

.app-detail-section--compact {
  margin-bottom: var(--space-xl);
}

.app-detail-h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
  color: var(--text-tertiary);
}

.app-detail-shots {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.app-detail-shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.app-detail-shot-frame {
  width: 180px;
  height: 390px;
  border-radius: 28px;
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.app-detail-prose {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.app-detail-prose p {
  margin-bottom: var(--space-md);
}

.app-detail-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.app-detail-dl > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-line);
}

.app-detail-dl > div:last-child {
  box-shadow: none;
}

.app-detail-dl dt {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}

.app-detail-dl dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.app-detail-web-preview {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-elevated);
}

.app-detail-web-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-muted);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}

.app-detail-web-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.app-detail-web-canvas {
  min-height: 220px;
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
}

.app-detail-back {
  margin: var(--space-2xl) 0 0;
  font-size: 0.9375rem;
}

@media (max-width: 560px) {
  .app-detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-detail-actions,
  .app-detail-actions--web {
    align-items: center;
  }

  .app-detail-dl > div {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* Narrow phones: shorter media, tighter cards, wrap stream labels */
@media (max-width: 480px) {
  .hero {
    padding-left: var(--space-md);
  }

  .hero-visual {
    max-height: min(20rem, 42vh);
  }

  .hero-sub-sep {
    padding: 0 0.35em;
  }

  .hero-sub {
    word-spacing: 0.12em;
    font-size: 0.6875rem;
  }

  .pillar-body {
    padding: var(--space-lg);
  }

  .home-contact {
    padding: var(--space-lg) var(--space-md);
  }

  .app-card-body {
    padding: var(--space-lg);
  }

  .app-card-body--shelf {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .music-embed-shell iframe,
  .music-embed-iframe {
    height: min(280px, 45vh);
  }

  .writing-substack {
    padding: var(--space-lg) var(--space-md);
  }

  .writing-substack-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .writing-substack-btn {
    width: 100%;
    min-height: 2.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .stream-label {
    white-space: normal;
    line-height: 1.3;
  }

  .stream-btn {
    min-height: 3rem;
    padding: 0.75rem 1rem;
  }

  .writing-feed-title,
  .post-title {
    font-size: 1.125rem;
  }
}

@media (hover: none) {
  .pillar:hover,
  .app-card:hover,
  .app-card--featured:hover,
  .stream-btn:hover {
    transform: none;
  }
}

.page-head p,
.hero-detail,
.shelf-intro,
.writing-intro,
.music-released-intro,
.writing-feed-desc,
.writing-feed-title,
.app-shelf-desc,
.app-shelf-name {
  overflow-wrap: anywhere;
}
