@charset "utf-8";
/* CSS Document 

Tooplate 2166 Ivory Flow
    
https://www.tooplate.com/view/2166-ivory-flow

*/

/* ═══════════════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --oat: #FCFAF8;
  --oat-mid: #F5F0EB;
  --oat-deep: #EDE6DD;
  --terra: #D96C4A;
  --terra-light: rgba(217, 108, 74, 0.12);
  --terra-ghost: rgba(217, 108, 74, 0.06);
  --ink: #1A1714;
  --ink-soft: #3D3832;
  --ink-muted: #8A8279;
  --ink-faint: #B8B0A6;
  --white: #FFFFFF;
  --ease-soft: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--oat);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════
   FLOATING PILL NAV
   ═══════════════════════════════════════════════ */
.pill-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(252, 250, 248, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(26, 23, 20, 0.06);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 4px 24px rgba(26, 23, 20, 0.06);
}

.pill-nav a {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: 999px;
  transition: color 0.5s var(--ease-soft), background 0.5s var(--ease-soft);
  white-space: nowrap;
}

.pill-nav a:hover {
  color: var(--ink);
}

.pill-nav a.active {
  background: var(--ink);
  color: var(--oat);
}

/* ═══════════════════════════════════════════════
   EST. 2026 VERTICAL DECORATOR (Right Edge)
   ═══════════════════════════════════════════════ */
.est-label {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 900;
  pointer-events: none;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   EXPANDING UNDERLINE CTA (No Standard Buttons)
   ═══════════════════════════════════════════════ */
.cta-link {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  position: relative;
  padding-bottom: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.cta-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--terra);
  transition: width 0.7s var(--ease-soft), left 0.7s var(--ease-soft);
}

.cta-link:hover::after {
  width: 100%;
  left: 0;
}

.cta-link--dark { color: var(--ink); }
.cta-link--dark::after { background: var(--ink); }

.cta-link--light { color: var(--oat); }
.cta-link--light::after { background: var(--oat); }

/* ═══════════════════════════════════════════════
   STICKY SECTION ARCHITECTURE
   ═══════════════════════════════════════════════ */
.canvas-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
}

.canvas-section:nth-child(1) { z-index: 1; }
.canvas-section:nth-child(2) { z-index: 2; }
.canvas-section:nth-child(3) { z-index: 3; }
.canvas-section:nth-child(4) { z-index: 4; }
.canvas-section:nth-child(5) { z-index: 5; }
.canvas-section:nth-child(6) { z-index: 6; }

/* ═══════════════════════════════════════════════
   SECTION 1: HERO (Split Screen)
   ═══════════════════════════════════════════════ */
.hero {
  background: var(--oat);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-tag {
  position: absolute;
  bottom: 32px;
  left: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(26, 23, 20, 0.35);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 56px;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-soft) 0.3s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 5.5vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-soft) 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--terra);
}

.hero-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 380px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-soft) 0.7s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-soft) 0.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   SECTION 2: THE LOOKBOOK (Horizontal Scroll-Snap)
   ═══════════════════════════════════════════════ */
.lookbook {
  background: var(--oat-mid);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 0;
}

.lookbook-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 64px;
  margin-bottom: 40px;
}

.lookbook-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  color: var(--ink);
}

.lookbook-count {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
}

.lookbook-track {
  display: flex;
  gap: 28px;
  padding: 0 64px 40px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.lookbook-track::-webkit-scrollbar { display: none; }

.lookbook-track.is-dragging { cursor: grabbing; }
.lookbook-track.is-dragging img { pointer-events: none; }

.lookbook-card {
  flex: 0 0 auto;
  position: relative;
}

.lookbook-card img {
  display: block;
  border-radius: 32px;
  border: 10px solid var(--white);
  box-shadow: 0 8px 40px rgba(26, 23, 20, 0.06);
  height: 55vh;
  min-height: 350px;
  width: auto;
  object-fit: cover;
  transition: transform 1s var(--ease-soft), box-shadow 0.8s var(--ease-soft);
}

.lookbook-card:hover img {
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(26, 23, 20, 0.1);
}

.lookbook-card-label {
  position: absolute;
  bottom: -28px;
  left: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lookbook-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding: 0 64px;
}

.lookbook-arrows {
  display: flex;
  gap: 8px;
}

.lookbook-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.5s var(--ease-soft), background 0.5s var(--ease-soft);
}

.lookbook-arrow:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.lookbook-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.5s var(--ease-soft);
}

.lookbook-arrow:hover svg { stroke: var(--oat); }

/* ═══════════════════════════════════════════════
   SECTION 3: PRODUCT DETAIL
   ═══════════════════════════════════════════════ */
.product {
  background: var(--oat);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
  align-items: center;
}

.product-image-zone {
  position: relative;
  height: 100%;
  overflow: hidden;
  cursor: none;
}

