@import url("https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600;700&family=Noto+Sans:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

/*
 * Styling for the markdown lane only — legal pages, articles, listings.
 *
 * The landing page is pass-through and brings its own (Tailwind via CDN today).
 * These are the app's dark-mode tokens, so content pages and the product read as
 * one brand. When the Tailwind build lands, both lanes should share one source.
 */
:root {
  --bg: #161310;
  --surface: #201c17;
  --border: #37312a;
  --fg: #efe9dd;
  --muted: #cfc6b5;
  --primary: #d75a2b;
  --primary-fg: #161310;
  --radius: 12px;
  --measure: 42rem;
  --shell: 80rem;
  --font-display: "Spline Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Noto Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.page {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:hover { color: #e36a3c; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  /* max() keeps content clear of a notch in landscape. */
  padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 0 max(1rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) { .shell { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .shell { padding: 0 2rem; } }

/* Sticky, translucent, blurred — the same treatment as the landing page header. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}
.site-header .shell {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; min-height: 44px; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary);
}
.brand__mark--sm { width: 1.5rem; height: 1.5rem; font-size: 0.875rem; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: #fff;
}

.site-nav { display: none; gap: 2rem; }
@media (min-width: 768px) { .site-nav { display: flex; align-items: center; } }
.site-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color 150ms;
}
.site-nav a:hover { color: var(--primary); }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.login { display: none; font-size: 0.875rem; font-weight: 500; color: #fff; text-decoration: none; }
@media (min-width: 640px) { .login { display: block; } }
.login:hover { color: var(--primary); }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.5rem 1.25rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-display);
  font-size: 0.875rem; font-weight: 700; text-decoration: none;
  transition: filter 150ms, transform 150ms;
}
.cta:hover { color: var(--primary-fg); filter: brightness(1.08); transform: translateY(-1px); }

.prose {
  max-width: var(--measure);
  margin: 0 auto; padding: 3rem 1.25rem 4rem;
}
.prose h1, .prose h2, .prose h3 { font-family: var(--font-display); color: #fff; }
.prose h1 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 1rem; }
.prose h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.05rem; margin: 2rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.1rem; }
.prose li { margin: 0.35rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; font-size: 0.9rem; }
.prose th { color: #fff; font-family: var(--font-display); }
.prose code { background: var(--surface); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.9em; }
.prose pre { background: var(--surface); padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
.updated, .article-meta { font-size: 0.8rem; color: var(--muted); margin: 0 0 1.5rem; }
.back { margin-top: 3rem; font-size: 0.875rem; }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.post-list a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.post-list .excerpt { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0; }

.site-footer {
  border-top: 1px solid var(--border); background: var(--bg);
  padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom, 0px));
}
.site-footer__grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer__brand p { color: var(--muted); font-size: 0.875rem; margin: 1rem 0 0; }
.site-footer h4 {
  font-family: var(--font-display); color: #fff;
  font-size: 0.95rem; font-weight: 700; margin: 0 0 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a {
  color: var(--muted); font-size: 0.875rem; text-decoration: none;
  /* 44px tap targets on touch; harmless on a pointer device. */
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-footer a:hover { color: var(--primary); }
.site-footer__bar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  color: var(--muted); font-size: 0.8rem;
}
.site-footer__bar p { margin: 0; }
.site-footer button {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--muted); text-decoration: underline; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-footer button:hover { color: var(--primary); }

}
}
