/* Field notes pages. Same tokens and type as the home page (index.src.html). */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/fonts/IBMPlexSans-var.woff2) format('woff2'); }
@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/Michroma-400.woff2) format('woff2'); }
:root {
  --passion: #bc1f2d; --knowledge: #2f3192; --experience: #f8ad40;
  --ink: #14152b; --ink-2: #3b3d58; --muted: #5f6279; --night: #10123a; --line: #e4e5f0;
  --warm: #fff6ea; --cool: #f1f2ff;
  --brand: linear-gradient(90deg, #f8ad40 0%, #e8572f 35%, #bc1f2d 60%, #2f3192 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 18px/1.7 "IBM Plex Sans", system-ui, sans-serif; }
a { color: var(--knowledge); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wide { font-family: "Michroma", "IBM Plex Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; }

/* the header comes from /header.css, shared with the home page */

/* article */
.note-hero { background: var(--warm); padding: 44px 0 36px; border-bottom: 1px solid #f3e3c8; }
/* about 65 characters a line: the comfortable reading measure */
.col { max-width: 688px; margin: 0 auto; padding: 0 24px; }
/* the "Field note · topic" strip sits first, as on every section of the site; the way back sits on the byline row */
.byline-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 22px; }
.byline-row .byline { margin: 0; }
.byline-row .to-notes { margin: 0; }

/* the first screen: the answer, then the picture */
.short { background: #fff; border: 1px solid #f0dcbc; border-left: 5px solid var(--passion); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 0 0 14px; }
.short p { margin: 0; font-size: 17px; line-height: 1.6; }
.short > p > b:first-child { color: var(--passion); }
.tl { margin: 0; background: #fff; border: 1px solid #f0dcbc; border-radius: 14px; padding: 20px 20px 14px; }
.tl-row { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; }
.pt { position: relative; text-align: center; padding-top: 26px; min-width: 116px; }
.pt::before { content: ""; position: absolute; top: 3px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 3px solid #9a9cb8; box-sizing: border-box; }
.pt.hot::before { background: var(--passion); border-color: var(--passion); box-shadow: 0 0 0 5px rgba(188,31,45,.15); }
.pt b { display: block; font-size: 16px; line-height: 1.3; }
.pt span { display: block; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.pt em { display: block; font-style: normal; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--passion); margin-top: 3px; }
.seg { position: relative; margin-top: 9px; border-top: 3px dashed #c5c7da; }
.seg span { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-size: 13px; line-height: 1.3; color: var(--muted); }
.seg.hot { border-top: 3px solid var(--passion); }
.seg.hot span { color: var(--passion); font-weight: 600; }
/* inside the "In short" box the timeline is a slim strip */
.short .tl { background: none; border: 0; border-top: 1px dashed #ecd3ad; border-radius: 0; padding: 14px 0 4px; margin: 14px 0 0; }
.short .pt { min-width: 92px; padding-top: 22px; }
.short .pt::before { width: 14px; height: 14px; margin-left: -7px; top: 2px; }
.short .pt b { font-size: 14px; }
.short .pt span { font-size: 13px; }
.short .pt em { font-size: 12px; margin-top: 1px; }
.short .seg { margin-top: 7px; }
.short .seg span { font-size: 12px; top: 6px; }
.tl figcaption { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); }
.crumb { font-size: 13px; margin: 0 0 16px; color: var(--passion); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.to-notes { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 7px 15px; font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: none; background: #fff; border: 1px solid #ecd3ad; border-radius: 999px; transition: border-color .15s, transform .15s; }
.to-notes:hover { border-color: var(--ink-2); transform: translateX(-2px); }
h1 { font-size: 42px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 18px; }
.dek { font-size: 20px; color: var(--ink-2); margin: 0 0 26px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--ink); font-weight: 600; }
article.body { padding: 48px 0 24px; }
article.body h2 { font-size: 25px; line-height: 1.3; margin: 44px 0 10px; letter-spacing: -.01em; }
article.body p { margin: 0 0 20px; }
article.body ul { margin: 0 0 22px; padding-left: 22px; }
article.body li { margin: 0 0 10px; }
article.body li::marker { color: var(--passion); }
article.body blockquote { margin: 40px 0 8px; padding: 24px 26px; background: var(--cool); border-left: 5px solid var(--knowledge); border-radius: 0 14px 14px 0; font-size: 19px; }
article.body blockquote p { margin: 0; }

/* end-of-note call to action */
.next { margin: 40px auto 0; }
.note-ask { background: var(--night); color: #fff; border-radius: 18px; padding: 30px 30px 28px; position: relative; overflow: hidden; }
.note-ask::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand); }
.note-ask h2 { margin: 0 0 8px; font-size: 24px; }
.note-ask p { margin: 0 0 20px; color: #c9cbe6; font-size: 17px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--passion); color: #fff; }
.btn-primary:hover { background: #a01a26; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.note-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 26px 0 72px; font-size: 15px; }
.note-foot a { font-weight: 600; text-decoration: none; }
.note-foot a:hover { text-decoration: underline; }

/* list page */
.list { padding-top: 48px; padding-bottom: 80px; }
.n-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin: 0 0 18px; transition: transform .15s, box-shadow .15s; }
.n-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,21,43,.08); }
.n-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.n-meta b { color: var(--passion); font-weight: 600; }
.n-card h2 { font-size: 23px; line-height: 1.3; margin: 0 0 8px; }
.n-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 17px; }
.n-card .more { color: var(--knowledge); font-weight: 600; font-size: 15px; }

/* list tools: they appear as the collection grows (see build_notes.py) */
.n-card[hidden], .n-year[hidden], .n-more[hidden], .n-empty[hidden] { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.n-start { margin: 0 0 36px; }
.n-start h2 { font-size: 13px; color: var(--passion); margin: 0 0 14px; }
.n-start-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.n-feat { display: block; text-decoration: none; color: var(--ink); background: var(--warm); border: 1px solid #f0dcbc; border-left: 4px solid var(--experience);
  border-radius: 0 12px 12px 0; padding: 12px 16px; transition: transform .15s, box-shadow .15s; }
.n-feat:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,21,43,.08); }
.n-feat b { display: block; font-size: 12px; color: var(--passion); font-weight: 600; margin-bottom: 2px; }
.n-feat span { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.n-tools { position: sticky; top: 92px; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); padding: 14px 0 10px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.n-search input { width: 100%; font: inherit; font-size: 17px; padding: 13px 16px 13px 44px; border: 2px solid var(--line); border-radius: 12px; outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235f6279' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center; }
.n-search input:focus { border-color: var(--knowledge); }
.n-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.n-chip { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.n-chip i { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 2px; }
.n-chip:hover { border-color: var(--ink-2); }
.n-chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.n-chip[aria-pressed="true"] i { color: #b7badc; }
.n-count { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.n-year { font-size: 14px; color: var(--muted); margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.n-list > .n-year:first-child { margin-top: 0; }
.n-more { display: block; width: 100%; margin: 8px 0 0; font: inherit; font-weight: 600; color: var(--knowledge); background: var(--cool); border: 0; border-radius: 12px; padding: 14px; cursor: pointer; }
.n-more:hover { background: #e6e8ff; }
.n-empty { margin: 10px 0 0; padding: 22px; text-align: center; background: var(--cool); border-radius: 12px; color: var(--ink-2); }

/* end of a note: more on the same topic */
.more-on { margin: 12px 0 0; padding: 22px 24px; background: var(--cool); border-radius: 16px; }
.more-on h2 { margin: 0 0 10px; font-size: 18px; }
.more-on ul { list-style: none; margin: 0; padding: 0; }
.more-on li { padding: 9px 0; border-top: 1px solid #dfe1f5; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.more-on li:first-child { border-top: 0; }
.more-on a { font-weight: 600; text-decoration: none; }
.more-on a:hover { text-decoration: underline; }
.more-on span { flex: none; font-size: 13px; color: var(--muted); }

/* footer */
footer { background: #0b0c24; color: #8d90b3; font-size: 13px; padding: 36px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
footer img { height: 48px; width: auto; display: block; margin-bottom: 12px; }
footer .legal { text-align: right; line-height: 1.6; }
footer a { color: #c9cbe6; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  article.body blockquote { padding: 20px 20px; font-size: 17px; }
  .note-hero { padding: 32px 0 28px; }
  /* phones: the tools scroll away with the page, and every topic chip stays visible (no hidden sideways scroll) */
  .n-tools { position: static; }
  .n-start-grid { grid-template-columns: 1fr; }
  .n-chip { font-size: 13px; padding: 5px 11px; }
  .more-on li { flex-direction: column; gap: 2px; }
  /* timeline turns vertical on phones */
  .tl-row { grid-template-columns: 1fr; }
  .pt { text-align: left; padding: 0 0 0 30px; min-width: 0; }
  .pt::before { top: 4px; left: 0; margin-left: 0; }
  .seg { margin: 4px 0 4px 6.5px; border-top: 0; border-left: 3px dashed #c5c7da; padding: 10px 0 10px 20px; }
  .seg span { position: static; text-align: left; display: block; }
  .seg.hot { border-top: 0; border-left: 3px solid var(--passion); }
  /* ...except the slim strip in the "In short" box, which stays one compact row */
  .short .tl-row { grid-template-columns: auto 1fr auto 1fr auto; }
  .short .pt { text-align: center; padding: 22px 0 0; min-width: 0; max-width: 84px; }
  .short .pt::before { left: 50%; margin-left: -7px; top: 2px; }
  .short .seg { margin: 7px 3px 0; padding: 0; border-left: 0; border-top: 3px dashed #c5c7da; min-width: 18px; }
  .short .seg.hot { border-left: 0; border-top: 3px solid var(--passion); }
  .short .seg span { display: none; }
  h1 { font-size: 31px; }
  .dek { font-size: 18px; }
  article.body { padding-top: 32px; }
  article.body h2 { font-size: 22px; margin-top: 36px; }
  .note-ask { padding: 26px 22px; }
  .btn { width: 100%; text-align: center; }
  footer .legal { text-align: left; }
}
