/* Cashmere Thoughts — Vinyl Plant North Star
   Visual language aligned to cashmere-weekly-review.pages.dev */

:root {
  --burgundy: #69092F;
  --burgundy-2: #8a1441;
  --cream: #E5D7AA;
  --cream-soft: #F3EBD3;
  --ink: #1c1411;
  --paper: #FBF8F0;
  --line: #e4d9bf;
  --muted: #6b5f57;
  --red: #b3261e;
  --amber: #B8791A;
  --green: #3e6b41;
  --shadow: 0 1px 2px rgba(28, 20, 17, 0.06), 0 8px 30px rgba(105, 9, 47, 0.06);
  --max: 720px;
  --wide: 1080px;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Anton", Impact, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--burgundy-2);
}

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

/* ---------- HERO ---------- */
header.hero {
  background: var(--burgundy);
  color: var(--cream);
  padding: 48px 0 42px;
}

.hero .wrap {
  position: relative;
}

.hero .kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  margin: 0 0 14px;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
}

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

.hero .sub {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--cream-soft);
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--cream);
  opacity: 0.92;
  line-height: 1.45;
}

.hero .meta b,
.hero .meta strong {
  color: #fff;
  font-weight: 600;
}

.hero .meta-stack {
  display: block;
  width: 100%;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--cream);
  opacity: 0.92;
  line-height: 1.55;
}

.hero .meta-stack strong {
  color: #fff;
  font-weight: 600;
}

/* ---------- STICKY TOC NAV ---------- */
nav.toc {
  background: var(--burgundy-2);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

nav.toc .wrap {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 9px 24px;
  align-items: center;
  -webkit-overflow-scrolling: touch;
}

nav.toc a {
  color: #f6ecd6;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  opacity: 0.85;
}

nav.toc a:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
  color: #fff;
}

nav.toc a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
  color: #fff;
}

.nav-toggle {
  display: none;
}

/* ---------- MAIN ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 56px;
}

main.wide {
  max-width: var(--wide);
}

/* Body eyebrow (when used outside hero) */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 700;
  margin: 0 0 6px;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 2.4rem 0 0.85rem;
  color: var(--ink);
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

h2:first-of-type {
  margin-top: 0.5rem;
}

h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.55rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.meta strong {
  color: var(--ink);
  font-weight: 600;
}

ul,
ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

li::marker {
  color: var(--muted);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--cream-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.cite {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.25rem;
  margin-bottom: 1rem;
}

hr.soft {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* ---------- CARDS / CALLOUTS ---------- */
.callout,
.phase,
.plant,
.checklist li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.callout,
.phase {
  padding: 1rem 1.15rem 1rem 1.25rem;
  margin: 1.15rem 0 1.35rem;
}

.callout::before,
.phase::before,
.plant::before,
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--burgundy);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout h3 {
  margin-top: 0;
  color: var(--burgundy);
}

.callout.dream {
  background: #fbf3f6;
}

.callout.bottom {
  background: #fbf3f6;
}

.phase h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--burgundy);
}

.phase .do,
.phase .dont {
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.phase .dont {
  color: var(--muted);
}

/* ---------- TAGS / PILLS (CT confidence style) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
  background: #eee9dd;
  color: #685c4d;
}

.tag.unknown {
  background: #fbe9e7;
  color: var(--red);
}

.tag.none {
  background: #f7edd6;
  color: var(--amber);
}

.tag.ok,
.tag.confirmed {
  background: #e5efe3;
  color: var(--green);
}

.tag.reported,
.tag.amber {
  background: #f7edd6;
  color: var(--amber);
}

/* ---------- TABLES ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 420px;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  vertical-align: top;
}

th {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  background: var(--burgundy);
  border-bottom: none;
}

td {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

tbody tr:nth-child(even) td {
  background: var(--cream-soft);
}

tbody tr:last-child td {
  border-bottom: none;
}

td strong {
  font-weight: 700;
}

/* ---------- STATUS LIST ---------- */
.status-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.status-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--burgundy);
}

.status-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.8rem 1rem 0.8rem 1.15rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.status-list li:nth-child(even) {
  background: var(--cream-soft);
}

.status-list li:last-child {
  border-bottom: none;
}

.status-list .label {
  font-size: 0.95rem;
}

.status-list .value {
  font-size: 0.85rem;
  text-align: right;
  color: var(--muted);
  max-width: 18rem;
}

/* ---------- PLANT CARDS ---------- */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0 0 1.5rem;
}

.plant {
  padding: 0.95rem 1.05rem 0.95rem 1.15rem;
}

.plant h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.plant p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- CHECKLIST ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  counter-reset: check;
}

.checklist li {
  counter-increment: check;
  padding: 0.9rem 1rem 0.9rem 3rem;
  margin: 0 0 0.65rem;
}

.checklist li::before {
  content: counter(check);
  width: auto;
  background: transparent;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1;
  display: block;
  bottom: auto;
}

/* ---------- PAGE NAV ---------- */
.page-nav {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.page-nav a {
  margin-right: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.page-nav a:hover {
  text-decoration: underline;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--burgundy);
  color: var(--cream-soft);
  padding: 1.5rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.5;
  margin-top: 0;
}

/* ---------- MOBILE ---------- */
@media (max-width: 720px) {
  header.hero {
    padding: 36px 0 32px;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  main {
    padding: 28px 18px 48px;
  }

  .wrap {
    padding: 0 18px;
  }

  nav.toc .wrap {
    padding: 9px 18px;
  }

  .status-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .status-list .value {
    text-align: left;
    max-width: none;
  }

  th,
  td {
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
  }
}

@media print {
  nav.toc,
  .page-nav {
    display: none;
  }

  header.hero {
    background: var(--burgundy);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: white;
  }

  main {
    max-width: none;
    padding: 1rem 0;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}
