/* ---------------------------------------------------------------
   Skella & Co — 2026
   --------------------------------------------------------------- */

/* Söhne webfonts (licensed via dgwltd usage) */
@font-face {
  font-family: "Söhne";
  src: url("/fonts/soehne-leicht.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/fonts/soehne-leicht-kursiv.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/fonts/soehne-buch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/fonts/soehne-buch-kursiv.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/fonts/soehne-kraftig.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/fonts/soehne-kraftig-kursiv.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/fonts/soehne-halbfett.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("/fonts/soehne-halbfett-kursiv.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ---------------------------------------------------------------
   Tokens
   --------------------------------------------------------------- */
:root {
  /* Brand */
  --brand: #5900C1;
  --brand-tint: #7A2CE0;

  /* Light theme */
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --text: #1A1A1C;
  --muted: #5F5F66;
  --soft: #A8A8B0;
  --rule: rgba(26, 26, 28, 0.08);
  --logo-filter: grayscale(1) contrast(1.05);
  --logo-opacity: 0.65;

  /* Typography */
  --font-sans: "Söhne", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale (clamp(min, vw-fluid, max)) */
  --step-0: clamp(0.9375rem, 0.88rem + 0.28vw, 1.0625rem);   /* 15–17px body-sm */
  --step-1: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);      /* 17–20px body */
  --step-2: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);       /* 20–26px lede */
  --step-3: clamp(1.75rem, 1.4rem + 1.7vw, 2.75rem);         /* 28–44px h1 */
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 4rem);              /* 36–64px hero */

  /* Rhythm */
  --container: 68rem;          /* ~1088px */
  --container-narrow: 44rem;   /* ~704px */
  --pad-x: clamp(1.5rem, 4vw, 4rem);
  --pad-y: clamp(3rem, 6vw, 6rem);
  --gap: clamp(1.5rem, 2.5vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;
}

/* ---------------------------------------------------------------
   Reset + base
   --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "ss02", "kern";
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand-tint);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */
.shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

.shell--narrow {
  max-width: var(--container-narrow);
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

header.site .logo {
  display: inline-flex;
  align-items: center;
  border: 0;
  line-height: 0;
  /* Optical lift: the wordmark reads ~2px higher than its
     bounding box centre, pull it down to align with pill controls */
  padding-top: 0.15em;
}

header.site .logo img {
  width: 130px;
  height: auto;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: var(--step-0);
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  /* Japanese glyphs have no descenders and optically sit lower —
     nudge text up 1px so JP label baselines match the Latin pill */
  padding: 0.45rem 0.85rem 0.55rem;
  height: 2.15rem;
  text-decoration: none;
  cursor: pointer;
  font-feature-settings: "palt" 1;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--text);
  border-color: var(--text);
  outline: none;
}

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

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

.skip-link:focus {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  overflow: visible;
  clip: auto;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 6px 0;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  max-width: 52rem;
}

.hero--continued {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.hero h1 {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text);
}

.hero .lede {
  margin: 0 0 1.25em;
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--text);
}

.hero .lede:last-of-type {
  margin-bottom: 0;
}

.hero .lede strong {
  font-weight: 500;
  color: var(--text);
}

.hero .credentials {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  font-size: var(--step-0);
  color: var(--muted);
  line-height: 1.6;
  max-width: 40rem;
}

/* ---------------------------------------------------------------
   Clients strip
   --------------------------------------------------------------- */
