/* Real Wake Marine — single stylesheet. Copied verbatim into site/assets/ by build.mjs. */

:root {
  --bg: #fbfaf8;
  --panel: #ffffff;
  --ink: #14202b;
  --muted: #5c6b7a;
  --line: #dfe4e9;
  --navy: #0d2b45;
  --navy-ink: #ffffff;
  --accent: #b8541c;
  --accent-soft: #fdf0e6;
  --flag: #8a5a00;
  --flag-soft: #fff6e0;
  --flag-line: #e3b95e;
  --bad: #a32020;
  --radius: 8px;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151b;
    --panel: #161e26;
    --ink: #e6ecf1;
    --muted: #9aa8b5;
    --line: #2a3641;
    --navy: #08131f;
    --accent: #f0894a;
    --accent-soft: #2b1a10;
    --flag: #e9c069;
    --flag-soft: #2b2312;
    --flag-line: #6b552a;
    --bad: #f07272;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--panel); color: var(--ink); padding: .6rem 1rem; z-index: 20;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- staging bar */
.stagingbar {
  background: var(--flag-soft);
  border-bottom: 1px solid var(--flag-line);
  color: var(--flag);
  font-size: .8rem;
  padding: .5rem 1.25rem;
  text-align: center;
}
.stagingbar a { color: inherit; }

/* --------------------------------------------------------------------- header */
header.site {
  background: var(--navy);
  color: var(--navy-ink);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-block: .7rem;
}
.brand {
  font-weight: 700; font-size: 1.05rem; letter-spacing: .01em;
  color: var(--navy-ink); text-decoration: none; margin-right: auto; white-space: nowrap;
}
header.site nav { display: flex; flex-wrap: wrap; gap: .15rem .35rem; }
header.site nav a {
  color: #cfdae4; text-decoration: none;
  font-size: .84rem; padding: .35rem .55rem; border-radius: 5px; white-space: nowrap;
}
header.site nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
header.site nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; }
.navbtn { display: none; cursor: pointer; font-size: 1.4rem; line-height: 1; padding: .1rem .4rem; }

@media (max-width: 860px) {
  .navbtn { display: block; }
  header.site nav { display: none; width: 100%; }
  #navtoggle:checked ~ nav { display: flex; padding-bottom: .5rem; }
}

/* ---------------------------------------------------------------------- prose */
main.prose { padding-block: 2.5rem 4rem; }
main.prose > * { max-width: var(--measure); }
main.prose > .tablewrap, main.prose > hr { max-width: none; }

h1, h2, h3, h4 { line-height: 1.22; text-wrap: balance; margin: 0 0 .6em; }
h1 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: 1.4rem; margin-top: 2.4em; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; margin-top: 2em; }
h4 { font-size: 1rem; margin-top: 1.6em; color: var(--muted); }
h1 + p { font-size: 1.1rem; color: var(--muted); }

p, ul, ol, table { margin: 0 0 1.15rem; }
li { margin-bottom: .4rem; }
li > ul { margin: .45rem 0 .2rem; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 650; }

hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 2.75rem 0; max-width: none;
}

blockquote {
  margin: 0 0 1.15rem;
  padding: .85rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote > :last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
}

/* --------------------------------------------------------------------- tables */
.tablewrap { overflow-x: auto; margin: 0 0 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
th { background: var(--panel); font-weight: 650; }
tbody tr:hover { background: var(--panel); }

/* -------------------------------------------------- placeholders & build notes */
/* Anything the client still has to supply is visibly flagged, on purpose. */
.ph {
  background: var(--flag-soft);
  border: 1px dashed var(--flag-line);
  color: var(--flag);
  border-radius: 4px;
  padding: .05em .4em;
  font-size: .88em;
  font-weight: 600;
  white-space: normal;
}
.ph-cta {
  display: inline-block;
  border-style: solid;
  padding: .55em 1.1em;
  margin: .2rem .3rem .2rem 0;
  font-size: .92rem;
  letter-spacing: .02em;
}
.ctarow { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; }

.todo {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  color: var(--accent);
  border-radius: 4px;
  padding: .05em .4em;
  font-size: .88em;
  font-style: italic;
}

aside.buildnote {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  padding: .8rem 1rem;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: .9rem;
}
aside.buildnote::before {
  content: "Build note";
  display: block;
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 700; margin-bottom: .3rem;
}

a.deadlink { color: var(--bad); text-decoration: underline dashed; }
a.deadlink::after { content: " (page not built)"; font-size: .75em; opacity: .8; }

/* --------------------------------------------------------------------- footer */
footer.site {
  background: var(--navy);
  color: #cfdae4;
  margin-top: 4rem;
  padding-block: 2.5rem 2rem;
  font-size: .9rem;
}
footer.site .cols {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
footer.site h2 {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #8fa3b6; margin: 0 0 .7rem;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: .35rem; }
footer.site a { color: #cfdae4; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.fine { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); color: #8fa3b6; font-size: .78rem; max-width: none; }

details.appendix {
  max-width: var(--measure);
  margin: 3rem 0 0;
  padding: .8rem 1rem;
  background: var(--flag-soft);
  border: 1px dashed var(--flag-line);
  border-radius: var(--radius);
  font-size: .92rem;
}
details.appendix > summary {
  cursor: pointer; font-weight: 650; color: var(--flag);
  font-size: .82rem; letter-spacing: .03em;
}
details.appendix[open] > summary { margin-bottom: 1rem; }
details.appendix .tablewrap { max-width: none; }
