/* rdpex.com: the styles of the home page and the 404 page */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-wght-normal.woff2?v=0640890476) format("woff2-variations"),
       url(fonts/space-grotesk-latin-wght-normal.woff2?v=0640890476) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --paper: #ffffff;
  --ink: #0b2341;
  --slate: #4b5b72;
  --mist: #e3e9f1;
  --cyan: #06d0f6;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
  /* the braces of the hero: scale of the drawing below */
  --s: 1;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.top .brand img { height: 34px; width: auto; }
.top .mail { font-weight: 500; white-space: nowrap; }

/* text on the page cannot be selected, except the e-mail addresses: each sits in a box 16px larger on every
   side (the negative margin keeps the layout), so a selection may start a little outside the address */
body { -webkit-user-select: none; user-select: none; }
.addr { display: inline-block; padding: 16px; margin: -16px; -webkit-user-select: text; user-select: text; }
/* pictures cannot be dragged away (Firefox reads draggable="false" on the img itself) */
img { -webkit-user-drag: none; }

/* hero: the headline inside the curly braces of the mark, on a faint grid of dots that fades out at the edges */
.hero { position: relative; padding-top: clamp(40px, 9vw, 120px); padding-bottom: clamp(72px, 12vw, 160px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, #c3cedc 1.6px, transparent 1.7px);
  background-size: 24px 24px; background-position: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 50% 50%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 65% 75% at 50% 50%, #000 25%, transparent 100%);
}
.frame { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(12px, 3vw, 44px); }
.brace { display: flex; flex-direction: column; width: calc(58px * var(--s)); color: var(--ink); }
.brace svg { width: calc(58px * var(--s)); overflow: visible; flex: none; }
.brace .cap { height: calc(28px * var(--s)); }
.brace .beak { height: calc(52px * var(--s)); }
.brace .bar { flex: 1; width: calc(10px * var(--s)); margin-left: calc(22px * var(--s)); background: currentColor; }
.brace.close .in { transform: scaleX(-1); }
.brace .in { display: flex; flex-direction: column; flex: 1; }
.frame-body { padding: calc(40px * var(--s)) 0; }
h1 {
  font-size: clamp(2.25rem, 1.1rem + 4.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 15em;
}
/* the full stop of the headline is the dot of the mark */
.dot { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.06em; border-radius: 50%; background: var(--cyan); }
.lead { margin-top: 28px; max-width: 36em; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.5; color: var(--slate); }
.cta { margin-top: 36px; }
.button {
  display: inline-block; padding: 15px 24px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: #163a66; }

/* sections */
section.part { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); border-top: 1px solid var(--mist); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.005em; }
.part p { color: var(--slate); max-width: 34em; }

.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 48px; }
.build ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.build h3 + p { margin-top: 6px; }
/* a line drawing next to each service */
.build.icons li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start; }
.build.icons li svg { width: 48px; height: 48px; margin-top: 2px; }

/* the four steps on one line, a node for each; the task comes in as the cyan dot */
.flow { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.flow li { position: relative; }
.flow li::before { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; border: 5px solid var(--ink); background: var(--paper); margin-bottom: 22px; }
.flow li:first-child::before { background: var(--cyan); border-color: var(--cyan); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 8px; left: 24px; right: -32px; height: 4px; border-radius: 2px; background: var(--ink); }
.flow h3 + p { margin-top: 8px; }

.contact h2 + p { margin-top: 16px; }
.contact .big {
  display: inline-block; margin-top: 28px;
  font-size: clamp(2rem, 1rem + 4.4vw, 3.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  text-decoration-thickness: 0.07em; text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}

/* the page that answers a missing address (404.html) */
.miss { padding-top: clamp(48px, 10vw, 140px); padding-bottom: 96px; }
.miss p { margin-top: 28px; max-width: 34em; color: var(--slate); }
.miss .button { margin-top: 8px; }

/* footer */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--mist); color: var(--slate); font-size: 0.9375rem; }
.foot .sign { display: flex; align-items: center; gap: 12px; }
.foot .sign img { height: 22px; width: auto; }

@media (max-width: 860px) {
  .build { grid-template-columns: 1fr; }
  /* the line of steps turns vertical */
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow li { padding-left: 40px; }
  .flow li::before { position: absolute; left: 0; top: 4px; margin: 0; }
  .flow li:not(:last-child)::after { top: 28px; bottom: -32px; left: 8px; right: auto; width: 4px; height: auto; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; --s: 0.5; }
  .top .brand img { height: 28px; }
  .top .mail { font-size: 1rem; }
  .button { padding: 13px 18px; font-size: 1rem; }
}

/* one moment on load: the braces close in and the dot lands */
@media (prefers-reduced-motion: no-preference) {
  .brace { animation: brace-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .brace.open { --from: 24px; }
  .brace.close { --from: -24px; }
  .dot { animation: dot-in 0.45s 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
  @keyframes brace-in { from { opacity: 0; transform: translateX(var(--from)); } }
  @keyframes dot-in { from { transform: scale(0); } }
}
