/* postagemail.app: one stylesheet for every page.
   Colours from docs/BRAND.md (Ink, Cream, one orange accent). IBM Plex Mono for the
   wordmark only; everything else in the system font. Fonts are served from this site. */

@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #F4F1EA;
  --text: #1F2430;
  --muted: #5E6472;
  --line: #DDD7CA;
  --link: #2B4C9B;
  --orange: #E8590C;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F2430;
    --text: #F4F1EA;
    --muted: #A9AEBB;
    --line: #3A4152;
    --link: #9DB4EC;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }

.col { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.wordmark { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 500 17px var(--mono); }
.wordmark img { width: 26px; height: 26px; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.tech { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; user-select: none; }
.tech input { margin: 0; accent-color: var(--link); }

/* Text */
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.01em; margin: 20px 0 16px; }
h2 { font-size: 22px; line-height: 1.3; margin: 48px 0 10px; }
p { margin: 0 0 16px; }
ul { padding-left: 1.2em; margin: 0 0 16px; }
li { margin: 6px 0; }
code { font: 0.86em var(--mono); }
.small { font-size: 15px; color: var(--muted); }
.icon { width: 72px; height: 72px; border-radius: 16px; margin-top: 24px; }

.get { display: inline-block; margin: 8px 0 4px; padding: 10px 18px; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 16px; }
.get[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Pictures */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0 8px; }
.shots figure { margin: 0; }
.shots img { border-radius: 18px; border: 1px solid var(--line); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.mac { margin: 32px 0 0; }
.mac img { filter: drop-shadow(0 10px 30px rgba(20, 24, 33, .22)); }

/* Questions on the support page */
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 600; }
details > :not(summary) { margin-top: 10px; }

/* Technical details, shown with the header checkbox */
.dev { display: none; font-size: 16px; border-left: 2px solid var(--line); padding-left: 16px; margin: 0 0 20px; }
html.show-dev .dev { display: block; }
.dev ul, .dev p:last-child { margin-bottom: 0; }

/* Footer */
footer { margin-top: 72px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 17px; }
  h1 { font-size: 28px; }
  .top { padding-top: 18px; padding-bottom: 18px; }
  .top nav a { display: none; }
  .shots { display: flex; overflow-x: auto; padding-bottom: 8px; margin-right: -20px; padding-right: 20px; }
  .shots figure { flex: 0 0 160px; }
}
