/* Nathan Hutchison Portfolio - Editorial Design */

/* Fonts - Using Google Fonts for serif headings */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --bg: #fafafa;
  --bg-alt: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e5e5;
  --border-light: #f0f0f0;

  --max-width: 720px;
  --max-width-wide: 1000px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 1rem 0;
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.header-name:hover {
  text-decoration: none;
  color: var(--text);
}

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: 0.2s;
}

/* Intro Section */
.intro {
  padding: 8rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.intro-content {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.intro-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.intro-text h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.intro-title {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.intro-bio {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.intro-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.intro-links a {
  font-size: 0.9rem;
}

/* Section Styles */
section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Experience Section */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  overflow: hidden;
}

.experience-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s;
}

.experience-header:hover {
  background: var(--border-light);
}

.experience-header-left h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.experience-header-left .company {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.experience-header-right {
  text-align: right;
  flex-shrink: 0;
}

.experience-header-right .dates {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.experience-toggle {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.experience-details {
  display: none;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border-light);
}

.experience-details.show {
  display: block;
}

.experience-details p {
  color: var(--text-secondary);
  margin-top: 1rem;
}

.experience-details ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.experience-details li {
  margin-bottom: 0.5rem;
}

.experience-details .placeholder {
  background: #fff3cd;
  color: #856404;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

/* Projects Section */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
}

.project:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project h3 {
  font-size: 1.25rem;
}

.project-type {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.project-summary {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-body h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-body p {
  color: var(--text-secondary);
}

.project-body .placeholder {
  background: #fff3cd;
  color: #856404;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Beyond Work / Adventures */
.beyond-work {
  padding: 3rem 0;
}

.beyond-intro {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.photo-grid img:hover {
  opacity: 0.9;
}

/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .intro-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-photo {
    margin: 0 auto 1rem;
    width: 140px;
    height: 140px;
  }

  .intro-bio {
    max-width: none;
  }

  .intro-links {
    justify-content: center;
  }

  .experience-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .experience-header-right {
    text-align: left;
  }

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

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .intro {
    padding: 7rem 0 3rem;
  }

  section {
    padding: 3rem 0;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

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

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
