/* ============================================
   CSS Variables
   ============================================ */
:root {
  --color-bg: #fff;
  --color-text: #1a1a1a;
  --color-text-secondary: #444;
  --color-link: #1a1a1a;
  --color-focus: #4a90d9;

  --font-body: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
  --max-width: 600px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  padding: 4rem 1.5rem;
}

/* ============================================
   Layout
   ============================================ */
main {
  max-width: var(--max-width);
}

/* ============================================
   Typography
   ============================================ */
h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

/* ============================================
   Links
   ============================================ */
a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--color-text);
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Red "i" letters */
.i {
  color: #8b0000;
}

/* Secret link — invisible */
.s,
.s:visited,
.s:hover,
.s:active {
  color: inherit;
  border-bottom: none;
  cursor: default;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
  body {
    padding: 2.5rem 1.25rem;
  }
}
