/* Global Reset & Variables
   Stop relying on browser defaults. We set explicit variables for a modern dark theme. 
*/
:root {
  --bg-color: #0f172a;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #38bdf8;
  --accent-hover: #0284c7;
  --border-color: #1e293b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Layout & Typography 
   Constraining the width so your text doesn't stretch across massive monitors.
*/
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Headings Hierarchy
   Giving visual weight to your structure. 
*/
h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--accent-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

/* Interactive Links 
   Turning your raw text links into touch-friendly, interactive elements.
*/
a {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  margin: 0.3rem 0.2rem;
  border-radius: 6px;
  background-color: var(--border-color);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s ease-in-out;
}

a:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

/* Structural Elements
*/
hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 2.5rem 0;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
