/* =========================
   BASIC SETTINGS
   ========================= */

:root {
  --bg: #fafafa;
  --white: #fff;
  --text: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --accent: #18181b;

  --width: 760px;
  --wide: 1100px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  color: #18181b;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;

  background: #1c1a1e;
}


/* Darkened background image */
body::before {
  content: "";

  position: fixed;
  inset: 0;

  z-index: -1;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url("https://lawrenceandshannen.com/bg.jpg");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  pointer-events: none;
}


/* =========================
   TYPOGRAPHY
   ========================= */

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.5rem;
}

.muted,
.lead {
  color: var(--muted);
}

.lead {
  font-size: 1.15rem;
}


/* =========================
   LINKS
   ========================= */

a {
  color: inherit;
}

a:hover {
  color: var(--muted);
}


/* =========================
   LAYOUT
   ========================= */

.container {
  width: min(calc(100% - 2rem), var(--width));
  margin: auto;
}

.container-wide {
  width: min(calc(100% - 2rem), var(--wide));
  margin: auto;
}

.section {
  padding: 6rem 0;
}


/* =========================
   HEADER
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;

  border-bottom: 1px solid var(--border);

  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 64px;
}

.logo {
  font-weight: 600;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;

  margin: 0;
  padding: 0;

  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}


/* =========================
   HERO
   ========================= */

.hero {
  display: flex;
  align-items: center;

  min-height: 70vh;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  margin: 1rem 0;
}

.hero .lead {
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}


/* =========================
   BUTTONS
   ========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.65rem 1rem;

  border: 1px solid var(--border);
  border-radius: 6px;

  background: var(--white);
  color: var(--text);

  text-decoration: none;

  transition: 0.15s ease;
}

.button:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.button-primary:hover {
  background: #3f3f46;
  color: white;
}


/* =========================
   ABOUT
   ========================= */

.intro {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
}

.intro-label {
  color: var(--muted);

  font-size: 0.8rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-content {
  font-size: 1.1rem;
}


/* =========================
   PROJECTS
   ========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 1px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  overflow: hidden;

  background: var(--border);
}

.card {
  padding: 2rem;

  background: var(--white);

  text-decoration: none;

  transition: 0.15s ease;
}

.card:hover {
  background: #f8f8f8;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  gap: 0.5rem;

  margin-top: 1.5rem;

  color: var(--muted);
  font-size: 0.8rem;
}


/* =========================
   IMAGES
   ========================= */

.image {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.image img {
  display: block;
  width: 100%;
}


/* =========================
   EXPERIENCE
   ========================= */

.list {
  border-top: 1px solid var(--border);
}

.list-item {
  display: grid;
  grid-template-columns: 140px 1fr;

  gap: 2rem;

  padding: 1.5rem 0;

  border-bottom: 1px solid var(--border);
}

.list-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.list-content h3 {
  margin-bottom: 0.5rem;
}

.list-content p {
  color: var(--muted);
  font-size: 0.95rem;
}


/* =========================
   TAGS
   ========================= */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.6rem;

  color: var(--muted);
  background: #f4f4f5;

  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.75rem;
}


/* =========================
   CONTACT
   ========================= */

.contact {
  padding: 3rem;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact h2 {
  margin-bottom: 0.5rem;
}


/* =========================
   FOOTER
   ========================= */

.site-footer {
  padding: 2rem 0;

  border-top: 1px solid var(--border);

  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
}


/* =========================
   DARK MODE
   ========================= */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --white: #111113;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --border: #27272a;
    --accent: #fafafa;
  }

  .site-header {
    background: rgba(9, 9, 11, 0.85);
  }

  .button-primary {
    color: #09090b;
  }

  .button-primary:hover {
    color: #09090b;
  }

  .card:hover {
    background: #18181b;
  }

  .tag {
    background: #18181b;
  }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

  .section {
    padding: 4rem 0;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .list-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}


@media (max-width: 480px) {

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact {
    padding: 2rem;
  }
}
