/* The example sites: the same bones under all of them. Colours come from the choice of feel. The type is the garden's own, standing in until she chooses. */
:root { --paper: #fbf5ea; --ink: #2a1d14; --accent: #a4481f; --on: #fffaf0; --soft: #efe3cf; --line: #cdb99a; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 'Crimson Pro', Georgia, serif; transition: background .4s ease, color .4s ease; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
#app { min-height: 100vh; display: flex; flex-direction: column; }
.body { flex: 1 0 auto; width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px 24px; }
.top { width: 100%; max-width: 980px; margin: 0 auto; padding: 88px 16px 12px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; position: relative; }
.who h1 { margin: 0; font: 700 clamp(34px, 7vw, 54px)/1.05 'Crimson Pro', Georgia, serif; }
.who .line { margin: 2px 0 0; font: italic 17px/1.35 Lora, Georgia, serif; color: var(--accent); }
.sheet h2 { margin: 18px 0 6px; font: 700 30px/1.15 'Crimson Pro', Georgia, serif; }
.sheet h3, .tape h3 { margin: 18px 0 2px; font: 700 21px/1.25 'Crimson Pro', Georgia, serif; }
.sheet p { margin: 8px 0; max-width: 40em; }

/* getting around */
.menu { display: flex; flex-wrap: wrap; gap: 4px 2px; }
.menu button { padding: 6px 10px; background: none; border: 0; border-bottom: 2px solid transparent; }
.menu button.here { border-bottom-color: var(--accent); font-weight: 700; }
.burger { position: relative; }
.burgerbtn { width: 46px; height: 46px; padding: 0; background: var(--soft); border: 2px solid var(--line); border-radius: 4px; font-size: 28px; line-height: 1; }
.burgerlist { position: absolute; right: 0; top: 52px; z-index: 12; min-width: 190px; padding: 6px; display: grid; background: var(--paper); border: 2px solid var(--line); border-radius: 4px; box-shadow: 3px 4px 0 #0002; }
.burgerlist button { padding: 9px 10px; background: none; border: 0; text-align: left; }
.burgerlist button.here { font-weight: 700; color: var(--accent); }
.doorrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.doorrow button { padding: 10px 16px; background: var(--soft); border: 2px solid var(--line); border-left: 6px solid var(--accent); border-radius: 2px; }
.doorrow button.here { background: var(--accent); color: var(--on); }
.travel { position: fixed; left: 12px; bottom: 12px; z-index: 12; }
.travelbtn { display: block; width: 74px; height: 74px; padding: 0; background: none; border: 0; filter: drop-shadow(0 4px 5px #0005); transition: transform .2s ease; }
.travelbtn:hover { transform: translateY(-3px) rotate(-3deg); }
.travelart, .travelart svg { width: 100%; height: 100%; display: block; }
.travellist { position: absolute; left: 0; bottom: 82px; min-width: 190px; padding: 6px; display: grid; background: var(--paper); border: 2px solid var(--line); border-radius: 6px; box-shadow: 3px 4px 0 #0003; }
.travellist button { padding: 9px 10px; background: none; border: 0; text-align: left; }
.travellist button.here { font-weight: 700; color: var(--accent); }

/* a website */
.hero { margin: 6px 0 4px; border-radius: 4px; overflow: hidden; border: 2px solid var(--line); }
.hero svg { display: block; width: 100%; height: auto; }

/* a shop */
.things { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 14px 0; }
.thing { display: flex; flex-direction: column; padding: 10px; background: var(--soft); border: 2px solid var(--line); border-radius: 4px; }
.thingart { aspect-ratio: 1; border-radius: 2px; overflow: hidden; }
.thingart svg { display: block; width: 100%; height: 100%; }
.thing h4 { margin: 10px 0 2px; font: 700 20px/1.2 'Crimson Pro', Georgia, serif; }
.thing p { margin: 0 0 10px; font-size: 16.5px; line-height: 1.35; flex: 1 0 auto; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.go { padding: 7px 13px; background: var(--accent); color: var(--on); border: 0; border-radius: 3px; font-weight: 700; }
.plain { padding: 7px 13px; background: none; border: 2px solid var(--line); border-radius: 3px; }
.basket { position: fixed; left: 50%; bottom: 74px; z-index: 13; width: min(92vw, 440px); transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--paper); border: 2px solid var(--accent); border-radius: 6px; box-shadow: 3px 4px 0 #0003; font-size: 16.5px; line-height: 1.3; }

/* a room */
.scene { position: relative; width: 100%; max-width: max(320px, calc((100vh - 230px) * 10 / 7)); margin: 0 auto; border: 3px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--soft); }
.sceneart svg { display: block; width: 100%; height: auto; }
.spot { position: absolute; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 4px; background: transparent; border: 0; border-radius: 6px; }
.spot span { padding: 2px 6px 3px; background: #fffaf0ee; color: #2a1a12; border: 1px solid #2a1a12; border-radius: 3px; font: italic clamp(11.5px, 2.4vw, 15px)/1.1 Lora, Georgia, serif; white-space: nowrap; }
.spot:hover, .spot:focus-visible { background: #ffffff2e; box-shadow: inset 0 0 0 2px var(--accent); }
.hint { margin: 12px 0; font: italic 16.5px Lora, Georgia, serif; }
.roomsheet { margin-top: 14px; padding: 2px 16px 16px; background: var(--soft); border: 2px solid var(--line); border-radius: 4px; animation: rise .35s ease-out both; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* a machine */
.machine { max-width: 460px; margin: 8px auto 0; padding: 14px 14px 18px; background: var(--accent); color: var(--on); border: 3px solid var(--ink); border-radius: 14px 14px 6px 6px; box-shadow: 0 8px 0 var(--ink); }
.machinetop { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.machinename { font: 700 21px/1.1 'Crimson Pro', Georgia, serif; letter-spacing: .04em; text-transform: uppercase; }
.lever { width: 12px; height: 56px; margin-right: 12px; background: var(--on); border: 2px solid var(--ink); border-radius: 6px; transform-origin: 50% 100%; position: relative; }
.lever::before { content: ""; position: absolute; left: 50%; top: -14px; width: 24px; height: 24px; margin-left: -12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.lever.pull { animation: pull .55s ease-in-out; }
@keyframes pull { 40% { transform: rotate(38deg); } }
.ask { margin: 6px 0 10px; font: italic 17px/1.35 Lora, Georgia, serif; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.key { min-height: 66px; padding: 8px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 5px 0 var(--ink); font-weight: 700; line-height: 1.15; }
.key:active, .key.on { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.tape { max-width: 380px; margin: 8px auto 0; padding: 12px 18px 22px; background: #fffef8; color: #24211b; border: 1px solid #c9c2b0; border-top: 0; font: 16.5px/1.4 'Crimson Pro', Georgia, serif; transform-origin: 50% 0; }
.tape.print { animation: printing .9s steps(9) both; }
@keyframes printing { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.tapehead { margin: 8px 0; text-align: center; letter-spacing: .06em; font-weight: 700; }
.tape p { margin: 8px 0; }
.tape .things { grid-template-columns: 1fr; }
.tape .thing { background: none; border: 0; border-top: 1px dashed #8b8473; border-radius: 0; padding: 10px 0 0; }
.tape .go { background: #24211b; color: #fffef8; }

/* the foot */
.foot { width: 100%; max-width: 980px; margin: 0 auto; padding: 14px 16px 104px; font-size: 15.5px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 4px; font-style: italic; }

/* change it */
.changeit { position: fixed; right: 12px; bottom: 16px; z-index: 22; padding: 10px 16px; background: var(--ink); color: var(--paper); border: 0; border-radius: 22px; font-weight: 700; box-shadow: 0 3px 8px #0005; }
.panel { position: fixed; right: 0; bottom: 0; z-index: 21; width: min(100%, 430px); max-height: 74vh; padding: 14px 16px 66px; overflow-y: auto; background: var(--paper); border: 2px solid var(--ink); border-width: 2px 0 0 2px; border-radius: 8px 0 0 0; box-shadow: -3px -3px 12px #0003; }
.paneltop { margin: 0; font: italic 16px Lora, Georgia, serif; }
.panel h4 { margin: 14px 0 6px; font: 700 18px 'Crimson Pro', Georgia, serif; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices button { padding: 7px 11px; background: var(--soft); border: 2px solid var(--line); border-radius: 3px; font-size: 16px; }
.choices button.on { background: var(--accent); border-color: var(--accent); color: var(--on); }
.panelsmall { margin: 4px 0; font-size: 15px; line-height: 1.3; }
.code { display: block; width: 100%; height: 230px; margin: 6px 0; padding: 8px; background: #1f1b16; color: #f4ecd9; border: 0; border-radius: 3px; font: 13px/1.4 Consolas, Menlo, monospace; white-space: pre; overflow: auto; }

@media (min-width: 760px) { .travel { bottom: 56px; } }
@media (prefers-reduced-motion: reduce) { body, .travelbtn { transition: none; } .roomsheet { animation: none; } }
