/* CSS controls how the HTML looks. */
:root {
  font-family: system-ui, sans-serif;
  color: #17342b;
  background: #f5f3eb;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
}

.scene {
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 64px 24px;
}

.content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1 {
  font-size: clamp(36px, 7vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h2 {
  margin: 24px 0;
  font-size: clamp(48px, 10vw, 100px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}

.scroll-link {
  display: block;
  width: fit-content;
  margin-top: 40px;
  color: inherit;
  text-underline-offset: 6px;
  line-height: 1.7;
}

.scroll-link span {
  display: inline-block;
  margin-left: 8px;
}

.scroll-hint {
  margin-top: 40px;
  line-height: 1.7;
}

.scroll-hint span {
  display: inline-block;
  margin-left: 8px;
}

.intro {
  font-size: 20px;
  line-height: 1.6;
}

button,
.button-link {
  margin-top: 24px;
  padding: 14px 24px;
  border: 0;
  border-radius: 18px;
  background: #17342b;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.button-link {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  text-decoration: none;
}

.found-link {
  margin-top: 0;
  font-size: clamp(32px, 6vw, 64px);
}

.secret-page {
  background: #e7d2f1;
}

button:disabled {
  cursor: default;
  opacity: 0.65;
}

button:hover:not(:disabled),
.button-link:hover {
  background: #285a49;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #8a4600;
  outline-offset: 4px;
}

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid #c4cbbf;
  font-size: 14px;
}

/* A fixed menu button and an accessible, rounded slide-out dialog. */
body.menu-open {
  overflow: hidden;
}

.icon-button {
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(23, 52, 43, 0.12);
  border-radius: 18px;
  background: #faf9f4;
  color: #17342b;
  transition: background 160ms ease, color 160ms ease;
}

.icon-button:hover:not(:disabled) {
  color: #ffffff;
}

.menu-trigger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  box-shadow: 0 6px 24px rgba(23, 52, 43, 0.1);
}

.chat-shortcut {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: #17342b;
  color: #fff;
  box-shadow: 0 10px 30px rgba(12, 30, 25, 0.22);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.chat-shortcut:hover {
  transform: translateY(-2px);
  background: #285a49;
  box-shadow: 0 14px 34px rgba(12, 30, 25, 0.25);
}

.chat-shortcut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7e4ba;
  box-shadow: 0 0 0 4px rgba(167, 228, 186, 0.16);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.sidebar {
  position: fixed;
  inset: 16px 16px 16px auto;
  box-sizing: border-box;
  width: min(380px, calc(100vw - 32px));
  height: calc(100dvh - 32px);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(23, 52, 43, 0.1);
  border-radius: 28px;
  background: #faf9f4;
  color: #17342b;
  box-shadow: 0 24px 80px rgba(12, 30, 25, 0.2);
}

.sidebar[open] {
  display: flex;
  flex-direction: column;
  animation: sidebar-in 240ms ease-out;
}

.sidebar::backdrop {
  background: rgba(14, 31, 26, 0.24);
  backdrop-filter: blur(5px);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sidebar-header .eyebrow {
  margin: 4px 0 12px;
  font-size: 11px;
}

.sidebar h2 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.045em;
}

.menu-close {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  font-size: 28px;
}

.sidebar-links {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.site-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  background: #eeeee6;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease;
}

.site-link:hover {
  background: #dce8de;
}

.site-link strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.site-link small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
  color: #4f655b;
}

.link-arrow {
  font-size: 24px;
}

.sidebar-note {
  margin: auto 0 0;
  padding-top: 32px;
  font-size: 13px;
  line-height: 1.6;
  color: #4f655b;
}

@keyframes sidebar-in {
  from { transform: translateX(32px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar[open] { animation: none; }
  .icon-button, .site-link, .chat-shortcut { transition: none; }
  .chat-shortcut:hover { transform: none; }
}

@media (max-width: 480px) {
  .menu-trigger { top: 16px; right: 16px; }
  .chat-shortcut { right: 16px; bottom: 16px; }
  .sidebar { padding: 22px; }
  .scene:first-child { padding-top: 96px; }
}
