/*
Theme Name: Sentaur Workflows
Theme URI: https://sentaur.xyz
Author: Sentaur
Description: Editorial theme for practical small-business workflow automation.
Version: 1.0.0
Text Domain: sentaur-workflows
*/

:root {
  --ink: #17231f;
  --muted: #61706a;
  --paper: #f7f6f0;
  --card: #ffffff;
  --line: #dce2dc;
  --brand: #174b3a;
  --accent: #c8f05a;
  --accent-dark: #a6d22c;
  --max: 1180px;
  --read: 760px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(23, 75, 58, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: #0d2f24; }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header { background: rgba(247,246,240,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 1.35rem; font-weight: 850; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--accent); font-size: 14px; letter-spacing: -.08em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 700; }
.site-nav a:hover { color: var(--brand); }
.nav-cta { padding: 10px 15px; border-radius: 10px; background: var(--brand); color: white !important; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; font: inherit; font-weight: 800; }

.hero { padding: 84px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 14px; color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .page-hero h1 { margin: 0; max-width: 850px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.3vw, 6.1rem); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.hero h1 em { color: var(--brand); font-style: normal; box-shadow: inset 0 -.18em 0 var(--accent); }
.hero-copy { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 19px; border: 1px solid var(--brand); border-radius: 11px; background: var(--brand); color: #fff; text-decoration: none; font-size: .94rem; font-weight: 800; }
.button:hover { color: #fff; transform: translateY(-1px); }
.button.alt { background: transparent; color: var(--brand); }
.system-card { position: relative; padding: 28px; border-radius: 24px; background: var(--brand); color: white; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.system-card::before { content: ""; position: absolute; inset: -14px 18px 18px -14px; border: 2px solid var(--accent); border-radius: 24px; z-index: -1; }
.system-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.system-status { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; }
.system-status::before { content: ""; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(200,240,90,.12); }
.flow { display: grid; gap: 13px; margin-top: 23px; }
.flow-step { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 13px; background: rgba(255,255,255,.09); }
.flow-step span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: var(--brand); font-weight: 900; }
.flow-step strong { display: block; font-size: .92rem; }
.flow-step small { display: block; color: rgba(255,255,255,.7); }

.section { padding: 70px 0; }
.section.white { background: var(--card); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-head h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { display: block; padding: 25px; min-height: 180px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; transition: .2s ease; }
.category-card:hover { transform: translateY(-4px); border-color: var(--accent-dark); box-shadow: var(--shadow); color: var(--ink); }
.category-card .number { color: var(--brand); font-weight: 850; font-size: .76rem; letter-spacing: .12em; }
.category-card h3 { margin: 28px 0 7px; font-size: 1.18rem; line-height: 1.2; }
.category-card p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.5; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; min-height: 330px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 5px 24px rgba(23,35,31,.035); }
.post-card-accent { height: 9px; background: var(--accent); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.post-meta { color: var(--brand); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { margin: 12px 0 10px; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.17; letter-spacing: -.025em; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 0 0 22px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.read-link { margin-top: auto; font-size: .88rem; font-weight: 850; text-decoration: none; }

.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; padding: 34px; border-radius: 24px; background: var(--ink); color: #fff; }
.featured-visual { min-height: 320px; display: grid; place-items: center; padding: 30px; border-radius: 17px; background: var(--brand); }
.featured-diagram { width: 100%; max-width: 380px; }
.diagram-row { margin: 12px 0; padding: 15px 17px; border-radius: 12px; background: white; color: var(--ink); font-weight: 800; box-shadow: 7px 7px 0 var(--accent); }
.featured-content { align-self: center; padding: 15px 10px; }
.featured-content h2 { margin: 10px 0 17px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.04em; }
.featured-content p { color: rgba(255,255,255,.72); }

.newsletter { padding: 55px; border-radius: 26px; background: var(--accent); color: var(--ink); text-align: center; }
.newsletter h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.newsletter p { max-width: 620px; margin: 0 auto 24px; }

.page-hero { padding: 72px 0 45px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.page-hero p { max-width: 700px; color: var(--muted); font-size: 1.15rem; }
.content-shell { display: grid; grid-template-columns: minmax(0, var(--read)) 280px; gap: 70px; align-items: start; padding: 55px 0 85px; }
.article-header { padding: 72px 0 40px; }
.article-header h1 { max-width: 900px; margin: 12px 0 18px; font-family: Georgia, serif; font-size: clamp(2.6rem, 5.5vw, 5rem); line-height: 1.02; letter-spacing: -.045em; }
.article-deck { max-width: 780px; margin: 0; color: var(--muted); font-size: 1.2rem; }
.article-meta { margin-top: 22px; color: var(--muted); font-size: .88rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.article-content { font-size: 1.06rem; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { margin: 2.2em 0 .65em; font-family: Georgia, serif; font-size: 2rem; line-height: 1.15; letter-spacing: -.025em; }
.article-content h3 { margin: 1.8em 0 .5em; font-size: 1.25rem; line-height: 1.3; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 1.25em; }
.article-content li { margin-bottom: .45em; }
.article-content blockquote { margin: 2em 0; padding: 22px 25px; border-left: 5px solid var(--accent-dark); background: #edf3e8; font-family: Georgia, serif; font-size: 1.2rem; }
.article-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .92rem; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: #edf3e8; }
.article-content code { padding: .15em .35em; border-radius: 5px; background: #e9ece8; font-size: .88em; }
.callout { margin: 28px 0; padding: 23px; border-radius: 15px; background: var(--brand); color: white; }
.callout strong { color: var(--accent); }
.sidebar { position: sticky; top: 105px; }
.side-box { margin-bottom: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
.side-box h3 { margin: 0 0 10px; font-size: 1rem; }
.side-box p, .side-box li { color: var(--muted); font-size: .87rem; line-height: 1.55; }
.side-box ul { margin: 0; padding-left: 18px; }
.related { border-top: 1px solid var(--line); background: #eef2eb; }

.archive-grid { padding: 45px 0 85px; }
.pagination { margin-top: 35px; }
.empty-state { padding: 60px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.site-footer { padding: 52px 0 28px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 55px; }
.footer-brand p { max-width: 430px; color: rgba(255,255,255,.65); }
.footer-title { margin: 0 0 13px; color: var(--accent); font-size: .77rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 7px 0; }
.footer-links a { color: rgba(255,255,255,.76); text-decoration: none; font-size: .91rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.5); font-size: .8rem; }

@media (max-width: 900px) {
  .hero-grid, .featured, .content-shell { grid-template-columns: 1fr; }
  .system-card { max-width: 560px; }
  .category-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
}
@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 66px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 18px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 12px; }
  .hero { padding-top: 55px; }
  .hero-grid { gap: 48px; }
  .category-grid, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .featured, .newsletter { padding: 24px; }
  .article-header { padding-top: 50px; }
  .content-shell { padding-top: 35px; }
  .footer-bottom { flex-direction: column; }
}
