/* CakeTools, variant A "Soft": deep green-slate dark theme, peach accent, mint support, rounded shapes. */

/* ---------- Font (self-hosted, variable 300-900) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --maxw: 1640px;
  --gutter: clamp(16px, 4vw, 48px);

  --bg: #0F1A17;
  --raised: #14221E;
  --card: #182A24;
  --card-hi: #1D3129;
  --border: #24382F;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --text: #E8F1EC;
  --muted: #A6B8AF;
  --mint: #8FD1B5;
  --mint-bg: #1E3A30;
  --mint-panel: #163028;
  --peach: #F2A27F;
  --peach-hi: #F6B596;
  --peach-bg: #3B2A22;
  --on-peach: #0F1A17;
  --tile: #F6E0D2;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .7, .25, 1);
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;

  /* 1.25 scale, fluid between 390px and 1440px */
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: clamp(1rem, .977rem + .095vw, 1.0625rem);
  --fs-read: clamp(1.0625rem, 1.016rem + .19vw, 1.1875rem);
  --fs-md: clamp(1.125rem, 1.032rem + .381vw, 1.375rem);
  --fs-lg: clamp(1.25rem, 1.111rem + .571vw, 1.625rem);
  --fs-xl: clamp(1.5rem, 1.268rem + .952vw, 2.125rem);
  --fs-2xl: clamp(1.875rem, 1.55rem + 1.333vw, 2.75rem);
  --fs-3xl: clamp(2.125rem, 1.6375rem + 2vw, 3.4375rem);
  --fs-4xl: clamp(2.5rem, 1.85rem + 2.667vw, 4.25rem);

  --section: clamp(64px, 7vw, 112px);
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}

p,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 700;
}

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

::selection {
  background: rgba(242, 162, 127, .32);
  color: var(--text);
}

.sf-icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.sf-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sf-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.sf-header {
  position: relative;
  z-index: 20;
}

.sf-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.sf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 1.4375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
}

.sf-logo__mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--peach);
}

.sf-logo__mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px var(--bg);
}

.sf-logo__light {
  font-weight: 400;
}

.sf-nav ul {
  display: flex;
  gap: 4px;
}

.sf-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}

.sf-nav a:hover {
  background: var(--card);
}

.sf-nav a:active {
  background: var(--card-hi);
}

.sf-nav a[aria-current="page"] {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--peach);
}

.sf-burger {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}

.sf-burger:hover {
  background: var(--card-hi);
}

.sf-burger:active {
  transform: scale(.95);
}

.sf-burger__close,
.sf-burger[aria-expanded="true"] .sf-burger__open {
  display: none;
}

.sf-burger[aria-expanded="true"] .sf-burger__close {
  display: block;
}

@media (max-width: 859.98px) {
  .sf-nav {
    position: absolute;
    top: calc(100% - 6px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--raised);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  }

  .sf-nav--open {
    display: block;
  }

  .sf-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .sf-nav a {
    display: flex;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: var(--r-md);
    font-size: 1.0625rem;
  }
}

@media (min-width: 860px) {
  .sf-burger {
    display: none;
  }
}

/* ---------- Shared bits ---------- */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: var(--peach);
  color: var(--on-peach);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.sf-btn .sf-icon {
  transition: transform .2s var(--ease);
}

.sf-btn:hover {
  background: var(--peach-hi);
}

.sf-btn:hover .sf-icon {
  transform: translateX(3px);
}

.sf-btn:active {
  transform: translateY(1px) scale(.99);
}

.sf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  border-radius: var(--r-pill);
  background: var(--mint-bg);
  color: var(--mint);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

.sf-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.sf-label {
  color: var(--mint);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sf-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: var(--r-pill);
  background: var(--peach-bg);
  color: var(--peach);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.sf-tag--mint {
  background: var(--mint-bg);
  color: var(--mint);
}

.sf-check {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint-bg);
  color: var(--mint);
}

.sf-head {
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.sf-head h2 {
  font-size: var(--fs-2xl);
}

/* illustrations: light peach tiles on the dark page */
.sf-tile {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--tile);
}

.sf-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero ---------- */
.sf-hero {
  padding-block: clamp(16px, 3vw, 48px) var(--section);
}

