/* ============================================
   Miranda Bouck — Portfolio
   ============================================ */

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

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-border: #e0e0e0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 60rem;
  --nav-height: 5.625rem;
  --col-left: 11rem;
  --col-gap: 3rem;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6rem;
}

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

/* ============================================
   Header & Navigation
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-bg);
  height: var(--nav-height);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-logo:hover {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-muted);
  transition: color 0.2s, opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2.5rem) 2rem 6rem;
}

/* ============================================
   Home Page
   ============================================ */

.home-bio {
  max-width: 42.5rem;
}

.home-bio p {
  font-size: 1rem;
  line-height: 1.75rem;
  margin-bottom: 1.75rem;
}

.home-bio p:last-of-type {
  margin-bottom: 0;
}

/* Shared link affordance */

.home-bio a,
.entry-title a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.home-bio a:hover,
.entry-title a:hover {
  opacity: 0.5;
}

/* ============================================
   Sections (Resume & Work)
   ============================================ */

section {
  margin-bottom: 4rem;
}

section:last-child {
  margin-bottom: 0;
}

section > h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}

/* Two-column grid */

.experience-entry,
.list-entry {
  display: grid;
  grid-template-columns: var(--col-left) 1fr;
  gap: 0 var(--col-gap);
}

.experience-entry.single-col {
  display: block;
}

.experience-entry {
  margin-bottom: 2.5rem;
}

.experience-entry:last-child {
  margin-bottom: 0;
}

.list-entry {
  margin-bottom: 0.85rem;
  line-height: 1.5rem;
}

.list-entry:last-child {
  margin-bottom: 0;
}

/* Left column */

.entry-meta {
  padding-top: 0.1rem;
}

.entry-date,
.entry-company,
.list-date {
  font-size: 1rem;
  color: var(--color-muted);
}

.entry-date {
  line-height: 1.5rem;
  white-space: nowrap;
}

.entry-company {
  margin-top: 0.15rem;
}

.list-date {
  padding-top: 0.1rem;
}

/* Right column */

.entry-title {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  line-height: 1.3rem;
}

.work-lock {
  font-size: 0.75em;
  vertical-align: top;
  filter: grayscale(1);
  opacity: 0.8;
}

.entry-bullets {
  list-style: none;
  padding: 0;
}

.entry-bullets li,
.entry-description {
  font-size: 1rem;
  color: #333;
  line-height: 1.65rem;
}

.entry-bullets li {
  margin-bottom: 0.5rem;
}

.entry-description {
  margin-top: 0.4rem;
}

/* Grouped roles */

.entry-roles {
  list-style: none;
  margin-bottom: 0.5rem;
}

.entry-roles li {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7rem;
  font-weight: 500;
}

.entry-roles .role-title {
  color: var(--color-text);
}

/* Shared small muted label */

.list-content .sub,
.testimonial cite {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
}

.testimonial cite {
  font-style: normal;
}

/* Testimonials */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.testimonial blockquote {
  font-size: 0.95rem;
  line-height: 1.75rem;
  color: #333;
  margin-bottom: 0.5rem;
}

/* ============================================
   Writing / Post
   ============================================ */

.post {
  max-width: 42.5rem;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.post-date {
  display: block;
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.post-body p {
  font-size: 1rem;
  line-height: 1.75rem;
  margin-bottom: 1.75rem;
}

.post-body p:last-child {
  margin-bottom: 0;
}

/* Writing list link affordance */

.list-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.list-content a:hover {
  opacity: 0.5;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 43.75em) {
  main {
    padding-top: calc(var(--nav-height) + 3rem);
  }

  .experience-entry,
  .list-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .entry-meta {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
  }

  .entry-company::before {
    content: '·';
    margin-right: 0.5rem;
  }

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