:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, sans-serif;
  --bg: #fff9f5;
  --paper: #fffdfb;
  --ink: #28262b;
  --ink-soft: #5d565b;
  --ink-faint: #766d71;
  --accent: #9f3b52;
  --accent-bright: #e9687e;
  --accent-wash: #f9eae6;
  --line: #9a858a;
  --shadow: #e9d9d6;
  --dark: #29272c;
  --dark-text: #fff5ef;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 88% 5%, #ffd8d8, transparent 25%), var(--bg); }
main { max-width: 1260px; margin: auto; padding: 26px 24px 70px; }
a { color: var(--accent); }

.topline { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 2px solid var(--dark); padding-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.topline a { color: inherit; text-decoration: none; }
.topline nav { display: flex; gap: 22px; }
.topline nav a:hover { color: var(--accent); }

.hero { padding: 38px 0 30px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: end; }
.eyebrow { color: #a03f56; text-transform: uppercase; font-size: 12px; letter-spacing: .19em; font-weight: 900; }
h1 { font-size: clamp(52px, 6vw, 84px); line-height: .92; letter-spacing: -.07em; margin: 16px 0 25px; max-width: 900px; }
h1 em { font-style: normal; color: var(--accent-bright); }
.hero p { color: var(--ink-soft); max-width: 760px; font-size: clamp(17px, 2vw, 22px); line-height: 1.4; margin: 0; }
.big-mark { font: 900 clamp(70px, 9vw, 120px)/.9 ui-sans-serif, system-ui; color: #a03f56; letter-spacing: -.09em; text-align: right; }
.big-caption { text-align: right; margin-top: 12px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }

.question { background: var(--dark); color: var(--dark-text); padding: 18px 22px; border: 2px solid var(--dark); box-shadow: 7px 7px 0 #e8b7b8; font: 16px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.question .prompt { color: #ffb1b5; }
.transcript { margin: 20px 0 28px; }
.prose .transcript p { color: inherit; font: inherit; line-height: 1.5; margin: 0 0 12px; }
.prose .transcript p:last-child { margin-bottom: 0; }
.note { border-left: 4px solid #a03f56; margin-top: 18px; padding: 13px 18px; background: var(--paper); color: #554f53; line-height: 1.5; }
.note p { margin: 0 0 9px; }
.note p:last-child { margin-bottom: 0; }

section { margin-top: 58px; }
h2 { font-size: clamp(30px, 3.5vw, 45px); line-height: 1; letter-spacing: -.055em; margin: 0 0 12px; }
.section-note { color: #655e63; max-width: 780px; line-height: 1.5; margin: 0 0 22px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.card { border: 1px solid var(--line); background: var(--paper); padding: 21px; min-width: 0; box-shadow: 4px 4px 0 var(--shadow); display: flex; flex-direction: column; }
.card .number { color: #a03f56; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.card h3 { font-size: 22px; letter-spacing: -.04em; margin: 10px 0 8px; }
.card p { color: #655e63; font-size: 14px; line-height: 1.45; margin: 0 0 13px; }
.card > code { display: block; background: var(--dark); color: var(--dark-text); padding: 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.card small { display: block; color: var(--ink-faint); margin-top: auto; padding-top: 8px; line-height: 1.4; }
.card a.more { margin-top: auto; font-size: 13px; font-weight: 800; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; line-height: 1.55; color: #554f53; }
.about h3 { color: var(--ink); margin: 0 0 6px; }
.about p { margin: 0 0 13px; }

.table-wrap { overflow: auto; border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { border-bottom: 1px solid #e5d9d7; padding: 10px 12px; text-align: left; }
th { background: #f3eae6; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
tbody tr:hover { background: #fff0ed; }

.note-box { margin-top: 19px; padding: 15px 18px; border-left: 5px solid var(--accent-bright); background: var(--accent-wash); line-height: 1.48; color: #4f454a; }

footer { border-top: 2px solid var(--dark); margin-top: 60px; padding-top: 15px; color: #71686c; font-size: 12px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .big-mark, .big-caption { display: none; }
  .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  main { padding: 19px 13px 45px; }
  h1 { font-size: clamp(42px, 12vw, 54px); }
  .topline nav { gap: 12px; }
}

/* ---- shared components for long-form pages (nonsenses/) ---- */
code { font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; background: #f3eae6; color: #8c2e45; padding: .1em .35em; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 37px 0; }
.metric { border: 1px solid var(--line); background: var(--paper); padding: 20px; min-height: 142px; box-shadow: 4px 4px 0 var(--shadow); }
.metric b { display: block; font-size: clamp(36px, 4.2vw, 58px); letter-spacing: -.065em; line-height: 1; }
.metric .label { display: block; margin-top: 12px; font-size: 13px; font-weight: 800; }
.metric .sub { display: block; margin-top: 5px; font-size: 12px; color: #726a6e; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: start; line-height: 1.55; color: #554f53; }
.split h3 { color: var(--ink); margin: 0 0 6px; }
.split p { margin: 0 0 13px; }
.panel { border: 1px solid var(--line); background: var(--paper); box-shadow: 4px 4px 0 var(--shadow); min-width: 0; }
.panel-head { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
pre { margin: 0; padding: 16px; overflow-x: auto; background: var(--dark); color: var(--dark-text); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; }
.terminal-ok { color: #79cda5; font-weight: 700; }
.panel pre { border: 0; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid #776c71; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tag.green { background: #79cda5; } .tag.yellow { background: #ecc16b; } .tag.brown { background: #c99a7a; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { position: relative; padding: 18px 20px 18px 68px; border: 1px solid var(--line); background: var(--paper); box-shadow: 4px 4px 0 var(--shadow); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 19px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.step h3 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.03em; }
.step p { margin: 0; color: #655e63; font-size: 14px; line-height: 1.5; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 24px; }
.flow div { text-align: center; padding: 14px 8px; border: 1px solid var(--line); background: var(--paper); font: 800 13px ui-monospace, monospace; }
.flow div:not(:last-child)::after { content: ""; }
.quote { margin: 26px 0 0; padding: 15px 18px; border-left: 5px solid var(--accent-bright); background: var(--accent-wash); font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
.quote p { margin: 0; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testimonials blockquote { margin: 0; padding: 18px 20px; border: 1px solid var(--line); background: var(--paper); box-shadow: 4px 4px 0 var(--shadow); font-size: 15px; line-height: 1.5; }
.testimonials small { display: block; margin-bottom: 8px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
details { border: 1px solid var(--line); background: var(--paper); padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; padding: 15px 0; }
details p { margin: 0 0 16px; color: #655e63; line-height: 1.5; max-width: 850px; }
.final { margin-top: 64px; padding: clamp(28px, 5vw, 52px); background: var(--dark); color: var(--dark-text); border: 2px solid var(--dark); box-shadow: 7px 7px 0 #e8b7b8; }
.final .eyebrow { color: #ffb1b5; }
.final h2 { margin-top: 14px; max-width: 800px; }
.final p { max-width: 780px; color: #e6d9d3; line-height: 1.55; font-size: 17px; }
.final p.sign { color: #fff; font-weight: 900; font-size: 20px; margin-top: 20px; }
.compare td:first-child { font-weight: 800; width: 26%; }
.compare td { color: #554f53; line-height: 1.45; }
.nowrap { white-space: nowrap; }
@media (max-width: 850px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .cards.two, .split, .testimonials { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .metric { padding: 15px; min-height: 130px; }
  .step { padding-left: 54px; }
  .step::before { left: 16px; }
}

.card .links { margin-top: auto; padding-top: 6px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 800; }
.card .links + small { margin-top: 0; }
@media (max-width: 700px) {
  .topline { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topline nav { flex-wrap: wrap; gap: 8px 16px; }
}

/* ---- field notes: long-form reading pages (field-notes/) ---- */
.kicker { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; margin-bottom: 10px; }
.dek { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--ink-soft); max-width: 780px; margin: 0; }
.prose { max-width: 720px; }
.petalinux101 .prose { max-width: 1080px; }
.petalinux101 .section-note { max-width: 1080px; }
.petalinux101 .prose p.tombstone { margin: 18px 0 0; text-align: right; color: var(--ink); font-size: 18px; font-weight: 900; line-height: 1; -webkit-text-stroke: 1px currentColor; }
.field-note .prose { max-width: 1080px; }
.field-note .section-note { max-width: 1080px; }
.field-note .prose p.tombstone { margin: 18px 0 0; text-align: right; color: var(--ink); font-size: 18px; font-weight: 900; line-height: 1; -webkit-text-stroke: 1px currentColor; }
.field-note .orphan-six { position: relative; }
.field-note .orphan-six::after { content: "6"; position: absolute; left: calc(100% + 260px); top: 50%; transform: translateY(-50%); background: #f3eae6; color: #8c2e45; padding: .1em .35em; font: .92em/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-capture { width: min(100%, 748px); margin: 24px auto 28px; }
.terminal-capture img { display: block; max-width: 100%; height: auto; }
.terminal-capture figcaption { margin-top: 10px; color: var(--ink-faint); font-size: 13px; text-align: center; }
.prose p { font-size: 18px; line-height: 1.65; color: #3f3a3d; margin: 0 0 1.05em; }
.prose h3 { font-size: 22px; letter-spacing: -.04em; margin: 1.6em 0 .4em; }
.prose a { text-underline-offset: 2px; }
.specimen { display: grid; grid-template-columns: 140px 1fr; margin: 28px 0 0; border: 1px solid var(--line); background: var(--paper); box-shadow: 4px 4px 0 var(--shadow); }
.specimen dt, .specimen dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid #e5d9d7; font-size: 14px; line-height: 1.45; }
.specimen dt { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; padding-top: 14px; }
.specimen dt:nth-last-of-type(1), .specimen dd:last-of-type { border-bottom: 0; }
figure.fig { margin: 30px 0 0; }
figure.fig figcaption { margin-top: 12px; max-width: 720px; color: var(--ink-faint); font-size: 13px; line-height: 1.5; }
figure.fig figcaption b { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin-right: 8px; }
.field-note .listening-figure { margin: 22px auto 30px; text-align: center; }
.field-note .listening-player { width: min(100%, 760px); aspect-ratio: 16 / 9; margin: 0 auto; background: var(--dark); border: 2px solid var(--dark); box-shadow: 7px 7px 0 #e8b7b8; }
.field-note .listening-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.field-note .listening-figure figcaption { margin-right: auto; margin-left: auto; }
.fn-end { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 1180px) {
  .field-note .orphan-six::after { display: none; }
}
@media (max-width: 520px) {
  .specimen { grid-template-columns: 1fr; }
  .specimen dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---- multi-page site: section pages, breadcrumb, current-page marker ---- */
.topline nav a[aria-current] { color: var(--accent); }
section.page { margin-top: 0; }
.page-title { font-size: clamp(44px, 6vw, 72px); line-height: .95; letter-spacing: -.07em; margin: 38px 0 14px; }
.crumb { margin: 22px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.crumb a { text-decoration: none; }
body { min-height: 100vh; }
