/* ==========================================================================
   Thicket Pulse — Appily Seventythree visual system
   Original identity: living stem navigation + meadow daylight surfaces.
   Not Volt Shard, Frost Meridian, Cobalt Stamp, Solar Folio, or Kinetic Vault.
   ========================================================================== */

:root {
  --tp-ink: #15241c;
  --tp-pine: #1f4a38;
  --tp-meadow: #e7efe8;
  --tp-mist: #f4f7f4;
  --tp-panel: #ffffff;
  --tp-flare: #ff5c2b;
  --tp-vein: #2eb8b0;
  --tp-leaf: #6faf7a;
  --tp-mute: #5f7166;
  --tp-line: rgba(21, 36, 28, 0.11);
  --tp-shadow: 0 18px 40px rgba(21, 36, 28, 0.08);
  --tp-radius: 18px;
  --tp-radius-sm: 10px;
  --tp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tp-snap: cubic-bezier(0.34, 1.4, 0.64, 1);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.tp-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--tp-ink);
  background:
    radial-gradient(55% 45% at 12% 18%, rgba(46, 184, 176, 0.14), transparent 60%),
    radial-gradient(50% 40% at 88% 8%, rgba(255, 92, 43, 0.1), transparent 55%),
    radial-gradient(60% 50% at 70% 92%, rgba(111, 175, 122, 0.12), transparent 55%),
    linear-gradient(160deg, var(--tp-meadow), var(--tp-mist) 48%, #eef3ee);
  background-attachment: fixed;
}

body.tp-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(31, 74, 56, 0.05) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(31, 74, 56, 0.04) 0 1px, transparent 1.5px);
  background-size: 42px 42px, 28px 28px;
}

.tp-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-left: clamp(4.5rem, 7vw, 6.5rem);
}

/* ===== Living stem navigation (left edge) ===== */
.tp-stem {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: clamp(4.25rem, 6vw, 5.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 0.55rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(244, 247, 244, 0.92), rgba(231, 239, 232, 0.88));
  border-right: 1px solid var(--tp-line);
  backdrop-filter: blur(14px);
}

.tp-stem__brand {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: var(--tp-pine);
  color: #f7fff8;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  transition: transform 0.35s var(--tp-snap), border-radius 0.45s var(--tp-ease), background 0.3s ease;
}

.tp-stem__brand:hover {
  transform: scale(1.08) rotate(-4deg);
  border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%;
  background: var(--tp-flare);
}

.tp-stem__vine {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
}

.tp-stem__vine::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--tp-leaf), var(--tp-vein), var(--tp-leaf), transparent);
  opacity: 0.55;
}

.tp-stem__node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--tp-ink);
}

.tp-stem__bud {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: var(--tp-panel);
  border: 1.5px solid var(--tp-line);
  box-shadow: 0 6px 16px rgba(21, 36, 28, 0.06);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.35s var(--tp-snap), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.35s ease;
}

.tp-stem__node:hover .tp-stem__bud,
.tp-stem__node:focus-visible .tp-stem__bud,
.tp-stem__node.is-active .tp-stem__bud {
  transform: scale(1.12);
  background: var(--tp-pine);
  color: #f5fff7;
  border-color: var(--tp-pine);
  box-shadow: 0 10px 22px rgba(31, 74, 56, 0.28);
}

.tp-stem__node.is-active .tp-stem__bud {
  background: var(--tp-flare);
  border-color: var(--tp-flare);
  box-shadow: 0 10px 22px rgba(255, 92, 43, 0.28);
}

.tp-stem__petal {
  position: absolute;
  left: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--tp-ink);
  color: #f4f7f4;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.35s var(--tp-ease);
}

.tp-stem__node:hover .tp-stem__petal,
.tp-stem__node:focus-visible .tp-stem__petal {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.tp-stem__cart .tp-stem__bud em {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--tp-flare);
  color: #fff;
  font-style: normal;
  font-size: 0.58rem;
  line-height: 1rem;
  text-align: center;
}

.tp-stem__toggle {
  display: none;
  margin-top: auto;
  width: 2.55rem;
  height: 2.55rem;
  border: 1.5px solid var(--tp-line);
  border-radius: 50%;
  background: var(--tp-panel);
  color: var(--tp-ink);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* ===== Shared UI atoms ===== */
.tp-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tp-vein);
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--tp-snap), background 0.25s ease, color 0.25s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.tp-btn:hover { transform: translateY(-2px); }
.tp-btn:active { transform: translateY(0); }

