/* Fish Bowl site — the app's paper, ink and violet, on the web. */
:root {
  --paper: #e5eef1;
  --paper-deep: #cadae2;
  --ink: #1b2343;
  --ink-soft: #5a6380;
  --violet: #7269dd;
  --sky: #9ad9e9;
  --mint: #7edac4;
  --cream: #f7fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site { padding: 18px 0; border-bottom: 2px solid var(--ink); background: var(--cream); }
header.site .wrap { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; font-family: Georgia, "Times New Roman", serif; }
.brand span { color: var(--violet); }
nav a { color: var(--ink-soft); text-decoration: none; margin-right: 18px; font-size: 0.95rem; font-weight: 600; }
nav a:hover, nav a.here { color: var(--violet); }

main { padding: 40px 0 64px; }

h1 { font-size: 2.1rem; line-height: 1.2; margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; }
h2 { font-size: 1.3rem; margin: 36px 0 10px; color: var(--violet); font-family: Georgia, "Times New Roman", serif; }
p  { margin: 0 0 14px; }
p.dim, li.dim { color: var(--ink-soft); }
a { color: var(--violet); }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 6px; }

.tagline { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 20px; }

/* Slips: the app's paper cards, pinned on the page. */
.slip {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}
.slip h3 { font-size: 1.05rem; margin-bottom: 4px; }
.slip p { color: var(--ink-soft); margin-bottom: 0; }

.badge {
  display: inline-block;
  cursor: pointer;
  background: var(--violet);
  color: var(--cream);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  text-decoration: none;
  margin: 6px 0 18px;
}

form { margin-top: 10px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
}
textarea { min-height: 150px; resize: vertical; }
button {
  margin-top: 16px;
  font: inherit;
  font-weight: 700;
  color: var(--cream);
  background: var(--violet);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 12px 22px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; }
.form-note { margin-top: 12px; color: var(--ink-soft); }
.form-note.ok { color: #1f7a5c; }
.form-note.err { color: #b3372a; }

footer.site { padding: 20px 0 40px; border-top: 2px solid var(--ink); color: var(--ink-soft); font-size: 0.9rem; }

/* Hero and screenshots. */
.hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero .icon { width: 128px; height: 128px; border-radius: 28px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.hero h1 { margin-bottom: 6px; }
.hero .tagline { margin-bottom: 10px; }
.shots { display: flex; gap: 16px; flex-wrap: wrap; margin: 22px 0 10px; }
.shot { flex: 1 1 200px; max-width: 230px; margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 22px; border: 2px solid var(--ink); background: var(--cream); }
.shot figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }
/* The holiday shelf's preview: the square clip at the width of a screenshot or two. */
.trailer { max-width: 400px; margin: 14px 0 0; }
.trailer video { width: 100%; height: auto; display: block; border-radius: 22px; border: 2px solid var(--ink); background: var(--cream); }
/* The App Store preview is a phone screen: narrow and centred, not the full width of the page. */
.preview { max-width: 320px; margin-left: auto; margin-right: auto; }
.preview figcaption { text-align: center; }
.trailer figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.45; }
footer.site p + p { margin-top: 6px; font-size: 0.8rem; }

/* Teaser page (website/teaser): one screenshot under the hero. */
.teaser .shot { max-width: 280px; margin: 10px auto 0; }

/* How-to page (how-to.html): each section is words beside one or two phone screenshots. */
.howto .wrap { max-width: 1040px; }
.howto .layout { display: flex; gap: 36px; align-items: flex-start; }
.howto .toc { flex: 0 0 200px; position: sticky; top: 16px; font-size: 0.9rem; line-height: 1.5; background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 3px 3px 0 var(--ink); }
.howto .toc .toc-title { font-weight: 700; color: var(--ink); margin-bottom: 6px; font-family: Georgia, "Times New Roman", serif; }
.howto .toc a { display: block; color: var(--ink-soft); text-decoration: none; padding: 3px 0; border-bottom: 1px solid var(--paper-deep); }
.howto .toc a:last-of-type { border-bottom: 0; }
.howto .toc a:hover { color: var(--violet); }
.howto .toc .toc-more { margin: 10px 0 0; }
.howto .toc .toc-more a { color: var(--violet); font-weight: 600; border: 0; }
.howto .content { flex: 1 1 0; min-width: 0; }
.howto .content h2:first-child { margin-top: 0; }
@media (max-width: 760px) {
  .howto .layout { display: block; }
  .howto .toc { position: static; margin-bottom: 20px; }
}
.howto .step { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.howto .step .words { flex: 1 1 320px; min-width: 0; }
.howto .step .shot { flex: 0 1 220px; max-width: 220px; }
.howto .step ol, .howto .step ul { margin-bottom: 12px; }
.howto .step li ul { margin-top: 6px; }
.howto .tip { background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 3px 3px 0 var(--ink); }
.howto .tricks li { margin-bottom: 9px; }
@media (max-width: 600px) { .howto .step .shot { flex-basis: 100%; max-width: 260px; margin: 0 auto 14px; } }
