:root {
  --lime: #8dc63f;
  --lime-dark: #6fa52b;
  --forest: #2f603e;
  --forest-deep: #224a2f;
  --stone-light: #f7f2e8;
  --ink: #333333;
  --muted: #696969;
  --line: #d8d8d8;
  --white: #ffffff;
  --occupied: #4a3c3c;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 18rem;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff 0, #fff 62%, var(--stone-light) 100%);
}

a { color: inherit; }
.topline { height: .55rem; background: var(--lime); }

.site-header {
  width: min(75rem, calc(100% - 2.5rem));
  min-height: 8rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; }
.brand img { display: block; width: min(19.25rem, 54vw); height: auto; }

.header-contact {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  color: var(--lime-dark);
  font-size: .78rem;
}

.header-contact a { color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; }
.header-contact a:hover, .header-contact a:focus-visible { color: var(--forest); }

.page-nav {
  width: min(75rem, calc(100% - 2.5rem));
  min-height: 3.7rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--muted);
  font-size: .85rem;
}

.page-nav a { text-decoration: none; }
.page-nav a:hover, .page-nav a:focus-visible { color: var(--forest); text-decoration: underline; }

main {
  width: min(75rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2.3rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
}

.intro { max-width: 51rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--forest); font-size: .78rem; font-weight: 700; letter-spacing: .14em; }

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -.035em;
}

.lead {
  max-width: 44rem;
  margin: 1.2rem 0 1.55rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.7;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.35rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fafafa;
  font-size: .82rem;
  font-weight: 600;
}

.status-dot {
  width: .65rem;
  height: .65rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a7a7a7;
  box-shadow: 0 0 0 .25rem #a7a7a726;
}

.connection.online { color: var(--forest-deep); border-color: #b5d990; background: #f3faea; }
.connection.online .status-dot { background: var(--lime); box-shadow: 0 0 0 .25rem #8dc63f2b; }
.connection.offline { color: var(--occupied); border-color: #cbbebe; background: #f7f3f3; }
.connection.offline .status-dot { background: var(--occupied); box-shadow: 0 0 0 .25rem #4a3c3c20; }

.spaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: clamp(2rem, 5vw, 4rem) 0 1.15rem;
}

.space {
  position: relative;
  min-height: 16rem;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: .5rem solid currentColor;
  transition: background-color .25s ease, color .25s ease;
}

.space::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 11rem;
  height: 11rem;
  border: 1.4rem solid currentColor;
  border-radius: 50%;
  opacity: .055;
}

.space-number {
  width: clamp(4.4rem, 11vw, 6.5rem);
  height: clamp(4.4rem, 11vw, 6.5rem);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: .22rem solid currentColor;
  border-radius: 50%;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
}

.space-copy { position: relative; z-index: 1; display: flex; flex-direction: column; }
.space-label { margin-bottom: .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.space strong { font-size: clamp(1.7rem, 4.6vw, 3.15rem); line-height: 1.08; font-weight: 500; text-transform: uppercase; }
.space-help { margin-top: .75rem; font-size: .86rem; line-height: 1.45; }
.space.available { color: var(--forest-deep); background: #e9f5d9; }
.space.occupied { color: var(--white); background: var(--occupied); }
.space.unknown { color: #606060; background: #ededeb; }
.updated { margin: 0; color: var(--muted); font-size: .78rem; text-align: right; }

.arrival-note {
  margin-top: clamp(2.8rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem;
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-left: .35rem solid var(--lime);
  background: var(--stone-light);
}

.note-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: .16rem solid var(--forest);
  border-radius: 50%;
  color: var(--forest);
  font-size: 1.4rem;
  font-weight: 600;
}

.arrival-note h2 { margin: 0 0 .6rem; font-size: clamp(1.15rem, 3vw, 1.55rem); font-weight: 500; }
.arrival-note p { max-width: 53rem; margin: 0; color: #575757; line-height: 1.7; }

footer {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(1.25rem, calc((100% - 75rem) / 2));
  color: var(--white);
  background: var(--forest);
  font-size: .82rem;
}

footer div { display: flex; flex-direction: column; gap: .35rem; }
footer strong { font-size: 1rem; font-weight: 600; }
footer a { padding: .8rem 1.2rem; border: 1px solid var(--white); text-decoration: none; text-transform: uppercase; }
footer a:hover, footer a:focus-visible { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.noscript { margin: 0; padding: 1rem; color: white; background: var(--occupied); text-align: center; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

@media (max-width: 44rem) {
  .site-header { min-height: 7rem; }
  .header-contact { display: none; }
  .spaces { grid-template-columns: 1fr; }
  .space { min-height: 11.5rem; }
  .updated { text-align: left; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 28rem) {
  .site-header, .page-nav, main { width: min(100% - 1.5rem, 75rem); }
  .space { align-items: flex-start; flex-direction: column; }
  .arrival-note { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
