@import 'variables.css';
@import 'components/buttons.css';
@import 'components/navigation.css';

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base */
html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Layout */
.container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 400px) {
  .container {
    width: 85%;
    padding: 0;
  }
}

@media (min-width: 550px) {
  .container {
    width: 80%;
  }
}

main {
  flex: 1;
  padding: var(--spacing-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

h1 {
  margin-top: 0;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

@media (min-width: 550px) {
  h1 {
    font-size: 48px;
  }
}

p {
  margin-top: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Links */
a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

a:active,
a:hover {
  outline: 0;
}

/* Code */
code {
  padding: 0.2rem 0.5rem;
  margin: 0 0.2rem;
  font-size: 90%;
  white-space: nowrap;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre;
}

/* Images */
img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

/* Avatar */
.avatar {
  width: 128px;
  height: 128px;
  object-fit: cover;
  background-position: center;
  border-radius: 50%;
}

/* Hero section */
.hero {
  text-align: center;
}

.hero-avatar {
  display: block;
  width: 150px;
  height: 150px;
  border: 4px solid var(--border-color);
  margin: 0 auto 2rem auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Footer */
footer {
  text-align: center;
  padding: var(--spacing-lg) 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Misc */
hr {
  margin-top: 3rem;
  margin-bottom: 3.5rem;
  border-width: 0;
  border-top: 1px solid var(--border-color);
}

/* Privacy page */
.privacy-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.privacy-content h2 {
  margin-top: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-sm);
}