.tp-btn--flare {
  background: var(--tp-flare);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 92, 43, 0.28);
}
.tp-btn--flare:hover { background: #ff6f45; }

.tp-btn--pine {
  background: var(--tp-pine);
  color: #f5fff7;
  box-shadow: 0 12px 28px rgba(31, 74, 56, 0.22);
}
.tp-btn--pine:hover { background: #285f48; }

.tp-btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--tp-ink);
  border-color: var(--tp-line);
  backdrop-filter: blur(8px);
}
.tp-btn--ghost:hover {
  background: var(--tp-panel);
  border-color: var(--tp-pine);
}

.tp-link {
  color: var(--tp-pine);
  font-family: var(--font-display);
  font-weight: 650;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  transition: background-size 0.3s var(--tp-ease), color 0.2s ease;
}
.tp-link:hover { background-size: 100% 1.5px; color: var(--tp-flare); }

.tp-field {
  display: grid;
  gap: 0.35rem;
}

.tp-field label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-field input,
.tp-field select,
.tp-field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid var(--tp-line);
  background: var(--tp-mist);
  color: var(--tp-ink);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tp-field textarea { min-height: 7rem; resize: vertical; }

.tp-field input:focus,
.tp-field select:focus,
.tp-field textarea:focus {
  outline: none;
  border-color: var(--tp-vein);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 184, 176, 0.15);
}

.tp-btn--sm {
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
}

.tp-btn--block { width: 100%; }

.tp-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
}

.tp-field--span { grid-column: 1 / -1; }

.tp-field.is-live input,
.tp-field.is-live textarea {
  border-color: rgba(46, 184, 176, 0.45);
  background: #fff;
}

/* ===== Home: stage ===== */
.tp-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.tp-stage__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: tp-drift 18s ease-in-out infinite alternate;
}

.tp-stage__photo--empty {
  background:
    linear-gradient(135deg, #244f3c, #3a7a5f 40%, #1f4a38),
    radial-gradient(circle at 70% 30%, rgba(46, 184, 176, 0.35), transparent 45%);
}

.tp-stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(21, 36, 28, 0.72) 0%, rgba(21, 36, 28, 0.35) 42%, rgba(21, 36, 28, 0.15) 68%, transparent 100%),
    linear-gradient(0deg, rgba(21, 36, 28, 0.55) 0%, transparent 42%);
}

.tp-stage__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
  color: #f4f7f4;
}

.tp-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.tp-brand span {
  display: inline-block;
  background: linear-gradient(120deg, #fff 20%, #b8f0e8 55%, #ffb199 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tp-sheen 6s ease-in-out infinite;
}

.tp-stage h1 {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tp-lede {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(244, 247, 244, 0.86);
}

.tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes tp-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

@keyframes tp-sheen {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(12deg); }
}

/* ===== Home: dashboard ===== */
.tp-board {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.tp-board[data-tp-rise] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--tp-ease), transform 0.7s var(--tp-ease);
}
.tp-board[data-tp-rise].is-in {
  opacity: 1;
  transform: none;
}

.tp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tp-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tp-note {
  margin: 0;
  max-width: 28ch;
  color: var(--tp-mute);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tp-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tp-channel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1.05rem 1.1rem;
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(21, 36, 28, 0.04);
  transition: transform 0.35s var(--tp-snap), box-shadow 0.35s ease, border-color 0.25s ease;
}

.tp-channel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: calc(var(--w, 40) * 1%);
  background: linear-gradient(90deg, var(--tp-vein), var(--tp-flare));
  transition: width 0.8s var(--tp-ease);
}

.tp-channel:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: var(--tp-shadow);
  border-color: rgba(46, 184, 176, 0.35);
}

.tp-channel__code {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: var(--tp-meadow);
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 0.78rem;
  color: var(--tp-pine);
}

.tp-channel__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.tp-channel__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--tp-mute);
}

.tp-channel__arrow {
  font-size: 1.1rem;
  color: var(--tp-flare);
  transition: transform 0.3s var(--tp-snap);
}
.tp-channel:hover .tp-channel__arrow { transform: translateX(4px); }

/* ===== Home: runway ===== */
.tp-runway .tp-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11.5rem, 14rem);
  gap: 0.95rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  cursor: grab;
}

.tp-runway .tp-rail:active { cursor: grabbing; }

.tp-packet {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--tp-snap);
}

.tp-packet:hover { transform: translateY(-6px); }

.tp-packet__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--tp-radius);
  overflow: hidden;
  background: var(--tp-meadow);
  border: 1px solid var(--tp-line);
}

.tp-packet__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--tp-ease);
}

.tp-packet:hover .tp-packet__frame img { transform: scale(1.07); }

.tp-packet__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.tp-packet__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tp-pine);
}

