/* EdgeRift — the landing page for EdgeRift's other domains (edgerift.io, .net, .cloud), written by
   bin/make-domain-pages.py from the edgerift.com design: its tokens, Rajdhani display caps with the red bar, the
   card-art strip under a white hero, and a quiet footer. Edit the script, not this file. */
@font-face { font-family: Rajdhani; font-weight: 600; font-display: swap; src: url("fonts/rajdhani-600-latin.woff2") format("woff2"); }
@font-face { font-family: Rajdhani; font-weight: 700; font-display: swap; src: url("fonts/rajdhani-700-latin.woff2") format("woff2"); }
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url("fonts/roboto-400-latin.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --c-bg: #FFFFFF; --c-band: #F5F5F7; --c-ink: #1D1D1F; --c-muted: #6E6E73; --c-hairline: #D2D2D7;
  --c-red: #DE2F2F; --c-red-text: #C42828; --c-red-press: #C42828; --c-on-red: #FFFFFF; --c-art: #FFFFFF;
  --f-display: Rajdhani, "Arial Narrow", sans-serif;
  --f-text: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-symbol: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", "Segoe UI", sans-serif;
  --t-hero: clamp(40px, 3.05vw + 28px, 72px);
  --t-sub: clamp(19px, .5vw + 17px, 24px);
  --gutter: clamp(16px, 2.5vw + 6px, 40px);
  --header-h: 56px;
  --ease: cubic-bezier(.2, 0, 0, 1);
}
@media (min-width: 768px) { :root { --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--c-bg); color: var(--c-ink); font: 17px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; border-radius: 4px; }

/* Header: the logo (a link to edgerift.com) and one quiet link */
.bar { border-bottom: 1px solid var(--c-hairline); }
.bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter);
}
.logo { display: inline-flex; padding: 6px 0; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.logo > * { pointer-events: none; -webkit-user-drag: none; }
.logo img { height: 28px; width: auto; }
@media (min-width: 768px) { .logo img { height: 36px; } }

/* Text CTA (EdgeRift.com ›) and the red button */
.cta {
  display: inline-block; padding-block: 6px;
  font: 600 16px/1.2 var(--f-display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-red-text);
}
.cta:hover, .cta:focus-visible { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .24em; }
.cta > [aria-hidden="true"], .btn > [aria-hidden="true"] { font-family: var(--f-symbol); letter-spacing: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  height: 44px; padding: 0 22px; border-radius: 6px; background: var(--c-red); color: var(--c-on-red);
  font: 700 16px/1 var(--f-display); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
  transition: background-color 120ms var(--ease);
}
.btn:hover { background: var(--c-red-press); }

/* Hero: the domain as a small ink eyebrow (the H1), the display line with the EA red bar, the sub, the way on */
.hero { padding: clamp(48px, 4vw + 32px, 96px) var(--gutter) 0; text-align: center; }
.eyebrow {
  font: 700 clamp(15px, .38vw + 13.5px, 19px)/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase;
}
.display {
  margin-top: 12px; font: 700 var(--t-hero)/1 var(--f-display); letter-spacing: -.5px; text-transform: uppercase;
  text-wrap: balance;
}
@media (min-width: 1024px) { .display { letter-spacing: -1px; } }
.display::after {
  content: ""; display: block; width: 60px; height: 4px; margin: 14px auto 0; border-radius: 2px; background: var(--c-red);
}
.sub { max-width: 34em; margin: 20px auto 0; font-size: var(--t-sub); line-height: 1.3; color: var(--c-ink); text-wrap: balance; }
.go { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(24px, 1vw + 20px, 32px); }
.countdown { min-height: 1.5em; font-size: 15px; color: var(--c-muted); }
.countdown button {
  margin-left: .35em; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--c-red-text); text-decoration: underline; text-underline-offset: .2em;
}
.countdown button:hover { color: var(--c-ink); }

/* The card-art strip: full bleed, at its own 2320:720 shape from tablet up; a taller centre crop on phones */
.art { margin: clamp(40px, 1.5vw + 34px, 56px) calc(var(--gutter) * -1) 0; aspect-ratio: 2320 / 720; background: var(--c-art); overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 767px) {
  .art { aspect-ratio: auto; height: 260px; }
  .art img { object-fit: cover; object-position: 50% 50%; }
}

/* Careers nudge: for the curious, under the art */
.join { padding: clamp(56px, 4vw + 40px, 96px) var(--gutter); text-align: center; }
.join__title { font: 700 clamp(28px, 1.14vw + 22px, 40px)/1.05 var(--f-display); letter-spacing: -.5px; text-transform: uppercase; text-wrap: balance; }
.join p { max-width: 30em; margin: 12px auto 0; font-size: clamp(17px, .38vw + 15.5px, 21px); color: var(--c-muted); text-wrap: balance; }
.join .cta { margin-top: 16px; }

/* Footer */
.foot { border-top: 1px solid var(--c-hairline); background: var(--c-band); }
.foot__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  max-width: 1280px; margin-inline: auto; padding: 20px var(--gutter); font-size: 13px; color: var(--c-muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a:hover { color: var(--c-ink); text-decoration: underline; }
@media (max-width: 767px) { .foot__inner { flex-direction: column; text-align: center; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