.sf-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.sf-hero h1 {
  margin-top: 20px;
  font-size: var(--fs-4xl);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.sf-hero__lead {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.sf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}

.sf-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.sf-note .sf-icon {
  color: var(--mint);
}

.sf-hero__art {
  position: relative;
  isolation: isolate;
}

.sf-hero__tile {
  aspect-ratio: 3 / 2;
}

.sf-hero__tile img {
  object-position: 50% 55%;
}

@media (max-width: 599.98px) {
  .sf-hero__actions .sf-btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .sf-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(40px, 5vw, 96px);
  }

  .sf-hero__art::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -5%;
    bottom: -9%;
    width: 34%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(143, 209, 181, .12);
  }
}

/* ---------- Intro panel ---------- */
.sf-intro {
  padding-bottom: var(--section);
}

.sf-intro__panel {
  display: grid;
  gap: 20px 64px;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--raised);
}

.sf-intro h2 {
  font-size: var(--fs-2xl);
}

.sf-intro p {
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .sf-intro__panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* ---------- Topics bento ---------- */
.sf-topics {
  padding-bottom: var(--section);
}

.sf-bento {
  display: grid;
  gap: 20px;
}

.sf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.sf-card--mint {
  border-color: rgba(143, 209, 181, .14);
  background: var(--mint-panel);
}

.sf-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mint-bg);
  color: var(--mint);
}

.sf-card h3 {
  margin-top: 8px;
  font-size: var(--fs-md);
}

.sf-card p {
  max-width: 40ch;
  color: var(--muted);
}

.sf-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}

.sf-card__icon {
  margin-bottom: auto;
}

.sf-card__media {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-md);
}

.sf-card__media img {
  object-position: 45% 55%;
}

.sf-card__glyph {
  display: none;
}

@media (min-width: 640px) {
  .sf-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .sf-card {
    min-height: 280px;
  }

  .sf-card--wide {
    grid-column: 1 / -1;
  }

  .sf-card--media {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 32px;
  }

  .sf-card--media .sf-card__body {
    align-self: stretch;
  }

  .sf-card__media {
    aspect-ratio: 4 / 3;
  }

  .sf-card--mint .sf-card__body {
    max-width: 58%;
  }

  .sf-card__glyph {
    position: absolute;
    top: 50%;
    right: clamp(32px, 5vw, 80px);
    display: grid;
    place-items: center;
    width: clamp(120px, 11vw, 168px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(143, 209, 181, .12);
    color: var(--mint);
    box-shadow: 0 0 0 16px rgba(143, 209, 181, .05);
    transform: translateY(-50%);
  }

  .sf-card__glyph .sf-icon {
    width: 42%;
    height: auto;
  }
}

@media (min-width: 1000px) {
  .sf-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .sf-card {
    min-height: 300px;
  }

  .sf-card--wide {
    grid-column: span 7;
  }

  .sf-card--narrow {
    grid-column: span 5;
  }
}

/* ---------- Feature ---------- */
.sf-feature {
  padding-bottom: var(--section);
}

.sf-feature__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.sf-feature__tile {
  aspect-ratio: 5 / 4;
}

.sf-feature h2 {
  font-size: var(--fs-2xl);
}

.sf-feature__text p {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--muted);
}

.sf-feature__text p:first-of-type {
  margin-top: 24px;
}

.sf-points {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.sf-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .sf-feature__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 112px);
  }
}

/* ---------- Reference panel ---------- */
.sf-ref {
  padding-bottom: var(--section);
}

.sf-ref__panel {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid rgba(143, 209, 181, .14);
  border-radius: var(--r-xl);
  background: var(--mint-panel);
}

.sf-ref h2 {
  font-size: var(--fs-2xl);
}

.sf-ref p {
  max-width: 50ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.sf-ref p strong {
  color: var(--text);
}

.sf-ref .sf-btn {
  margin-top: 32px;
}

.sf-ref__tile {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  justify-self: center;
  border-radius: var(--r-lg);
  background: #EFD0BD;
}

.sf-ref__tile img {
  object-position: 50% 48%;
}

@media (min-width: 900px) {
  .sf-ref__panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 64px;
  }
}

/* ---------- Steps ---------- */
.sf-steps {
  padding-bottom: var(--section);
}

.sf-steps__list {
  display: grid;
  gap: 32px;
}

.sf-step {
  position: relative;
}

.sf-step__num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--peach);
  color: var(--on-peach);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sf-step h3 {
  font-size: var(--fs-md);
}

