/* Lost Cabin Consulting: site stylesheet (site v7)
   Plain layout: modest type, product links with a small preview and a short description.
   Palette matches the navy and gold used on the books and SIS documents. */

:root {
  --navy-950: #070C16;
  --navy-900: #0B1322;
  --navy-850: #0F192C;
  --navy-800: #132035;
  --gold: #D4A95F;
  --gold-soft: #EACF98;
  --gold-line: rgba(212, 169, 95, 0.55);
  --parchment: #F5F2EA;
  --text: #E4E1D8;
  --muted: #A3AEC0;
  --muted-2: #8995A9;
  --line: rgba(245, 242, 234, 0.10);
  --line-strong: rgba(245, 242, 234, 0.18);
  --wrap: 1080px;
  --header-h: 64px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* The html background matches the footer, so short pages show no lighter band below it. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--navy-950); }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--parchment); margin: 0 0 0.5em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2rem); }
h2 { font-size: 1.35rem; }
h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: var(--parchment); margin: 0 0 0.2em; }
p { margin: 0 0 1em; }
strong { color: var(--parchment); font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: var(--gold); color: var(--navy-900); padding: 8px 14px; border-radius: 4px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--navy-900); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand svg { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 6px 10px; border-radius: 4px; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current='page'] { color: var(--gold); }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--parchment); }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px; background: var(--navy-900);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .brand svg { height: 34px; }
}

/* ---------- Page layout ---------- */
.page-head { padding: 36px 0 4px; }
.page-head p { color: var(--muted); max-width: 760px; }
.page-head p strong { color: var(--text); }
.section { padding: 20px 0 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.plain-list { margin: 0 0 1em; padding-left: 20px; color: var(--text); max-width: 760px; }
.plain-list li { margin: 4px 0; }

/* ---------- Product links ---------- */
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item {
  position: relative;
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: stretch;
  padding: 14px; background: var(--navy-850); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color 0.15s, background-color 0.15s;
}
.item:hover { border-color: var(--gold-line); background: var(--navy-800); }
.item:has(.stretch:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.item-thumb { display: block; width: 96px; padding: 0; margin: 0; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; background: var(--navy-950); }
.item-body { display: flex; flex-direction: column; min-height: 100%; }
.item-body .item-foot { margin-top: auto; }
.item-thumb { align-self: start; }
.item-thumb img { width: 100%; height: auto; }
button.item-thumb { position: relative; z-index: 2; cursor: zoom-in; }
button.item-thumb:hover { border-color: var(--gold); }
.item-meta { font-size: 0.82rem; color: var(--muted); margin: 0 0 6px; }
.item-desc { font-size: 0.92rem; line-height: 1.5; color: var(--text); margin: 0 0 10px; }
.item-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; font-size: 0.87rem; }
.price { color: var(--gold); font-weight: 600; font-size: 0.95rem; }
/* The .stretch link covers the whole card, so a click anywhere on it follows that link.
   Other links and buttons in the card sit above it. */
.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 6px; }
.stretch:focus-visible { outline: none; }
.item-foot a:not(.stretch), .item-foot button { position: relative; z-index: 2; }

.btn {
  display: inline-block; padding: 5px 11px; border: 1px solid var(--gold-line); border-radius: 4px;
  background: transparent; color: var(--gold-soft); font: 500 0.87rem/1.4 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover, .item:hover .btn.stretch { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--gold); }

/* Wide screenshot previews (free tools) */
.item.wide { grid-template-columns: 150px minmax(0, 1fr); }
.item.wide .item-thumb { width: 150px; aspect-ratio: 3 / 2; background: var(--navy-950); }
.item.wide .item-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Logo tile used as the preview on the Home "About" card */
.item-thumb.mark-tile { display: flex; align-items: center; justify-content: center; height: 96px; }
.mark-tile svg { width: 58px; height: 58px; }

/* Sample pages (home): small previews that open at full size */
.samples { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: space-between; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sample { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: zoom-in; }
.sample img { width: 100%; height: auto; aspect-ratio: 240 / 310; object-fit: cover; object-position: top; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--navy-950); }
.sample:hover img { border-color: var(--gold); }
.sample span { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
.sample:hover span { color: var(--gold-soft); }

@media (max-width: 760px) {
  .items { grid-template-columns: minmax(0, 1fr); }
  .samples { grid-template-columns: repeat(2, minmax(0, 150px)); }
}
@media (max-width: 420px) {
  .item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .item-thumb { width: 76px; }
  .item-thumb.mark-tile { height: 76px; }
  .mark-tile svg { width: 46px; height: 46px; }
  .item.wide { grid-template-columns: 96px minmax(0, 1fr); }
  .item.wide .item-thumb { width: 96px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--parchment); }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* ---------- About / contact ---------- */
.prose { max-width: 760px; }
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.panel { padding: 16px 18px; background: var(--navy-850); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 14px; }
.panel p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0.5em; }
.panel a.mail { overflow-wrap: anywhere; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--parchment); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 9px 11px; border-radius: 4px; border: 1px solid var(--line-strong);
  background: var(--navy-950); color: var(--text); font: inherit; font-size: 0.95rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.form .btn { font-size: 0.93rem; padding: 8px 16px; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 0.9rem; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--gold-soft); }
.form-status.err { color: #F09A77; }
@media (max-width: 760px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Lightbox (page previews) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 64px 16px 24px; background: rgba(5, 10, 19, 0.94); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 820px; width: 100%; max-height: 100%; overflow: auto; }
.lightbox img { width: auto; max-width: 100%; margin: 0 auto; background: #fff; }
.lightbox figcaption { position: fixed; top: 18px; left: 20px; right: 80px; color: var(--parchment); font-weight: 600; font-size: 0.93rem; }
.lightbox-close { position: fixed; top: 12px; right: 16px; width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--navy-800); color: var(--parchment); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 24px 0 28px; margin-top: 24px; font-size: 0.86rem; color: var(--muted-2); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-top svg { height: 30px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.site-footer p { margin: 0 0 4px; }

/* ---------- 404 ---------- */
.lost { padding: 72px 0; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .page-head { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
