/* Solo Ops AU — editorial SaaS + content design system
   Warm paper canvas, deep slate ink, muted amber accent.
   Patterns: Notion-warm neutrals, editorial measure, whisper borders.
   Fonts loaded via <link> in HTML (DM Sans + Newsreader). */

:root {
  --bg: #f3efe6;
  --bg-deep: #ebe5d8;
  --surface: #fffcf7;
  --surface-elevated: #ffffff;
  --ink: #1c1917;
  --ink-soft: #292524;
  --muted: #6b6560;
  --muted-soft: #8a847c;
  --accent: #a16207;
  --accent-hover: #854d0e;
  --accent-soft: #fef3c7;
  --accent-ring: rgba(161, 98, 7, 0.18);
  --border: rgba(28, 25, 23, 0.1);
  --border-strong: rgba(28, 25, 23, 0.16);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(28, 25, 23, 0.03);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.06), 0 1px 3px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 12px 40px rgba(28, 25, 23, 0.08), 0 2px 8px rgba(28, 25, 23, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max: 42rem;          /* ~65–70ch reading column */
  --wide: 68rem;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease), text-decoration-thickness 0.2s;
}
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.65rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.logo-mark svg { width: 1rem; height: 1rem; }
.logo span { color: var(--accent); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.35rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  text-decoration: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
}
.chip::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.chip-preview {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-hover);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 50%;
  translate: -50% 0;
  width: min(52rem, 120%);
  height: 22rem;
  background: radial-gradient(ellipse at center, rgba(161, 98, 7, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
  max-width: 18ch;
  color: var(--ink);
  text-wrap: balance;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--ink-soft);
  color: var(--surface);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--surface-elevated);
}

/* ——— Sections ——— */
.section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}
.section-head .see-all {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.section-head .see-all:hover { text-decoration: underline; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ——— Cards / grid ——— */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
}

.featured-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .featured-layout {
    grid-template-columns: 1.15fr 1fr;
    gap: 1.15rem;
  }
  .featured-layout .card-lead { grid-row: span 2; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card-lead {
  padding: 1.75rem 1.65rem;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent-soft) 55%, var(--surface)) 0%, var(--surface) 55%);
  min-height: 100%;
}
.card-tag {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.card-lead h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.card .more {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.card .more::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}
.card:hover .more { color: var(--accent); }
.card:hover .more::after { transform: translateX(3px); }

a.card {
  color: inherit;
  text-decoration: none;
}
a.card:hover {
  color: inherit;
  text-decoration: none;
}
a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-product {
  background: var(--surface-elevated);
}
.card-product .card-tag { color: var(--muted); }

/* ——— Soft notice (legacy, softened) ——— */
.soft-notice {
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  color: var(--accent-hover);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

/* ——— Page / article ——— */
article.page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
  margin: 2rem auto 3rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

article.page h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 1rem;
  text-wrap: balance;
}

article.page h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.85rem;
  line-height: 1.25;
}

article.page h3 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 1.75rem 0 0.6rem;
}

article.page p { margin: 0 0 1.15rem; }
article.page p, article.page li {
  max-width: 65ch;
}

article.page blockquote {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
article.page blockquote p { margin: 0; max-width: none; }

article.page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0 1.75rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
article.page th,
article.page td {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
article.page th:last-child,
article.page td:last-child { border-right: none; }
article.page tr:last-child td { border-bottom: none; }
article.page th {
  background: var(--bg-deep);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

article.page code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-deep);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  border: 1px solid var(--border);
}

article.page ul, article.page ol { padding-left: 1.3rem; margin: 0 0 1.25rem; }
article.page li { margin: 0.4rem 0; }
article.page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.25rem 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.15rem;
}
.meta a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.meta a:hover { color: var(--accent); }
.meta-sep { color: var(--border-strong); }

.cta-box {
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--bg-deep) 60%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  margin: 1.75rem 0;
}
.cta-box strong { color: var(--ink); }

/* ——— Article index list ——— */
.page-intro {
  padding: clamp(2rem, 4vw, 3rem) 0 0.5rem;
}
.page-intro h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.page-intro .lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.list-articles {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.list-articles li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.list-articles li:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.list-articles a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.3;
}
.list-articles a:hover { color: var(--accent); }
.list-articles p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 58ch;
}

/* ——— Resources list polish ——— */
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.resource-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  max-width: none;
}
.resource-list li:last-child { border-bottom: none; }
.resource-list a { font-weight: 600; text-decoration: none; }
.resource-list a:hover { text-decoration: underline; }

.placeholder-note {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--bg-deep);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  display: block;
  margin: 0.35rem 0;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 2.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}
.site-footer .inner {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer .inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.footer-brand .logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}
.footer-brand strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.footer-brand p {
  margin: 0;
  max-width: 32rem;
  line-height: 1.55;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover { color: var(--accent); }

/* ——— Utility ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 560px) {
  .wrap, .narrow { width: min(100% - 1.5rem, var(--wide)); }
  .nav-links { gap: 0.1rem; }
  .nav-links a { padding: 0.35rem 0.55rem; font-size: 0.85rem; }
  article.page { padding: 1.35rem 1.1rem; margin-top: 1.25rem; }
}
