/* Linyan Studio / ZenFlux
   Palette is taken from the app's own artwork: limewashed walls, bottle-green
   paint, sage upholstery, and the sea through the arched window. */
:root {
  --limewash: #F6F8F3;
  --bottle: #1E2A21;
  --sage: #63785A;
  --pale-sage: #DDE6D7;
  --stone: #8C877A;
  --sea: #3F7690;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --reading: "Newsreader", "Iowan Old Style", Georgia, serif;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--limewash);
  color: var(--bottle);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 0.18em; }
a:hover { color: var(--bottle); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 2px; }

.wrap { padding-inline: var(--gutter); max-width: 82rem; margin-inline: auto; }

/* Masthead */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.55rem; }
.masthead nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.masthead nav a { color: var(--bottle); text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 7rem); }
.hero h1 {
  margin: 0 0 1.75rem;
  font-weight: 300;
  font-size: clamp(2.5rem, 5.1vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 88;
  text-wrap: balance;
}
.hero h1 span { display: block; }
.hero p { max-width: var(--measure); margin: 0 0 1.25rem; }
.availability { color: var(--stone); font-size: 0.98rem; }

/* The compare: one room, the visitor drags between looks. The arch is the
   window shape from the rooms themselves. */
.compare { position: relative; margin: 0; }
.compare-frame {
  position: relative;
  aspect-ratio: 1536 / 2752;
  max-height: 84vh;
  margin-inline: auto;
  border-radius: 50% 50% 0.5rem 0.5rem / 28% 28% 0.5rem 0.5rem;
  overflow: hidden;
  background: var(--pale-sage);
  isolation: isolate;
}
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare-after[hidden] { display: none; }
.compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 2px; margin-left: -1px; background: var(--limewash); pointer-events: none;
}
.compare-divider::after {
  content: ""; position: absolute; top: 58%; left: 50%;
  width: 2.75rem; height: 2.75rem; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--limewash);
  box-shadow: 0 1px 0 rgba(30, 42, 33, 0.25), 0 8px 24px rgba(30, 42, 33, 0.28);
  /* two chevrons */
  background-image:
    linear-gradient(45deg, transparent 46%, var(--bottle) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--bottle) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--bottle) 46% 54%, transparent 54%),
    linear-gradient(45deg, transparent 46%, var(--bottle) 46% 54%, transparent 54%);
  background-size: 0.45rem 0.45rem; background-repeat: no-repeat;
  background-position: 32% 40%, 32% 60%, 68% 40%, 68% 60%;
  background-color: var(--limewash);
}
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.compare-frame:has(input:focus-visible) { outline: 3px solid var(--sea); outline-offset: 4px; }
.tag {
  position: absolute; bottom: 1rem; padding: 0.25rem 0.7rem; font-size: 0.85rem;
  background: rgba(246, 248, 243, 0.92); color: var(--bottle); border-radius: 999px; pointer-events: none;
}
.tag-before { left: 1rem; }
.tag-after { right: 1rem; }
.looks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; justify-content: center; margin-top: 1.1rem; font-size: 0.98rem; }
.looks span { color: var(--stone); }
.looks button {
  font: inherit; color: var(--bottle); background: none; border: 0; padding: 0.15rem 0;
  border-bottom: 2px solid transparent; cursor: pointer;
}
.looks button[aria-pressed="true"] { border-bottom-color: var(--sage); font-weight: 600; }

/* How it works — a real sequence, so it is numbered */
.steps { background: var(--bottle); color: var(--limewash); padding-block: clamp(3.5rem, 8vw, 7rem); }
.steps h2, .styles h2, .studio h2 { margin: 0 0 2.5rem; font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; font-variation-settings: "wdth" 90; }
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.steps li { counter-increment: step; border-top: 1px solid rgba(221, 230, 215, 0.35); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-size: 3.25rem; font-weight: 200; line-height: 1; color: var(--pale-sage); margin-bottom: 1rem; }
.steps h3 { margin: 0 0 0.5rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin: 0; color: rgba(246, 248, 243, 0.82); max-width: 24rem; }

/* Screens */
.screens { padding-block: clamp(3rem, 7vw, 6rem) 0; }
.screens-rail {
  display: flex; gap: clamp(0.75rem, 2vw, 1.5rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1.5rem; scrollbar-width: thin; scrollbar-color: var(--sage) transparent;
}
.screens-rail img { flex: 0 0 auto; width: clamp(13rem, 24vw, 19rem); border-radius: 1.1rem; scroll-snap-align: center; }

/* Styles set as type */
.styles { padding-block: clamp(3.5rem, 8vw, 7rem); }
.styles .run {
  margin: 0; max-width: 62rem;
  font-weight: 200; font-size: clamp(1.9rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -0.03em;
  font-variation-settings: "wdth" 84; color: var(--sage); text-wrap: pretty;
}
.styles .run em { font-style: normal; color: var(--bottle); }
.styles .note { margin: 2rem 0 0; max-width: var(--measure); }

/* Studio / footer */
.studio { border-top: 1px solid var(--pale-sage); padding-block: clamp(3rem, 6vw, 5rem); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.studio h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1rem; }
.studio h3 { margin: 0 0 0.6rem; font-size: 0.98rem; font-weight: 600; }
.studio p, .studio li { margin: 0 0 0.4rem; font-size: 0.98rem; }
.studio ul { list-style: none; margin: 0; padding: 0; }
.fine { margin-top: 3rem; color: var(--stone); font-size: 0.9rem; max-width: 46rem; }

/* Long-form legal pages */
.legal { max-width: 44rem; padding-block: 1rem clamp(3rem, 8vw, 6rem); }
.legal h1 { font-weight: 300; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; font-variation-settings: "wdth" 88; margin: 1rem 0 0.75rem; }
.legal .effective { color: var(--stone); margin: 0 0 2.5rem; font-size: 0.98rem; }
.legal h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin: 2.5rem 0 0.6rem; }
.legal p, .legal li, .legal ol, .legal ul { font-family: var(--reading); font-size: 1.14rem; line-height: 1.62; }
.legal p { margin: 0 0 1rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.35rem; }
.legal strong { font-weight: 600; }
.legal .callout { border-left: 3px solid var(--sage); padding: 0.25rem 0 0.25rem 1.1rem; margin: 1.5rem 0; }

@media (max-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .compare-frame { max-height: none; width: min(100%, 26rem); }
  .steps ol { grid-template-columns: minmax(0, 1fr); }
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .masthead nav { gap: 1rem; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .compare-after, .compare-divider { transition: clip-path 0.18s ease-out, left 0.18s ease-out; }
  .compare.dragging .compare-after, .compare.dragging .compare-divider { transition: none; }
}
