/* ui · shape: Split Studio · theme: Emaille (custom) · nav: N3 · footer: F1 · tone: austere */

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

html, body { overflow-x: clip; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

a { color: inherit; text-decoration-thickness: var(--rule); text-underline-offset: 0.2em; }
a:hover { color: var(--color-enamel); text-decoration-thickness: 2px; }
a:active { color: var(--color-enamel-2); }
a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
  transition: none;
}

.skip {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
}
.skip:focus-visible { top: var(--space-sm); color: var(--color-paper); }

/* ---- Layout: sticky identity column + scrolling content ---------------- */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.rail {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: var(--rule) solid var(--color-rule);
}

.rail nav ul {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.rail nav a { text-decoration: none; color: var(--color-ink-2); }
.rail nav a:hover { color: var(--color-ink); text-decoration: underline; }

.rail-contact { display: none; }

main { padding-bottom: var(--space-xl); min-width: 0; }

@media (min-width: 900px) {
  .studio {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: var(--space-2xl);
    padding: 0 var(--space-lg);
  }
  .rail {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    padding: var(--space-xl) 0;
    border-bottom: 0;
    display: flex;
    flex-direction: column;
  }
  .rail nav ul { flex-direction: column; gap: var(--space-xs); margin-top: var(--space-lg); }
  .rail-contact {
    display: block;
    margin-top: auto;
    font-size: var(--text-sm);
    color: var(--color-ink-2);
  }
  .rail-contact p { margin: 0 0 var(--space-3xs); }
}

/* ---- The sign ----------------------------------------------------------- */

.sign {
  display: inline-block;
  text-decoration: none;
  background: var(--color-enamel);
  color: var(--color-enamel-ink);
  border-radius: var(--radius-sign);
  padding: var(--space-3xs);
  box-shadow: inset 0 -2px 0 var(--color-enamel-2);
}
.sign span {
  display: block;
  position: relative;
  border: 2px solid var(--color-enamel-ink);
  border-radius: calc(var(--radius-sign) - 4px);
  padding: var(--space-xs) var(--space-lg);
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.14em;
}
/* the four mounting screws */
.sign span::before, .sign span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--color-enamel-ink);
  opacity: 0.85;
}
.sign span::before { left: var(--space-xs); }
.sign span::after { right: var(--space-xs); }
.sign:hover { color: var(--color-enamel-ink); }
.sign:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }

/* ---- Content ------------------------------------------------------------ */

section {
  max-width: var(--measure);
  padding: var(--space-2xl) 0 0;
}

.hero { padding-top: var(--space-xl); }
@media (min-width: 900px) { .hero { padding-top: var(--space-3xl); } }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  margin: 0 0 var(--space-md);
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }

.lead { font-size: var(--text-lg); line-height: 1.55; margin: 0 0 var(--space-md); }

.status {
  border-left: 3px solid var(--color-enamel);
  padding: var(--space-2xs) 0 var(--space-2xs) var(--space-sm);
  color: var(--color-ink-2);
  margin: var(--space-lg) 0;
}

.cta {
  font-size: var(--text-lg);
  font-weight: 600;
}

p { margin: 0 0 var(--space-sm); }

/* item list: term + explanation, hairline rules between */
.items { margin: 0; padding: 0; border-top: var(--rule) solid var(--color-rule); }
.items > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3xs);
  padding: var(--space-sm) 0;
  border-bottom: var(--rule) solid var(--color-rule);
}
.items dt { font-weight: 600; }
.items dd { margin: 0; color: var(--color-ink-2); }
@media (min-width: 640px) {
  .items > div { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--space-md); }
}

.not { margin-top: var(--space-md); color: var(--color-ink-2); }

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  padding: var(--space-xs) 0;
  border-bottom: var(--rule) solid var(--color-rule);
}
ol.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-enamel);
  line-height: 1.4;
}

table.prices { width: 100%; border-collapse: collapse; }
table.prices th, table.prices td {
  text-align: left;
  padding: var(--space-xs) 0;
  border-bottom: var(--rule) solid var(--color-rule);
  vertical-align: top;
  font-weight: 400;
}
table.prices td { text-align: right; white-space: nowrap; padding-left: var(--space-md); font-variant-numeric: tabular-nums; }
table.prices tr:first-child th, table.prices tr:first-child td { border-top: var(--rule) solid var(--color-rule); }
.note { color: var(--color-ink-2); font-size: var(--text-sm); margin-top: var(--space-sm); }

.mail {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  overflow-wrap: anywhere;
}

/* legal pages */
.legal h2 { font-size: var(--text-lg); margin-top: var(--space-lg); }
.legal address { font-style: normal; margin-bottom: var(--space-sm); }
.legal ul { padding-left: var(--space-md); }

footer {
  margin-top: var(--space-2xl);
  padding: var(--space-md) 0;
  border-top: var(--rule) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}
footer a { color: var(--color-ink-2); }

/* ---- Motion: sections settle in as they enter, CSS only ---------------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main section:not(.hero) {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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