/* ========================================
   cobyweiss.com — mint banner + card grid
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

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

:root {
  --color-brand: #3DD6C8;
  --color-bg: #ffffff;
  --color-card-bg: #F5F5F5;
  --color-card-hover: #EDEDEE;
  --color-text: #1A1A1A;
  --color-text-mid: #555555;
  --color-text-soft: #999999;
  --color-border: rgba(0, 0, 0, 0.08);
  --font-primary: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Header Banner ---- */

.site-banner {
  background: var(--color-brand);
  width: 100%;
  padding: 64px 0;
}

.banner-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.banner-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.banner-email {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
  white-space: nowrap;
}

.banner-email:hover {
  color: #ffffff;
}

/* ---- Project Grid ---- */

.projects {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px 0;
  flex: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* ---- Project Card ---- */

.project-card {
  display: flex;
  align-items: stretch;
  border: none;
  border-radius: 12px;
  padding: 18px;
  transition: background 0.2s ease, box-shadow 0.25s ease;
  background: var(--color-card-bg);
  gap: 16px;
}

a.project-card {
  cursor: pointer;
}

a.project-card:hover {
  background: var(--color-card-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Thumbnail placeholder */
.card-thumb {
  width: 140px;
  min-width: 140px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8E8E8;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb-letter {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-brand);
  user-select: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-mid);
  margin-top: 4px;
  line-height: 1.5;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  margin-top: 8px;
}

/* ---- Footer ---- */

.site-footer {
  max-width: 1000px;
  width: 100%;
  margin: 80px auto 0;
  padding: 32px 32px 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.footer-links {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-mid);
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-brand);
}

.footer-links .sep {
  margin: 0 0.5rem;
  color: var(--color-text-soft);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ccc;
  margin-top: 12px;
}

/* ---- Sub-pages ---- */

.back-link {
  display: inline-block;
  padding: 32px 32px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-soft);
  transition: color 0.2s;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.back-link:hover {
  color: var(--color-brand);
}

.subpage {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px 80px;
  flex: 1;
}

.subpage h1 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.subpage ul {
  list-style: none;
}

.subpage li {
  padding: 10px 0;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text-mid);
  border-bottom: 1px solid var(--color-border);
}

.subpage li a {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s;
}

.subpage li a:hover {
  color: var(--color-brand);
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .site-banner {
    padding: 48px 0;
  }

  .banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    gap: 12px;
  }

  .projects {
    padding: 32px 20px 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    padding: 16px;
  }

  .card-thumb {
    width: 100px;
    min-width: 100px;
  }

  .card-thumb-letter {
    font-size: 2rem;
  }

  .site-footer {
    margin-top: 48px;
    padding: 24px 20px 40px;
  }

  .back-link {
    padding-left: 20px;
    padding-right: 20px;
  }

  .subpage {
    padding-left: 20px;
    padding-right: 20px;
  }
}
