/* InnovativeCraft site. Brand: Brown #320E08, Yellow #F6AF00, Light Blue #0C8AD2,
   Dark Blue #062D5E, White. Figtree. Layout reflows with flex-wrap, min() and clamp();
   two narrow-width media queries fix the org chart's staff node and split tree. */
:root {
  --brown: #320E08; --yellow: #F6AF00; --lblue: #0C8AD2; --dblue: #062D5E; --white: #FFFFFF;
  --line: #eadfdc; --muted: #5e4a46;
  --rule: repeating-linear-gradient(90deg, var(--yellow) 0 14px, transparent 14px 24px);
  --wrap: min(1120px, 100% - 32px);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Figtree, "Segoe UI", Arial, sans-serif; font-size: clamp(16px, 1rem + .15vw, 18px);
  line-height: 1.6; color: var(--brown); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dblue); text-decoration-color: var(--lblue); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--dblue); text-decoration-color: var(--yellow); }
:focus-visible { outline: 3px solid var(--lblue); outline-offset: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 9; }

/* type */
h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.eyebrow { font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: .16em;
  font-size: .8rem; color: var(--dblue); margin-bottom: .9rem; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); max-width: 38em; margin-top: 1.2rem; }
.dash { height: 3px; background: var(--rule); width: min(220px, 60%); margin: 1rem 0 0; border: 0; }
.dash.wide { width: 100%; }
.dash.two { background: repeating-linear-gradient(90deg, var(--lblue) 0 14px, transparent 14px 24px); width: min(150px, 40%); margin-top: 8px; }
p + p { margin-top: .9rem; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 14px 0; }
.top .logo img { width: clamp(170px, 30vw, 230px); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-weight: 600; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--brown); }
.top nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--yellow); }
.top nav a:hover { color: var(--dblue); }

/* buttons */
.btn { display: inline-block; font-weight: 800; text-decoration: none; padding: .8rem 1.35rem; border-radius: 999px;
  background: var(--brown); color: var(--white); border: 2px solid var(--brown); line-height: 1.2; }
.btn:hover { background: var(--dblue); border-color: var(--dblue); color: var(--white); }
.btn.ghost { background: transparent; color: var(--brown); }
.btn.ghost:hover { background: var(--brown); color: var(--white); }
.btn.gold { background: var(--yellow); border-color: var(--yellow); color: var(--brown); }
.btn.gold:hover { background: var(--white); border-color: var(--white); color: var(--brown); }
.top .btn { padding: .5rem 1rem; color: var(--white); }
.top .btn:hover { color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* sections */
section.band { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.split { display: flex; flex-wrap: wrap; gap: clamp(2rem, 4vw, 4rem); align-items: flex-start; }
.split > * { flex: 1 1 min(100%, 26rem); min-width: 0; }
.head { margin-bottom: 2.2rem; max-width: 46rem; }
.head p { margin-top: 1rem; }

/* hero */
.hero { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero h1 b { color: var(--dblue); font-weight: 900; }

/* the round panel (dark blue) */
.round { background: var(--dblue); color: var(--white); padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); border-radius: 6px; position: relative; }
.round .eyebrow { color: var(--yellow); }
.round ol { list-style: none; }
.round li { display: flex; gap: 14px; padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.round li:first-child { border-top: 0; padding-top: 0; }
.round .t { flex: 0 0 4.6rem; font-weight: 900; color: var(--yellow); font-variant-numeric: tabular-nums; }
.round li p { font-size: .95rem; }
.round li p b { display: block; font-size: 1.02rem; }
.round .dash { width: 100%; margin: 1.2rem 0 0; }

/* three points */
.points { display: flex; flex-wrap: wrap; gap: 2rem 2.5rem; }
.points > div { flex: 1 1 min(100%, 17rem); }
.points h3 { margin-bottom: .5rem; }
.points .k { display: inline-flex; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--yellow); color: var(--brown);
  font-weight: 900; align-items: center; justify-content: center; margin-bottom: .9rem; }

/* watch bill rows */
.rows { list-style: none; }
.row { display: flex; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.row .no { flex: 0 0 2rem; font-weight: 900; color: var(--dblue); font-variant-numeric: tabular-nums; padding-top: .05rem; }
.row .body { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; }
.row .stn { flex: 1 1 10rem; font-weight: 800; }
.row .stn small { display: block; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--dblue); }
.row .duty { flex: 3 1 19rem; }
.row .watch { flex: 1 1 11rem; display: flex; flex-wrap: wrap; gap: .35rem; align-content: flex-start; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; border: 1.5px solid transparent; }
.tag.muster { background: var(--brown); color: var(--yellow); }
.tag.round { background: var(--yellow); color: var(--brown); border-color: var(--brown); }
.tag.clock { background: var(--dblue); color: var(--white); }
.tag.mail { background: var(--white); color: var(--dblue); border-color: var(--dblue); }
.teaser .rows { border-bottom: 1px solid var(--line); }
.teaser .more { margin-top: 1.6rem; }

.division { margin-top: 3rem; }
.division header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; padding-bottom: .7rem; position: relative; }
.division header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rule); }
.division h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
.division header p { color: var(--muted); flex: 1 1 100%; order: 3; }
.division .n { font-weight: 900; background: var(--yellow); color: var(--brown); border-radius: 999px; padding: 0 .65rem; font-size: .9rem; }
.division .rows .row:first-child { border-top: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: 1.8rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 6px; }
.legend div { flex: 1 1 min(100%, 15rem); font-size: .92rem; }
.legend .tag { margin-bottom: .35rem; }
.cta .addr { margin-top: 1rem; font-weight: 700; }
.cta .addr a { color: var(--white); text-decoration-color: var(--yellow); }
.audience { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.4rem; max-width: 40rem; }
.privacy { font-size: .92rem; color: var(--muted); margin-top: 1rem; }