.clients {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 3vw, 2.75rem);
  padding-bottom: clamp(2rem, 3vw, 2.75rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* When the clients strip appears early (between hero paragraphs), tighten the rhythm */
.clients--early {
  margin-top: clamp(2rem, 3.5vw, 3rem);
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  padding-bottom: clamp(0.5rem, 1vw, 1rem);
}

.clients__label {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.clients__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  row-gap: 1.5rem;
}

.clients__row img {
  height: 22px;
  width: auto;
  opacity: var(--logo-opacity);
  filter: var(--logo-filter);
}

@media (min-width: 48rem) {
  .clients__row img {
    height: 26px;
  }
}

/* AFL mark reads smaller than wordmarks at shared height; bump for optical parity */
.clients__row img.clients__row-img--afl {
  height: 34px;
}

@media (min-width: 48rem) {
  .clients__row img.clients__row-img--afl {
    height: 40px;
  }
}

/* Optical alignment: asset bounding boxes don't match visual baselines.
   AMD and AAMI sit low; Western Digital and Telstra sit high. */
.clients__row img.clients__row-img--amd,
.clients__row img.clients__row-img--aami {
  transform: translateY(-2px);
}

.clients__row img.clients__row-img--wd,
.clients__row img.clients__row-img--telstra {
  transform: translateY(2px);
}

/* ---------------------------------------------------------------
   Testimonial
   --------------------------------------------------------------- */
.testimonial {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  max-width: 48rem;
}

.testimonial blockquote {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  quotes: "\201C" "\201D";
}

.testimonial blockquote::before {
  content: open-quote;
  color: var(--brand);
  margin-right: 0.1em;
}

.testimonial blockquote::after {
  content: close-quote;
  color: var(--brand);
}

.testimonial cite {
  display: block;
  margin-top: 1.25rem;
  font-size: var(--step-0);
  font-style: normal;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Ventures
   --------------------------------------------------------------- */
.ventures {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 3vw, 2.75rem);
  border-top: 1px solid var(--rule);
}

.ventures__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.ventures__hint {
  margin: 0 0 1.75rem;
  font-size: var(--step-0);
  color: var(--muted);
  max-width: 36rem;
}

.ventures__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.venture {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  transition: transform 0.3s var(--ease),
              border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.venture:hover {
  transform: translateY(-2px);
  border-color: var(--text);
  color: var(--text);
}

.venture img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: 0 0 36px;
  /* Ventures keep full colour in both modes */
  filter: none;
  opacity: 1;
}

.venture__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.venture__name {
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.venture__desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ---------------------------------------------------------------
   Contact
   --------------------------------------------------------------- */
.contact {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 3vw, 2.75rem);
  border-top: 1px solid var(--rule);
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  font-size: var(--step-1);
  color: var(--muted);
}

.contact__row .reveal {
  border: 0;
  color: var(--text);
  border-bottom: 1px solid currentColor;
  font-weight: 400;
  transition: color 0.2s var(--ease);
}

.contact__row .reveal:hover {
  color: var(--brand);
}

.contact__row a {
  color: var(--text);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
footer.site {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding: clamp(2rem, 3vw, 2.75rem) 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: var(--step-0);
  color: var(--soft);
}

footer.site a {
  color: var(--muted);
  border-bottom: 0;
}

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

/* ---------------------------------------------------------------
   Animations
   --------------------------------------------------------------- */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rise {
  opacity: 0;
  animation: riseIn var(--dur) var(--ease) forwards;
}

.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.4s; }
.rise-5 { animation-delay: 0.55s; }
.rise-6 { animation-delay: 0.7s; }
.rise-7 { animation-delay: 0.85s; }
.rise-8 { animation-delay: 1s; }
.rise-9 { animation-delay: 1.15s; }

/* Reveal (GSAP-driven) — start state is invisible until JS mounts */
.reveal-ready [data-reveal] {
  opacity: 0;
}

.reveal-ready [data-reveal="words"] .word,
.reveal-ready [data-reveal="lines"] .line {
  opacity: 0;
  transform: translateY(0.35em);
  display: inline-block;
  will-change: transform, opacity;
}

.reveal-ready [data-reveal="lines"] .line {
  display: block;
  overflow: hidden;
}

/* When the revealed parent is visible, children inherit their JS-set values */
.reveal-ready [data-reveal] {
  visibility: visible;
}

/* No-JS / reduced-motion fallback: everything visible immediately */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal] .word,
  .reveal-ready [data-reveal] .line {
    opacity: 1 !important;
    transform: none !important;
  }
}

.no-js [data-reveal],
.no-js [data-reveal] .word,
.no-js [data-reveal] .line {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------------------------------------------------------------
   Writing
   --------------------------------------------------------------- */
.writing-index h1,
.post h1 {
  margin: 0 0 0.75rem;
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--text);
}

.lede-sub {
  margin: 0 0 clamp(3rem, 5vw, 4rem);
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 36rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.post-list li {
  border-top: 1px solid var(--rule);
}

.post-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.post-list a {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border: 0;
  color: var(--text);
  transition: transform 0.3s var(--ease);
}

.post-list a:hover {
  transform: translateX(4px);
  color: var(--brand);
}

@media (max-width: 40rem) {
  .post-list a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.25rem 0;
  }
}

