/* Casa-Trama SocialThreads :: Rio Branco AC :: Bio-Textile Magazine & 8x8 Loom Draft */
:root {
  --sth-sage: #EDF2EB;
  --sth-sage-deep: #DFE8DC;
  --sth-card: #FFFFFF;
  --sth-acai: #1E1624;
  --sth-acai-mid: #30243A;
  --sth-muted: #4C5850;
  --sth-forest: #20583E;
  --sth-urucum: #C94A29;
  --sth-urucum-bright: #E25B38;
  --sth-line: #CBD8C7;
  --sth-serif: 'Playfair Display', Georgia, serif;
  --sth-sans: 'Urbanist', system-ui, -apple-system, sans-serif;
  --sth-mono: 'Victor Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--sth-sage);
  color: var(--sth-acai);
  font-family: var(--sth-sans);
  line-height: 1.62;
}

body {
  margin: 0;
  padding-left: 8px;
  background-color: var(--sth-sage);
  color: var(--sth-acai);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: repeating-linear-gradient(
    180deg,
    var(--sth-forest) 0 24px,
    var(--sth-urucum) 24px 48px,
    var(--sth-acai) 48px 72px
  );
  z-index: 100;
}

h1, h2, h3, h4 {
  font-family: var(--sth-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--sth-acai);
  text-wrap: balance;
  margin-top: 0;
}

p, li {
  text-wrap: pretty;
}

a {
  color: var(--sth-forest);
  text-underline-offset: 3px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--sth-urucum);
}

:focus-visible {
  outline: 2.5px solid var(--sth-urucum);
  outline-offset: 3px;
}

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

.sth-skip-shuttle {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--sth-acai);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
}

.sth-skip-shuttle:focus {
  left: 20px;
}

.sth-shell {
  width: min(1330px, calc(100% - 44px));
  margin-inline: auto;
}

/* Editorial Slow-Fashion Masthead */
.sth-selvedge-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(237, 242, 235, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sth-line);
}

.sth-head-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.sth-journal-logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--sth-acai);
  flex-shrink: 0;
}

.sth-logo-word {
  font-family: var(--sth-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.sth-logo-sub {
  font-family: var(--sth-mono);
  font-size: 0.65rem;
  color: var(--sth-forest);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.sth-warp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sth-warp-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--sth-acai);
  font-weight: 700;
  font-size: 0.91rem;
}

.sth-warp-link:hover {
  background: var(--sth-sage-deep);
  color: var(--sth-forest);
}

.sth-urucum-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--sth-urucum);
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.sth-urucum-cta:hover {
  background: var(--sth-acai);
}

.sth-mob-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--sth-acai);
  background: var(--sth-card);
  color: var(--sth-acai);
  font-family: var(--sth-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* First Screen: 3-Card Contrast Triptych (Dark Acai Manifesto | Sunlit Loom Photo | White 8x8 Weave Matrix) */
.sth-triptych-hero {
  padding: 24px 0 44px;
}

.sth-triptych-grid {
  display: grid;
  grid-template-columns: 4.7fr 4.1fr 3.2fr;
  gap: 20px;
  align-items: stretch;
}

.sth-manifesto-card {
  background: var(--sth-acai);
  color: #F7F4F0;
  border-radius: 28px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.sth-bio-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(226, 91, 56, 0.2);
  border: 1px solid var(--sth-urucum-bright);
  color: #FFB49E;
  font-family: var(--sth-mono);
  font-size: 0.69rem;
  font-weight: 700;
}

.sth-hero-h1 {
  color: #FFFFFF;
  font-size: clamp(1.85rem, 2.55vw, 2.45rem);
  margin: 12px 0;
}

.sth-hero-p {
  color: #D8D0E0;
  font-size: 0.98rem;
  margin: 0;
}

.sth-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sth-btn-coral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--sth-urucum-bright);
  color: var(--sth-acai);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.sth-btn-coral:hover {
  background: #FF8E72;
  color: var(--sth-acai);
}

.sth-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(247, 244, 240, 0.45);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.89rem;
  text-decoration: none;
}

.sth-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.sth-loom-photo-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 430px;
  background: var(--sth-acai-mid);
  box-shadow: 0 16px 36px rgba(30, 22, 36, 0.1);
}

.sth-loom-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sth-photo-badge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 9px 14px;
  font-family: var(--sth-mono);
  font-size: 0.7rem;
  color: var(--sth-acai);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Right Card: Interactive 8x8 Loom Weave-Draft Matrix */
.sth-draft-card {
  background: var(--sth-card);
  border-radius: 28px;
  border: 1px solid var(--sth-line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.sth-weave-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sth-wv-btn {
  min-height: 42px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--sth-line);
  background: var(--sth-sage);
  color: var(--sth-acai);
  font-family: var(--sth-mono);
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
}

.sth-wv-btn.sth-wv-active {
  background: var(--sth-forest);
  color: #FFFFFF;
  border-color: var(--sth-forest);
}

.sth-matrix-8x8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  width: 164px;
  height: 164px;
  margin: 4px auto;
  padding: 6px;
  background: var(--sth-sage);
  border-radius: 12px;
  border: 1px solid var(--sth-line);
}

.sth-cell-warp {
  background: var(--sth-acai);
  border-radius: 2px;
}

.sth-cell-weft {
  background: var(--sth-urucum-bright);
  border-radius: 2px;
}

.sth-draft-meta {
  background: var(--sth-sage);
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.84rem;
}

/* Below-the-fold Bio-Atelier Sections */
.sth-band {
  padding: 54px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 650px;
}

.sth-band-tinted {
  background: var(--sth-sage-deep);
  border-top: 1px solid var(--sth-line);
  border-bottom: 1px solid var(--sth-line);
}

