/* mrfy.io — plain CSS, no build step, no external requests. */

:root {
  color-scheme: dark;

  --bg:        #0d1117;
  --bg-raised: #161b22;
  --border:    #272e38;
  --border-hi: #3d4754;

  --fg:        #e6edf3;
  --fg-muted:  #9198a1;
  --fg-dim:    #6e7681;

  --accent:    #3fb950;
  --link:      #58a6ff;

  --radius:    12px;
  --wrap:      58rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle gradient wash at the top, so the page doesn't look flat. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 32rem;
  background: radial-gradient(60rem 22rem at 50% -8rem,
              rgba(63, 185, 80, .10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .875em;
  background: rgba(110, 118, 129, .18);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .12em .42em;
}

/* ---------- layout ---------- */

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: .85rem;
}
footer p { margin: 0; }

/* ---------- header ---------- */

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--fg);
}
.brand:hover { text-decoration: none; color: var(--fg); }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: .4rem;
  border-radius: 7px;
  background: var(--accent);
  color: #05130a;
  font-weight: 800;
  font-size: .8rem;
  vertical-align: -2px;
}

.accent { color: var(--accent); }

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: .9rem;
}
.site-header nav a { color: var(--fg-muted); }
.site-header nav a:hover { color: var(--fg); text-decoration: none; }

/* ---------- hero ---------- */

.hero { margin-bottom: 5rem; }

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 700;
}

.lede {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: 1.075rem;
  color: var(--fg-muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: .5rem .85rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--fg-muted);
}

.dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 185, 80, .18);
}

/* ---------- sections ---------- */

section + section { margin-top: 5rem; }

h2 {
  margin: 0 0 1.5rem;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-dim);
}

section p {
  max-width: 40rem;
  color: var(--fg-muted);
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  display: block;
  padding: 1.35rem 1.4rem 1.2rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  text-decoration: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.card p {
  margin: 0;
  font-size: .9rem;
  color: var(--fg-muted);
}

.card.muted { opacity: .72; }
.card.muted:hover { transform: none; border-color: var(--border); }

.arrow {
  position: absolute;
  right: 1.35rem;
  bottom: 1.2rem;
  color: var(--fg-dim);
  transition: transform .15s ease, color .15s ease;
}
.card:hover .arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.tag {
  flex: none;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid var(--border-hi);
  color: var(--fg-dim);
}
.tag.lan {
  border-color: rgba(63, 185, 80, .35);
  color: var(--accent);
  background: rgba(63, 185, 80, .08);
}

/* ---------- small screens ---------- */

@media (max-width: 34rem) {
  main { padding-top: 3rem; }
  .hero { margin-bottom: 3.5rem; }
  section + section { margin-top: 3.5rem; }
  .site-header nav { display: none; }
}

/* Honour reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