.product-image-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mouse-following Terracotta Buy Circle */
.buy-circle {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
  mix-blend-mode: normal;
}

.buy-circle.visible {
  opacity: 1;
  transform: scale(1);
}

.buy-circle span {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.product-info {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}

.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--terra);
  margin-bottom: 24px;
}

.product-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-muted);
  max-width: 400px;
  margin-bottom: 32px;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 36px;
  border-top: 1px solid var(--oat-deep);
}

.product-spec {
  flex: 1 1 50%;
  padding: 16px 0;
  border-bottom: 1px solid var(--oat-deep);
}

.product-spec dt {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.product-spec dd {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.product-actions {
  display: flex;
  gap: 28px;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   SECTION 4: THE PROCESS (Vertical Timeline)
   ═══════════════════════════════════════════════ */
.process {
  background: var(--ink);
  color: var(--oat);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 64px;
}

.process-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.process-left {
  position: relative;
}

.process-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 20px;
}

.process-subtitle {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-faint);
  line-height: 1.8;
  max-width: 340px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--terra), var(--terra), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 56px 0;
  opacity: 0.2;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}

.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--terra);
  background: var(--ink);
  transition: background 0.5s var(--ease-soft);
}

.timeline-item.in-view::before {
  background: var(--terra);
}

.timeline-step {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}

.timeline-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--oat);
}

.timeline-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-faint);
  max-width: 340px;
}

/* ═══════════════════════════════════════════════
   SECTION 5: VIDEO FRAGMENT (Grain Overlay)
   ═══════════════════════════════════════════════ */
.video-fragment {
  background: var(--ink);
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  inset: 0;
}

.video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
}

/* CSS Grain / Noise Overlay */
.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
  mix-blend-mode: overlay;
}

.video-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 600px;
  padding: 40px;
}

.video-play {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(252, 250, 248, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  cursor: pointer;
  transition: border-color 0.6s var(--ease-soft), transform 0.6s var(--ease-soft);
}

.video-play:hover {
  border-color: var(--oat);
  transform: scale(1.1);
}

.video-play svg {
  width: 20px;
  height: 20px;
  fill: var(--oat);
  margin-left: 3px;
}

.video-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  color: var(--oat);
  line-height: 1.15;
  margin-bottom: 16px;
}

.video-caption {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-faint);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════
   SECTION 6: THE SIGNATURE
   ═══════════════════════════════════════════════ */
.signature {
  background: var(--oat-mid);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Massive semi-transparent logo background */
.signature-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(120px, 18vw, 280px);
  font-weight: 300;
  color: rgba(26, 23, 20, 0.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
}

.signature-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 480px;
  padding: 40px;
}

.signature-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 32px;
}

.signature-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.signature-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.signature-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color 0.5s var(--ease-soft);
}

.signature-email:hover { color: var(--terra); }

.signature-phone {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 36px;
}

.signature-links {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.signature-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.signature-footer a {
  transition: color 0.4s;
}

.signature-footer a:hover { color: var(--terra); }

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   HAMBURGER (MOBILE)
   ═══════════════════════════════════════════════ */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  width: 44px;
  height: 44px;
  background: rgba(252, 250, 248, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 23, 20, 0.06);
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.5s var(--ease-soft), opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(3px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(3px, -4px); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(252, 250, 248, 0.97);
  backdrop-filter: blur(20px);
  z-index: 1500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 80px 40px;
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  transition: color 0.4s;
}

.mobile-nav a:hover { color: var(--terra); }

/* ═══════════════════════════════════════════════
   PREFERS REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .timeline-item { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { height: 50vh; }
  .hero-content { padding: 48px 40px; }

  .product { grid-template-columns: 1fr; }
  .product-image-zone { height: 50vh; }
  .product-info { padding: 48px 40px; }

  .process { padding: 80px 40px; }
  .process-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .lookbook-header { padding: 0 40px; }
  .lookbook-track { padding: 0 40px 40px; }
}

@media (max-width: 768px) {
  .pill-nav { display: none; }
  .hamburger { display: flex; }
  .est-label { display: none; }

  .canvas-section {
    position: relative;
    top: auto;
  }


  .hero-image { height: 45vh; min-height: 280px; }
  .hero-content { padding: 36px 24px 48px; }

  .lookbook { padding: 48px 0; }
  .lookbook-header { padding: 0 24px; margin-bottom: 28px; }
  .lookbook-track { padding: 0 24px 36px; gap: 16px; }
  .lookbook-card img { height: 45vh; min-height: 260px; border-radius: 24px; border-width: 6px; }
  .lookbook-footer { padding: 0 24px; }

  .product-image-zone { height: 50vh; cursor: auto; }
  .buy-circle { display: none; }
  .product-info { padding: 36px 24px 48px; }

  .process { padding: 60px 24px; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 0; }
  .timeline-item::before { left: -32px; }

  .video-content { padding: 24px; }

  .signature-content { padding: 24px; }
  .signature-bg-logo { font-size: 80px; }

  .mobile-nav {
    padding: 80px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
	@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/** Variables **/

:root {
  --color-background: #cbd5e1;
  --color-background-alt: #3a9092;
  --color-border-active: #23494c;
  --color-border-default: #94a3b8;
  --color-highlight: #7ecac7;
  --color-primary: #23494c;
  --color-primary-active: #122d30;
  --color-text-default: #0f172a;
  --color-text-muted: #475569;

  --font-family-body: "Inter", sans-serif;
}

/** Base **/

*,
::before,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-family-body);
  font-optical-sizing: auto;
  font-style: normal;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