.sf-step p {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 759.98px) {
  .sf-step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 4px 20px;
  }

  .sf-step__body {
    padding-top: 6px;
  }

  .sf-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 48px;
    bottom: -24px;
    left: 31px;
    border-left: 2px dashed rgba(242, 162, 127, .45);
  }
}

@media (min-width: 760px) {
  .sf-steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .sf-step h3 {
    margin-top: 24px;
  }
}

@media (min-width: 1100px) {
  .sf-steps__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sf-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    left: 80px;
    right: -16px;
    border-top: 2px dashed rgba(242, 162, 127, .45);
  }
}

/* ---------- Article cards ---------- */
.sf-posts {
  padding-bottom: var(--section);
}

.sf-posts__grid {
  display: grid;
  gap: 24px;
}

.sf-post {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}

.sf-post:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .14);
  background: var(--card-hi);
}

.sf-post:active {
  transform: translateY(-1px);
}

.sf-post:has(a:focus-visible) {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}

.sf-post a:focus-visible {
  outline: none;
}

.sf-post__media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--r-lg) - 8px);
  background: var(--tile);
}

.sf-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.sf-post:hover .sf-post__media img {
  transform: scale(1.03);
}

.sf-post__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 14px 14px;
}

.sf-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.sf-post__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sf-post h3 {
  font-size: var(--fs-md);
  line-height: 1.25;
}

.sf-post h3 a {
  text-decoration: none;
}

.sf-post h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.sf-post__excerpt {
  color: var(--muted);
}

.sf-post__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--peach);
  font-weight: 700;
}

.sf-post__more .sf-icon {
  transition: transform .2s var(--ease);
}

.sf-post:hover .sf-post__more .sf-icon {
  transform: translateX(4px);
}

@media (min-width: 700px) {
  .sf-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .sf-posts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

/* horizontal card (related guides) */
@media (min-width: 900px) {
  .sf-post--row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: stretch;
  }

  .sf-post--row .sf-post__media {
    aspect-ratio: auto;
    min-height: 220px;
  }

  .sf-post--row .sf-post__body {
    padding: 18px 18px 14px 26px;
  }
}

/* ---------- FAQ ---------- */
.sf-faq {
  padding-bottom: var(--section);
}

.sf-faq__grid {
  display: grid;
  gap: 12px;
  align-items: start;
}

.sf-qa {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.sf-qa[open] {
  border-color: rgba(242, 162, 127, .28);
  background: var(--card-hi);
}

.sf-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: calc(2 * 1.35em + 40px);
  padding: 20px 20px 20px 26px;
  border-radius: var(--r-lg);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.sf-qa summary::-webkit-details-marker {
  display: none;
}

.sf-qa summary:hover .sf-qa__icon {
  background: #25483B;
}

.sf-qa summary:active .sf-qa__icon {
  transform: scale(.92);
}

.sf-qa__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint-bg);
  color: var(--mint);
  transition: transform .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.sf-qa[open] .sf-qa__icon {
  transform: rotate(45deg);
  background: var(--peach-bg);
  color: var(--peach);
}

.sf-qa__a {
  max-width: 68ch;
  padding: 0 26px 26px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .sf-faq .sf-faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---------- Footer ---------- */
.sf-footer {
  padding-block: clamp(48px, 6vw, 80px) 24px;
  border-top: 1px solid var(--line);
  border-radius: 40px 40px 0 0;
  background: var(--raised);
}

.sf-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 32px 24px;
}

.sf-footer__brand,
.sf-footer__col--wide {
  grid-column: 1 / -1;
}

.sf-footer .sf-logo__mark::after {
  box-shadow: 0 0 0 3px var(--raised);
}

.sf-footer__tagline {
  margin-top: 12px;
  font-size: var(--fs-md);
  font-weight: 600;
}

.sf-footer__blurb {
  max-width: 40ch;
  margin-top: 8px;
  color: var(--muted);
}

.sf-footer__title {
  margin-bottom: 6px;
  color: var(--mint);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sf-footer__col a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-block: 6px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s var(--ease);
}

.sf-footer__col a:hover {
  color: var(--peach);
  text-decoration: underline;
}

.sf-footer__col a:active {
  color: var(--muted);
}

.sf-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.sf-footer__mail .sf-icon {
  color: var(--mint);
}

.sf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.sf-footer__legal {
  display: flex;
  align-items: center;
  gap: 4px 12px;
}

