/* SoloWork Blog — editorial redesign.
   Palette: cream / navy / teal / amber (matches the Pinterest pins).
   Type: Fraunces (display serif) + Inter (body sans), system fallbacks offline. */
:root {
  --cream: #FAF6EC;
  --paper: #FFFDF7;
  --navy: #10243E;
  --navy-soft: #1B3A5C;
  --ink: #24344B;
  --teal: #0E6B62;
  --teal-deep: #0A4A44;
  --amber: #EFA13B;
  --amber-deep: #C97E1B;
  --amber-soft: #FBEED3;
  --line: #E7DCC2;
  --muted: #5F6E84;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 0.9rem;
  --shadow-sm: 0 1px 2px rgba(16, 36, 62, 0.06), 0 4px 14px rgba(16, 36, 62, 0.06);
  --shadow-md: 0 2px 4px rgba(16, 36, 62, 0.08), 0 12px 32px rgba(16, 36, 62, 0.12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: var(--navy); }
img { max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--amber);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}
.brand span { color: var(--amber); font-style: italic; font-weight: 700; }
.site-nav a {
  color: #D8E2EF;
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--amber); }

/* ---------- Homepage hero ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(239, 161, 59, 0.16), transparent 60%),
    radial-gradient(50rem 26rem at -10% 110%, rgba(14, 107, 98, 0.25), transparent 55%),
    var(--navy);
  color: #F3EDDF;
  padding: 4.5rem 0 4rem;
  margin-bottom: 1rem;
}
.hero .kicker {
  display: inline-block;
  color: var(--navy);
  background: var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.9rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  color: #fff;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--amber); }
.hero-sub { font-size: 1.15rem; line-height: 1.7; color: #E4DCC9; max-width: 58ch; margin: 0 0 1rem; }
.hero-note { font-size: 0.95rem; color: #B9C4D4; max-width: 62ch; margin: 0; }
.hero-note strong { color: #fff; }

/* ---------- Homepage sections ---------- */
.section-head {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin: 3.25rem 0 0.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.section-index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--amber-deep);
  font-size: 1.1rem;
  flex-shrink: 0;
  min-width: 2.25rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--muted); margin: 0; font-size: 0.98rem; max-width: 60ch; }

/* ---------- Cards ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.25rem;
  display: block;
  flex: 1 1 16rem;
  min-width: 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }
.card-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--teal-deep); }
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0; /* whole card clickable */
}
.card p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.card .read {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.card .read .arrow { display: inline-block; transition: transform 0.2s ease; }
.card:hover .read .arrow { transform: translateX(5px); }
.card-featured { flex: 1 1 100%; }
.card-featured h3 { font-size: 1.6rem; }
.card-featured p { font-size: 1rem; max-width: 62ch; }

/* ---------- Article ---------- */
.article-head { padding: 3rem 0 1rem; }
.article-head .kicker {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}
.article-head h1 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
  font-size: 2.9rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 22ch;
}
.article-head .lede {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 0.9rem;
  max-width: 46ch;
  font-weight: 400;
}
.article-head .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
article { max-width: 44rem; }
article h2 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.7rem;
  text-wrap: balance;
}
article h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin-top: 0.55rem;
}
article h3 {
  color: var(--teal-deep);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 1.75rem 0 0.4rem;
  line-height: 1.4;
}
article p, article li { margin: 0.7rem 0; }
article ul, article ol { padding-left: 1.35rem; }
article li { margin: 0.45rem 0; padding-left: 0.15rem; }
article ol > li::marker { color: var(--teal); font-weight: 700; }
article ul > li::marker { color: var(--amber-deep); }
article strong { color: var(--navy); }

/* Pull quotes */
article blockquote {
  margin: 2.25rem auto;
  padding: 0 1rem;
  max-width: 38rem;
  text-align: center;
  border: none;
  background: none;
}
article blockquote p,
article blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--navy);
}
article blockquote p::before,
article blockquote::before {
  content: "\201C";
  display: block;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--amber);
  margin-bottom: 0.75rem;
  font-style: normal;
}

/* Tables */
article table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.95rem; }
article th, article td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; }
article th { background: var(--amber-soft); color: var(--navy); font-weight: 700; }
article td { background: var(--paper); }
article tr:nth-child(even) td { background: #FBF6E9; }

/* Worked-example boxes */
.example {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 0.35rem var(--radius) var(--radius) 0.35rem;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  box-shadow: var(--shadow-sm);
}
.example .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  margin: 0 0 0.6rem;
}
.example p { margin: 0.4rem 0; }
.example p:last-child { margin-bottom: 0; }

/* CTA boxes */
.cta {
  background:
    radial-gradient(30rem 14rem at 110% -20%, rgba(239, 161, 59, 0.22), transparent 60%),
    var(--navy);
  border: none;
  border-radius: 1.1rem;
  padding: 2rem 2rem 1.9rem;
  margin: 3rem 0 1.25rem;
  color: #EDE6D4;
  box-shadow: var(--shadow-md);
}
.cta h2 { color: #fff; margin: 0 0 0.6rem; font-size: 1.5rem; }
.cta h2::after { display: none; }
.cta p { margin: 0.6rem 0; color: #D9D2BD; }
.cta a:not(.btn) { color: var(--amber); }
.cta a:not(.btn):hover { color: #fff; }
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--navy) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  margin-top: 0.7rem;
  box-shadow: 0 4px 14px rgba(239, 161, 59, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { background: #F5B45C; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239, 161, 59, 0.4); }
.disclosure {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: 0;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 3rem;
  background: var(--navy);
  color: #B9C4D4;
  font-size: 0.92rem;
  border-top: 4px solid var(--amber);
}
.site-footer .brand { font-size: 1.15rem; }
.site-footer a { color: var(--amber); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0.5rem 0; max-width: 62ch; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .hero h1 { font-size: 3rem; }
  .article-head h1 { font-size: 2.3rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .wrap { padding: 0 1.15rem; }
  .hero { padding: 3rem 0 2.75rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1.05rem; }
  .article-head { padding: 2rem 0 0.75rem; }
  .article-head h1 { font-size: 1.9rem; }
  .article-head .lede { font-size: 1.12rem; }
  article blockquote p { font-size: 1.25rem; }
  .cta { padding: 1.6rem 1.4rem; border-radius: 0.9rem; }
  .site-nav a { margin-left: 0.9rem; font-size: 0.88rem; }
  .section-head { gap: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Web experience layer (screen only) ---------- */
/* Scroll-reveal: elements start hidden only when JS is available (html.js),
   so no-JS readers and print/PDF see everything normally. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease var(--d, 0s),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* Hero artwork */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-art {
  position: absolute;
  top: 0; right: -4rem;
  height: 100%;
  width: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-art .float-a { animation: drift 9s ease-in-out infinite; }
.hero-art .float-b { animation: drift 12s ease-in-out infinite reverse; }

/* Card eyebrow icons (injected by script.js) */
.card-eyebrow { display: flex; align-items: center; gap: 0.45rem; }
.eyebrow-icon { display: inline-flex; flex-shrink: 0; }
.eyebrow-icon svg { width: 1.05rem; height: 1.05rem; }

/* Editorial drop cap on article openers */
article > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.1em;
  line-height: 0.85;
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--navy);
}

/* Mobile nav: scroll sideways instead of wrapping */
@media (max-width: 40rem) {
  .site-header .wrap { flex-wrap: nowrap; }
  .site-nav {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { margin-left: 0; white-space: nowrap; }
  .hero-art { opacity: 0.35; right: -10rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-art .float-a, .hero-art .float-b { animation: none; }
}
