:root {
  color-scheme: light;
  --gold: #cabb6b;
  --ink: #000;
  --panel: #fff;
  --text: #000;
  --muted: #444;
  --line: #dad9d9;
  font: 400 18px/1.5 Jost, sans-serif;
  background: #fff;
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.header, footer { max-width: 78rem; margin: auto; padding: 1.3rem clamp(1.1rem, 4vw, 3rem); }
.header { background: #000; border-bottom: 2px solid var(--gold); padding-block: .35rem; }
.brand { display: grid; place-content: center; width: 10.2rem; height: 4.4rem; overflow: hidden; }
.brand img { display: block; width: 15.1rem; max-width: none; height: auto; }
.brand:focus-visible { outline-color: var(--gold); }
.layout {
  max-width: 78rem;
  margin: auto;
  padding: clamp(2.5rem, 8vw, 7rem) clamp(1.1rem, 4vw, 3rem) 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}
h1, h2, h3 { font: 400 1.6rem/1.13 Marcellus, Georgia, serif; margin: 0 0 .7rem; }
h1 { font-size: clamp(3.25rem, 8vw, 7rem); letter-spacing: -.065em; color: var(--ink); margin-left: -.05em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 3.05rem); letter-spacing: -.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.intro > p { color: var(--muted); font-size: clamp(1.15rem, 2.5vw, 1.65rem); }
.place-art { margin-top: 1.65rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.place-art img { width: 100%; height: 100%; object-fit: cover; }
.art-opening { display: block; }
.art-question, .art-result { display: none; }
.layout:has(#question-form:not([hidden])) .art-opening,
.layout:has(#result:not([hidden])) .art-opening { display: none; }
.layout:has(#question-form:not([hidden])) .art-question,
.layout:has(#result:not([hidden])) .art-result { display: block; }
.art-result { transform: scale(1.39); }
.panel { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: clamp(1.15rem, 4vw, 2.55rem); min-width: 0; }
.panel p { color: var(--muted); }
label[for=place] { display: block; margin-top: 1.8rem; margin-bottom: .35rem; }
input { width: 100%; border: 1px solid #807b63; border-radius: 0; background: #fff; color: var(--text); font: inherit; padding: .7rem .8rem; }
input::placeholder { color: #595959; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.button, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 2.65rem; padding: .5rem 1rem; font: 600 1rem/1.3 Jost, sans-serif; text-decoration: none; }
.button { border: 1px solid var(--gold); background: var(--gold); color: var(--ink); }
.button:hover { background: #dad9d9; }
.secondary { border: 1px solid var(--gold); }
.start { margin: 1.15rem 0 .7rem; }
.panel .fine, footer { color: var(--muted); font-size: .85rem; }
.panel .fine:last-child { margin-bottom: 0; }
.panel .place { color: var(--ink); overflow-wrap: anywhere; font-weight: 500; margin-bottom: .5rem; }
.panel .error { color: #8d2418; margin: .35rem 0 0; }
.progress { color: var(--muted); font-size: .8rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
fieldset { border: 0; padding: 0; margin: 1rem 0; min-inline-size: 0; display: grid; gap: .45rem; }
.choice { display: flex; align-items: center; gap: .72rem; border: 1px solid var(--line); min-height: 2.8rem; padding: .58rem .65rem; cursor: pointer; }
.choice:hover, .choice:has(input:checked) { border-color: var(--ink); }
.choice:has(input:checked) { background: #f3f3f3; box-shadow: inset 3px 0 var(--gold); }
.choice input { width: 1rem; height: 1rem; margin: 0; flex: 0 0 1rem; accent-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; }
.text-button { font: inherit; font-size: .9rem; border: 0; padding: .6rem 0; color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.result-actions { justify-content: start; margin-bottom: .55rem; }
.angle, .invitation, .reset-actions { border-top: 1px solid var(--line); padding-top: 1.15rem; margin-top: 1.25rem; }
ul { padding-left: 1.15rem; color: var(--muted); }
li { padding-left: .2rem; margin-bottom: .45rem; }
li::marker { color: var(--ink); }
footer a { text-underline-offset: .2em; }
@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; padding-top: 1.8rem; gap: 1rem; }
  .intro > p { margin-bottom: .45rem; }
  .place-art { margin-top: .85rem; max-height: 9rem; }
  .art-result { object-position: center 43%; }
}
