/* ——————————————————————————————————————————
   Meredith Smith — Portfolio
   Fonts: Space Grotesk (Google Fonts)
   Style pending final references from user
—————————————————————————————————————————— */

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

/* — Reset & Base — */

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

:root {
  --bg: #faf9f7;
  --text: #111111;
  --muted: #888888;
  --border: #e4e0d8;
  --accent: #111111;
  --max-width: 760px;
}

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

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  padding: 72px 40px 96px;
}

/* — Typography — */

h1 {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

h3 {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

p {
  max-width: 60ch;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--text);
}

/* — Layout — */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* — Site Header — */

.site-header {
  margin-bottom: 32px;
}

.site-header .name {
  display: block;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  border-bottom: none;
}

.site-header .name:hover {
  border-bottom: none;
}

.site-header .role {
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: 48ch;
  line-height: 1.7;
}

.site-header nav {
  margin-top: 20px;
  display: flex;
  gap: 32px;
}

.site-header nav a {
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.site-header nav a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* — Bio / Intro — */

.bio {
  font-size: 1.05rem;
  font-weight: 300;
  color: #444;
  margin-bottom: 64px;
  max-width: 58ch;
  line-height: 1.75;
}

/* — Section heading — */

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 32px;
}

/* — Project List (home page) — */

.project-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-list li {
  padding: 28px 24px;
  border: 1px solid var(--border);
  display: flex;
}

.project-list li .project-info {
  display: flex;
  flex-direction: column;
}

.project-list li .project-view {
  margin-top: auto;
  padding-top: 10px;
  align-self: flex-start;
}

.project-year {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  margin-left: 8px;
  white-space: nowrap;
}

.project-info h2 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.project-info h2 a {
  border-bottom: none;
}

.project-info h2 a:hover {
  border-bottom: 1px solid var(--text);
}

.project-info .description {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.55;
}

.project-view {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.project-view:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* — Project with photo underlay — */

.project-list li.has-underlay {
  position: relative;
  background-size: cover;
  background-position: center;
}

.project-list li.has-underlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 247, 0.88);
  transition: background 0.3s ease;
}

.project-list li.has-underlay:hover::before {
  background: rgba(17, 17, 17, 0.55);
}

.project-list li.has-underlay h2 a,
.project-list li.has-underlay .description,
.project-list li.has-underlay .project-year,
.project-list li.has-underlay .project-view {
  transition: color 0.3s ease;
}

.project-list li.has-underlay:hover h2 a,
.project-list li.has-underlay:hover .description,
.project-list li.has-underlay:hover .project-year,
.project-list li.has-underlay:hover .project-view {
  color: #ffffff;
}

.project-list li.has-underlay:hover h2 a:hover {
  border-bottom-color: #ffffff;
}

.project-list li.has-underlay:hover .project-view {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.project-list li.has-underlay > * {
  position: relative;
}

/* — Contact Section — */

.contact-section {
  margin-top: 80px;
}

.contact-section p {
  font-size: 0.925rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 46ch;
}

/* — Contact Form — */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-weight: 300;
  font-size: 0.925rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--text);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  font-family: inherit;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--text);
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s ease;
}

.form-submit:hover {
  opacity: 0.75;
}

.email-alt {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* — Project Page — */

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 64px;
  border-bottom: 1px solid transparent;
}

.back-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.project-header {
  margin-bottom: 48px;
}

.project-header time {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.project-header h1 {
  margin-bottom: 16px;
}

.project-header .partners {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 60ch;
}

.project-body {
  font-size: 0.975rem;
  line-height: 1.75;
  max-width: 62ch;
}

.project-body p + p {
  margin-top: 20px;
}

/* — Project image — */

.project-image {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 0 8px;
}

.image-credit {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 40px;
}

/* — Image placeholder — */

.image-placeholder {
  border: 1px dashed var(--border);
  padding: 48px 32px;
  margin: 40px 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 540px;
}

/* — Press / Links — */

.press-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.press-section h3 {
  margin-bottom: 16px;
}

.press-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.press-list a {
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.press-list a:hover {
  border-bottom-color: var(--text);
}

/* — Footer — */

.site-footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* — Responsive — */

@media (max-width: 600px) {
  body {
    padding: 40px 24px 72px;
  }

  .site-header {
    margin-bottom: 32px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }
}
