/* Boba Brewery (bobabrewery.com) — production stylesheet.
   Design: variant A "Taproom" (approved 27.11.2026): warm, friendly, rounded, dark espresso.
   Every class uses the tp- prefix. Tokens live in :root; change them to re-skin.
   All URLs are root-relative: pages live at different depths. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* layout: content spans up to 1640px, gutters outside it */
  --maxw: 1640px;
  --gutter: clamp(16px, 4vw, 48px);
  --tp-toc-w: 260px;

  /* palette */
  --tp-bg: #1a1310;
  --tp-raised: #221913;
  --tp-card: #2a1f18;
  --tp-card-hover: #31241c;
  --tp-border: #3a2c22;
  --tp-text: #f2e7d9;
  --tp-muted: #c2b09d;
  --tp-terra: #d2693f;
  --tp-terra-hover: #e07e55;
  --tp-terra-tint: rgba(210, 105, 63, 0.15);
  --tp-link: #e6875f;
  --tp-link-hover: #f3a684;
  --tp-olive: #8e925c;
  --tp-olive-tint: rgba(142, 146, 92, 0.18);
  --tp-olive-panel: #2b271b;
  --tp-on-accent: #1a1310;

  /* type: one family, ~1.25 scale, fluid */
  --tp-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tp-fs-label: 0.75rem;
  --tp-fs-sm: 0.9375rem;
  --tp-fs-base: clamp(1rem, 0.94rem + 0.25vw, 1.0625rem);
  --tp-fs-read: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --tp-fs-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --tp-fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --tp-fs-h2: clamp(1.875rem, 1.4rem + 1.9vw, 3rem);
  --tp-fs-h1: clamp(2.375rem, 1.5rem + 3.6vw, 4.5rem);

  /* rhythm: 8px steps */
  --tp-section: clamp(56px, 7vw, 112px);

  /* one radius family */
  --tp-r-sm: 12px;
  --tp-r-md: 20px;
  --tp-r-lg: 28px;
  --tp-r-pill: 999px;

  --tp-ease: cubic-bezier(0.22, 0.7, 0.24, 1);
}

/* ---------- base ---------- */

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: var(--tp-font);
  font-size: var(--tp-fs-base);
  font-weight: 400;
  line-height: 1.65;
  word-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  font-synthesis: none;
}

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

img {
  height: auto;
}

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

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[role="list"] {
  list-style: none;
}

figure {
  margin: 0;
}

strong,
b {
  font-weight: 700;
}

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

:focus-visible {
  outline: 3px solid var(--tp-terra-hover);
  outline-offset: 3px;
}

::selection {
  background: rgba(210, 105, 63, 0.4);
  color: var(--tp-text);
}

.tp-icon {
  flex: none;
}

.tp-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.tp-wrap {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.tp-section {
  padding-block: calc(var(--tp-section) * 0.5);
}

.tp-h2 {
  font-size: var(--tp-fs-h2);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.tp-label {
  color: var(--tp-olive);
  font-size: var(--tp-fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: var(--tp-r-pill);
  background: var(--tp-terra);
  color: var(--tp-on-accent);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  word-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s var(--tp-ease), transform 0.15s var(--tp-ease);
}

.tp-btn .tp-icon {
  transition: transform 0.25s var(--tp-ease);
}

.tp-btn:hover {
  background: var(--tp-terra-hover);
}

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

.tp-btn:active {
  transform: translateY(1px) scale(0.98);
}

.tp-btn:focus-visible {
  outline-offset: 4px;
}

.tp-btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--tp-border);
  color: var(--tp-text);
}

.tp-btn--ghost:hover {
  background: var(--tp-card);
  box-shadow: inset 0 0 0 1px #4d3a2d;
}

/* ---------- header ---------- */

.tp-header {
  border-bottom: 1px solid var(--tp-border);
}

.tp-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  min-height: 80px;
}

.tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-spacing: 0.06em;
  text-decoration: none;
}

.tp-brand__pearl {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tp-terra);
}

.tp-brand__pearl::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tp-olive);
}

.tp-brand:hover {
  color: var(--tp-link-hover);
}

.tp-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tp-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--tp-r-pill);
  color: var(--tp-muted);
  font-size: var(--tp-fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--tp-ease), color 0.2s var(--tp-ease);
}

.tp-nav__link:hover {
  background: var(--tp-card);
  color: var(--tp-text);
}

