@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

:root { --font-hanken: 'Hanken Grotesk'; }

:root {
  --cream: #f7f6ef;
  --cream-deep: #efeee3;
  --paper: #fffefb;
  --ink: #343d3e;
  --ink-soft: #5c6664;
  --muted: #939b97;
  --line: #e6e3d6;
  --line-soft: #efece1;
  --willow: #7f9a6e;
  --willow-deep: #566b48;
  --willow-mid: #6c875b;
  --willow-soft: #e9efe1;
  --willow-tint: rgba(127, 154, 110, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 46px rgba(52, 61, 62, 0.1);
  --shadow-soft: 0 12px 28px rgba(52, 61, 62, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% -10%, var(--willow-tint), transparent 30rem),
    var(--cream);
  color: var(--ink);
  font-family: var(--font-hanken), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--willow-deep);
  color: var(--paper);
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-hanken), system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--willow-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- Header (single-row, left wordmark + soft updated line) ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.85), transparent);
}

.head-inner {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.wordmark-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--willow-soft);
  color: var(--willow-deep);
  flex-shrink: 0;
}

.wordmark-text strong {
  display: block;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.head-nav {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.head-nav a:hover {
  color: var(--willow-deep);
}

main {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Lead ---------- */
.lead {
  padding: 64px 0 44px;
}

.lead-copy {
  max-width: 680px;
}

.lead h1 {
  font-size: clamp(1.95rem, 3.8vw, 3rem);
  line-height: 1.22;
}

.lead-lede {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.78;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.lead-meta span {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.lead-canvas {
  margin-top: 40px;
  height: clamp(180px, 28vw, 300px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(52, 61, 62, 0.02), rgba(86, 107, 72, 0.16)),
    url("/images/willowsignal-lead.jpg") center / cover no-repeat,
    linear-gradient(125deg, #eef2e6 0%, #e4ecd9 55%, #dbe6cf 100%);
  box-shadow: var(--shadow);
}

/* ---------- Section heading ---------- */
.band-heading {
  margin-bottom: 26px;
}

.band-heading h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
}

.band-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.stream,
.topics,
.about {
  padding: 52px 0;
}

/* ---------- Signal stream (grouped This week / Earlier) ---------- */
.stream-group {
  margin-top: 14px;
}

.stream-group + .stream-group {
  margin-top: 40px;
}

.group-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.group-label {
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--willow-soft);
  color: var(--willow-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.group-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.group-count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.stream-cards {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.stream-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stream-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d8ddca;
}

.card-date {
  margin: 0 0 10px;
  color: var(--willow-mid);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.card-chip {
  display: inline-block;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border: 1px solid var(--line);
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.card-title {
  margin: 12px 0 12px;
  font-size: 1.32rem;
  line-height: 1.34;
}

.card-title a:hover {
  color: var(--willow-deep);
}

.card-changed {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.66;
  font-size: 0.98rem;
}

.card-tag {
  display: block;
  margin-bottom: 4px;
  color: var(--willow-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--willow-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.card-check::after {
  content: "→";
  transition: transform 0.18s ease;
}

.stream-card:hover .card-check::after {
  transform: translateX(3px);
}

/* ---------- Topics (calm lane rows) ---------- */
.lane-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lane-row {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.lane-dot {
  flex-shrink: 0;
  margin-top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--willow);
  box-shadow: 0 0 0 4px var(--willow-tint);
}

.lane-row strong {
  display: block;
  font-size: 1.04rem;
  color: var(--ink);
}

.lane-row p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.94rem;
}

/* ---------- About ---------- */
.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  max-width: 760px;
}

.note-list li {
  position: relative;
  padding: 17px 20px 17px 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  line-height: 1.68;
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--willow);
  border-bottom: 2px solid var(--willow);
  transform: rotate(-45deg);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  background: linear-gradient(0deg, var(--cream-deep), transparent);
}

.footer-inner {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 56px;
  color: var(--muted);
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--willow-deep);
}

.footer-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--willow-soft);
}

.footer-mark strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.footer-desc {
  margin: 14px 0 16px;
  max-width: 520px;
  line-height: 1.66;
  font-size: 0.94rem;
}

.footer-note {
  display: inline-block;
  margin: 0;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--willow-soft);
  color: var(--willow-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Article (single column) ---------- */
.article-shell {
  max-width: 740px;
  padding: 34px 0 76px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--willow-deep);
}

.article-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 5vw, 52px);
  box-shadow: var(--shadow-soft);
}

.article-date {
  margin: 0 0 14px;
  color: var(--willow-mid);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.article-chip {
  display: inline-block;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border: 1px solid var(--line);
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.article-head h1 {
  margin: 16px 0 0;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.22;
}

.article-byline {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.short-box {
  margin: 28px 0 8px;
  padding: 22px 24px;
  background: var(--willow-soft);
  border: 1px solid #d9e2ca;
  border-radius: var(--radius);
}

.short-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--willow-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.short-box p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.72;
}

.article-content {
  margin-top: 30px;
  color: #3a423f;
  font-size: 1.06rem;
  line-height: 1.85;
}

.article-content h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.32rem, 2.4vw, 1.7rem);
  padding-left: 16px;
  border-left: 4px solid var(--willow);
}

.article-content p {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--willow-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--willow);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: var(--willow-deep);
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.article-content ul li {
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--willow);
}

.article-content ol {
  counter-reset: step;
}

.article-content ol li {
  position: relative;
  padding-left: 30px;
  line-height: 1.6;
  counter-increment: step;
}

.article-content ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--willow-soft);
  color: var(--willow-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 20px 26px;
  background: #f4f7ee;
  border-left: 4px solid var(--willow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--willow-deep);
  font-size: 1.16rem;
  font-style: italic;
  line-height: 1.66;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.96rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
}

.article-content th:last-child,
.article-content td:last-child {
  border-right: 0;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content th {
  background: var(--willow-soft);
  color: var(--willow-deep);
  font-weight: 700;
}

.article-content tbody tr:nth-child(even) td {
  background: #fbfaf4;
}

.faq-section,
.source-note {
  margin-top: 40px;
}

.faq-section h2,
.source-note h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-bottom: 8px;
}

.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 0.6em;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::before {
  content: "+";
  color: var(--willow);
  font-weight: 700;
}

.faq-section details[open] summary::before {
  content: "–";
}

.faq-section details p,
.source-note p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.faq-section details p {
  margin: 10px 0 0 1.4em;
}

.source-note {
  padding: 22px 24px;
  background: #faf9f1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.article-foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--willow-deep);
  font-weight: 700;
}

.back-link::before {
  content: "←";
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .lane-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .head-inner {
    gap: 14px;
  }

  .head-nav {
    gap: 16px;
  }

  .lead {
    padding: 44px 0 32px;
  }

  .stream-card {
    padding: 22px 20px 20px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
