/* Clippa's website, from the "Clippa mockups, clean" design and as Swiss as the app: Geist, shades for hierarchy and no
   outlines, the lime accent for replays and the orange for Clip it. What every page shares; landing.css and legal.css
   add the rest. */

:root {
  --bg: #131313;
  --panel: #1b1b1b;
  --control: #262626;
  --control-hover: #2e2e2e;
  --text: #ededed;
  --muted: #a3a3a3;
  --accent: #dff24a;
  --on-accent: #0a0a0a;
  --mark: #ff6b00;
  --badge-bg: #2a1a0c;
  --badge-text: #ff8a3d;
  --sans: Geist, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  --page: 1120px;
  --gutter: 24px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  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;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--text);
  text-underline-offset: 3px;
  text-decoration-color: #5c5c5c;
}
a:hover {
  text-decoration-color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
}
p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* A fact still to be filled in before publishing: dashed, so it can't be missed. */
.todo {
  padding: 0 4px;
  border: 1px dashed var(--badge-text);
  border-radius: 4px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---- buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--control);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover {
  background: var(--control-hover);
}
.button.accent {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.button.accent:hover {
  background: #e8f76f;
}
.button.big {
  min-height: 52px;
  padding: 0 24px;
  font-size: 17px;
}
.button svg {
  flex: none;
}
/* Discord's own colour and white logo, from discord.com/branding. */
.button.discord {
  background: #5865f2;
  color: #fff;
  font-weight: 600;
}
.button.discord:hover {
  background: #4752c4;
}
.button.discord.icon {
  width: 44px;
  padding: 0;
}
/* Not out yet: shaped like the Download button it will become, but not a link (see README.md). */
.button.soon,
.button.soon:hover {
  background: var(--panel);
  color: var(--muted);
  cursor: default;
}
/* Overwolf's symbol on the Download buttons, from overwolf.com/brand-guidelines: white on black, as Overwolf shows it,
   since its guidelines don't allow recolouring it (assets/overwolf-symbol.svg is the same mark). */
.ow-chip {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -6px;
  border-radius: 6px;
  background: #000;
}
.ow-chip svg {
  width: 17px;
  height: 17px;
}
.button.big .ow-chip {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border-radius: 7px;
}
.button.big .ow-chip svg {
  width: 20px;
  height: 20px;
}

/* ---- header and footer ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(19, 19, 19, 0.92);
  backdrop-filter: blur(10px);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  height: 36px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
}
.nav a:not(.button):hover {
  color: var(--text);
}
.nav .button {
  margin-left: 8px;
}
/* Room for the logo and the button on the narrowest phones. */
@media (max-width: 400px) {
  .nav .button {
    margin-left: 0;
    padding: 0 12px;
  }
}
@media (max-width: 340px) {
  .nav .ow-chip {
    display: none;
  }
}
/* The menu's words go where all four no longer fit beside the logo and buttons. */
@media (max-width: 820px) {
  .nav a:not(.button) {
    display: none;
  }
}

.foot {
  margin-top: 96px;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.foot .row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.foot img {
  height: 28px;
  width: auto;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--text);
}
@media (max-width: 600px) {
  .foot .row {
    justify-content: center;
  }
  .foot nav {
    justify-content: center;
  }
}
.foot .small {
  max-width: 820px;
  margin: 0 auto;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}
.foot .small + .small {
  margin-top: 8px;
}
