/* "Field notebook": the Ideas pages. Dot-grid paper and teal margin notes on the
   site's own tokens, so unbuilt thinking reads differently from shipped work. */
.notebook-hero {
  position: relative;
  isolation: isolate;
}

.notebook-hero::before {
  position: absolute;
  inset: 72px 0 0 0;
  z-index: -1;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 55%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 80% at 85% 55%, #000 0%, transparent 100%);
  content: "";
  pointer-events: none;
}

.notebook-hero h1 {
  max-width: 20ch;
}

.idea-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Index cards */
.idea-list {
  display: grid;
  gap: 20px;
  padding: 8px 0 72px;
}

.idea-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  gap: 16px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: var(--bg-elevated);
}

.idea-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.idea-card p {
  color: var(--muted);
}

.idea-status {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.idea-card-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.idea-card .tags {
  justify-content: flex-start;
}

/* Article */
.idea-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  padding: 16px 0 88px;
}

.idea-section > h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.idea-section > p {
  max-width: 46rem;
  color: var(--muted);
}

.idea-section > p + p {
  margin-top: 12px;
}

.idea-section > p strong,
.idea-grid strong {
  color: var(--ink);
  font-weight: 600;
}

.idea-bet {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 22px;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.idea-grid > li {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 0.95rem;
}

.idea-grid h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.idea-grid .step-no {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Trait and evidence tables */
.idea-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elevated);
}

.idea-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.idea-table th,
.idea-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.idea-table tr:last-child th,
.idea-table tr:last-child td {
  border-bottom: 0;
}

.idea-table thead th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.idea-table tbody th {
  font-weight: 600;
}

.idea-table td {
  color: var(--muted);
}

.idea-table a {
  color: var(--blue);
}

/* Toy model */
.toy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: var(--bg-elevated);
}

.toy-controls {
  display: grid;
  gap: 16px;
  align-content: start;
}

.toy-controls label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.toy-controls label span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.toy-controls output {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.toy-controls input {
  width: 100%;
  min-height: 28px;
  accent-color: var(--teal);
}

.toy-dots {
  display: block;
  width: 100%;
  height: auto;
}

.toy-dots circle {
  transition: fill var(--dur-2), stroke var(--dur-2);
}

.is-unaware { fill: var(--line); stroke: none; }
.is-broke { fill: none; stroke: var(--peach); stroke-width: 1.4; }
.is-uninterested { fill: var(--muted); stroke: none; }
.is-buyer { fill: var(--teal); stroke: none; }

.toy-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
  list-style: none;
}

.toy-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toy-legend svg {
  flex: none;
}

.toy-legend strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.toy-bands {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.toy-note {
  margin-top: 10px;
  color: var(--faint);
  font-size: 0.82rem;
}

/* A sample person file and its decision */
.idea-file {
  max-width: 46rem;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elevated);
}

.idea-file figcaption {
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
}

.idea-file pre {
  margin: 0;
  overflow-x: auto;
  padding: 16px 18px;
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

/* The sample memo */
.idea-memo {
  max-width: 46rem;
  margin-top: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: 22px;
  background: var(--bg-elevated);
  color: var(--muted);
}

.idea-memo p + p {
  margin-top: 10px;
}

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

.idea-memo .idea-status {
  color: var(--peach);
}

.idea-sources {
  display: grid;
  gap: 8px;
  max-width: 46rem;
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
  list-style: none;
}

.idea-sources a {
  color: var(--blue);
}

@media (max-width: 820px) {
  .idea-card,
  .toy { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .idea-card,
  .toy { padding: 20px 18px; }
  .idea-body { gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .toy-dots circle { transition: none; }
}
