/* =========================================================
   here, bruh. - Shared Site Styles
   ========================================================= */

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background: #111;
  color: #f5f5f5;
}

a {
  color: inherit;
}

main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}


/* ---------- Typography ---------- */

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 3rem;
  color: #aaa;
}

.small {
  font-size: 0.95rem;
  color: #999;
}


/* ---------- Landing Page ---------- */

.landing {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.landing main {
  max-width: 700px;
  padding: 40px 24px;
}

.landing h1 {
  text-transform: lowercase;
  margin-bottom: 2rem;
}

.landing p {
  font-size: 1.4rem;
}


/* ---------- Buttons ---------- */

.button {
  display: inline-block;

  margin: 12px 6px;
  padding: 16px 28px;

  background: #f5f5f5;
  color: #111;

  border: 1px solid #f5f5f5;
  border-radius: 8px;

  text-decoration: none;
  font-weight: bold;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #ddd;
}

.button.secondary {
  background: transparent;
  color: #f5f5f5;
}

.button.secondary:hover {
  background: #222;
}


/* ---------- Projects ---------- */

.projects {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;

  min-height: 190px;

  padding: 24px;

  background: #1c1c1c;

  border: 1px solid #333;
  border-radius: 12px;

  color: #f5f5f5;
  text-decoration: none;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #777;
  background: #202020;
}

.card h2 {
  margin-bottom: 10px;
}

.card p {
  margin-top: 0;
  color: #bbb;
  flex-grow: 1;
}

.status {
  display: inline-block;

  margin-top: 12px;

  font-size: 0.85rem;
  color: #888;
}


/* ---------- Navigation ---------- */

.back {
  display: inline-block;

  margin-top: 40px;

  color: #aaa;

  text-decoration: none;

  transition: color 0.15s ease;
}

.back:hover {
  color: #fff;
}


/* ---------- Utility ---------- */

.center {
  text-align: center;
}

.muted {
  color: #999;
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  main {
    padding: 40px 20px;
  }

  .landing p {
    font-size: 1.2rem;
  }

  .button {
    display: block;
    width: 100%;
    margin: 12px 0;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}