/* Shipyard follows Frontier's public/docs typography, header, and color palette. */
:root {
  color-scheme: light dark;
  --header-gutter: clamp(22px, 3vw, 72px);
  --paper: #fafaf7; --surface: #fff; --ink: #242c32; --muted: #5d6970;
  --line: #dce2df; --accent: #965c56; --wash: #f5eae6;
  --header: #161e24; --header-ink: #d8e2e5; --header-muted: #9aaeb7;
  --header-accent: #e5ada2; --code: #192229;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #171e23; --surface: #1e272e; --ink: #e0e7e8; --muted: #a8b6bc; --line: #344249; --accent: #e5ada2; --wash: #392c2b; --header: #4c5255; --header-muted: #d0d8dc; --code: #11191f; }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.8 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .8rem 1.2rem; background: var(--surface); z-index: 5; }
.skip-link:focus { top: .5rem; }
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px var(--header-gutter); background: var(--header); color: var(--header-ink); border-bottom: 1px solid #334148; }
.site-header a { color: inherit; text-decoration: none; }
.site-header a:hover { color: var(--header-accent); }
.site-header :focus-visible { outline-color: var(--header-accent); }
.site-header .brand:hover { color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 650; letter-spacing: -.9px; white-space: nowrap; }
.brand img { object-fit: contain; width: 52px; height: 52px; }
.brand-label { color: var(--header-muted); font-size: 16px; font-weight: 400; letter-spacing: 0; }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.site-header nav span { color: var(--header-muted); margin-left: 5px; }
main { max-width: 1240px; min-height: calc(100vh - 185px); margin: auto; padding: 55px var(--header-gutter) 76px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 38px; min-width: 0; }
.heading > div { min-width: 0; }
h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 650; letter-spacing: -1.8px; line-height: 1.2; margin: 12px 0 16px; }
h2 { font-size: 23px; letter-spacing: -.7px; font-weight: 600; line-height: 1.35; margin: 6px 0; }
p { margin: 8px 0; }
.eyebrow { color: var(--accent); font: 11px/1.7 var(--mono); letter-spacing: 1.5px; }
.intro { font-size: 16px; color: var(--muted); }
.muted, .note { color: var(--muted); }
button, .download { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--paper); font: 600 13px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; padding: 12px 18px; border-radius: 3px; cursor: pointer; white-space: nowrap; text-decoration: none; }
button:hover, .download:hover { filter: brightness(1.1); text-decoration: none; }
button span, .download span { margin-left: 22px; }
.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.release { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 27px 30px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); margin-bottom: 42px; }
.release p:last-child { color: var(--muted); font-size: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 24px 0 15px; }
.section-heading h2::before { content: '##'; font: 16px var(--mono); color: var(--accent); margin-right: 10px; }
.section-heading > span { font-size: 12px; }
.table-wrap { overflow-x: auto; border-block: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { font: 10px/1.6 var(--mono); letter-spacing: 1px; color: var(--muted); text-transform: uppercase; background: var(--surface); }
td, th { padding: 17px 18px; }
td { border-top: 1px solid var(--line); font-size: 13px; }
td:first-child { font-weight: 600; }
td a { text-decoration: none; }
code { font: 12px/1.6 var(--mono); overflow-wrap: anywhere; }
.status { font: 12px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0; display: inline-block; padding: 4px 9px; border-radius: 3px; background: var(--wash); color: var(--ink); vertical-align: middle; }
.succeeded { background: #e6efe7; color: #335d3d; }
.failed { background: #f5e4e1; color: #963f32; }
.running { background: #f3ebd4; color: #785611; }
.interrupted { background: #efe7de; color: #805735; }
@media (prefers-color-scheme: dark) {
  .succeeded { background: #293f30; color: #b3dbbc; }
  .failed { background: #4c2c2c; color: #ffb5aa; }
  .running { background: #424029; color: #f3d994; }
  .interrupted { background: #42372e; color: #f3c894; }
}
.live { font-size: 10px; color: var(--accent); margin-left: 10px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.note { font-size: 12px; margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding: 22px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; margin-bottom: 25px; overflow-wrap: anywhere; }
.facts span { display: block; font: 10px/1.6 var(--mono); letter-spacing: 1px; color: var(--muted); margin-bottom: 7px; }
.message { padding: 16px; border-left: 2px solid var(--accent); background: var(--wash); overflow-wrap: anywhere; }
.checksum { margin-bottom: 25px; font-size: 12px; overflow-wrap: anywhere; }
pre { font: 12px/1.7 var(--mono); color: #e0e7e8; background: var(--code); padding: 24px; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 3px; max-height: 65vh; overflow: auto; }
footer { border-top: 1px solid var(--line); padding: 24px var(--header-gutter); font-size: 12px; color: var(--muted); display: flex; gap: 18px; justify-content: space-between; align-items: center; }
footer a { text-decoration: none; }
.back { display: inline-block; margin-bottom: 24px; font-size: 13px; }
@media (max-width: 800px) {
  .site-header { gap: 16px; padding-block: 14px; flex-wrap: wrap; }
  .brand { font-size: 23px; }
  .brand-label { font-size: 13px; }
  .brand img { width: 44px; height: 44px; }
  .site-header nav { gap: 22px; font-size: 12px; flex-wrap: wrap; }
  main { padding-top: 35px; }
  .heading, .release { align-items: flex-start; flex-direction: column; }
  .release { padding: 24px; }
  .facts { grid-template-columns: 1fr; }
  td, th { padding: 14px; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 440px) {
  .site-header nav { width: 100%; justify-content: space-between; gap: 8px; min-height: 38px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  footer > span { width: 100%; order: 3; }
}

.heading form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.heading select { max-width: 100%; padding: 12px 10px; border: 1px solid var(--muted); background: var(--surface); color: var(--ink); font: inherit; border-radius: 3px; }
