:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #1a1d23;
  --text-muted: #5b616e;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --border: #e5e7eb;
}

:root[data-theme="dark"] {
  --bg: #14161a;
  --bg-alt: #1c1f26;
  --text: #f1f2f4;
  --text-muted: #a3a9b5;
  --accent: #818cf8;
  --accent-hover: #a5b0f9;
  --border: #2a2e37;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-inner nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
}

.nav-inner nav a {
  color: var(--text-muted);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
}

.wave {
  display: inline-block;
  animation: wave 2.2s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
}

.cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.section {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  margin-top: 0;
}

.section h3 {
  margin-top: 2rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.server-address {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mc-edition-label {
  margin-top: 1.25rem;
}

.mc-bedrock-port-row {
  margin-top: 0.5rem;
}

.server-address code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.server-address .btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 380px;
}

.access-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.access-form input[type="text"],
.access-form input[type="email"] {
  font: inherit;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
}

.access-form input[type="text"]:focus,
.access-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.access-form .honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.access-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.calendar-embed {
  max-width: 800px;
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 800 / 600;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