.post-list__date {
  font-size: var(--step-0);
  color: var(--soft);
  letter-spacing: 0.02em;
  padding-top: 0.25rem;
}

.post-list__title {
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--text);
}

.post-list a:hover .post-list__title {
  color: var(--brand);
}

.post-list__dek {
  grid-column: 2;
  margin-top: 0.5rem;
  font-size: var(--step-0);
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 40rem) {
  .post-list__dek {
    grid-column: 1;
    margin-top: 0.15rem;
  }
}

/* Essay body */
.post {
  max-width: 40rem;
  margin: 0 auto;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-size: var(--step-0);
  color: var(--soft);
  letter-spacing: 0.02em;
}

.post__body {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--text);
}

.post__body p,
.post__body ul,
.post__body ol,
.post__body blockquote {
  margin: 0 0 1.25em;
}

.post__body h2 {
  margin: 2em 0 0.6em;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--text);
}

.post__body h3 {
  margin: 1.75em 0 0.5em;
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--text);
}

.post__body blockquote {
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--brand);
  color: var(--muted);
  font-style: normal;
}

.post__body strong {
  font-weight: 500;
  color: var(--text);
}

.post__body a {
  color: var(--text);
  border-bottom: 1px solid var(--soft);
}

.post__body a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.post__body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
}

.post__related {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: block;
}

.post__related-label {
  margin: 0 0 0.75rem;
  font-size: var(--step-0);
  color: var(--soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post__related-link {
  display: block;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.post__related-link:hover,
.post__related-link:focus-visible {
  transform: translateX(4px);
  color: var(--brand);
  outline: none;
}

.post__related-title {
  display: block;
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.post__related-link:hover .post__related-title,
.post__related-link:focus-visible .post__related-title {
  color: var(--brand);
}

.post__related-dek {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--step-0);
  color: var(--muted);
  line-height: 1.5;
}

.post__footer {
  margin-top: clamp(2rem, 3vw, 3rem);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step-0);
  color: var(--muted);
}

/* Essay tag chips (in-article) */
.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.post__tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.post__tag:hover,
.post__tag:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
  outline: none;
}

/* Prev / next pager */
.post__pager {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post__pager-link {
  display: block;
  padding: 1rem 0;
  color: var(--text);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
  border: 0;
}

.post__pager-link--next {
  text-align: right;
}

.post__pager-link--empty {
  display: block;
}

.post__pager-link:hover,
.post__pager-link:focus-visible {
  color: var(--brand);
  outline: none;
}

.post__pager-link--prev:hover,
.post__pager-link--prev:focus-visible {
  transform: translateX(-4px);
}

.post__pager-link--next:hover,
.post__pager-link--next:focus-visible {
  transform: translateX(4px);
}

.post__pager-label {
  display: block;
  font-size: 0.78rem;
  color: var(--soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.post__pager-title {
  display: block;
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

@media (max-width: 40rem) {
  .post__pager {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .post__pager-link--next {
    text-align: left;
  }
  .post__pager-link--empty {
    display: none;
  }
}

/* Writing index — filter controls */
.writing-filter {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.writing-filter__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

.writing-filter__tag {
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.writing-filter__tag:hover,
.writing-filter__tag:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
  outline: none;
}

.writing-filter__tag.is-active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.writing-filter__empty {
  margin: 0.5rem 0 0;
  font-size: var(--step-0);
  color: var(--muted);
  font-style: italic;
}

/* Writing index — inline meta + tag chips on list rows */
.post-list__meta {
  grid-column: 2;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--soft);
  letter-spacing: 0.02em;
}

.post-list__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.35rem;
}

.post-list__tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .post-list__meta {
    grid-column: 1;
  }
}

/* Legal (privacy / terms) */
.legal h1 {
  margin: 0 0 0.5rem;
  font-size: var(--step-3);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.legal .updated {
  display: block;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-size: var(--step-0);
  color: var(--soft);
}

.legal h2 {
  margin: 2em 0 0.6em;
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.legal p,
.legal ul {
  margin: 0 0 1.15em;
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--text);
}

.legal ul {
  padding-left: 1.25rem;
}
