/* =====================================================
   Evan Kramer — Personal Site
   Shared Stylesheet
   ===================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #F9F8F6;
  color: #1A1A1A;
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: #4B6F8A;
  text-decoration: none;
}

a:hover {
  color: #3A5F7A;
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Navigation --- */
.site-nav {
  padding: 28px 40px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E8E5DF;
}

.nav-name {
  font-weight: 600;
  font-size: 16px;
  color: #1A1A1A;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-name:hover {
  color: #4B6F8A;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: #666;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1A1A1A;
  text-decoration: none;
}

/* --- Page Container --- */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Home: Hero --- */
.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: #1A1A1A;
}

.hero-text p {
  color: #444;
  margin-bottom: 32px;
  font-size: 17px;
}

.hero-photo {
  display: flex;
  justify-content: flex-end;
}

.hero-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(10%);
}

.photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #D6D3CC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: #888;
  letter-spacing: -0.02em;
}

/* --- Buttons / CTAs --- */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-primary {
  background-color: #4B6F8A;
  color: #fff;
}

.btn-primary:hover {
  background-color: #3A5F7A;
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: #4B6F8A;
  border: 1px solid #C0CEDA;
}

.btn-secondary:hover {
  background-color: #EEF3F7;
  color: #3A5F7A;
  text-decoration: none;
}

/* --- Section dividers --- */
.section-divider {
  border: none;
  border-top: 1px solid #E8E5DF;
  margin: 56px 0;
}

/* --- Home: Teaser Sections --- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 0 72px;
}

.teaser h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}

.teaser p {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}

.teaser a {
  font-size: 15px;
  font-weight: 500;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 64px 0 48px;
}

.page-header h1 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #1A1A1A;
}

.page-header .subtitle {
  font-size: 17px;
  color: #555;
  max-width: 560px;
  line-height: 1.7;
}

/* --- About Page --- */
.about-body {
  padding-bottom: 80px;
}

.about-body p {
  margin-bottom: 24px;
  color: #333;
}

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

.about-photo-block {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 40px;
}

.about-photo-block img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

/* --- Services (Work With Me) --- */
.services-body {
  padding-bottom: 80px;
}

.service-block {
  padding: 40px 0;
  border-top: 1px solid #E8E5DF;
}

.service-block:first-child {
  border-top: none;
  padding-top: 0;
}

.service-block h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: #1A1A1A;
}

.service-block p {
  color: #333;
  margin-bottom: 20px;
}

.service-tag {
  display: inline-block;
  background: #EEF3F7;
  color: #4B6F8A;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.who-its-for {
  background: #F3F1EE;
  border-left: 3px solid #C0CEDA;
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  color: #555;
  margin-top: 20px;
}

/* --- Experience Page --- */
.experience-body {
  padding-bottom: 80px;
}

.role-list {
  list-style: none;
  padding: 0;
}

.role-item {
  padding: 28px 0;
  border-top: 1px solid #E8E5DF;
}

.role-item:first-child {
  border-top: none;
  padding-top: 0;
}

.role-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 16px;
}

.role-org {
  font-weight: 600;
  font-size: 16px;
  color: #1A1A1A;
}

.role-dates {
  font-size: 14px;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.role-title {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

.role-highlights {
  list-style: none;
  padding: 0;
}

.role-highlights li {
  font-size: 15px;
  color: #444;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.65;
}

.role-highlights li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #AAA;
}

.edu-section {
  margin-top: 56px;
}

.edu-section h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 24px;
}

.edu-item {
  padding: 20px 0;
  border-top: 1px solid #E8E5DF;
}

.edu-item:first-of-type {
  border-top: none;
}

.edu-degree {
  font-weight: 600;
  font-size: 16px;
  color: #1A1A1A;
  margin-bottom: 4px;
}

.edu-school {
  font-size: 15px;
  color: #555;
}

.edu-note {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

/* --- Contact Page --- */
.contact-body {
  padding-bottom: 80px;
}

.contact-body p {
  color: #333;
  margin-bottom: 20px;
}

.contact-email {
  font-size: 1.2rem;
  font-weight: 500;
  color: #4B6F8A;
}

.contact-email:hover {
  color: #3A5F7A;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid #E8E5DF;
  padding: 28px 40px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #999;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #999;
  font-size: 14px;
}

.footer-links a:hover {
  color: #4B6F8A;
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .site-nav {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links {
    gap: 20px;
  }

  .container {
    padding: 0 24px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-photo {
    justify-content: flex-start;
    order: -1;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .role-meta {
    flex-direction: column;
    gap: 2px;
  }
}
