/* norefsec.net landing page. Adjust the tokens below to match norefsec.uk. */
:root {
  --bg:       #10151c;
  --surface:  #171e27;
  --rule:     #26303c;
  --text:     #d3dae3;
  --muted:    #8793a2;
  --accent:   #6cc3c9;
  --accent-2: #e2b35e;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) 1.5rem 3rem;
}

/* Shell prompt */
.prompt {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 2rem;
  white-space: nowrap;
  overflow-x: auto;
}
.prompt .user { color: var(--accent); }
.prompt .path { color: var(--accent-2); }
.prompt .sym  { margin: 0 0.5ch 0 0.25ch; }

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 0.3ch;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Type */
h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

h2 {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }

.aside { color: var(--muted); }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.05em 0.35em;
}

/* Blog pointer */
.blog {
  margin: 2.5rem 0;
  padding: 1.5rem 0 0;
  border-top: 1px dashed var(--rule);
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 4px;
  text-decoration: none;
}
.button:hover { background: var(--text); }

/* Footer / social */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { margin-bottom: 0.75rem; }

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}
.social a:hover { color: var(--accent); }
.social svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* Focus + motion */
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
