/* PicJot website. Phone first; the app's forest green and amber; light or
   dark with the visitor's setting. System fonts: nothing is fetched from
   anyone else. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2efe8;
  --text: #1d1c1a;
  --muted: #5d5b56;
  --hairline: #e4e0d6;
  --brand: #2d6a4f;
  --brand-hover: #245a42;
  --on-brand: #ffffff;
  --link: #22603f;
  --accent: #f5a524;
  --accent-soft: rgba(245, 165, 36, 0.16);
  --frame: #151515;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --measure: 42rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1110;
    --surface: #171a19;
    --surface-2: #1e2221;
    --text: #f2f1ed;
    --muted: #a9a79f;
    --hairline: #2a2e2c;
    --brand: #2d6a4f;
    --brand-hover: #357a5b;
    --link: #82c9a5;
    --accent-soft: rgba(245, 165, 36, 0.14);
    --frame: #000000;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

h1 {
  font-size: 2rem;
  margin-top: 0.6em;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.1rem;
}

code {
  font: 0.9em ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 16px;
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

/* Header and footer */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a.button {
  color: var(--on-brand);
}

.site-footer {
  margin-top: 64px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  text-align: center;
}

.site-footer .tagline {
  font-style: italic;
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.button:hover {
  background: var(--brand-hover);
}

.button.secondary {
  background: transparent;
  color: var(--link);
  box-shadow: inset 0 0 0 2px var(--hairline);
}

.button.small {
  padding: 8px 14px;
  font-size: 0.95rem;
}

/* Home */
.hero {
  padding: 40px 0 16px;
}

.hero .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-icon {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 2.5rem;
  margin: 16px 0 0;
}

.hero .tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted);
  margin: 4px 0 16px;
}

.hero .lead {
  font-size: 1.1rem;
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.section {
  padding: 32px 0;
}

.section h2 {
  margin-top: 0;
}

.section .intro {
  color: var(--muted);
  max-width: var(--measure);
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .step {
  display: inline-block;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.checks {
  list-style: none;
  padding: 0;
  max-width: var(--measure);
}

.checks li {
  padding-left: 30px;
  position: relative;
  margin: 10px 0;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--brand);
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .checks li::before,
  .card .step {
    color: var(--link);
  }
}

.band {
  background: var(--surface-2);
}

.price {
  font-size: 1.15rem;
}

/* Screenshots in a phone frame */
.shot {
  margin: 24px auto;
  max-width: 280px;
  text-align: center;
}

.shot img {
  display: block;
  width: 100%;
  border: 7px solid var(--frame);
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: var(--frame);
}

.shot figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

/* The PC's pages: a window rather than a phone */
.shot.pc {
  max-width: 640px;
}

.shot.pc img {
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.shots .shot {
  flex: 1 1 200px;
  max-width: 240px;
  margin: 16px 0;
}

/* Guides */
.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 8px 16px 0;
}

.page-guides main > :not(.prose),
.page-privacy main > * {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.prose li {
  margin: 6px 0;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
}

.prose th {
  background: var(--surface-2);
}

.prose blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

.prose blockquote p {
  margin: 0.3em 0;
}

.guide-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.guide-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
}

.guide-list a:hover {
  border-color: var(--brand);
}

.guide-list strong {
  display: block;
  color: var(--link);
}

.guide-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.prev-next a {
  text-decoration: none;
  font-weight: 600;
  max-width: 48%;
}

.prev-next a span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.prev-next .next {
  text-align: right;
  margin-left: auto;
}

/* Wider screens */
@media (min-width: 720px) {
  .hero .wrap {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot {
    max-width: 300px;
  }
}