[type="checkbox"],
[type="radio"],
[type="range"] {
  appearance: none;
  flex-shrink: 0;
  padding: 0;
  user-select: none;
}

[type="checkbox"]:focus,
[type="radio"]:focus,
[type="range"]:focus {
  outline: none;
}

/** Components **/

.fs-form {
  display: grid;
  row-gap: 1rem;
}

.fs-form:where(.fs-layout__2-column) {
  column-gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

fieldset {
  display: grid;
  margin: 1rem 0;
  row-gap: 1rem;
}

.fs-form:where(.fs-layout__2-column) fieldset {
  column-gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
}

.fs-fieldset-title {
  color: var(--color-text-default);
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.75rem;
  margin-bottom: 1rem;
  grid-column: 1 / -1;
}

.fs-field {
  display: flex;
  flex-direction: column;
  row-gap: 0.375rem;
}

.fs-label {
  color: var(--color-text-default);
  display: block;
  font-family: var(--font-family-display);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.fs-description {
  color: var(--color-text-muted);
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.fs-button-group {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 0.75rem;
}

.fs-form:where(.fs-layout__2-column) .fs-button-group {
  grid-column: 1 / -1;
}

.fs-button {
  background-color: var(--color-primary);
  border-radius: 0.375rem;
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1rem;
  padding: 1rem 2rem;
  transition-duration: 200ms;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-button:hover {
  background-color: var(--color-primary-active);
}

.fs-button:focus-visible {
  background-color: var(--color-primary-active);
  outline: 3px solid var(--color-highlight);
}

.fs-input,
.fs-select {
  appearance: none;
  border-radius: 0.375rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: var(--color-text-default);
  font-size: 0.875rem;
  height: 2rem;
  line-height: 1.25rem;
  outline: none;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.fs-input:focus-visible,
.fs-select:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-input::placeholder {
  color: var(--color-text-muted);
}

.fs-checkbox-group,
.fs-radio-group {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.fs-checkbox-field,
.fs-radio-field {
  column-gap: 0.5rem;
  display: flex;
}

:is(.fs-checkbox-field, .fs-radio-field) .fs-label + .fs-description {
  margin-top: 0.125rem;
}

.fs-checkbox-wrapper,
.fs-radio-wrapper {
  align-items: center;
  display: flex;
  height: 1.25rem;
}

.fs-checkbox,
.fs-radio {
  background-color: #fff;
  border: 1px solid var(--color-text-default);
  height: 1rem;
  width: 1rem;
}

.fs-checkbox {
  border-radius: 0.25rem;
}

.fs-radio {
  border-radius: 100%;
}

.fs-checkbox:checked,
.fs-radio:checked {
  background-color: var(--color-primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: transparent;
}

.fs-checkbox:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.fs-radio:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.fs-checkbox:focus-visible,
.fs-radio:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.fs-slider {
  background: transparent;
  cursor: pointer;
  height: 1.25rem;
  width: 100%;
}

.fs-slider::-moz-range-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-webkit-slider-runnable-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-moz-range-thumb {
  background-color: var(--color-primary);
  border: none; /* Removes extra border that FF applies */
  border-radius: 50%;
  height: 1.25rem;
  width: 1.25rem;
}

.fs-slider::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--color-primary);
  border-radius: 50%;
  height: 1.25rem;
  margin-top: -0.375rem; /* Centers thumb on the track */
  width: 1.25rem;
}

.fs-slider:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-switch {
  background-color: var(--color-background-alt);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 1.5rem;
  cursor: pointer;
  height: 1.5rem;
  transition-duration: 200ms;
  transition-property: background-color, background-position;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.75rem;
}

.fs-switch:checked {
  background-color: var(--color-primary);
  background-position: right center;
}

.fs-switch:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea {
  appearance: none;
  border-radius: 0.375rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: var(--color-primary);
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline: none;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.fs-textarea:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

/** Utilities **/

.col-span-full {
  grid-column: 1 / -1;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

.slider-label-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.25rem;
}

.slider-label-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}
}