/* Janet Portfolio Starter */
:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe4ee;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --surface: #f8fafc;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(15,23,42,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--ink);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1100px, calc(100% - 32px));
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  color: white;
  background: var(--bg);
  padding: 48px 0 36px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  opacity: .75;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.02;
}

h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.lede, .summary {
  max-width: 70ch;
  line-height: 1.6;
  margin-top: 14px;
  opacity: .95;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 40px 0 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card, .project {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: white;
}

.card h3, .project h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 22px;
}

.muted {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 10px;
}

.cta-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  background: var(--accent);
  color: white;
}
/*
.button.secondary {
  background: transparent;
  color: black;
  border-color: rgba(0,0,0,.28);
}
*/

.media {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 18px;
  align-items: start;
}

.preview {
  background: #f6f7f9;
  border-radius: 8px;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.project .audience {
  margin: 4px 0 2px;
  font-weight: 600;
}

.project h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.project p {
  margin: 0;
  line-height: 1.45;
}

.project:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.project .muted {
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 2px 0 4px;
}

.project > .media > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.panel .button.secondary,
.project .button.secondary,
.project-links .button.secondary {
  color: #10213f;
  border-color: rgba(16, 33, 63, 0.24);
  background: #fff;
}

.panel .button.secondary:hover,
.project .button.secondary:hover,
.project-links .button.secondary:hover {
  background: rgba(16, 33, 63, 0.06);
}

.stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: white;
  opacity: .9;
}

.media {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 20px;
  align-items: start;
}

/* image sizing */
.media > img.preview {
  width: 280px;
  max-width: 100%;
}

/* allow text column to shrink properly */
.media > div {
  min-width: 0;
}

/* if there is no image, let the text span full width */
.media > div:only-child {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {

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

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

}