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

/**
 * CSS Custom Properties
 * Generated by Color Scale I/O Figma Plugin
 *
 * Colors generated using contrast-based color generation.
 */
:root {
  /* Theme Settings */
  --theme-lightness: 100;
  --theme-contrast: 1;
  --theme-saturation: 100;
  --theme-formula: "wcag2";
  --theme-output: "HEX";
  /* Background */
  --background: #F2F0EB;
  /* Color Scales */
  --color-1-100: #F4EDED; /* Ratio: 1.00 */
  --color-1-200: #F9C8B5; /* Ratio: 1.32 */
  --color-1-300: #E55313; /* Ratio: 3.30 */
  --color-1-400: #CE2D17; /* Ratio: 4.55 */
  --color-1-500: #9F0300; /* Ratio: 7.40 */
  --color-1-600: #1F0F11; /* Ratio: 16.25 */
  --color-2-100: #F1EFEA; /* Ratio: 1.00 */
  --color-2-200: #D4D2CC; /* Ratio: 1.32 */
  --color-2-300: #89827E; /* Ratio: 3.30 */
  --color-2-400: #726B68; /* Ratio: 4.55 */
  --color-2-500: #524C4A; /* Ratio: 7.40 */
  --color-2-600: #151312; /* Ratio: 16.25 */
  /* ============================================
       Typography & Layout
       ============================================ */
  /* Typography */
  --font-family-text: "Stack Sans Text", 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-family-headline: "Stack Sans Headline", "Stack Sans Text", 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height: 1.6;
  /* Font Weights - Light Mode */
  --font-weight-thin: 150;
  --font-weight-normal: 350;
  --font-weight-medium: 470;
  --font-weight-bold: 520;
  /* Layout */
  --spacing-unit: 24px;
  --border-width: 1px;
  --max-width: 960px;
  /* ============================================
       Semantic Colors - Light Mode (Default)
       ============================================ */
  --color-bg: var(--color-2-200);
  --color-text: var(--color-2-500);
  --color-title: var(--color-2-400);
  --color-accent: var(--color-1-400);
  --color-line: var(--color-1-300);
}

/* ============================================
     Semantic Colors - Dark Mode
     ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: var(--color-2-600);
    --color-text: var(--color-2-200);
    --color-title: var(--color-2-300);
    --color-accent: var(--color-1-300);
    --color-line: var(--color-1-300);
    /* Font Weights - Dark Mode (lighter for better readability) */
    --font-weight-thin: 180;
    --font-weight-normal: 380;
    --font-weight-medium: 500;
    --font-weight-bold: 550;
  }
}
/* Base Styles */
html {
  font-size: var(--font-size-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: var(--line-height);
  min-height: 100vh;
  padding: calc(var(--spacing-unit) * 2);
  text-wrap-style: balance;
  display: flex;
  justify-content: center;
  letter-spacing: 0.01em;
}

/* One Size Rule Enforcement */
h1, h2, h3, h4, h5, h6, p, li, span, div, a {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
}

/* Layout Classes */
.grid-container {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  margin-block-start: calc(var(--spacing-unit) * 4);
  gap: var(--spacing-unit);
}

.header {
  font-family: var(--font-family-headline);
  display: flex;
  flex-direction: column;
}
.header h1 {
  letter-spacing: 0.02em;
  color: var(--color-title);
  font-weight: var(--font-weight-thin);
  font-size: 1.5rem;
}

.separator {
  max-width: 40ch;
  height: var(--border-width);
  background-color: var(--color-line);
  margin-top: var(--spacing-unit);
  margin-bottom: var(--spacing-unit);
}

.bio {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
  max-width: 40ch; /* Optimal reading measure */
}

.contact {
  margin-block-start: calc(var(--spacing-unit) * 4);
  border-block-start: 1px solid var(--color-accent);
  padding-block-start: var(--spacing-unit);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-unit);
}
.contact a,
.contact .copyright {
  font-size: 0.75rem !important;
}

.link-list {
  list-style: none;
  display: flex;
  gap: calc(var(--spacing-unit) * 0.5);
  flex-wrap: wrap;
}

.copyright {
  color: var(--color-text);
  opacity: 0.8;
}

.bold {
  font-weight: var(--font-weight-bold);
}

/* Links */
a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
a:hover {
  color: var(--color-accent);
  border-bottom: 1px dashed var(--color-text);
}