.tp-nav__link[aria-current="page"] {
  background: var(--tp-terra-tint);
  box-shadow: inset 0 0 0 1px rgba(210, 105, 63, 0.45);
  color: var(--tp-text);
}

.tp-nav__link:active {
  background: var(--tp-card-hover);
}

@media (max-width: 719.98px) {
  .tp-header__bar {
    min-height: 0;
    padding-block: 12px 10px;
  }

  .tp-nav {
    width: 100%;
  }

  .tp-nav__link {
    padding: 0 14px;
  }

  .tp-nav__link:not([aria-current="page"]) {
    padding-inline: 10px;
  }
}

/* ---------- hero ---------- */

.tp-hero {
  padding-block: clamp(32px, 5vw, 80px) clamp(32px, 4vw, 56px);
}

.tp-hero__grid {
  display: grid;
  gap: 48px 72px;
  align-items: center;
}

.tp-hero__title {
  font-size: var(--tp-fs-h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tp-hero__lead {
  max-width: 36em;
  margin-top: 28px;
  color: var(--tp-muted);
  font-size: var(--tp-fs-lead);
  line-height: 1.6;
}

.tp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}

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

.tp-hero__note .tp-icon {
  color: var(--tp-olive);
}

.tp-hero__media {
  position: relative;
}

.tp-hero__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 36% 50%;
  border-radius: var(--tp-r-lg);
  background: var(--tp-card);
}

.tp-badge {
  position: absolute;
  top: 0;
  left: 16px;
  padding: 10px 18px;
  border-radius: var(--tp-r-pill);
  background: var(--tp-olive);
  color: var(--tp-on-accent);
  font-size: var(--tp-fs-sm);
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.8);
  transform: translateY(-55%) rotate(-4deg);
}

@media (min-width: 960px) {
  .tp-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tp-hero__img {
    aspect-ratio: 6 / 5;
  }

  .tp-badge {
    top: auto;
    bottom: 44px;
    left: -32px;
    padding: 12px 22px;
    font-size: 1rem;
    transform: rotate(-6deg);
  }
}

/* ---------- intro ---------- */

.tp-hero + .tp-intro {
  padding-top: 0;
}

.tp-intro__grid {
  display: grid;
  gap: 24px 72px;
  padding-top: clamp(32px, 3vw, 48px);
  border-top: 1px solid var(--tp-border);
}

.tp-intro__text {
  max-width: 40em;
  font-size: var(--tp-fs-lead);
  line-height: 1.6;
}

@media (min-width: 1280px) {
  .tp-intro__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
}

/* ---------- topics ---------- */

.tp-topics__grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.tp-topic {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-lg);
  background: var(--tp-card);
}

.tp-topic__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--tp-terra-tint);
  color: var(--tp-terra-hover);
}

.tp-topic:nth-child(4n + 2) .tp-topic__icon,
.tp-topic:nth-child(4n + 3) .tp-topic__icon {
  background: var(--tp-olive-tint);
  color: #b4b87e;
}

.tp-topic__title {
  font-size: var(--tp-fs-h3);
  line-height: 1.2;
}

.tp-topic__text {
  max-width: 36em;
  color: var(--tp-muted);
}

@media (min-width: 760px) {
  .tp-topics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .tp-topic {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 28px;
  }

  .tp-topic__icon {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }
}

/* ---------- feature: six-week runway ---------- */

.tp-feature__grid {
  display: grid;
  gap: 56px clamp(48px, 5vw, 96px);
  align-items: center;
}

.tp-collage {
  position: relative;
}

.tp-collage__main {
  position: relative;
  width: 84%;
}

.tp-collage__main::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--tp-olive);
  border-radius: var(--tp-r-lg);
  transform: translate(22px, 22px);
}

.tp-collage__img {
  position: relative;
  width: 100%;
  object-fit: cover;
  background: var(--tp-card);
}

.tp-collage__img--wall {
  aspect-ratio: 4 / 3;
  object-position: 30% 50%;
  border-radius: var(--tp-r-lg);
}

.tp-collage__inset {
  position: relative;
  width: 46%;
  margin: -24% 0 0 auto;
}

.tp-collage__img--board {
  aspect-ratio: 1;
  object-position: 68% 50%;
  border: 8px solid var(--tp-bg);
  border-radius: var(--tp-r-lg);
}

.tp-feature__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 680px;
}

.tp-feature__text {
  color: var(--tp-muted);
}

.tp-runway {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-block: 12px 8px;
}

