/* blnk · goblnk.com: the Grid design (website/design-directions/Swiss.dc.html), as a real page. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0E2E63;
  --navy-hover: #1A4A94;
  --paper: #F5F7FA;
  --dot: #5AC8FA;
  --rule: #C9D2E0;
  --ink-2: #3E4C66;
  --ink-3: #4A5876;
  --gutter: 40px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--navy); }
a:hover { color: var(--navy-hover); }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--dot); color: var(--navy); }

/* The dot, and its blink every 5 seconds */
.dot {
  display: inline-block;
  width: 0.37em;
  height: 0.37em;
  margin-left: 0.08em;
  border-radius: 999px;
  background: var(--dot);
}
@keyframes blnk { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.1); } }
.blink { animation: blnk 5s ease-in-out infinite; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mono { font-family: var(--mono); }
.plain { text-decoration: none; }

/* The top rule: the logo and three facts, four columns */
.top {
  margin: 28px var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.logo {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  text-decoration: none;
}
.facts { display: contents; }

/* The headline and the company line */
.hero {
  flex: 1;
  padding: 72px var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-end;
  align-content: flex-end;
  justify-content: space-between;
}
h1 {
  margin: 0;
  flex: 1 1 560px;
  max-width: 880px;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 .dot { width: 0.28em; height: 0.28em; margin-left: 0.06em; }
.side {
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.cta .mono { font-size: 13px; letter-spacing: 0.02em; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--navy-hover); color: #FFFFFF; }

/* The legal line, then the giant blnk● bleeding off the bottom */
.legal {
  margin: 56px var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.giant {
  /* the b's stem on the grid's left edge: Inter ExtraBold's b starts 0.057em into its box (measured) */
  padding: 8px 0 0 calc(var(--gutter) - 0.057em);
  margin-bottom: -0.06em;
  font-size: clamp(150px, 34vw, 520px);
  line-height: 0.78;
  font-weight: 800;
  letter-spacing: -0.065em;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.giant .dot { margin-left: 0.1em; }

@media (max-width: 899px) {
  .top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone: the logo on the left, the three facts stacked on the right; the company line stacked */
@media (max-width: 640px) {
  :root { --gutter: 24px; }
  .top { margin-top: 22px; grid-template-columns: minmax(max-content, 1fr) max-content; gap: 0 16px; }
  .facts { display: flex; flex-direction: column; gap: 6px; }
  .hero { padding-top: 52px; }
  .legal { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .company { display: contents; }
  .company .sep { display: none; }
  .company > span { grid-column: 1 / -1; }
  .company > span:first-child { grid-column: 1; grid-row: 1; }
  .domain { grid-column: 2; grid-row: 1; }
  .giant { font-size: 38vw; } /* about 150px at 390, and the dot still whole at 320 */
}