.sf-footer__legal li + li::before {
  content: "\00B7";
  margin-right: 12px;
  color: var(--border);
}

.sf-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}

.sf-footer__legal a:hover {
  color: var(--peach);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .sf-footer__grid {
    grid-auto-flow: row;
  }

  .sf-footer__col--wide {
    grid-column: auto;
  }
}

@media (min-width: 1000px) {
  .sf-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr);
    gap: 40px;
  }

  .sf-footer__brand {
    grid-column: auto;
  }

  .sf-footer__col a {
    min-height: 36px;
    padding-block: 4px;
  }
}

/* ---------- Article: header ---------- */
.sf-crumbs {
  padding-top: 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.sf-crumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sf-crumbs li {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sf-crumbs li:last-child {
  flex: 0 1 auto;
  min-width: 0;
}

.sf-crumbs li:last-child span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-crumbs li + li::before {
  content: "/";
  color: var(--peach);
  opacity: .7;
}

.sf-crumbs a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}

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

.sf-crumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.sf-ahead {
  display: grid;
  gap: 32px;
  padding-block: 16px clamp(48px, 6vw, 88px);
}

.sf-ahead h1 {
  font-size: var(--fs-3xl);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.sf-lead {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(143, 209, 181, .16);
  border-radius: var(--r-lg);
  background: var(--mint-panel);
}

.sf-lead__text {
  margin-top: 8px;
  font-size: var(--fs-md);
  line-height: 1.6;
}

.sf-lead a,
.sf-prose a {
  color: var(--peach);
  font-weight: 600;
  text-decoration-color: rgba(242, 162, 127, .5);
  transition: text-decoration-color .2s var(--ease);
}

.sf-lead a:hover,
.sf-prose a:hover {
  text-decoration-color: currentColor;
}

.sf-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.sf-byline li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sf-byline .sf-icon {
  color: var(--mint);
}

.sf-cover {
  aspect-ratio: 3 / 2;
}

.sf-cover img {
  object-position: 46% 50%;
}

@media (min-width: 960px) {
  .sf-ahead {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
    gap: clamp(48px, 5vw, 96px);
  }

  .sf-cover {
    display: grid;
    align-items: center;
    aspect-ratio: auto;
    background: #F9E4D4;
  }

  .sf-cover img {
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
}

/* ---------- Article: layout + contents ---------- */
.sf-alayout {
  display: grid;
  gap: 40px;
  padding-bottom: var(--section);
}

.sf-toc {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--raised);
}

.sf-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: var(--r-lg);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sf-toc summary::-webkit-details-marker {
  display: none;
}

.sf-toc summary .sf-icon {
  color: var(--peach);
  transition: transform .25s var(--ease);
}

.sf-toc[open] summary .sf-icon {
  transform: rotate(180deg);
}

.sf-toc ol {
  display: grid;
  gap: 2px;
  padding: 0 10px 14px;
}

.sf-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.sf-toc a:hover {
  background: var(--card);
  color: var(--text);
}

.sf-toc a:active {
  background: var(--card-hi);
}

.sf-toc__n {
  flex: none;
  min-width: 22px;
  color: var(--peach);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sf-toc__n:empty::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--mint);
  vertical-align: .15em;
}

@media (min-width: 1100px) {
  .sf-alayout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
  }

  .sf-toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .sf-toc summary {
    cursor: default;
    padding-top: 18px;
    color: var(--muted);
    font-size: var(--fs-xs);
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .sf-toc summary .sf-icon {
    display: none;
  }

  .sf-toc a {
    min-height: 40px;
    padding-block: 9px;
  }
}

/* ---------- Article: content ---------- */
.sf-prose {
  min-width: 0;
  container-type: inline-size;
}

.sf-sec,
.sf-entry {
  scroll-margin-top: 24px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(32px, 3.5vw, 56px);
  border-top: 1px solid var(--line);
}

.sf-prose > :first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sf-sec > h2 {
  max-width: 34ch;
  font-size: var(--fs-xl);
}

.sf-sec > * + * {
  margin-top: 20px;
}

.sf-sec > h2 + * {
  margin-top: 28px;
}

.sf-sec > p {
  max-width: 52em;
}

.sf-sec > p + p {
  margin-top: 1.1em;
}

.sf-sec > p + .sf-cards,
.sf-sec > .sf-cards + p,
.sf-sec > p + .sf-shortlist {
  margin-top: 32px;
}

/* shortlist: compact cards, the winner spans two columns */
.sf-shortlist {
  display: grid;
  gap: 12px;
}

.sf-shortlist li {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.sf-shortlist li:first-child {
  border-color: rgba(242, 162, 127, .3);
  background: var(--peach-bg);
}

.sf-shortlist p {
  color: var(--muted);
  line-height: 1.5;
}

.sf-shortlist strong {
  color: var(--text);
  font-size: 1.125rem;
}

.sf-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint-bg);
  color: var(--mint);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sf-shortlist li:first-child .sf-n {
  background: var(--peach);
  color: var(--on-peach);
}

/* criteria / checklist cards: 3 per row, a short last row stretches */
.sf-cards {
  display: grid;
  gap: 12px;
}

.sf-cards li {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--muted);
  line-height: 1.6;
}

