/* Fluency static site. Palette matches the app. */
:root {
  --bg: #eee4ca;
  --card: #f8f4e5;
  --accent: #eb5327;
  /* Darker accent for text links on light backgrounds (WCAG AA contrast). */
  --accent-ink: #b23a12;
  --ink: #1b1712;
  --ink-soft: #4a4238;
  --line: #ddd1b0;
  --radius: 18px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}

/* Hero */
.hero {
  padding: 40px 0 56px;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  max-width: 14ch;
}

.hero h1 .accent {
  color: var(--accent);
}

.lede {
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0 0 28px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.pill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.button:hover {
  color: var(--ink);
  filter: brightness(1.05);
}

.button.secondary {
  background: transparent;
  border: 2px solid var(--ink);
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Cards */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.card .icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

section {
  padding: 28px 0;
}

section > .wrap > h2,
.page h2 {
  font-size: clamp(1.375rem, 3.6vw, 1.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 52px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--card);
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Long-form pages */
.page {
  padding: 16px 0 48px;
}

.page h1 {
  font-size: clamp(1.875rem, 5.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 8px;
}

.page h2 {
  margin-top: 36px;
}

.page h3 {
  margin: 24px 0 8px;
  font-size: 1.125rem;
}

.page .doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  overflow-wrap: anywhere;
}

.page .doc > :first-child {
  margin-top: 0;
}

.page li {
  margin-bottom: 6px;
}

.template-notice {
  background: #fff3c4;
  border: 2px dashed var(--accent);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 16px 0 24px;
  font-size: 0.975rem;
}

.template-notice strong {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.placeholder {
  background: #fde6dc;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

.callout {
  border-left: 5px solid var(--accent);
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
}

/* Forms */
form.stack {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

label {
  font-weight: 700;
  display: grid;
  gap: 6px;
}

input,
textarea,
select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.check input {
  width: auto;
  margin-top: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.site-footer a {
  color: var(--ink-soft);
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }
  .hero {
    padding-top: 20px;
  }
  .button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