.sth-sec-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.sth-kicker {
  font-family: var(--sth-mono);
  font-size: 0.72rem;
  color: var(--sth-urucum);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.sth-sec-h2 {
  font-size: clamp(1.65rem, 2.35vw, 2.2rem);
  margin-bottom: 8px;
}

/* Three Bio-Fabric Plates */
.sth-bio-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sth-bio-card {
  background: var(--sth-card);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--sth-line);
  display: flex;
  flex-direction: column;
}

.sth-bio-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.sth-bio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sth-bio-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Filterable 15 Studies */
.sth-flt-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.sth-flt-pill {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--sth-line);
  background: var(--sth-card);
  color: var(--sth-acai);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.sth-flt-pill.sth-flt-on {
  background: var(--sth-acai);
  color: #FFFFFF;
  border-color: var(--sth-acai);
}

.sth-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sth-study-card {
  background: var(--sth-card);
  border-radius: 20px;
  border: 1px solid var(--sth-line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.sth-study-card.sth-study-off {
  display: none;
}

.sth-study-h3 {
  font-size: 1.15rem;
  margin: 5px 0 7px;
}

.sth-study-h3 a {
  color: var(--sth-acai);
  text-decoration: none;
}

.sth-study-h3 a:hover {
  color: var(--sth-urucum);
  text-decoration: underline;
}

/* Acre Institutional Split */
.sth-acre-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.sth-acre-box {
  background: var(--sth-card);
  border-radius: 24px;
  border: 1px solid var(--sth-line);
  padding: 28px;
}

/* Inner Article & Form */
.sth-inner-wrap {
  padding: 34px 0 62px;
}

.sth-crumbs {
  font-family: var(--sth-mono);
  font-size: 0.74rem;
  color: var(--sth-muted);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sth-inner-grid {
  display: grid;
  grid-template-columns: 2.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.sth-sheet {
  background: var(--sth-card);
  border-radius: 24px;
  border: 1px solid var(--sth-line);
  padding: 34px;
}

.sth-fig {
  margin: 22px 0;
  border-radius: 16px;
  overflow: hidden;
}

.sth-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.92rem;
}

.sth-table th,
.sth-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--sth-line);
  text-align: left;
}

.sth-table th {
  width: 38%;
  background: var(--sth-sage);
  font-family: var(--sth-mono);
  font-size: 0.75rem;
  color: var(--sth-forest);
}

.sth-side-loom {
  background: var(--sth-sage-deep);
  border-radius: 22px;
  border: 1px solid var(--sth-line);
  padding: 22px;
  position: sticky;
  top: 84px;
}

.sth-side-ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.sth-side-ul a {
  display: block;
  padding: 10px 12px;
  background: var(--sth-card);
  border-radius: 12px;
  border: 1px solid var(--sth-line);
  color: var(--sth-acai);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.89rem;
}

/* Contact Form */
.sth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sth-span-2 {
  grid-column: 1 / -1;
}

.sth-lbl {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.sth-inp,
.sth-sel,
.sth-txt {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--sth-line);
  background: var(--sth-sage);
  color: var(--sth-acai);
  font-family: var(--sth-sans);
  font-size: 0.96rem;
}

.sth-txt {
  min-height: 128px;
  resize: vertical;
}

.sth-inp:user-valid,
.sth-sel:user-valid,
.sth-txt:user-valid {
  border-color: var(--sth-forest);
}

.sth-inp:user-invalid,
.sth-sel:user-invalid,
.sth-txt:user-invalid {
  border-color: var(--sth-urucum);
}

.sth-ok {
  display: none;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #E6F4EC;
  border: 1.5px solid var(--sth-forest);
  color: var(--sth-forest);
  font-weight: 700;
}

.sth-ok.sth-ok-on {
  display: block;
}

/* Footer */
.sth-acai-footer {
  background: var(--sth-acai);
  color: #DFD8E6;
  padding: 46px 0 32px;
  margin-top: 40px;
}

.sth-foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(223, 216, 230, 0.18);
}

.sth-foot-cols h3 {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.sth-foot-cols a {
  color: #DFD8E6;
}

.sth-foot-cols a:hover {
  color: #FFA98F;
}

.sth-foot-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.sth-foot-ul a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.sth-foot-base {
  padding-top: 18px;
  font-family: var(--sth-mono);
  font-size: 0.72rem;
  color: #A99EB5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Woven Tag LGPD Notice */
.sth-selvedge-lgpd {
  position: fixed;
  right: 20px;
  bottom: 16px;
  max-width: 430px;
  background: var(--sth-card);
  color: var(--sth-acai);
  border: 1.5px solid var(--sth-forest);
  border-radius: 18px;
  padding: 11px 16px;
  box-shadow: 0 14px 32px rgba(30, 22, 36, 0.18);
  z-index: 95;
  font-size: 0.81rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sth-selvedge-lgpd.sth-lgpd-shut {
  display: none;
}

.sth-lgpd-btn {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: var(--sth-forest);
  color: #FFFFFF;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 1120px) {
  .sth-triptych-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sth-draft-card {
    grid-column: 1 / -1;
  }
  .sth-bio-trio,
  .sth-acre-split,
  .sth-inner-grid {
    grid-template-columns: 1fr;
  }
  .sth-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .sth-head-flex {
    flex-wrap: wrap;
  }
  .sth-mob-toggle {
    display: inline-flex;
    align-items: center;
  }
  .sth-warp-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }
  .sth-warp-nav.sth-nav-open {
    display: flex;
  }
  .sth-triptych-grid,
  .sth-study-grid,
  .sth-form-grid,
  .sth-foot-cols {
    grid-template-columns: 1fr;
  }
  .sth-selvedge-lgpd {
    left: 16px;
    right: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}

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