@import url("/theme.css");

header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem max(var(--gutter), calc((100vw - var(--content-width)) / 2));
  border-bottom: 1px solid var(--line); background: var(--plane);
}
header span { color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 680; }
.brand img { width: 2.4rem; height: 2.4rem; }
main { width: min(calc(100% - 2 * var(--gutter)), 62rem); margin: auto; padding: clamp(2.5rem, 5.5vw, 5rem) 0 4rem; }
h1 { margin: 0; font-size: clamp(2rem, 4.7vw, 3.9rem); line-height: 1.17; letter-spacing: -.045em; font-weight: 650; text-wrap: balance; }
h2 { font-size: clamp(1.28rem, 2vw, 1.6rem); margin: 2.15rem 0 .5rem; letter-spacing: -.025em; }
p { max-width: 49rem; margin: .65rem 0; color: var(--muted); }
.lede { font-size: 1.12rem; margin: .9rem 0 1.5rem; }
form {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: .9rem;
  padding: clamp(1rem, 2.5vw, 1.7rem); margin: 1rem 0;
  background: var(--plane); border: 1px solid var(--line); border-radius: 1rem;
}
label { color: var(--muted); font-size: .96rem; }
input, button { font: inherit; }
input { display: block; width: 100%; min-height: 46px; margin-top: .35rem; padding: .55rem .8rem; color: var(--ink); background: var(--surface); border: 1px solid var(--edge); border-radius: .6rem; }
button { min-height: 44px; padding: .52rem 1.2rem; background: #292d32; color: white; border: 1px solid transparent; border-radius: 999px; font-weight: 600; cursor: pointer; }
button:hover { background: #15191c; }
a { color: var(--link); text-underline-offset: .18em; }
.stage { background: var(--bg-canvas); padding: .35rem; border: 1px solid var(--line); border-radius: 1.25rem; }
#scene { display: block; min-width: 0; height: clamp(18rem, 50vw, 31rem); }
#scene canvas { display: block; width: 100%; height: 100%; }
.tour-controls:not([hidden]), #stops { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.tour-controls:not([hidden]) { margin-top: .9rem; }
#stops button { background: var(--plane); color: var(--ink); border-color: var(--line); font-size: .91rem; padding: .42rem .92rem; }
#stops button:hover { background: white; border-color: var(--edge); }
#stops button[aria-pressed=true] { border-color: #51697d; background: #dce6ed; color: #253b4a; }
#scene-status { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) {
  form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
  form button { grid-column: 1 / -1; }
  header span { font-size: .9rem; }
  label { font-size: .91rem; }
}
@media (max-width: 340px) { form { grid-template-columns: 1fr; } }
