/* Simmerleaf static site stylesheet
 * Exact light/dark palette from workspace-integrated/scripts/make_assets.py
 * Verified WCAG contrast:
 *   Light: Ink on Cream 13.5:1, Leaf on Cream 5.6:1, Muted on Cream 5.4:1
 *   Dark:  Ink on Cream 14:1,   Leaf on Cream 9.1:1, Muted on Cream 7.6:1
 */

:root {
  color-scheme: light dark;
  --cream: #F7F1E3;
  --paper: #FFFBF2;
  --ink: #2B2620;
  --muted: #6B6153;
  --leaf: #356B42;
  --leaf-soft: #E3EEDC;
  --rule: #E2D8C3;
  --tomato: #A23B2A;
  --tomato-soft: #F9E8E4;
  --font-serif: ui-serif, Georgia, "Iowan Old Style", "New York", Cambria, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --max-width: 56rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1E1B16;
    --paper: #29251F;
    --ink: #EDE6D6;
    --muted: #B5AB9A;
    --leaf: #8CCB97;
    --leaf-soft: #2C3B2D;
    --rule: #3A342B;
    --tomato: #F09A85;
    --tomato-soft: #3B2420;
  }
}

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

html {
  font-size: 100%;
  background: var(--cream);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.03125rem;
  line-height: 1.65;
  background: var(--cream);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--leaf);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 8px;
}

a {
  color: var(--leaf);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.preview-banner {
  background: var(--tomato-soft);
  border-bottom: 1px solid var(--tomato);
  color: var(--ink);
  font-size: 0.9rem;
  padding: 0.65rem 0;
}

.preview-banner strong {
  color: var(--tomato);
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--leaf);
}

.site-nav a[aria-current="page"] {
  color: var(--leaf);
  border-bottom-color: var(--leaf);
  font-weight: 600;
}

main {
  flex: 1 0 auto;
  padding: 2.5rem 0 3.5rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.65rem);
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 1.12rem;
  margin: 1.35rem 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.45rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--leaf-soft);
  padding: 0.12em 0.35em;
  border-radius: 5px;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.12em 0.42em;
  border-radius: 5px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--leaf-soft);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule);
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px rgba(43, 38, 32, 0.08);
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid var(--leaf);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--leaf);
  color: var(--cream);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--rule);
}

.btn-secondary:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}

.paper-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.15rem 0;
}

.paper-card > :last-child {
  margin-bottom: 0;
}

.notice {
  background: var(--leaf-soft);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--leaf);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
}

.notice-draft {
  background: var(--tomato-soft);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--tomato);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
}

.notice > :last-child,
.notice-draft > :last-child {
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 1.25rem 0;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
}

.meta-list dt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.meta-list dd {
  margin: 0.15rem 0 0;
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-weight: 600;
  background: var(--leaf-soft);
  color: var(--ink);
  font-size: 0.92rem;
}

tr:last-child td {
  border-bottom: none;
}

.page-meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.6rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--leaf);
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-icon {
    width: 84px;
    height: 84px;
    border-radius: 19px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1.85rem 0 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