.tp-runway::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 75%;
  border-top: 2px dashed var(--tp-terra);
}

.tp-runway__stop {
  position: relative;
  padding-top: 30px;
  font-size: var(--tp-fs-sm);
  font-weight: 700;
  line-height: 1.2;
}

.tp-runway__stop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--tp-terra);
  border-radius: 50%;
  background: var(--tp-bg);
}

.tp-runway__stop--day {
  color: var(--tp-link);
}

.tp-runway__stop--day::before {
  background: var(--tp-terra);
  box-shadow: 0 0 0 5px var(--tp-terra-tint);
}

.tp-checks {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.tp-checks__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-weight: 600;
}

.tp-checks__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tp-terra);
  color: var(--tp-on-accent);
}

@media (min-width: 960px) {
  .tp-feature__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- ref block ---------- */

.tp-ref {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(142, 146, 92, 0.35);
  border-radius: 36px;
  background: var(--tp-olive-panel);
}

.tp-ref__media {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
}

.tp-ref__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 40%;
}

.tp-ref__copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  padding: clamp(20px, 4.5vw, 72px);
}

.tp-ref__text {
  max-width: 32em;
  color: var(--tp-muted);
  font-size: var(--tp-fs-lead);
  line-height: 1.6;
}

.tp-ref__link {
  padding-block: 12px;
  color: var(--tp-link);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.tp-ref__link:hover {
  color: var(--tp-link-hover);
}

.tp-ref__link:active {
  opacity: 0.8;
}

@media (min-width: 600px) and (max-width: 899.98px) {
  .tp-ref__img {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 900px) {
  .tp-ref {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    padding: 14px;
  }

  .tp-ref__media {
    position: relative;
    min-height: 380px;
  }

  .tp-ref__img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
}

/* ---------- steps ---------- */

.tp-steps__list {
  display: grid;
  gap: 40px 32px;
  margin-top: 48px;
}

.tp-step {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--tp-border);
}

.tp-step__num {
  color: var(--tp-terra);
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tp-step__title {
  margin-top: 8px;
  font-size: var(--tp-fs-h3);
  line-height: 1.2;
}

.tp-step__text {
  color: var(--tp-muted);
}

@media (max-width: 639.98px) {
  .tp-step {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    padding-top: 20px;
  }

  .tp-step__num {
    grid-row: 1 / span 2;
    font-size: 2.25rem;
  }

  .tp-step__title {
    margin-top: 2px;
  }
}

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

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

/* ---------- article cards ---------- */

.tp-cards {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.tp-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-lg);
  background: var(--tp-card);
  transition: border-color 0.2s var(--tp-ease), background-color 0.2s var(--tp-ease), transform 0.15s var(--tp-ease);
}

.tp-card__media {
  overflow: hidden;
  background: var(--tp-raised);
}

.tp-card__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--tp-ease);
}

.tp-card__img--notebooks {
  object-position: 50% 55%;
}

.tp-card__img--laptop {
  object-position: 55% 50%;
}

.tp-card__img--call {
  object-position: 36% 40%;
}

.tp-card__img--team {
  object-position: 42% 45%;
}

.tp-card__body {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: 24px 24px 28px;
}

.tp-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--tp-muted);
  font-size: var(--tp-fs-sm);
}

.tp-tag {
  padding: 3px 12px;
  border-radius: var(--tp-r-pill);
  background: var(--tp-olive-tint);
  color: #c9cc98;
  font-size: var(--tp-fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tp-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tp-card__title {
  font-size: var(--tp-fs-h3);
  line-height: 1.2;
}

.tp-card__link {
  display: inline-block;
  margin-block: -10px;
  padding-block: 10px;
  text-decoration: none;
  transition: color 0.2s var(--tp-ease);
}

.tp-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--tp-r-lg);
}

.tp-card__link:focus-visible {
  outline: none;
}

.tp-card__link:focus-visible::after {
  outline: 3px solid var(--tp-terra-hover);
  outline-offset: 4px;
}

.tp-card__excerpt {
  color: var(--tp-muted);
}

.tp-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--tp-link);
  font-weight: 700;
}

.tp-card__more .tp-icon {
  transition: transform 0.25s var(--tp-ease);
}

.tp-card:active {
  transform: scale(0.99);
}

