/* Barnacle by Swamp Kitten: handheld LCD style */
:root {
  --bg: #1c1e1b;        /* graphite */
  --panel: #262923;
  --lcd: #b6c39b;
  --ink: #28301f;
  --text: #e4ecd2;
  --muted: #8a9278;
  --line: #34382f;
  --link: #b6c39b;
  --link-hover: #e4ecd2;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef0e8;
    --panel: #e2e5d9;
    --text: #28301f;
    --muted: #5c6450;
    --line: #cfd3c4;
    --link: #3d4a2c;
    --link-hover: #28301f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 16px;
  line-height: 1.65;
}
img.px, .px img { image-rendering: pixelated; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--link-hover); }
:focus-visible { outline: 2px dashed var(--lcd); outline-offset: 3px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.top { border-bottom: 2px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: 'Silkscreen', monospace; font-size: 18px; letter-spacing: 0.04em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: 'Silkscreen', monospace; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.nav a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

h1, h2, h3, .label { font-family: 'Silkscreen', monospace; font-weight: 400; letter-spacing: 0.03em; }
h1 { margin: 0; font-size: clamp(44px, 9vw, 80px); line-height: 1; }
h2 { margin: 0 0 20px; font-size: 26px; line-height: 1.2; }
h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 12px; }
.muted { color: var(--muted); }

/* hero */
.hero { padding: 72px 0 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; align-items: center; }
.hero-icon { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35)); }
.sub { margin: 18px 0 0; font-size: 20px; line-height: 1.5; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.store-btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 8px 20px; border-radius: 10px;
  background: var(--lcd); color: var(--ink); text-decoration: none;
  font-family: 'Silkscreen', monospace; font-size: 15px; line-height: 1.2;
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.store-btn small { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.04em; }
a.store-btn:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); color: var(--ink); }
.store-btn.soon { opacity: 0.75; cursor: default; }
.req { font-size: 14px; color: var(--muted); }

/* LCD panel */
.lcd {
  background: var(--lcd); color: var(--ink);
  border: 10px solid var(--panel); border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(40,48,31,0.25);
  background-image:
    linear-gradient(rgba(40,48,31,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,48,31,0.06) 1px, transparent 1px);
  background-size: 6px 6px;
}
@media (prefers-color-scheme: light) { .lcd { border-color: #262923; } }

section { padding: 48px 0; border-top: 2px solid var(--line); }
.body-copy { font-size: 18px; max-width: 680px; margin: 0; }

/* features */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.features li { background: var(--panel); border-radius: 12px; padding: 16px 18px 16px 44px; position: relative; }
.features li::before { content: ""; position: absolute; left: 18px; top: 24px; width: 10px; height: 10px; background: var(--lcd); box-shadow: 0 0 0 2px var(--ink); }

/* screenshots */
.shots { display: grid; gap: 20px; }
.shot-img { display: block; width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); }

.whisper { font-size: 14px; color: var(--muted); font-style: italic; margin: 28px 0 0; }

/* text pages */
.page { padding-top: 64px; padding-bottom: 48px; }
.page h1 { font-size: clamp(32px, 6vw, 52px); margin-bottom: 24px; }
.prose { max-width: 680px; }
.prose p { margin: 0 0 18px; }
.contact { padding: 24px 26px; margin: 8px 0 40px; }
.contact p { margin: 0; }
.contact a { color: var(--ink); font-weight: 600; font-size: 20px; word-break: break-word; }
.contact a:hover { color: #000; }
.faq { display: grid; gap: 14px; margin: 0; }
.faq div { background: var(--panel); border-radius: 12px; padding: 18px 20px; }
.faq dt { font-family: 'Silkscreen', monospace; font-size: 16px; margin: 0 0 6px; }
.faq dd { margin: 0; }
kbd { font-family: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

footer { border-top: 2px solid var(--line); margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer nav a { padding: 8px 0; }

/* launch list */
.notify { margin-top: 28px; max-width: 460px; }
.notify .label { display: block; margin-bottom: 8px; }
.notify-row { display: flex; flex-wrap: wrap; gap: 10px; }
.notify input[type=email] {
  flex: 1 1 220px; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--panel); border: 2px solid var(--line); border-radius: 10px;
}
.notify input[type=email]::placeholder { color: var(--muted); }
.notify input[type=email]:focus { outline: none; border-color: var(--lcd); }
.notify button {
  min-height: 48px; padding: 10px 18px; cursor: pointer;
  font-family: 'Silkscreen', monospace; font-size: 14px; letter-spacing: 0.04em;
  color: var(--ink); background: var(--lcd); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 0 3px 0 var(--ink);
}
.notify button:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.notify button:disabled { opacity: 0.7; cursor: default; transform: none; }
.notify-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.notify-note.ok { font-size: 15px; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* tip jar */
.coffee-card {
  background: var(--panel); border: 2px solid var(--line); border-radius: 14px;
  padding: 24px 26px; max-width: 680px;
  display: grid; gap: 14px; justify-items: start;
}
.coffee-card .label { margin: 0; }
.coffee-card p { margin: 0; }
.coffee-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 18px;
  font-family: 'Silkscreen', monospace; font-size: 15px; letter-spacing: 0.03em;
  color: var(--ink); background: var(--lcd); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink);
}
.coffee-btn:hover, .coffee-btn:focus-visible { color: var(--ink); transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.page .coffee { margin-top: 40px; padding-bottom: 0; }

/* shared Swamp Kitten header/footer pattern */
.nav .by-sk { border-left: 2px solid var(--line); padding-left: 18px; }
.sk-foot { justify-content: flex-start !important; align-items: center; gap: 10px 14px !important; }
.sk-mark { display: inline-flex; padding: 10px 0; color: var(--muted); }
.sk-mark:hover, .sk-mark:focus-visible { color: var(--text); }
.sk-mark .pupil { fill: var(--bg); }
.sk-foot { flex-wrap: nowrap !important; align-items: flex-start !important; }
.sk-foot .sk-mark { padding: 4px 0 0; flex: none; }
@media (max-width: 560px) { .nav .by-sk { border-left: 0; padding-left: 0; } }
