:root {
  color-scheme: light;
  --ink: #143c31;
  --muted: #4b6258;
  --paper: #faf5e9;
  --cream: #fffdf6;
  --sage: #c5d3bc;
  --gold: #f0b349;
  --round: 0.8rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #236995; outline-offset: 4px; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 1; background: white; padding: .75rem; }
.skip:focus { top: .5rem; }
.container { width: min(calc(100% - 5rem), 73rem); margin-inline: auto; }
.masthead-inner { min-height: 5.5rem; display: flex; align-items: center; gap: 1.4rem; border-bottom: 1px solid #a8baa0; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-size: 2.05rem; letter-spacing: -.065em; font-weight: 780; line-height: 1; }
.wordmark img { width: 2.8rem; height: auto; }
.descriptor { border-left: 1px solid #9caf92; padding-left: 1.4rem; color: var(--muted); font-size: 1rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .7rem 1.1rem; border-radius: .55rem; font-weight: 680; text-align: center; text-decoration: none; line-height: 1.3; border: 1.5px solid transparent; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: #225744; }
.secondary { border-color: var(--ink); background: transparent; }
.secondary:hover { background: #e9efdf; }
.ochre { background: var(--gold); color: #203b2d; }
.ochre:hover { background: #f6be60; }
.kicker { font-size: .94rem; font-weight: 650; line-height: 1.35; margin: 0 0 .45rem; color: var(--muted); }
.exit { margin-left: auto; padding: .7rem .2rem; font-weight: 600; text-underline-offset: .22em; }
.demo-main { width: min(40rem, calc(100% - 2rem)); margin: clamp(1.5rem, 4vw, 3.5rem) auto; }
.demo-main h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.07; letter-spacing: -.05em; margin: .35rem 0 .85rem; text-wrap: balance; }
.demo-main h1:focus { outline: none; }
.demo-main h2 { font-size: 1.22rem; line-height: 1.3; margin: .8rem 0; }
.demo-main p { line-height: 1.5; }
.demo-sheet { border: 1px solid var(--sage); border-radius: 1rem; background: var(--cream); padding: clamp(1.15rem, 4vw, 2.4rem); }
.question-art { display: block; width: min(75%, 16rem); height: 8rem; object-fit: contain; margin: 1rem auto; }
.question { font-size: clamp(1.2rem,3vw,1.55rem); font-weight: 620; margin: .8rem 0 1rem; letter-spacing: -.025em; }
.options { display: grid; gap: .65rem; }
.option { display: flex; align-items: center; gap: .75rem; border: 1px solid #94a88f; border-radius: .6rem; min-height: 3.2rem; background: transparent; padding: .7rem 1rem; text-align: left; font-weight: 590; }
.option::before { content: ""; flex: 0 0 .85rem; width: .85rem; height: .85rem; border: 2px solid #607e6b; border-radius: 50%; }
.option:hover, .building:hover { background: #eef4e6; border-color: #426b52; }
.buildings { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.2rem; }
.building { background: #fbefd5; border: 1px solid #d8be8c; border-radius: .8rem; display: grid; justify-items: center; gap: .55rem; padding: .8rem; font-weight: 680; }
.building img { width: 100%; height: clamp(5.4rem, 16vw, 8rem); object-fit: contain; }
.timer { text-align: center; font-size: .95rem; color: var(--muted); min-height: 1.5em; }
.island-scene { position: relative; width: min(100%, 29rem); margin: 1.15rem auto; }
.island-scene .land { width: 100%; height: auto; display: block; }
.placed { position: absolute; transform: translate(-50%,-100%); height: auto; }
.placed.market { width: 15%; left: 50%; top: 47%; }
.placed.boathouse { width: 16%; left: 67.5%; top: 78%; }
.score { padding: .85rem 1.1rem; font-size: 1.45rem; font-weight: 700; color: white; background: var(--ink); border-radius: .6rem; }
.results { margin: 0; padding: 0; list-style: none; }
.results li { border-bottom: 1px solid var(--sage); padding: .7rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.status { font-size: .92rem; color: #366344; }
.missed { color: #805318; }
@media (max-width: 760px) {
  .container { width: calc(100% - 2.4rem); }
  .masthead-inner { min-height: 4.7rem; gap: 1rem; }
  .wordmark { font-size: 1.72rem; }
  .wordmark img { width: 2.2rem; }
  .descriptor { padding-left: 1rem; font-size: .92rem; }

}
@media (max-width: 440px) {
  .demo-actions { flex-direction: column; }
}

/* Public landing page */
.landing { background: radial-gradient(ellipse at 68% 36%, #fffcf4, var(--paper) 72%); }
.landing-header {
  position: relative;
  z-index: 1;
  width: min(92%, 92.5rem);
  min-height: 5.2rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #143c3124;
}
.identity, .wide-nav, .portals { display: flex; align-items: center; }
.identity { gap: 1.4rem; }
.wide-nav { gap: 2rem; }
.wide-nav a, .mobile-menu a { text-decoration: none; font-weight: 600; }
.wide-nav a:hover, .mobile-menu a:hover, .demo-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.mobile-menu { display: none; }
.landing summary { cursor: pointer; }
.landing summary:focus-visible { outline: 3px solid #236995; outline-offset: 3px; }
.hero {
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 106.25rem;
  --hero-height: clamp(20rem, calc(100svh - 5.2rem), 56.25rem);
  min-height: var(--hero-height);
  margin: auto;
}
.hero-copy { width: 39.4%; margin-left: 4%; padding: 2.5rem 0 4rem; }
.hero h1 {
  margin: 0 0 .3em;
  font-size: clamp(3.2rem, 6.85vw, 6.625rem);
  font-weight: 760;
  line-height: .99;
  letter-spacing: -.065em;
}
.hero h1 span { display: block; }
.hero-copy p {
  max-width: 36ch;
  font-size: clamp(1.06rem, 1.46vw, 1.44rem);
  line-height: 1.43;
  letter-spacing: -.016em;
  margin: 0 0 .64em;
}
.portals { flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.portals .button { border-radius: 3rem; padding-inline: 1.5rem; }
.demo-link {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  min-height: 2.75rem;
  margin-top: .35rem;
  color: #87530a;
  text-decoration: none;
  font-weight: 680;
}
.town-atlas {
  display: grid;
  align-self: flex-start;
  align-items: center;
  height: var(--hero-height);
  width: min(54%, calc(var(--hero-height) - 2rem));
  margin-inline: auto;
  pointer-events: none;
}
.town-atlas img { display: block; width: 100%; height: auto; }
.home-guide { width: min(92%, 78rem); margin: 0 auto 4rem; }
.home-guide section { padding: clamp(2rem, 4vw, 4rem) 0; border-top: 1px solid var(--sage); scroll-margin-top: 1.25rem; }
.home-guide h2 { font-size: clamp(1.8rem, 3.1vw, 2.7rem); line-height: 1.1; letter-spacing: -.045em; margin: 0 0 1.3rem; }
.home-guide h3 { font-size: 1.2rem; letter-spacing: -.018em; margin: 0 0 .4rem; }
.home-guide p { margin: 0; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.guide-columns { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 3vw, 3rem); }
.home-guide .explore-intro { margin-bottom: 1.25rem; }
.examples { align-items: start; }
.examples details { background: var(--cream); border: 1px solid var(--sage); border-radius: 1rem; }
.examples summary { list-style: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem; padding: 1rem 1.2rem; font-weight: 680; }
.examples summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.examples img { width: 100%; height: 7rem; object-fit: contain; grid-column: 1 / -1; }
.examples summary::after { content: ""; width: .48rem; height: .48rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.examples details[open] > summary::after { transform: rotate(225deg); }
.examples details[open] { border-color: #78967f; }
.examples details p { padding: 0 1.2rem 1.2rem; }

@media (max-width: 740px) {
  .landing-header { width: calc(100% - 2.65rem); min-height: 4.5rem; }
  .identity { display: grid; gap: 0; }
  .identity .wordmark { font-size: 1.65rem; gap: .33rem; }
  .identity .wordmark img { width: 2.15rem; }
  .identity .descriptor { padding: 0 0 0 2.48rem; border: 0; font-size: .75rem; }
  .wide-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { display: flex; align-items: center; gap: .4rem; list-style: none; min-height: 2.75rem; font-weight: 600; }
  .menu-icon { width: .9rem; height: .65rem; border-block: 1.5px solid; display: grid; align-items: center; }
  .menu-icon::after { content: ""; border-top: 1.5px solid; }
  .mobile-menu nav { position: absolute; right: 0; width: 10.5rem; padding: .2rem .8rem; border: 1px solid var(--sage); border-radius: .75rem; background: var(--cream); box-shadow: 0 6px 24px #123c3118; }
  .mobile-menu a { display: flex; align-items: center; min-height: 2.75rem; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { width: auto; margin: 0; padding: 1.75rem 1.375rem 0; }
  .hero h1 { font-size: clamp(2.6rem, 12.55vw, 4.1rem); margin-bottom: 1rem; letter-spacing: -.058em; }
  .hero h1 span { display: inline; }
  .hero h1 span:last-child { white-space: nowrap; }
  .hero-copy p { max-width: 40ch; font-size: 1rem; margin-bottom: .5rem; }
  .portals { gap: .55rem; margin-top: 1.25rem; }
  .portals .button { flex: 1 1 7rem; min-height: 2.875rem; padding: .55rem .7rem; }
  .demo-link { margin-top: .125rem; }
  .town-atlas { display: block; width: min(115%, 40rem); height: auto; margin-inline: 0; align-self: center; }
  .home-guide { width: calc(100% - 2.75rem); margin-bottom: 1.5rem; }
  .guide-columns { grid-template-columns: 1fr; gap: 1.2rem; }
  .examples { gap: .65rem; }
  .examples summary { grid-template-columns: 4.8rem 1fr auto; }
  .examples img { grid-column: auto; height: 3.7rem; }
}