@media (hover: hover) {
  .tp-card:hover {
    border-color: #4d3a2d;
    background: var(--tp-card-hover);
  }

  .tp-card:hover .tp-card__img {
    transform: scale(1.04);
  }

  .tp-card:hover .tp-card__link {
    color: var(--tp-link-hover);
  }

  .tp-card:hover .tp-card__more .tp-icon {
    transform: translateX(4px);
  }
}

/* two horizontal cards side by side: the text sets the card height, the photo fills its column */
@media (min-width: 760px) {
  .tp-cards--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-cards--two .tp-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: none;
  }

  .tp-cards--two .tp-card__media {
    position: relative;
    min-height: 220px;
  }

  .tp-cards--two .tp-card__img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
}

/* ---------- FAQ (home + article) ---------- */

.tp-faq__wrap {
  container-type: inline-size;
}

.tp-faq__wrap > .tp-faqs {
  margin-top: 40px;
}

/* Q1|Q2, Q3|Q4 ... in DOM order; an opened item grows without stretching its neighbour */
.tp-faqs {
  display: grid;
  align-items: start;
  gap: 12px 16px;
}

@container (min-width: 880px) {
  .tp-faqs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tp-qa {
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-md);
  background: var(--tp-card);
  transition: border-color 0.2s var(--tp-ease);
}

.tp-qa[open] {
  border-color: #4d3a2d;
}

.tp-qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: calc(2.7em + 28px); /* two lines of question + padding: every closed item is the same height */
  padding: 14px 16px 14px 24px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.35;
  word-spacing: 0.04em;
}

.tp-qa__q::-webkit-details-marker {
  display: none;
}

.tp-qa__q::marker {
  content: "";
}

.tp-qa__text {
  text-wrap: balance;
}

.tp-qa__q:focus-visible {
  border-radius: var(--tp-r-md);
  outline-offset: 2px;
}

.tp-qa__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tp-raised);
  color: var(--tp-text);
  transition: transform 0.3s var(--tp-ease), background-color 0.2s var(--tp-ease), color 0.2s var(--tp-ease);
}

.tp-qa__q:hover .tp-qa__icon {
  background: var(--tp-terra-tint);
}

.tp-qa__q:active .tp-qa__icon {
  transform: scale(0.92);
}

.tp-qa[open] .tp-qa__icon {
  background: var(--tp-terra);
  color: var(--tp-on-accent);
  transform: rotate(45deg);
}

.tp-qa__a {
  max-width: 46em;
  padding: 0 24px 24px;
  color: var(--tp-muted);
}

/* ---------- footer ---------- */

.tp-footer {
  margin-top: calc(var(--tp-section) * 0.5);
  padding-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--tp-border);
  background: var(--tp-raised);
}

.tp-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "brand brand"
    "nav legal"
    "guides guides"
    "contact contact";
  gap: 36px 24px;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.tp-footer__brand {
  grid-area: brand;
}

.tp-footer__col--nav {
  grid-area: nav;
}

.tp-footer__col--guides {
  grid-area: guides;
}

.tp-footer__col--legal {
  grid-area: legal;
}

.tp-footer__col--contact {
  grid-area: contact;
}

.tp-footer__name {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-spacing: 0.06em;
}

.tp-footer__tagline {
  margin-top: 8px;
  color: var(--tp-link);
  font-size: 1.1875rem;
  font-weight: 600;
}

.tp-footer__blurb {
  max-width: 30em;
  margin-top: 16px;
  color: var(--tp-muted);
}

.tp-footer__label {
  margin-bottom: 8px;
  color: var(--tp-olive);
  font-size: var(--tp-fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tp-footer__links {
  display: grid;
  justify-items: start;
}

.tp-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  color: var(--tp-text);
  font-size: var(--tp-fs-sm);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  text-wrap: pretty;
}

.tp-footer__link:hover {
  color: var(--tp-link-hover);
  text-decoration: underline;
}

.tp-footer__link:active {
  opacity: 0.8;
}

.tp-footer__link[aria-current="page"] {
  color: var(--tp-link);
}

.tp-footer__email {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--tp-fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

.tp-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 12px 20px;
  border-top: 1px solid var(--tp-border);
  color: var(--tp-muted);
  font-size: var(--tp-fs-sm);
}

.tp-footer__mini {
  display: flex;
  align-items: center;
  margin-inline: -8px;
}

.tp-footer__mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--tp-muted);
  text-decoration: none;
}

.tp-footer__mini-link:hover {
  color: var(--tp-link-hover);
  text-decoration: underline;
}

