:root {
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --mist: #e6f4f1;
  --graphite: #1f2937;
  --paper: #f7fbfa;
  --ink-soft: #4b5563;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--paper);
}

a {
  color: var(--teal);
  text-underline-offset: 0.15em;
}

a:hover {
  color: #0d9488;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
  color: var(--graphite);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 15%, rgba(15, 118, 110, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 85%, rgba(230, 244, 241, 0.95), transparent 50%),
    linear-gradient(165deg, #dceeea 0%, var(--paper) 45%, #eef6f4 100%);
  animation: wash 14s ease-in-out infinite alternate;
}

@keyframes wash {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  text-align: center;
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-mark {
  display: block;
  margin: 0 auto 1.75rem;
  width: min(220px, 70vw);
  height: auto;
  animation: mark-in 1.1s ease-out 0.15s both;
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-define {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
  font-weight: 500;
}

.hero-cta {
  margin: 0 0 0.75rem;
}

.hero-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-meta a {
  font-weight: 500;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 0.35rem;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: #0d9488;
  color: #fff;
  transform: translateY(-1px);
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.panel {
  padding: 2.75rem 0 0;
  animation: rise 0.8s ease-out both;
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.panel h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.panel p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.route-figure {
  margin: 1.25rem 0 0;
  padding: 1rem 0.5rem 0.25rem;
  border-radius: 0.5rem;
  background: rgba(230, 244, 241, 0.55);
}

.route-diagram {
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
  margin: 0 auto;
}

.route-diagram .place {
  fill: #ffffff;
  stroke: #0f766e;
  stroke-width: 2;
}

.route-diagram .place-chosen {
  fill: #e6f4f1;
  stroke-width: 2.75;
}

.route-diagram .place-label {
  fill: #1f2937;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.route-diagram .hub {
  fill: #e6f4f1;
  stroke: #0f766e;
  stroke-width: 2.5;
}

.route-diagram .hub-label {
  fill: #0f766e;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.route-diagram .path {
  fill: none;
  stroke: #0f766e;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.route-diagram .path-soft {
  fill: none;
  stroke: #0f766e;
  stroke-width: 1.75;
  stroke-dasharray: 5 5;
  opacity: 0.45;
}

.route-diagram .caption {
  fill: #4b5563;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 14px;
}

.idea {
  padding-top: 2.5rem;
}

.steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.steps li {
  margin-bottom: 0.55rem;
}

.use-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.use-card {
  padding: 1.15rem 1.2rem 1rem;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.72);
}

.use-card > p {
  margin-bottom: 0.65rem;
}

.use-card details {
  margin-top: 0.35rem;
}

.use-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--teal);
  list-style: none;
}

.use-card summary::-webkit-details-marker {
  display: none;
}

.use-card summary::after {
  content: " +";
  font-weight: 500;
}

.use-card details[open] summary::after {
  content: " -";
}

.example {
  margin: 0.75rem 0 0.25rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.example li {
  margin-bottom: 0.55rem;
}

.example strong {
  color: var(--graphite);
  font-weight: 600;
}

.how,
.install {
  border-top: 1px solid rgba(15, 118, 110, 0.18);
  margin-top: 2rem;
  padding-top: 2.5rem;
}

@media (min-width: 720px) {
  .use-grid {
    grid-template-columns: 1fr;
  }
}

.glossary dl {
  margin: 0;
}

.glossary dt {
  margin-top: 1.1rem;
  font-weight: 600;
  color: var(--graphite);
}

.glossary dd {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.glossary code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: var(--mist);
  color: var(--teal);
}

.quiet {
  border-top: 1px solid rgba(15, 118, 110, 0.18);
  margin-top: 2rem;
  padding-top: 2.5rem;
}

.site-foot {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-foot p {
  margin: 0 auto;
  max-width: 36rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-atmosphere,
  .hero-inner,
  .hero-mark,
  .panel {
    animation: none;
  }
  .button:hover {
    transform: none;
  }
}
