/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  /* Brand Colors - from sashinexists.com */
  --color-bg: #030303;
  --color-surface: #171717;
  --color-surface-raised: #1d1d1d;
  --color-text: #b0b0b0;
  --color-text-muted: #888;
  --color-heading: #e0e0e0;
  --color-accent: #52aa5e;
  --color-link: #52aa5e;
  --color-focus: #52aa5e;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Typography */
  --font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --line-height: 1.6;
  --border-radius: 0.5rem;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  padding: var(--space-md);
  font-family: var(--font-family);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

main {
  max-width: 48rem;
  margin: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3 {
  margin-block: 0 var(--space-sm);
  font-weight: 200;
  line-height: 1.2;
  color: var(--color-heading);
}

h1 {
  font-size: 2rem;
}

#page-title {
  color: var(--color-accent);
}

#page-title-link {
  text-decoration: none;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-block: 0 var(--space-sm);
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   Images
   ========================================================================== */

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.block {
  padding: clamp(1.5rem, 5vw, 3rem);
  margin-block: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--border-radius);
}

header {
  text-align: center;
}

footer {
  margin-block-start: var(--space-md);
  font-size: 1rem;
  text-align: center;
}

/* ==========================================================================
   Components: Testimonials
   ========================================================================== */

.testimonial {
  margin-block: var(--space-md);
}

.testimonial-quote {
  margin: 0;
  padding: var(--space-md);
  background: var(--color-surface-raised);
  border-radius: var(--border-radius);
}

.testimonial-quote-text {
  font-size: 1.125rem;
}

.testimonial-quote-author {
  margin-block-start: var(--space-sm);
  font-size: 0.9rem;
}

.testimonial-quote-author-name {
  font-weight: 400;
  color: var(--color-heading);
}

.testimonial-quote-author-details {
  color: var(--color-text-muted);
}

/* ==========================================================================
   Components: Projects
   ========================================================================== */

.project {
  display: block;
  margin-block: var(--space-sm);
  padding: var(--space-sm) 0;
  background: var(--color-surface-raised);
  border-radius: var(--border-radius);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  color: var(--color-text);
}

.project:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.project-name {
  margin-block: 0 var(--space-sm);
}

/* ==========================================================================
   Pages: Project
   ========================================================================== */

.project-buttons {
  display: flex;
  gap: var(--space-md);
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
}

.project-button {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 50%;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  background: var(--color-surface-raised);
  border-radius: var(--border-radius);
  color: var(--color-text);
  text-decoration: none;
}

.project-button-icon {
  height: var(--space-xl);
  width: var(--space-xl);
  flex-shrink: 0;
}

.project-button-text {
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .project-buttons {
    flex-direction: column;
  }

  .project-button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
