/* Seamerge website. System fonts only, no external resources. */

:root {
  --deep: #0a1733;
  --wave: #14385f;
  --text: #1d1d1f;
  --muted: #545e6b;
  --surface: #ffffff;
  --page: #f5f7fa;
  --line: #dde3ea;
  --accent: #0a62cc;
  --code-bg: #e9edf2;
  --mark: #e7f0fb;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f4f7;
    --muted: #a7b1bd;
    --surface: #141a23;
    --page: #0b1017;
    --line: #253041;
    --accent: #5aa4ff;
    --code-bg: #1d2531;
    --mark: #13253c;
  }
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--page);
}

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

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--code-bg);
}

pre {
  margin: 14px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--code-bg);
  line-height: 1.5;
}

pre code { padding: 0; background: none; font-size: 13px; }

kbd {
  font: 0.86em ui-monospace, "SF Mono", Menlo, monospace;
  padding: 0.05em 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--deep);
  z-index: 10;
}

.skip:focus { top: 12px; }

/* Hero: the deep blue of the icon and the social preview, white type. */
.hero {
  color: #fff;
  background: linear-gradient(160deg, var(--deep) 0%, var(--wave) 100%) top / 100% 100% no-repeat;
  padding: 0 16px;
}

/* On the home page the blue ends behind the lower part of the screenshot, which then reaches
   into the page. */
.hero.home {
  background-size: 100% calc(100% - min(300px, 25vw));
  background-color: var(--page);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; }

.topbar nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 15px;
}

.topbar nav a:hover { color: #fff; text-decoration: underline; }

.hero a:focus-visible, .download a:focus-visible { outline-color: #8cc4ff; }

.intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 0;
  text-align: center;
}

.intro .icon { display: block; width: 120px; height: 120px; margin: 0 auto 18px; }

.intro h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.intro h1 span {
  display: block;
  margin-top: 14px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
}

.lede {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.86);
}

.lede a { color: #fff; }

.hero code, .download code {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.button:hover { background: rgba(255, 255, 255, 0.1); }

.button.primary { background: #fff; color: var(--deep); border-color: #fff; }

.button.primary:hover { background: #e6eef8; }

.fineprint { margin: 18px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.8); }

.hero-shot {
  display: block;
  max-width: 1200px;
  margin: 36px auto 0;
}

.hero-shot img { display: block; width: 100%; }

/* Content. */
main { padding: 0 16px; }

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 0 0;
}

.first { padding-top: 40px; }

.section-head { max-width: 720px; margin-bottom: 32px; }

.section-head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-head p { margin: 12px 0 0; color: var(--muted); font-size: 19px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }

.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* A feature with its screenshot beside it; the screenshots are windows with their shadow. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px;
  align-items: center;
  margin-top: 64px;
}

.feature.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

.feature.flip .feature-text { order: 2; }

.feature h3 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }

.feature p { margin: 12px 0 0; color: var(--muted); }

.feature picture { display: block; }

.feature picture img { display: block; width: 100%; }

.feature.narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }

.feature.narrow picture { max-width: 360px; justify-self: center; }

/* How it works. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 24px 24px 76px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mark);
  color: var(--accent);
  font-weight: 700;
}

.steps h3 { margin: 0 0 6px; font-size: 18px; }

.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Git and Tower. */
.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.two .card p + p, .two .card p + pre + p { margin-top: 12px; }

.two .card ol { margin: 10px 0 0; padding-left: 1.3em; color: var(--muted); font-size: 16px; }

.two .card li { margin: 4px 0; }

.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* FAQ. */
.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
}

.faq details[open] summary::after { content: "\2212"; }

.faq summary h3 { margin: 0; font-size: 18px; font-weight: 600; }

.faq .answer { padding: 0 0 20px; color: var(--muted); max-width: 780px; }

.faq .answer p { margin: 0 0 10px; }

/* Download. */
.download {
  max-width: 1080px;
  margin: 88px auto 0;
  padding: 56px 24px;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, var(--deep), var(--wave));
}

