/* winmedic.ammarnashar.dev: dark with a little green. No external sources. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e1110;
  --bg-2: #141816;
  --card: #171c19;
  --line: #262d29;
  --text: #e9eeea;
  --muted: #9aa69e;
  --green: #4ccb6b;
  --green-deep: #0f7b0f;
  --radius: 12px;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Geist Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #7fe097; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: 0.9em; }
p code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; white-space: nowrap; }

.sprite { position: absolute; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.green { color: var(--green); }

.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #06210d; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(14, 17, 16, 0.92); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: var(--text); }
nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
.nav-gh { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 0.35rem 0.75rem; }
.nav-gh:hover { border-color: var(--muted); }
@media (max-width: 720px) {
  nav a:not(.nav-gh) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kicker { color: var(--green); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 1rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.lead { color: var(--muted); font-size: 1.15rem; margin-top: 1.25rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.fine { color: var(--muted); font-size: 0.875rem; margin-top: 1.1rem; }
.hero-shot img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0.65rem 1.2rem;
  border: 1px solid transparent; border-radius: 10px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--green); color: #06210d; }
.btn-primary:hover { background: #6bdc86; color: #06210d; }
.btn-cmd { background: var(--bg-2); color: var(--text); border-color: var(--line); max-width: 100%; }
.btn-cmd:hover { border-color: var(--muted); }
.btn-cmd code { font-size: 0.875rem; overflow-wrap: anywhere; text-align: left; }
.btn-cmd .i { color: var(--muted); }

/* ---------- Sections ---------- */
.block { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
.sub { color: var(--muted); margin-top: 0.5rem; }
h3 { font-size: 1.05rem; font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.steps li, .grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.steps p, .grid p { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }
.num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.9rem;
  border: 1px solid var(--green-deep); border-radius: 50%;
  color: var(--green); font: 600 0.95rem var(--mono);
}

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.grid-2 li { border-left: 3px solid var(--green-deep); }
.more { color: var(--muted); font-size: 0.95rem; margin-top: 1.5rem; }
@media (max-width: 900px) {
  .steps, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .steps, .grid { grid-template-columns: 1fr; }
}

.cta { background: var(--bg-2); text-align: center; }
.cta .actions { justify-content: center; }
.cta .fine { max-width: 40em; margin-inline: auto; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: 0.9rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.foot a { color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem);
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 1rem; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
