@font-face{font-family:'Cormorant';font-style:normal;font-display:swap;font-weight:300 700;src:url(../fonts/cormorant-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Cormorant';font-style:normal;font-display:swap;font-weight:300 700;src:url(../fonts/cormorant-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-display:swap;font-weight:400 700;src:url(../fonts/instrument-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:normal;font-display:swap;font-weight:400 700;src:url(../fonts/instrument-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Subpages of the Studio Asistent site. Same night palette and type as the landing page:
   a short night masthead (sky, ridges, the lit hut) over one left-aligned reading column. */
:root {
  --night: #05070F;
  --ink: #EBEEF8;
  --muted: #A3ABCB;
  --lamp: #FFB454;
  --lamp-soft: #FFDCA8;
  --lamp-ink: #1A1206;
  --rule: rgba(235, 238, 248, 0.16);
  --field: rgba(235, 238, 248, 0.06);
  --shade: rgba(4, 6, 18, 0.85);
  --frame: #0B1020;
  --bezel: #1B2238;

  --display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --gutter: clamp(16px, 4.5vw, 64px);
  --ridge: clamp(6.5rem, 15vw, 10.5rem);   /* height kept free for the mountains under the heading */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--lamp-soft); outline-offset: 3px; border-radius: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ── Masthead ──────────────────────────────────────────────── */
.masthead { position: relative; overflow: hidden; background: var(--night); isolation: isolate; }
.masthead canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
.masthead-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 7vw, 4.5rem);
  padding-block: 1.1rem calc(var(--ridge) + 2.5rem);
}
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.top-name { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1; text-decoration: none; }
.top-right { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); }
.top-links { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.4rem); }
.top-link { font-size: var(--step--1); font-weight: 500; text-decoration: none; white-space: nowrap; }
.top-link:hover { text-decoration: underline; }
.top-link[aria-current="page"] { color: var(--lamp-soft); text-decoration: underline; text-decoration-thickness: 2px; }
.top-cta { font-size: var(--step--1); font-weight: 600; white-space: nowrap; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.lang a {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  text-decoration: none;
}
.lang a[aria-current="true"] { background: var(--ink); color: var(--night); }
.lang a.lang-suggest { background: var(--lamp); color: var(--lamp-ink); }

.page-head { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; text-shadow: 0 1px 28px var(--shade); }
.page-head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.page-head p { font-size: var(--step-1); line-height: 1.5; max-width: 36rem; }

/* ── Content ───────────────────────────────────────────────── */
.section { display: flex; flex-direction: column; gap: 2.75rem; padding-block: clamp(3rem, 7vw, 5rem); }
main > .section:first-child { padding-top: clamp(2rem, 4vw, 3rem); }
.section-head { display: flex; flex-direction: column; gap: 0.75rem; max-width: 36rem; }
.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.pull {
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--lamp-soft);
  text-wrap: balance;
}
.note { max-width: 46rem; color: var(--muted); }
.section .sub { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; letter-spacing: 0; }

.grid { display: grid; gap: 2.25rem clamp(2rem, 5vw, 4rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.item { display: flex; flex-direction: column; gap: 0.55rem; padding-top: 1.15rem; border-top: 1px solid var(--rule); min-width: 0; }
.item h3 { font-family: var(--display); font-weight: 600; font-size: 1.8rem; line-height: 1.1; }
.item p { color: var(--muted); }
.grid-4 .item h3 { font-family: var(--sans); font-size: var(--step-0); line-height: 1.3; }
.grid-4 .item p { font-size: 0.9375rem; line-height: 1.5; }

.areas-head, .area { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) minmax(0, 17rem); column-gap: 2.5rem; }
.areas-head { padding-bottom: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.areas { border-top: 1px solid var(--rule); }
.area { row-gap: 0.4rem; align-items: first baseline; padding-block: 1.3rem; border-bottom: 1px solid var(--rule); }
.area h3 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.area p { min-width: 0; }
.area-never { font-size: 0.9375rem; line-height: 1.5; color: var(--lamp-soft); }
.never-label { display: none; font-weight: 600; }

.prompts { display: flex; flex-direction: column; gap: 0.5rem; }
.prompts li {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  text-wrap: balance;
}

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 6vw, 5rem); }
.split-side, .split-main { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.split-side p { color: var(--muted); }

.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 0.3rem 3rem;
  align-items: first baseline;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
.row h3 { font-size: var(--step-0); font-weight: 600; line-height: 1.4; }
.row p { color: var(--muted); min-width: 0; }

.steps { counter-reset: step; max-width: 46rem; border-top: 1px solid var(--rule); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: first baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 600; font-size: 1.8rem; line-height: 1; color: var(--lamp); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; }
.links-note { color: var(--muted); }
.closing { max-width: 30ch; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; text-wrap: balance; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: var(--lamp-ink);
  background: var(--lamp);
  border: 0;
  border-radius: 5px;
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--lamp-soft); }
.btn-ghost { color: var(--ink); background: transparent; border: 1px solid var(--rule); }
.btn-ghost:hover { background: var(--field); }

.support { gap: 0.5rem; }
.support p { color: var(--muted); }
.foot-mail { color: var(--ink); user-select: all; }

/* ── Screenshots ───────────────────────────────────────────── */
.shots { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4.5rem); }
.shot { margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.shot-frame {
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--frame);
  box-shadow: 0 30px 80px var(--shade);
}
.shot-frame img, .phone-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1.5rem; }
.shot figcaption h3 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.shot figcaption p { color: var(--muted); max-width: 44rem; }

.phones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); }
.phone { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.phone-frame { border: 5px solid var(--bezel); border-radius: 26px; overflow: hidden; background: var(--frame); box-shadow: 0 20px 50px var(--shade); }
.phone figcaption { font-size: var(--step--1); color: var(--muted); text-align: center; }

/* ── 404 ───────────────────────────────────────────────────── */
.lost { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.lost p { color: var(--muted); font-size: var(--step-1); }

/* ── Pager and footer ──────────────────────────────────────── */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule);
}
.pager a { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; }
.pager-label { font-size: var(--step--1); color: var(--muted); }
.pager-name { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.05; }
.pager a:hover .pager-name { color: var(--lamp-soft); }
.pager-next { margin-left: auto; text-align: right; align-items: flex-end; }
.pager .btn { flex-direction: row; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem max(2rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--muted);
}

@media (max-width: 66rem) {
  /* page links move to their own row and scroll sideways if they have to */
  .top-links { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 0.35rem; scrollbar-width: none; }
  .top-links::-webkit-scrollbar { display: none; }
}
@media (max-width: 62rem) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .areas-head { display: none; }
  .area { grid-template-columns: minmax(0, 1fr); }
  .never-label { display: inline; }
}
@media (max-width: 46rem) {
  /* phone screens become a strip you swipe through */
  .phones { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
  .phone { scroll-snap-align: center; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