.tp-footer__mini-link:active {
  opacity: 0.8;
}

.tp-footer__dot {
  color: var(--tp-muted);
}

@media (max-width: 359.98px) {
  .tp-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "nav" "legal" "guides" "contact";
  }
}

@media (min-width: 600px) {
  .tp-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "brand brand contact"
      "nav guides legal";
    column-gap: 32px;
  }
}

@media (min-width: 1280px) {
  .tp-footer__grid {
    grid-template-columns:
      minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 0.9fr) minmax(min-content, 1.2fr);
    grid-template-areas: "brand nav guides legal contact";
    column-gap: 48px;
  }
}

/* ---------- article page ---------- */

.tp-crumbs__list {
  display: flex;
  align-items: center;
  padding-top: 8px;
  color: var(--tp-muted);
  font-size: var(--tp-fs-sm);
}

.tp-crumbs__item {
  display: inline-flex;
  flex: none;
  align-items: center;
}

.tp-crumbs__item:last-child {
  flex: 0 1 auto;
  min-width: 0;
}

.tp-crumbs__item:last-child .tp-crumbs__text {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-crumbs__item + .tp-crumbs__item::before {
  content: "/";
  margin-inline: 10px;
  color: #6f5c4d;
}

.tp-crumbs__link {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--tp-link);
  font-weight: 600;
  text-decoration: none;
}

.tp-crumbs__link:hover {
  color: var(--tp-link-hover);
  text-decoration: underline;
}

.tp-crumbs__text {
  padding-block: 11px;
}

.tp-article__head {
  display: grid;
  gap: 32px 64px;
  align-items: center;
  padding-block: clamp(16px, 2.5vw, 40px) clamp(32px, 3vw, 56px);
}

.tp-article__intro {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.tp-article__title {
  max-width: 20ch;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tp-article__intro .tp-label {
  margin-top: 8px;
}

.tp-article__dek {
  max-width: 46em;
  margin-top: -8px;
  font-size: var(--tp-fs-lead);
  line-height: 1.6;
}

.tp-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 4px;
  color: var(--tp-muted);
  font-size: var(--tp-fs-sm);
  font-weight: 500;
}

.tp-byline__item:first-child {
  color: var(--tp-text);
  font-weight: 700;
}

.tp-byline__item + .tp-byline__item::before {
  content: "·";
  margin-inline: 10px;
  color: var(--tp-terra);
  font-weight: 700;
}

.tp-byline__item--wide {
  flex-basis: 100%;
}

.tp-byline__item + .tp-byline__item--wide::before {
  content: none;
}

@media (max-width: 599.98px) {
  .tp-byline__item {
    flex-basis: 100%;
  }

  .tp-byline__item + .tp-byline__item::before {
    content: none;
  }
}

.tp-cover__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 55%;
  border-radius: var(--tp-r-lg);
  background: var(--tp-card);
}

@media (min-width: 760px) {
  .tp-cover__img {
    aspect-ratio: 21 / 9;
    object-position: 50% 56%;
  }
}

@media (min-width: 1600px) {
  .tp-article__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .tp-cover__img {
    aspect-ratio: 5 / 4;
    object-position: 50% 55%;
  }
}

.tp-article__layout {
  display: grid;
  gap: 40px;
  padding-top: clamp(32px, 3vw, 56px);
  border-top: 1px solid var(--tp-border);
}

.tp-toc {
  display: none;
}

.tp-toc__title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tp-border);
  color: var(--tp-muted);
  font-size: var(--tp-fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tp-toc__list {
  display: grid;
  padding-top: 8px;
}

.tp-toc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 40px;
  margin-inline: -12px;
  padding: 8px 12px;
  border-radius: var(--tp-r-sm);
  color: var(--tp-muted);
  font-size: var(--tp-fs-sm);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s var(--tp-ease), color 0.2s var(--tp-ease);
}

.tp-toc__link--entry {
  color: var(--tp-text);
}

.tp-toc__link:hover {
  background: var(--tp-card);
  color: var(--tp-text);
}

.tp-toc__link:active {
  background: var(--tp-card-hover);
}

.tp-toc__num {
  min-width: 1.6em;
  color: var(--tp-link);
  font-size: var(--tp-fs-label);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tp-toc-m {
  margin-bottom: 40px;
  padding: 0 20px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-md);
  background: var(--tp-card);
}

.tp-toc-m__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 700;
}

.tp-toc-m__summary::-webkit-details-marker {
  display: none;
}

