@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0B0C0D;
  --panel: #151618;
  --panel-hover: #1A1B1E;
  --line: #27282C;
  --line-hover: #3C3D43;
  --edge: #2C2D32;
  --text: #EDEDEA;
  --text-soft: #A8A9A4;
  --text-faint: #8F908A;
  --out: #59D98E;
  --making: #F2B23E;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  margin: 0;
  padding: clamp(3rem, 8vh, 5rem) 1.25rem 2.5rem;
  background: var(--ground);
  color: var(--text);
  font: 400 1rem/1.5 "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul { margin: 0; padding: 0; }

::selection { background: var(--text); color: var(--ground); }

a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

h1 { font-size: 2.25rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }

header p { margin-top: .6rem; color: var(--text-soft); font-size: 1.0625rem; }

main { width: 100%; max-width: 50rem; margin-top: clamp(2rem, 5vh, 3rem); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .875rem; list-style: none; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.375rem 1.5rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 var(--edge);
  text-align: left;
  transition: background-color .2s, border-color .2s;
}

.card:hover { background: var(--panel-hover); border-color: var(--line-hover); }
.card:has(a:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }

.status { display: flex; align-items: center; gap: .5rem; color: var(--text-soft); font-size: .8125rem; }

.light { width: 7px; height: 7px; border-radius: 50%; background: var(--out); box-shadow: 0 0 6px 1px rgb(89 217 142 / .55); }
.light--making { background: var(--making); box-shadow: 0 0 6px 1px rgb(242 178 62 / .55); }

h2 { margin-top: 1.125rem; font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }

/* The whole card is the link */
h2 a { text-decoration: none; }
h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
h2 a:focus-visible { outline: none; }

.about { flex: 1; margin-top: .5rem; color: var(--text-soft); font-size: .9375rem; text-wrap: pretty; }

.site { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1rem; margin-top: 1.25rem; padding-top: .875rem; border-top: 1px solid var(--line); font-size: .875rem; }

.domain { display: flex; align-items: center; gap: .375rem; }

.revenue { color: var(--text-soft); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.revenue[hidden] { display: none; }

.arrow { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.card:hover .arrow { transform: translateX(3px); }

footer { margin-top: clamp(2rem, 5vh, 3rem); color: var(--text-faint); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
  .card, .arrow { transition: none; }
}