.download h2 { margin: 0; font-size: 36px; letter-spacing: -0.015em; }

.download p { margin: 12px auto 0; max-width: 580px; color: rgba(255, 255, 255, 0.86); }

.download .fineprint { color: rgba(255, 255, 255, 0.8); }

/* The Homebrew command is longer than a phone is wide; it breaks at its spaces there. */
.download code { white-space: normal; }

.download code .keep { white-space: nowrap; }

.download a:not(.button) { color: #fff; }

footer {
  max-width: 1080px;
  margin: 72px auto 0;
  padding: 28px 16px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

footer p { margin: 0 0 6px; }

/* The page for imprint and privacy: the bar of the home page and a narrow column. */
.legal { max-width: 760px; margin: 0 auto; padding-top: 48px; }

.legal h1 { font-size: 40px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.015em; }

.legal section { padding-top: 32px; }

.legal h2 { font-size: 24px; margin: 0 0 10px; }

.legal h3 { font-size: 17px; margin: 20px 0 4px; }

.legal p, .legal address { margin: 0 0 10px; color: var(--muted); font-style: normal; }

.updated { font-size: 14px; color: var(--muted); }

/* A card that is a link, such as the guides on the home page. */
a.card.link { display: block; color: var(--text); text-decoration: none; }

a.card.link h3 { color: var(--accent); }

a.card.link:hover { border-color: var(--accent); }

a.card.link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 16px; }

/* Guides: the bar of the home page and a column for reading. */
.guide { max-width: 760px; margin: 0 auto; padding-top: 36px; }

.crumbs { font-size: 14px; color: var(--muted); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 0; list-style: none; }

.crumbs li + li::before { content: "\203A"; margin-right: 6px; }

.crumbs a { color: var(--muted); }

.guide h1 { margin: 18px 0 0; font-size: 40px; line-height: 1.15; letter-spacing: -0.015em; }

.guide .standfirst { margin: 14px 0 0; font-size: 19px; color: var(--muted); }

.guide .updated { margin: 12px 0 0; }

.guide h2 { margin: 52px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }

.guide h3 { margin: 28px 0 0; font-size: 18px; line-height: 1.3; }

.guide p { margin: 12px 0 0; }

.guide ol, .guide ul { margin: 12px 0 0; padding-left: 1.4em; }

.guide li { margin: 8px 0; }

.guide li > p { margin: 4px 0 0; }

.guide figure { margin: 28px 0 0; }

.guide figure picture, .guide figure img { display: block; width: 100%; }

.guide figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

.guide dl { margin: 16px 0 0; }

.guide dt { margin-top: 14px; font-weight: 600; }

.guide dd { margin: 4px 0 0; color: var(--muted); }

.guide .table { margin: 16px 0 0; overflow-x: auto; }

.guide table { width: 100%; border-collapse: collapse; font-size: 15px; }

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

.guide th { font-weight: 600; }

.guide td code { white-space: nowrap; }

.guide .download { margin-top: 64px; padding: 40px 24px; }

.guide .download h2 { margin: 0; font-size: 28px; }

.related { margin-top: 56px; }

.related h2 { margin: 0 0 16px; font-size: 22px; }

@media (max-width: 860px) {
  .intro { padding-top: 28px; }
  .intro h1 { font-size: 48px; }
  .intro h1 span { font-size: 22px; }
  .lede { font-size: 17px; }
  .section { padding-top: 64px; }
  .section-head h2, .download h2 { font-size: 28px; }
  .guide h1 { font-size: 32px; }
  .guide h2 { font-size: 23px; }
  .section-head p { font-size: 17px; }
  .feature, .feature.flip, .feature.narrow { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .feature.flip .feature-text { order: 0; }
  .topbar nav ul { gap: 4px 16px; }
}

@media (max-width: 560px) {
  .topbar nav .optional { display: none; }
  .intro .icon { width: 96px; height: 96px; }
  .intro h1 { font-size: 40px; }
  .steps li { padding: 20px 20px 20px 68px; }
  .steps li::before { left: 18px; top: 18px; }
  .download { padding: 40px 20px; }
}