.tp-toc-m__summary::marker {
  content: "";
}

.tp-toc-m__summary .tp-icon {
  transition: transform 0.25s var(--tp-ease);
}

.tp-toc-m[open] .tp-toc-m__summary .tp-icon {
  transform: rotate(180deg);
}

.tp-toc-m .tp-toc__list {
  padding-block: 8px 12px;
  border-top: 1px solid var(--tp-border);
}

.tp-toc-m .tp-toc__link {
  align-items: center;
  min-height: 44px;
}

.tp-toc-m .tp-toc__link:hover {
  background: var(--tp-card-hover);
}

@media (min-width: 1100px) {
  .tp-article__layout {
    grid-template-columns: var(--tp-toc-w) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(40px, 4vw, 72px);
  }

  .tp-toc {
    position: sticky;
    top: 24px;
    display: block;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .tp-toc-m {
    display: none;
  }
}

/* article body: a size container so blocks adapt to the space next to the TOC */

.tp-article__body {
  min-width: 0;
  container-type: inline-size;
}

.tp-sec,
.tp-entry {
  margin-top: clamp(36px, 4vw, 64px);
  padding-top: clamp(32px, 3vw, 48px);
  border-top: 1px solid var(--tp-border);
  scroll-margin-top: 24px;
}

.tp-article__body > .tp-sec:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.tp-sec > * + * {
  margin-top: 24px;
}

.tp-sec__title {
  max-width: 28ch;
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  scroll-margin-top: 24px;
}

.tp-sec__h3 {
  font-size: var(--tp-fs-h3);
  line-height: 1.2;
}

.tp-sec__p {
  max-width: 860px;
  font-size: var(--tp-fs-read);
  line-height: 1.7;
}

.tp-article__dek a,
.tp-sec__p a,
.tp-entry__text a,
.tp-facts__val a,
.tp-point__text a {
  padding-block: 13px;
  color: var(--tp-link);
  font-weight: 600;
  text-decoration-color: rgba(230, 135, 95, 0.55);
}

.tp-article__dek a:hover,
.tp-sec__p a:hover,
.tp-entry__text a:hover,
.tp-facts__val a:hover,
.tp-point__text a:hover {
  color: var(--tp-link-hover);
  text-decoration-color: currentColor;
}

/* shortlist cards */

.tp-short {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tp-short__item {
  display: flex;
  flex: 1 1 100%;
}

.tp-short__link {
  display: grid;
  flex: 1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px 16px 20px 18px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-md);
  background: var(--tp-card);
  color: var(--tp-muted);
  font-size: var(--tp-fs-sm);
  line-height: 1.5;
  text-decoration: none;
  transition: border-color 0.2s var(--tp-ease), background-color 0.2s var(--tp-ease), transform 0.15s var(--tp-ease);
}

.tp-short__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tp-terra);
  color: var(--tp-on-accent);
  font-size: var(--tp-fs-sm);
  font-weight: 700;
}

.tp-short__name {
  display: block;
  margin-bottom: 2px;
  color: var(--tp-text);
  font-size: 1.0625rem;
  font-weight: 700;
}

.tp-short__go {
  margin-top: 8px;
  color: var(--tp-muted);
  transition: transform 0.2s var(--tp-ease), color 0.2s var(--tp-ease);
}

.tp-short__link:hover {
  border-color: rgba(210, 105, 63, 0.6);
  background: var(--tp-card-hover);
}

.tp-short__link:hover .tp-short__go {
  color: var(--tp-link);
  transform: translate(2px, 2px);
}

.tp-short__link:active {
  transform: scale(0.99);
}

@container (min-width: 560px) {
  .tp-short__item {
    flex-basis: calc(50% - 6px);
  }
}

@container (min-width: 1000px) {
  .tp-short__item {
    flex-basis: calc(25% - 9px);
  }
}

/* labelled point cards (criteria, what to look for) */

.tp-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tp-point {
  display: grid;
  flex: 1 1 100%;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  padding: 22px 22px 24px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-md);
  background: var(--tp-card);
}

.tp-points--numbered .tp-point {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.tp-point__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tp-olive-tint);
  color: #b4b87e;
}

