/* Sketchcoded landing site. Static, self-contained, same voice as the app. */
@font-face {
  font-family: "DM Sans";
  font-weight: 400;
  src: url(assets/fonts/dm-sans-latin-400-normal.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  font-weight: 500;
  src: url(assets/fonts/dm-sans-latin-500-normal.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  font-weight: 600;
  src: url(assets/fonts/dm-sans-latin-600-normal.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  font-weight: 700;
  src: url(assets/fonts/dm-sans-latin-700-normal.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  font-weight: 400;
  src: url(assets/fonts/caveat-latin-400-normal.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  font-weight: 600;
  src: url(assets/fonts/caveat-latin-600-normal.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  font-weight: 400;
  src: url(assets/fonts/newsreader-latin-400-normal.woff2) format("woff2");
  font-display: swap;
}
:root {
  --paper: #faf9f4;
  --ink: #303a32;
  --muted: #6c7467;
  --line: #dcded3;
  --green: #3d5144;
  --red: #b95144;
  --cork: #c9a97a;
  --serif: "Newsreader", Georgia, serif;
  --hand: "Caveat", cursive;
  --sans: "DM Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  color-scheme: light;
}
body {
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
.wrap {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}
/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  padding: 64px 0 12px;
}
.hero h1 {
  font: 400 clamp(44px, 6vw, 72px)/1 var(--serif);
  letter-spacing: -1px;
  margin-bottom: 18px;
}
/* The logo sits beside the name in the title; the site has no header bar. */
.title-logo {
  height: 0.5em;
  width: auto;
  margin-left: 0.1em;
  vertical-align: 0.34em;
}
.tagline {
  font: 500 clamp(19px, 2vw, 24px)/1.4 var(--sans);
  max-width: 26ch;
}
.tagline b {
  display: block;
  color: var(--green);
  font-weight: 600;
}
.tagline u {
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.lede {
  color: var(--muted);
  margin-top: 18px;
  max-width: 46ch;
}
.lede + .lede {
  margin-top: 12px;
}
/* Example frame */
.example {
  display: block;
  text-decoration: none;
  color: inherit;
}
/* Beside the text, the example starts below the title, level with the tagline, so the page reads
   staggered. */
@media (min-width: 861px) {
  .example {
    margin-top: 120px;
  }
}
.example figure {
  background: #fffef5;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 1px 6px 22px #55452a24;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.example:hover figure,
.example:focus-visible figure {
  transform: translateY(-2px);
  box-shadow: 2px 12px 34px #55452a30;
}
.example img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e9e6da;
  background: var(--cork);
}
.example figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 2px;
}
.example figcaption span {
  font-family: var(--hand);
  font-size: 22px;
  color: #55604f;
}
.example .cta {
  font: 600 16px var(--sans);
  background: var(--green);
  color: #fffef8;
  padding: 12px 16px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
/* Set up */
.setup {
  padding: 8px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.setup h2 {
  font: 400 30px/1.15 var(--serif);
  margin-bottom: 14px;
}
.prompt-box {
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.prompt-box .label {
  font-size: 15px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.prompt-box p[data-prompt] {
  font:
    16px/1.6 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: #f3f4ec;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0 14px;
  user-select: all;
  overflow-wrap: anywhere;
}
.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fffef8;
  font: 600 16px var(--sans);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: #f1f3e9;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fffef8;
}
.button.primary:hover {
  background: #2b4033;
}
/* Guidelines: our rules for web design, compact, at the bottom of the home page. */
.guidelines {
  padding: 8px 0 56px;
  scroll-margin-top: 24px;
  max-width: 820px;
}
.guidelines h2 {
  font: 400 30px/1.15 var(--serif);
  margin-bottom: 8px;
}
.guidelines-lead,
.guidelines-more {
  color: var(--muted);
  font-size: 16px;
  max-width: 760px;
}
.guidelines ul {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 24px;
}
.guidelines li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #4a5346;
}
.guidelines li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.guidelines li b {
  color: var(--ink);
}
.not-found {
  padding: 64px 0;
}
.not-found h1 {
  font: 400 clamp(36px, 5vw, 56px)/1.1 var(--serif);
  margin-bottom: 12px;
}
.not-found p {
  color: var(--muted);
  font-size: 18px;
}
.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
/* Mobile: one column; the setup block sits below the example frame, as drawn. */
@media (max-width: 860px) {
  .hero,
  .setup {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }
  /* Stacked, the setup heading needs room of its own below the example frame. */
  .hero {
    padding-bottom: 40px;
  }
  .setup {
    padding-top: 0;
  }
}
/* A phone: the caption takes its own line and the button the frame's width. */
@media (max-width: 520px) {
  .example figcaption {
    flex-wrap: wrap;
  }
  .example figcaption span:first-child {
    flex: 1 1 100%;
  }
  .example .cta {
    flex: 1 1 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .example figure {
    transition: none;
  }
}
/* The source link stands on its own under the setup prompt, centred, with the mark. */
/* Beside the prompt: how ideas become the plan, then the source. */
.setup-side {
  align-self: center;
}
.setup-note {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 46ch;
}
.setup-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}
.setup-links .button {
  min-height: 44px;
  text-decoration: none;
}
.github-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
/* A fixed window and an explicit scrolling reading panel. */
.site-document {
  height: 100dvh;
  overflow: hidden;
}
.site-scroll {
  /* Keep a fixed rail for the hint so it never covers reading content. */
  height: calc(100% - 56px);
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #8a947d #e9eadf;
}
.site-scroll::-webkit-scrollbar {
  width: 12px;
}
.site-scroll::-webkit-scrollbar-thumb {
  background: #8a947d;
  border: 3px solid #e9eadf;
  border-radius: 8px;
}
.site-scroll-hint {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #71826a;
  border-radius: 50%;
  background: #fffef6;
  color: #29412f;
  font: 600 20px/1 var(--sans);
  cursor: pointer;
  opacity: 0.6;
  box-shadow: 0 2px 8px #0002;
}
.site-scroll-hint:hover,
.site-scroll-hint:focus-visible {
  opacity: 1;
}
.site-scroll-hint[hidden] {
  display: none;
}
