/* =========================================
   Protocol Institute — Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&display=swap');

/* ---- Reset & Base ---- */

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

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

body {
  background-color: #FAFAF7;
  color: #1A1A1A;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1.4rem;
  max-width: 68ch;
}

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

a {
  color: #2A6B6B;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4f4f;
  text-decoration: underline;
}

/* ---- Layout ---- */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ---- Navigation ---- */

.site-nav {
  padding: 2rem 2.5rem;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-nav .nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav .nav-brand:hover {
  color: #2A6B6B;
  text-decoration: none;
}

.site-nav .nav-brand:hover .nav-logo {
  opacity: 0.7;
}

.nav-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

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

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5A5A5A;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-links a.active {
  color: #2A6B6B;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.25rem;
  color: #1A1A1A;
  line-height: 1;
}

/* ---- Page Header (interior pages) ---- */

.page-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid #E0DDD8;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ---- Footer ---- */

.site-footer {
  margin-top: 6rem;
  padding: 2rem 2.5rem;
  border-top: 1px solid #E0DDD8;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer p {
  font-size: 0.82rem;
  color: #8A8A8A;
  letter-spacing: 0.03em;
  margin-bottom: 0;
  max-width: none;
}

/* ---- Landing Page ---- */

.landing-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-nav {
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: flex-end;
}

.landing-nav .nav-links {
  gap: 2rem;
}

.landing-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2.5rem;
}

.landing-mark {
  display: block;
  width: clamp(44px, 7vw, 68px);
  height: clamp(44px, 7vw, 68px);
  margin: 0 auto 2rem;
}

.landing-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  color: #1A1A1A;
}

.landing-content .descriptor {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: #5A5A5A;
  font-style: italic;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.landing-footer {
  padding: 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid #E0DDD8;
}

.landing-footer p {
  font-size: 0.8rem;
  color: #ABABAB;
  letter-spacing: 0.03em;
  margin: 0;
  max-width: none;
}

/* ---- Interior Page Wrapper ---- */

.interior-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.interior-main {
  flex: 1;
  padding-bottom: 2rem;
}

/* ---- Projects Page ---- */

.projects-intro {
  color: #5A5A5A;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.project-list {
  list-style: none;
}

.project-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid #E0DDD8;
}

.project-item:first-child {
  border-top: 1px solid #E0DDD8;
}

.project-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.project-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0;
}

.project-status {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A8A8A;
  border: 1px solid #E0DDD8;
  padding: 0.15em 0.55em;
  white-space: nowrap;
}

.project-status.status-active {
  color: #2A6B6B;
  border-color: #2A6B6B;
}

.project-description {
  color: #3A3A3A;
  margin-bottom: 1rem;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #2A6B6B;
}

.project-link:hover {
  text-decoration: underline;
}

/* ---- SIGs Page ---- */

.sig-meta {
  font-size: 0.85rem;
  color: #8A8A8A;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.sig-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #E0DDD8;
}

.sig-cta p {
  font-size: 1rem;
  color: #5A5A5A;
}

/* ---- About Page ---- */

.about-body p {
  font-size: 1.05rem;
  color: #2C2C2C;
  margin-bottom: 1.6rem;
}

/* ---- Contact Page ---- */

.contact-body {
  padding-top: 1rem;
}

.contact-intro {
  color: #5A5A5A;
  font-style: italic;
  margin-bottom: 2rem;
}

.contact-email {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  color: #2A6B6B;
  letter-spacing: -0.01em;
}

.contact-email:hover {
  color: #1d4f4f;
  text-decoration: underline;
}

.contact-note {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #E0DDD8;
  font-size: 0.9rem;
  color: #8A8A8A;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  html {
    font-size: 17px;
  }

  .site-nav {
    padding: 1.25rem 1.5rem;
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FAFAF7;
    border-bottom: 1px solid #E0DDD8;
    padding: 0.5rem 1.5rem 1rem;
    z-index: 100;
  }

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

  .nav-links li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #F0EDE8;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

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

  .container {
    padding: 0 1.5rem;
  }

  .landing-nav {
    padding: 1.25rem 1.5rem;
  }

  .landing-center {
    padding: 3rem 1.5rem;
  }

  .landing-footer {
    padding: 1.25rem 1.5rem;
  }

  .page-header {
    padding: 2.5rem 0 1.5rem;
    margin-bottom: 2rem;
  }

  .project-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-footer {
    margin-top: 4rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .landing-content h1 {
    font-size: 2.2rem;
  }
}