.tp-point__num {
  color: var(--tp-terra);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tp-point__text {
  color: var(--tp-muted);
  font-size: var(--tp-fs-sm);
  line-height: 1.6;
}

.tp-point__label {
  display: block;
  margin-bottom: 4px;
  color: var(--tp-text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

@container (min-width: 620px) {
  .tp-point {
    flex-basis: calc(50% - 6px);
  }
}

@container (min-width: 980px) {
  .tp-point {
    flex-basis: calc(33.333% - 8px);
  }
}

/* comparison table */

.tp-table {
  container-type: inline-size;
}

.tp-table__cue {
  display: none;
  justify-content: flex-end;
  margin-bottom: 8px;
  color: var(--tp-link);
}

@container (max-width: 979px) {
  .tp-table__cue {
    display: flex;
  }

  .tp-table .tp-table__grid {
    min-width: 1120px;
  }

  .tp-table .tp-table__grid td {
    min-width: 180px;
  }
}

.tp-table__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-md);
  background:
    linear-gradient(90deg, var(--tp-card) 30%, rgba(42, 31, 24, 0)) left center / 48px 100% no-repeat local,
    linear-gradient(270deg, var(--tp-card) 30%, rgba(42, 31, 24, 0)) right center / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(242, 231, 217, 0.16), rgba(242, 231, 217, 0)) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(242, 231, 217, 0.16), rgba(242, 231, 217, 0)) right center / 16px 100% no-repeat scroll,
    var(--tp-card);
}

.tp-table__grid {
  width: 100%;
  min-width: 980px;
  margin: 0;
  border-collapse: collapse;
  font-size: var(--tp-fs-sm);
  line-height: 1.5;
}

.tp-table__grid th,
.tp-table__grid td {
  padding: 16px;
  border-bottom: 1px solid var(--tp-border);
  text-align: left;
  vertical-align: top;
}