/* ===== Home mini-colophon (index-only; global footer replaces later) ===== */
.tp-home-foot {
  display: grid;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.75rem;
  border-top: 1px solid var(--tp-line);
  color: var(--tp-mute);
  font-size: 0.85rem;
}

.tp-home-foot strong {
  color: var(--tp-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.tp-home-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.tp-home-foot a {
  color: var(--tp-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}
.tp-home-foot a:hover { color: var(--tp-flare); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .tp-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .tp-shell { padding-left: 0; padding-bottom: 5.25rem; }

  .tp-stem {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--tp-line);
  }

  .tp-stem__brand {
    width: 2.45rem;
    height: 2.45rem;
    margin: 0;
    font-size: 0.8rem;
  }

  .tp-stem__vine {
    flex-direction: row;
    flex: 1;
    justify-content: space-evenly;
    gap: 0.25rem;
  }

  .tp-stem__vine::before {
    top: 50%;
    bottom: auto;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, var(--tp-leaf), var(--tp-vein), var(--tp-leaf), transparent);
  }

  .tp-stem__bud {
    width: 2.35rem;
    height: 2.35rem;
  }

  .tp-stem__petal { display: none; }

  .tp-stem__toggle { display: none; }

  .tp-channels { grid-template-columns: 1fr; }
  .tp-stage__content { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tp-stage__photo { animation: none; }
}

/* ===== Global thicket colophon ===== */
.tp-colophon {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 1.25rem;
  padding-left: max(clamp(1rem, 3vw, 2rem), calc(clamp(4.5rem, 7vw, 6.5rem) + 0.5rem));
  background:
    linear-gradient(180deg, rgba(231, 239, 232, 0.55), rgba(244, 247, 244, 0.95)),
    var(--tp-mist);
  border-top: 1px solid var(--tp-line);
}

.tp-colophon__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1.15fr repeat(3, 0.75fr) 0.85fr;
  gap: 1.5rem 1.25rem;
  align-items: start;
}

.tp-colophon__brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.tp-colophon__mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: var(--tp-pine);
  color: #f7fff8;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.35s var(--tp-snap), background 0.25s ease, border-radius 0.4s ease;
}

.tp-colophon__mark:hover {
  transform: scale(1.08) rotate(-4deg);
  background: var(--tp-flare);
  border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%;
}

.tp-colophon__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.tp-colophon__brand p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--tp-mute);
  line-height: 1.45;
  max-width: 28ch;
}

.tp-colophon__news {
  padding: 1rem 1.1rem;
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  box-shadow: 0 10px 24px rgba(21, 36, 28, 0.05);
}

.tp-colophon__news > label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 750;
  margin-bottom: 0.25rem;
}

.tp-colophon__news > p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--tp-mute);
  line-height: 1.4;
}

.tp-colophon__news-row {
  display: flex;
  gap: 0.4rem;
}

.tp-colophon__news-row input {
  flex: 1;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--tp-line);
  background: var(--tp-mist);
  font: inherit;
  color: var(--tp-ink);
}

.tp-colophon__news-row input:focus {
  outline: none;
  border-color: var(--tp-vein);
  box-shadow: 0 0 0 3px rgba(46, 184, 176, 0.15);
}

.tp-colophon__news-msg {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--tp-pine);
  font-weight: 600;
}

.tp-colophon__col h3,
.tp-colophon__social h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-colophon__col {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.tp-colophon__col a {
  font-size: 0.9rem;
  color: var(--tp-ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tp-colophon__col a:hover { color: var(--tp-flare); }

.tp-colophon__social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.tp-colophon__social-row a {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  background: var(--tp-panel);
  border: 1.5px solid var(--tp-line);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--tp-pine);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--tp-snap);
}

.tp-colophon__social-row a:hover {
  background: var(--tp-pine);
  border-color: var(--tp-pine);
  color: #f5fff7;
  transform: scale(1.06);
}

.tp-colophon__social > p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--tp-mute);
  line-height: 1.4;
}

.tp-colophon__legal {
  max-width: 1120px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--tp-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.tp-colophon__legal p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--tp-mute);
}

.tp-colophon__top {
  min-height: 2.2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--tp-line);
  background: var(--tp-panel);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tp-ink);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--tp-snap);
}

.tp-colophon__top:hover {
  border-color: var(--tp-pine);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .tp-colophon__inner {
    grid-template-columns: 1fr 1fr;
  }

  .tp-colophon__brand,
  .tp-colophon__news {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .tp-colophon {
    padding-left: clamp(1rem, 3vw, 2rem);
    margin-bottom: 5.25rem;
  }

  .tp-colophon__inner {
    grid-template-columns: 1fr;
  }

  .tp-colophon__news-row {
    flex-direction: column;
  }
}
