:root {
  /* Warm light palette — soft, craft-friendly, keeps the violet brand.
     Kept in sync with the light theme in src/styles.css (the workspace). */
  --ink: #342F2A;
  --ink-soft: #6F6558;
  --brand: #5B4BD6;
  --brand-light: #ECE8FB;
  --line: #E7DCC9;
  --bg: #F5EEE1;
  --grid: #EBE1D0;
  --card: #FDFAF4;
  --marker: #159E68;
  /* Size-highlight marigold — mirrors the workspace light theme so the demo
     feels familiar. (--marker green stays the "Free" tier-badge colour.) */
  --hi: #F6C64B;
  --hi-edge: #D99A2B;
  --hi-ink: #3A2B10;
  --radius: 7px;
  --maxw: 1240px;
  --font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth }

body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Header ----- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 238, 225, .85);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { text-decoration: none }
.logo .mark {
  width: 34px;
  height: 34px;
  flex: none;
  border: 2px solid var(--brand);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--brand);
}
.logo .brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo .brandname {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
}
.logo .brandname b { color: var(--brand) }
.logo .tagline {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: -3px;
}
@media (max-width: 560px) {
  .logo .tagline { display: none }
}
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.nav a, .nav .btn-nav {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: .12s;
}
.nav a:hover, .nav .btn-nav:hover {
  color: var(--ink);
  background: var(--line);
  text-decoration: none;
}
.nav .btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
}
/* Signed-in account cluster that replaces the header sign-in button */
.nav-account { display: inline-flex; align-items: center; gap: 4px }
.nav-signout {
  background: none;
  border: 0;
  color: var(--ink-soft);
  font: 600 13px/1 var(--font);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: .12s;
}
.nav-signout:hover { color: var(--ink); background: var(--line) }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 15px/1 var(--font);
  padding: 10px 22px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .14s;
  text-decoration: none;
}
.btn:hover { text-decoration: none }
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: #4A3BC4;
  border-color: #4A3BC4;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--ink-soft);
  background: var(--card);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--line);
}
.btn-lg { padding: 14px 32px; font-size: 16px }

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer a { color: var(--ink-soft) }
.site-footer a:hover { color: var(--ink) }
/* Social icon link (Ravelry group). Icon-only, self-hosted inline SVG so it
   passes the CSP; colour tracks the footer text and warms to brand on hover. */
.footer-social {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  transition: color .12s, transform .12s;
}
.footer-social svg { width: 20px; height: 20px; display: block }
.footer-social:hover { color: var(--brand); transform: translateY(-1px) }
.footer-social:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px }
.site-footer .legal {
  margin-left: auto;
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
}

/* ----- Sections ----- */
.section { padding: 72px 0 }
.section-sm { padding: 44px 0 }
.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 8px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 48px;
}
