/* Content styles for NoobiBuilds public pages (About, Services, Contact, build notes, policies, product entry pages).
   Load after chrome.css, which defines the fonts and --nb- tokens. Not for product apps: they keep their own look. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; font-synthesis: none; color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-motion="off"] { scroll-behavior: auto; }
body { margin: 0; background: var(--nb-bg); color: var(--nb-ink); font: 400 18px/1.55 var(--nb-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--nb-ring-a); outline-offset: 3px; box-shadow: 0 0 0 3px var(--nb-ring-b); border-radius: 6px; }
h1, h2, h3, strong, b { font-family: var(--nb-display); font-weight: 600; }
h1, h2, h3 { font-weight: 750; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1; letter-spacing: -.035em; }
h1 em, h1 span { font-style: normal; color: var(--nb-red); }
h2 { font-size: clamp(25px, 3vw, 34px); }
h3 { font-size: 22px; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .45em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page { width: min(1180px, calc(100% - 32px)); margin-inline: auto; padding: 40px 0 8px; }
.page.narrow { width: min(820px, calc(100% - 32px)); }
.eyebrow { font: 600 13px/1.2 var(--nb-display); letter-spacing: .14em; text-transform: uppercase; color: var(--nb-teal); margin: 0 0 10px; }
.lede { max-width: 680px; color: var(--nb-muted); font-size: 20px; line-height: 1.45; }
.intro { margin-bottom: 40px; }
.back { margin: 0 0 20px; font-size: 16px; }
.back a { text-decoration: none; color: var(--nb-teal); font-family: var(--nb-display); font-weight: 600; }
.back a:hover { text-decoration: underline; }
.status { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--nb-mat); border: 1px solid var(--nb-line); font: 600 13px/1.3 var(--nb-display); letter-spacing: .04em; }
.meta { color: var(--nb-muted); font-size: 16px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 20px 0 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px; border-radius: 999px; cursor: pointer;
  background: var(--nb-teal); color: var(--nb-teal-ink); border: 2px solid var(--nb-teal); text-decoration: none; font: 600 18px/1.2 var(--nb-display); letter-spacing: .01em;
  transition: transform var(--nb-quick) var(--nb-out), box-shadow var(--nb-quick) var(--nb-out); }
.button:hover { transform: translateY(-1px); box-shadow: var(--nb-sh-low); }
.button:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.button.ghost { background: transparent; color: var(--nb-ink); border-color: var(--nb-ink); }
.button[disabled] { opacity: .6; cursor: default; transform: none; }
.text-link { color: var(--nb-teal); font: 650 17px/1.2 var(--nb-display); text-decoration: none; padding: 10px 0; }
.text-link:hover { text-decoration: underline; }
.prose a:not(.button):not(.text-link), .note a:not(.button):not(.text-link) { color: var(--nb-teal); }

/* Panels */
.panel { background: var(--nb-paper); border: 1px solid var(--nb-line); border-radius: 14px; padding: 28px; box-shadow: var(--nb-sh-low); }
.panel + .panel { margin-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.split > :first-child p { color: var(--nb-muted); }
.aside { background: var(--nb-mat); border-radius: 14px; padding: 24px 28px; margin-top: 24px; }
.aside h2, .aside h3 { font-size: 22px; }
.aside :last-child { margin-bottom: 0; }
.note { color: var(--nb-muted); font-size: 16px; margin-top: 28px; max-width: 760px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.about figure { margin: 0; text-align: center; }
.about figure img { width: min(360px, 100%); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.5em; }
.prose > h2:first-child { margin-top: 0; }

/* Build notes list */
.notes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.notes li { margin: 0; background: var(--nb-paper); border: 1px solid var(--nb-line); border-radius: 14px; padding: 24px; box-shadow: var(--nb-sh-low); display: flex; flex-direction: column; }
.notes h2 { font-size: 23px; line-height: 1.15; }
.notes h2 a { text-decoration: none; }
.notes h2 a:hover { text-decoration: underline; }
.notes .text-link { margin-top: auto; align-self: flex-start; }
.tiny { font: 600 13px/1.2 var(--nb-display); letter-spacing: .1em; text-transform: uppercase; color: var(--nb-teal); margin: 0 0 6px; }

/* A single build note or product entry */
.figure { margin: 28px 0; }
.figure img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--nb-line); box-shadow: var(--nb-sh-low); background: var(--nb-mat); }
.figure figcaption { color: var(--nb-muted); font-size: 15px; margin-top: 8px; }
.entry-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; margin-bottom: 32px; }
.entry-top .figure { margin: 0; }
.cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards li { margin: 0; background: var(--nb-paper); border: 1px solid var(--nb-line); border-radius: 14px; padding: 20px; }
.cards h3 { font-size: 20px; }
.cards p { font-size: 16px; margin: 0; color: var(--nb-muted); }
.files { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.files li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; background: var(--nb-paper); border: 1px solid var(--nb-line); border-radius: 14px; padding: 16px 20px; }
.files p { margin: 0; font-size: 16px; color: var(--nb-muted); }
.files strong { display: block; font-size: 19px; color: var(--nb-ink); }

/* Policies */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.tags li { margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--nb-mat); border: 1px solid var(--nb-line); font-size: 14px; }
.policy section { margin-top: 32px; }
.notice { border-left: 4px solid var(--nb-amber); background: var(--nb-paper); padding: 16px 20px; border-radius: 0 14px 14px 0; margin: 0 0 28px; }
.notice :last-child { margin-bottom: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { display: block; font: 600 16px/1.3 var(--nb-display); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--nb-muted); background: var(--nb-bg); color: var(--nb-ink); }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.45; }
.form-status { min-height: 1.5em; font-size: 16px; }
.form-status:empty { display: none; }
.form-status.is-sent { color: var(--nb-teal); font-weight: 600; }
.form-status.is-failed { color: var(--nb-red); font-weight: 600; }
.form-note { color: var(--nb-muted); font-size: 15px; margin: 0; }
.form .button { justify-self: start; }

/* Not found */
.lost { text-align: center; padding: 48px 0 24px; }
.lost img { width: min(260px, 60vw); }
.lost .lede { margin: 0 auto 16px; }
.lost .actions { justify-content: center; }

@media (max-width: 900px) {
  .split, .about, .contact, .entry-top { grid-template-columns: 1fr; gap: 24px; }
  .about figure { order: -1; }
  .about figure img { width: 200px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .page { padding-top: 28px; }
  .notes, .form-row { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .lede { font-size: 18px; }
}
@media (max-width: 360px) {
  .page, .page.narrow { width: calc(100% - 24px); }
  .actions .button { width: 100%; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media print { .actions, .form { display: none; } body { background: #fff; color: #000; } }
