/*
 * Field Notes (openfields.app/notes): long-form posts on the family's design
 * system. Posts use .of-prose from openfields.css; only what notes add lives here.
 */

/* Post */
.note-kicker { margin-bottom: 12px; font-size: var(--t-sm); font-weight: 500; color: var(--fg-3); }
.note-kicker a { color: var(--accent); text-decoration: none; }
.note-kicker a:hover { color: var(--accent-hi); }
.note .of-prose-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.note-guest {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(255, 216, 61, 0.1); border: 1px solid rgba(255, 216, 61, 0.3);
  font-size: var(--t-xs); font-weight: 600; color: var(--accent);
}
.note-guestbox {
  margin-top: 20px; padding: 14px 16px; border-radius: var(--r-2);
  background: var(--bg-1); border: 1px solid var(--line);
  font-size: var(--t-sm); line-height: 1.6; color: var(--fg-2);
}
.note-guestbox b { color: var(--fg); font-weight: 600; }

.note-fig { margin: 28px 0 0; }
.note-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--bg-1); }
.note-fig a { text-decoration: none; }
.note-fig figcaption { margin-top: 8px; font-size: var(--t-sm); line-height: 1.5; color: var(--fg-3); }
.of-prose .note-fig + h2 { margin-top: 44px; }
.of-prose em { font-style: normal; color: var(--fg); }
.of-prose dl { margin-top: 16px; }

.note-back { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--line); }

/* Index */
.notes-head { padding: 56px 0 28px; }
.notes-title { font-size: var(--t-3xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.notes-line { margin-top: 8px; font-size: var(--t-lg); line-height: 1.6; color: var(--fg-2); }
.notes-list { display: grid; gap: 16px; margin: 0 0 64px; padding: 0; list-style: none; }
.note-card {
  display: grid; overflow: hidden; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3);
  transition: background-color var(--d-1) var(--ease), border-color var(--d-1) var(--ease);
}
.note-card:hover { background: var(--bg-2); border-color: var(--line-2); }
.note-card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.note-card-text { display: grid; gap: 6px; padding: 18px 20px 20px; }
.note-card-kicker { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.note-card-text b { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.note-card-text > span:not(.note-card-kicker):not(.note-card-meta) { font-size: var(--t-md); line-height: 1.55; color: var(--fg-2); }
.note-card-meta { margin-top: 4px; font-size: var(--t-sm); color: var(--fg-3); }

@media (max-width: 560px) {
  .notes-head { padding-top: 40px; }
  .notes-title { font-size: var(--t-2xl); }
  .note-card-text { padding: 16px; }
  .note-fig { margin-top: 22px; }
}