/* engagement steps */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; counter-reset: s; }
.steps li { flex: 1 1 min(100%, 15rem); border: 1px solid var(--line); border-top: 4px solid var(--brown); padding: 1.4rem; border-radius: 0 0 6px 6px; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-weight: 900; color: var(--dblue); font-size: .9rem; letter-spacing: .1em; margin-bottom: .5rem; }
.steps h3 { margin-bottom: .5rem; }
.steps .names { margin-top: .8rem; font-size: .88rem; font-weight: 600; font-style: italic; letter-spacing: .06em; text-transform: uppercase; color: var(--dblue); }
.note { margin-top: 1.6rem; padding: 1.1rem 1.3rem; background: var(--yellow); color: var(--brown); border-radius: 6px; }
.note b { font-weight: 900; }

/* about */
.about .mark { width: 88px; margin-bottom: 1.2rem; }
.facts { list-style: none; margin-top: 1.4rem; }
.facts li { padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--line); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: 3px; background: var(--yellow); }

/* call to action (brown) */
.cta { background: var(--brown); color: var(--white); position: relative; overflow: hidden; }
.cta .eyebrow { color: var(--yellow); }
.cta h2 { color: var(--white); max-width: 18em; }
.cta p { max-width: 36em; margin-top: 1rem; }
.cta .ghost-mark { position: absolute; right: -60px; top: 50%; width: 360px; transform: translateY(-50%) rotate(-12deg); opacity: .08; pointer-events: none; }
.cta .wrap { position: relative; }
.cta .logo { width: min(260px, 70%); margin-bottom: 1.6rem; }
.cta a.plain { color: var(--white); text-decoration-color: var(--yellow); }
.hearts { height: 64px; background-color: var(--brown); background-image: url(assets/heart-pattern.png);
  background-size: 64px 64px; border-top: 6px solid var(--yellow); }

/* footer (dark blue, white logo) */
.foot { background: var(--dblue); color: var(--white); padding: 2.4rem 0 2rem; font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; align-items: center; justify-content: space-between; }
.foot img { width: 180px; }
.foot a { color: var(--white); text-decoration-color: var(--yellow); }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot small { display: block; width: 100%; font-size: .9rem; }
.foot .mail { font-weight: 700; }