.sf-cards strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.3;
}

/* comparison table */
.sf-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(to right, var(--raised) 30%, rgba(20, 34, 30, 0)) left center / 48px 100% no-repeat local,
    linear-gradient(to left, var(--raised) 30%, rgba(20, 34, 30, 0)) right center / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(143, 209, 181, .22), rgba(143, 209, 181, 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(143, 209, 181, .22), rgba(143, 209, 181, 0)) right center / 14px 100% no-repeat scroll,
    var(--raised);
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--border) transparent;
}

.sf-scroll:focus-visible {
  outline-offset: 4px;
}

.sf-cue {
  display: flex;
  justify-content: flex-end;
}

.sf-cue .sf-icon {
  box-sizing: content-box;
  padding: 7px;
  border-radius: 50%;
  background: var(--peach-bg);
  color: var(--peach);
}

.sf-sec > .sf-cue + .sf-scroll {
  margin-top: 10px;
}

.sf-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.sf-table th,
.sf-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
}

.sf-table thead th {
  padding-block: 18px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.sf-table tbody tr + tr > * {
  border-top: 1px solid var(--line-soft);
}

.sf-table tbody tr:nth-child(even) > * {
  background: rgba(255, 255, 255, .025);
}

.sf-table tbody tr:hover > * {
  background: rgba(242, 162, 127, .07);
}

.sf-table th:first-child,
.sf-table td:first-child {
  padding-left: 22px;
}

.sf-table th:last-child,
.sf-table td:last-child {
  padding-right: 22px;
}

.sf-table tbody th {
  min-width: 150px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.sf-table tbody th span {
  margin-right: 4px;
  color: var(--peach);
  font-variant-numeric: tabular-nums;
}

.sf-table td {
  color: var(--muted);
}

.sf-table tbody tr:first-child td {
  color: var(--text);
}

/* entries: header row + text / key facts */
.sf-entry__head {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 28px;
}

.sf-entry__num {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(60px, 4vw + 44px, 84px);
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--peach-bg);
  color: var(--peach);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.sf-entry--top .sf-entry__num {
  background: var(--peach);
  color: var(--on-peach);
}

.sf-entry h2 {
  display: grid;
  gap: 6px;
}

.sf-entry__name {
  font-size: var(--fs-xl);
  line-height: 1.12;
}

.sf-entry__best {
  color: var(--mint);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.sf-facts {
  padding: 18px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.sf-facts h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sf-facts ul {
  display: grid;
  margin-top: 10px;
}

.sf-facts li {
  padding-block: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sf-facts li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--mint);
  font-size: var(--fs-xs);
}

.sf-entry__text {
  margin-top: 28px;
  font-size: var(--fs-read);
  line-height: 1.7;
}

.sf-entry__text p + p {
  margin-top: 1.1em;
}

.sf-limit {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid rgba(242, 162, 127, .24);
  border-radius: var(--r-md);
  background: var(--peach-bg);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.sf-limit .sf-icon {
  margin-top: 2px;
  color: var(--peach);
}

.sf-limit strong {
  color: var(--peach);
}

/* faq inside the article */
.sf-sec > .sf-faq__grid {
  margin-top: 28px;
}

/* related guides */
.sf-related {
  padding-bottom: var(--section);
}

.sf-related__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .sf-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@container (min-width: 640px) {
  .sf-shortlist,
  .sf-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 924px) {
  .sf-cue {
    display: none;
  }
}

@container (min-width: 880px) {
  .sf-shortlist {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .sf-shortlist li:first-child {
    grid-column: span 2;
  }

  .sf-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  .sf-cards > li {
    grid-column: span 2;
  }

  .sf-cards > li:first-child:nth-last-child(5) ~ li:nth-child(n+4),
  .sf-cards > li:first-child:nth-last-child(4),
  .sf-cards > li:first-child:nth-last-child(4) ~ li,
  .sf-cards > li:first-child:nth-last-child(2),
  .sf-cards > li:first-child:nth-last-child(2) ~ li {
    grid-column: span 3;
  }

  .sf-faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .sf-sec .sf-qa summary {
    font-size: var(--fs-read);
  }
}

@container (min-width: 640px) {
  .sf-facts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@container (min-width: 760px) {
  .sf-entry__text {
    columns: 2;
    column-gap: clamp(32px, 4cqi, 56px);
  }
}

@container (min-width: 1000px) {
  .sf-facts ul {
    grid-template-columns: max-content minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr);
    column-gap: 0;
  }

  .sf-facts li {
    padding: 4px 20px;
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }

  .sf-facts li:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

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

  .sf-post:hover,
  .sf-post:hover .sf-post__media img {
    transform: none;
  }
}

/* ---------- Production additions (caketools.io): 2-item latest row, about, legal pages, 404 ---------- */

/* longer production button labels may wrap on phones: keep both lines centred */
.sf-btn {
  text-align: center;
  line-height: 1.3;
}

/* latest block with two items: two horizontal cards side by side */
@media (min-width: 900px) {
  .sf-posts__grid--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* about: header split (title + lead | illustration), then the sections in two balanced columns */
.sf-doc .sf-cover {
  background: #F5E1D2;
}

.sf-doc__lead {
  margin-top: 24px;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.sf-doc__body {
  padding-bottom: var(--section);
  font-size: var(--fs-read);
  line-height: 1.7;
}

.sf-doc__part {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.sf-doc__part + .sf-doc__part {
  margin-top: 36px;
}

.sf-doc__part h2 {
  font-size: var(--fs-lg);
  break-after: avoid;
}

.sf-doc__part p {
  margin-top: 14px;
  color: var(--muted);
  orphans: 3;
  widows: 3;
}

.sf-doc a {
  color: var(--peach);
  font-weight: 600;
  text-decoration-color: rgba(242, 162, 127, .5);
  transition: text-decoration-color .2s var(--ease);
}

.sf-doc a:hover {
  text-decoration-color: currentColor;
}

/* desktop: one rule over the body, text flows through two balanced columns (no short column, no gap) */
@media (min-width: 900px) {
  .sf-doc__body {
    padding-top: 32px;
    border-top: 1px solid var(--line);
    columns: 2;
    column-gap: clamp(48px, 5vw, 96px);
  }

  .sf-doc__part {
    padding-top: 0;
    border-top: 0;
  }

  .sf-doc__part + .sf-doc__part {
    margin-top: 32px;
  }
}

/* privacy / terms: title row, then short sections flowing in up to three columns */
.sf-legal__head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 16px clamp(32px, 4vw, 56px);
}

.sf-legal__head h1 {
  font-size: var(--fs-3xl);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.sf-legal__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(52px, 3vw + 40px, 68px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint-bg);
  color: var(--mint);
}

.sf-legal {
  padding-bottom: var(--section);
  columns: 3 300px;
  column-gap: clamp(32px, 4vw, 64px);
}

.sf-legal__part {
  margin-bottom: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  break-inside: avoid;
}

.sf-legal__part h2 {
  font-size: var(--fs-md);
}

.sf-legal__part p {
  margin-top: 10px;
  color: var(--muted);
}

/* 404 */
.sf-404 {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: clamp(24px, 4vw, 64px) var(--section);
}

.sf-404 h1 {
  margin-top: 20px;
  font-size: var(--fs-3xl);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.sf-404__line {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--fs-md);
}

.sf-404__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.sf-404__home:hover {
  border-color: rgba(255, 255, 255, .16);
  background: var(--card);
}

.sf-404__home:active {
  background: var(--card-hi);
}

.sf-404__tile {
  aspect-ratio: 3 / 2;
}

.sf-404__tile img {
  object-position: 55% 50%;
}

@media (max-width: 599.98px) {
  .sf-404__home {
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 900px) {
  .sf-404 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(40px, 5vw, 96px);
  }
}
