/* Lato from public/fonts, the same files the app ships, so no font comes from a third party. */
@font-face {
  font-family: Lato;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/lato-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: Lato;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/lato-latin-700-normal.woff2) format('woff2');
}

/* The app's own colours (src/renderer/src/assets/base.css in the app). */
:root {
  --page: #fff;
  --ink: #2a2926;
  --ink-soft: #6e6a62;
  --ink-faint: #9a968e;
  --accent: #3f5b4e;
  --code-bg: #f1eee6;
  --code-ink: #4a4640;
}

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

body {
  background: var(--page);
  color: var(--ink);
  font-family:
    Lato,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 683px;
  padding: 32px 40px 48px;
}

a {
  color: inherit;
}

.logo {
  display: block;
  width: 60px;
  height: auto;
  margin-bottom: 36px;
}

h1 {
  /* The app's title face: Iowan Old Style ships with macOS and iOS, Georgia elsewhere. */
  font-family: 'Iowan Old Style', Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 22px;
}

p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
/* Inline code as the app's editor shows it (.editor .cm-code in the app), scaled to the page. */
p code {
  padding: 0.13em 0.32em;
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  line-height: 1;
}

.download {
  display: flex;
  gap: 10px;
  margin: 40px 0 12px;
}
.download input,
.download button {
  font: inherit;
  font-size: 19px;
  padding: 14px 18px;
  border-radius: 10px;
}
.download input {
  width: 227px;
  min-width: 0;
  border: 1.5px solid #dedbd2;
  background: #fff;
  color: var(--ink);
}
.download button {
  font-weight: 700;
  padding-inline: 28px;
  white-space: nowrap;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.download button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.download input:focus-visible,
.download button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.status {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Shown to anyone not on a Mac: by the page's script, or by /download without JavaScript. */
.note {
  display: none;
  font-size: 16px;
  color: var(--ink);
}
.note:target {
  display: block;
}

/* The looping film from recording/. */
.recording {
  display: block;
  width: 100%;
  height: auto;
  margin: 56px 0 68px; /* Below, the same as above it with the form's own 12px. */
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.08),
    0 20px 50px -20px rgb(0 0 0 / 0.25);
}

footer {
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  gap: 18px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* The start page's footer stays at the bottom of the window. */
.home {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-top: 64px;
}
.home footer {
  margin-top: auto;
}

/* Impressum and privacy. */
.legal h1 {
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 19px;
  margin: 32px 0 10px;
}
.legal p {
  font-size: 17px;
  margin-bottom: 20px;
}
.legal .back {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 15px;
  color: var(--ink-faint);
  text-decoration: none;
}