.tp-table__grid thead th {
  padding-block: 14px;
  color: var(--tp-muted);
  font-size: var(--tp-fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tp-table__grid tbody tr:nth-child(even) {
  background: rgba(242, 231, 217, 0.025);
}

.tp-table__grid tbody tr:last-child > * {
  border-bottom: 0;
}

.tp-table__grid td {
  color: var(--tp-muted);
}

.tp-table__grid th:first-child {
  padding-left: 20px;
}

.tp-table__grid th:last-child,
.tp-table__grid td:last-child {
  padding-right: 20px;
}

.tp-table__grid .tp-td--name {
  color: var(--tp-text);
  font-weight: 700;
  white-space: nowrap;
}

.tp-td__rank {
  color: var(--tp-link);
}

/* ranked entries */

.tp-entry__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 20px;
  margin-bottom: 32px;
}

.tp-entry__num {
  color: var(--tp-terra);
  font-size: clamp(2.75rem, 2rem + 2.2vw, 4.25rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.tp-entry__title {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  scroll-margin-top: 24px;
}

.tp-entry__name {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.tp-entry__best {
  color: var(--tp-muted);
  font-size: var(--tp-fs-lead);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* key facts: one full-width row of cells; hairlines drawn by each cell (top + left),
   the first row/column lines are clipped by the rounded frame */
.tp-facts {
  display: grid;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-md);
  background: var(--tp-card);
}

.tp-facts__cell {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 20px 20px;
  box-shadow: -1px 0 0 var(--tp-border), 0 -1px 0 var(--tp-border);
  font-size: var(--tp-fs-sm);
  line-height: 1.55;
}

.tp-facts__key {
  color: var(--tp-olive);
  font-size: var(--tp-fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

@container (min-width: 640px) {
  .tp-facts {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  /* five facts: Website + Best for on the first row, the other three below */
  .tp-facts--5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tp-facts--5 .tp-facts__cell {
    grid-column: span 2;
  }

  .tp-facts--5 .tp-facts__cell:nth-child(2) {
    grid-column: span 4;
  }
}

@container (min-width: 1000px) {
  .tp-facts--5 {
    grid-template-columns: max-content minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  }

  .tp-facts--5 .tp-facts__cell,
  .tp-facts--5 .tp-facts__cell:nth-child(2) {
    grid-column: auto;
  }
}

.tp-entry__text {
  font-size: var(--tp-fs-read);
  line-height: 1.75;
  orphans: 2;
  widows: 2;
}

.tp-entry__text > * {
  max-width: 68ch;
}

.tp-entry__text > * + * {
  margin-top: 1em;
}

/* paragraphs side by side: balanced columns, so both columns end at the same line */
@container (min-width: 760px) {
  .tp-entry__text--cols {
    column-count: 2;
    column-gap: clamp(32px, 4vw, 64px);
    orphans: 1;
    widows: 1;
  }

  .tp-entry__text--cols > * {
    max-width: none;
  }
}

.tp-limit {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding: 18px 24px 18px 20px;
  border: 1px solid rgba(210, 105, 63, 0.4);
  border-radius: var(--tp-r-md);
  background: var(--tp-terra-tint);
  font-size: var(--tp-fs-base);
  line-height: 1.6;
}

.tp-limit__icon {
  margin-top: 3px;
  color: var(--tp-terra-hover);
}

.tp-limit strong {
  color: var(--tp-text);
}

/* verdict panel */

.tp-article__body > .tp-sec--verdict {
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(142, 146, 92, 0.35);
  border-radius: var(--tp-r-lg);
  background: var(--tp-olive-panel);
}

.tp-sec--verdict .tp-sec__p {
  max-width: 900px;
  font-size: var(--tp-fs-lead);
}

/* related guides */

.tp-related {
  padding-top: clamp(40px, 4vw, 64px);
}

.tp-related__title {
  padding-top: clamp(32px, 3vw, 48px);
  border-top: 1px solid var(--tp-border);
}

/* ---------- text pages: about, privacy, terms ---------- */

.tp-doc__head {
  display: grid;
  gap: 32px 64px;
  align-items: center;
  padding-block: clamp(16px, 2.5vw, 40px) clamp(32px, 3vw, 56px);
}

.tp-doc__intro {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.tp-doc__title {
  max-width: 22ch;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tp-doc__lead {
  max-width: 46em;
  font-size: var(--tp-fs-lead);
  line-height: 1.6;
}

.tp-doc__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 55% 50%;
  border-radius: var(--tp-r-lg);
  background: var(--tp-card);
}

@media (min-width: 1280px) {
  .tp-doc__head--media {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* sections as cards, row-major; an odd card at the end takes the whole row, so there are no holes */
.tp-doc__body {
  display: grid;
  gap: 16px;
  padding-top: clamp(32px, 3vw, 56px);
  border-top: 1px solid var(--tp-border);
}

.tp-doc__sec {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-lg);
  background: var(--tp-card);
  scroll-margin-top: 24px;
}

.tp-doc__h2 {
  font-size: var(--tp-fs-h3);
  line-height: 1.25;
}

.tp-doc__sec p {
  max-width: 68ch;
  color: var(--tp-muted);
  line-height: 1.7;
}

.tp-doc__lead a,
.tp-doc__sec a {
  padding-block: 12px;
  color: var(--tp-link);
  font-weight: 600;
  text-decoration-color: rgba(230, 135, 95, 0.55);
}

.tp-doc__lead a:hover,
.tp-doc__sec a:hover {
  color: var(--tp-link-hover);
  text-decoration-color: currentColor;
}

@media (min-width: 760px) {
  .tp-doc__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-doc__sec:nth-child(2n + 1):last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  .tp-doc__body--3 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tp-doc__body--3 > .tp-doc__sec,
  .tp-doc__body--3 > .tp-doc__sec:nth-child(2n + 1):last-child {
    grid-column: span 2;
  }

  /* last row with two cards: each takes half; last row with one card: the whole row */
  .tp-doc__body--3 > .tp-doc__sec:nth-child(3n + 1):nth-last-child(2),
  .tp-doc__body--3 > .tp-doc__sec:nth-child(3n + 1):nth-last-child(2) + .tp-doc__sec {
    grid-column: span 3;
  }

  .tp-doc__body--3 > .tp-doc__sec:nth-child(3n + 1):last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- 404 ---------- */

.tp-404 {
  padding-block: clamp(32px, 5vw, 80px) clamp(16px, 2vw, 32px);
}

.tp-404__grid {
  display: grid;
  gap: 40px 72px;
  align-items: center;
}

.tp-404__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.tp-404__code {
  color: var(--tp-terra);
  font-size: clamp(4.5rem, 3rem + 6vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.tp-404__title {
  font-size: var(--tp-fs-h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tp-404__text {
  max-width: 36em;
  color: var(--tp-muted);
  font-size: var(--tp-fs-lead);
}

.tp-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 12px;
}

.tp-404__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 30% 50%;
  border-radius: var(--tp-r-lg);
  background: var(--tp-card);
}

@media (min-width: 960px) {
  .tp-404__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- motion preferences ---------- */

@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;
    scroll-behavior: auto !important;
  }
}