/* org chart */
.org { --tint: #d4c3bf; margin-top: 2.2rem; display: flex; flex-direction: column; align-items: center; }
.org .eyebrow { margin-bottom: .35rem; font-size: .72rem; }
.billet { border-radius: 6px; padding: 1rem 1.2rem; width: min(100%, 320px); }
.billet .who b { display: block; font-weight: 900; font-size: 1.15rem; line-height: 1.2; }
.billet .who > span:not(.chips) { display: block; font-size: .92rem; margin-top: .25rem; }
.billet.captain { background: var(--white); color: var(--brown); border: 3px solid var(--yellow); text-align: center; }
.billet.bosun { background: var(--dblue); color: var(--white); }
.billet.bosun .eyebrow { color: var(--yellow); }
.billet.staff { background: var(--white); border: 2px dashed var(--tint); position: relative; }
.org-command { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 1.6rem; width: 100%; }
.org-command .staff { margin-top: .9rem; }
.org-command .org-spacer { flex: 0 1 280px; }
.org-command .bosun, .org-command .staff { flex: 0 1 300px; }
.org-command .staff { flex-basis: 280px; }
.vline { width: 2px; height: 28px; background: var(--tint); }
.musterbar { width: 100%; border-top: 2px solid var(--tint); text-align: center; margin-bottom: 1.8rem; }
.musterbar span { display: inline-block; transform: translateY(-50%); background: var(--brown); color: var(--white); font-weight: 700; font-size: .85rem; padding: .25rem .9rem; border-radius: 999px; }
.org-grid { width: 100%; display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: stretch; }
.org-div { flex: 1 1 min(100%, 250px); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.1rem 1.2rem; min-width: 0; }
.org-div.wide { flex: 2 1 min(100%, 520px); }
.org-div header { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.org-div h2 { font-size: 1.2rem; }
.org-div .n { font-weight: 900; background: var(--yellow); color: var(--brown); border-radius: 999px; padding: 0 .6rem; font-size: .85rem; }
.org-div .about { font-size: .88rem; color: var(--muted); margin: .25rem 0 .9rem; line-height: 1.4; }
.org-div .lead, .org-div .stn { font-size: .88rem; line-height: 1.4; }
.org-div .lead b, .org-div .stn b { display: block; font-weight: 800; font-size: .95rem; }
.org-div .lead { border-left: 5px solid var(--yellow); padding: .55rem .7rem; background: var(--white); box-shadow: 0 0 0 1px var(--line); border-radius: 0 4px 4px 0; }
.tree { list-style: none; margin: 0 0 0 .8rem; }
.tree-split { display: flex; gap: 1.4rem; }
.tree-split .tree { flex: 1 1 0; min-width: 0; }
.tree li { position: relative; padding: .55rem 0 .2rem 1.1rem; border-left: 1.5px solid var(--tint); }
.tree li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: .8rem; border-top: 1.5px solid var(--tint); }
.tree li:last-child { border-left-color: transparent; }
.tree li:last-child::after { content: ""; position: absolute; left: -1.5px; top: 0; height: 1.1rem; border-left: 1.5px solid var(--tint); }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.chip { display: inline-block; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; border: 1.5px solid transparent; white-space: nowrap; }
.chip.sched { background: var(--dblue); color: var(--white); }
.chip.mail { background: var(--white); color: var(--dblue); border-color: var(--dblue); }
.chip.off { background: var(--white); color: var(--brown); border: 1.5px dashed var(--brown); }
.billet.bosun .chip.mail, .billet.bosun .chip.sched { border-color: var(--white); }
.org-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .88rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 6px; }
.org-legend > span { display: inline-flex; align-items: center; gap: .45rem; }
.lead-key { display: inline-block; width: 5px; height: 1.1rem; background: var(--yellow); }

/* Narrow: Bosun's trunk runs past the staff box, which hangs off it by a dashed tick. */
@media (max-width: 720px) {
  .org-command { display: block; }
  .org-command .org-spacer { display: none; }
  .org-command .bosun { width: min(100%, 300px); margin: 0 auto; }
  .org-command .staff { width: calc(50% - 1.2rem); margin: 1.1rem 0 0 calc(50% + 1.2rem); }
  .org-command .staff::before { content: ""; position: absolute; left: calc(-1.2rem - 2px); top: 50%; width: 1.2rem; border-top: 2px dashed var(--tint); }
  .org-command .staff::after { content: ""; position: absolute; left: calc(-1.2rem - 3px); top: calc(-1.1rem - 2px); bottom: -2px; width: 2px; background: var(--tint); }
}
/* Narrow: the two halves of a wide division stack into one continuous rail. */
@media (max-width: 560px) {
  .tree-split { display: block; }
  .tree-split .tree + .tree { margin-top: 0; }
  .tree-split .tree:first-child li:last-child { border-left-color: var(--tint); }
  .tree-split .tree:first-child li:last-child::after { content: none; }
}
