@import './fonts/pp-mori.css';

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

:root {
  color-scheme: light;
  --sand: #f2efe6;
  --rise: #faf8f3;
  --dusk-400: #111c35;
  --dusk-300: #1d2c4e;
  --dusk-200: #293b64;
  --wave-500: #4a6aab;
  --wave-400: #7993c1;
  --muted: #4e586c;
  --card-border: rgba(17, 28, 53, 0.1);
  --shadow: 0 16px 32px rgba(140, 120, 90, 0.12);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family:
    'PP Mori',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: linear-gradient(180deg, var(--sand) 0%, var(--rise) 40%, #ffffff 100%);
  color: var(--dusk-400);
  line-height: 1.6;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--dusk-400);
}

.tagline {
  margin: 1.25rem auto 2rem;
  max-width: 38rem;
  font-size: 0.875rem;
  color: var(--muted);
}

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

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.button-primary {
  background: var(--dusk-200);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.button-primary:hover {
  transform: translateY(-1px);
}

.button-secondary {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--wave-500);
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 12px rgba(160, 140, 110, 0.08);
}

.feature h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--dusk-300);
}

.feature p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer p + p {
  margin-top: 0.5rem;
}

.footer a {
  color: var(--wave-500);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Guide pages (e.g. /mcp/) */

.guide {
  padding-top: 2rem;
}

.back-link {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
}

.back-link a {
  color: var(--wave-500);
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

.guide-header {
  text-align: left;
  padding: 0 0 2rem;
}

.guide-header h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.guide-header .tagline {
  margin-left: 0;
  max-width: 42rem;
}

.guide-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 12px rgba(160, 140, 110, 0.08);
}

.guide-section h2 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dusk-300);
}

.guide-section p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.guide-section p:last-child {
  margin-bottom: 0;
}

.guide-section a {
  color: var(--wave-500);
}

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

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

.steps li:last-child {
  margin-bottom: 0;
}

.bullet-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.bullet-list li {
  margin-bottom: 0.35rem;
}

.code-block {
  margin: 0.75rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  background: var(--rise);
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.code-block code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--dusk-400);
  white-space: pre;
  padding: 0;
  background: none;
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: rgba(17, 28, 53, 0.06);
  color: var(--dusk-300);
}

.note {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(74, 106, 171, 0.08);
  border-left: 3px solid var(--wave-500);
  font-size: 0.9375rem;
  color: var(--muted);
}

.troubleshooting {
  margin: 0;
}

.troubleshooting dt {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--dusk-300);
}

.troubleshooting dt:first-child {
  margin-top: 0;
}

.troubleshooting dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.troubleshooting a {
  color: var(--wave-500);
}

.legal-meta {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.legal .guide-section h2 {
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .page {
    padding-top: 2.5rem;
  }

  .guide-section {
    padding: 1.25rem;
  }
}
