/* TYPO Lab — Swiss Typographic Style */

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

:root {
  --black: #000;
  --white: #fff;
  --gray: #666;
  --light-gray: #e0e0e0;
  --grid-gap: 2rem;
  --page-margin: clamp(1.5rem, 5vw, 6rem);
  --max-width: 1200px;
}

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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
}

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

a:hover {
  text-decoration: underline;
}

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

/* ——— LAYOUT ——— */

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

.site-header {
  padding: var(--page-margin);
  padding-bottom: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1rem;
}

.site-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.site-title a:hover {
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.15s;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
}

main {
  flex: 1;
  padding: var(--page-margin);
}

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

/* ——— TYPOGRAPHY ——— */

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h4 {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

p {
  max-width: 38em;
  margin-bottom: 1rem;
}

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

/* ——— HOME ——— */

.hero {
  padding-top: clamp(4rem, 10vh, 8rem);
  padding-bottom: clamp(4rem, 10vh, 8rem);
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray);
  max-width: 32em;
  line-height: 1.5;
}

/* ——— TWO COLUMN LAYOUT ——— */

.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--grid-gap);
  align-items: start;
}

.two-col .col-label {
  position: sticky;
  top: 2rem;
}

/* ——— ABOUT ——— */

.about-text {
  max-width: 38em;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.about-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ——— PROJECT GRID ——— */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

.project-card {
  display: block;
}

.project-card:hover {
  text-decoration: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 0.75rem;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.project-card:hover img {
  filter: grayscale(0%);
}

.project-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.project-card-sub {
  font-size: 0.8125rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

/* ——— SECTION DIVIDERS ——— */

.section-divider {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 3rem 0;
}

/* ——— ZINE GRID ——— */

.zine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--grid-gap);
}

.zine-card {
  display: block;
}

.zine-card:hover {
  text-decoration: none;
}

.zine-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.zine-card-title {
  font-size: 0.8125rem;
  color: var(--gray);
  line-height: 1.3;
}

/* ——— SINGLE PROJECT ——— */

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

.project-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.project-meta {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.project-body {
  max-width: 38em;
  margin-bottom: 3rem;
}

.project-body p {
  margin-bottom: 1rem;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.project-images img {
  width: 100%;
}

.back-link {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--black);
}

/* ——— COURSES ——— */

.course-section {
  margin-bottom: 3rem;
}

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

.course-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-list li:first-child {
  border-top: 1px solid var(--light-gray);
}

.course-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.course-name a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.course-detail {
  font-size: 0.8125rem;
  color: var(--gray);
}

.course-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.course-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— EQUIPMENT ——— */

.equipment-section {
  margin-bottom: 2.5rem;
}

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

.equipment-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9375rem;
}

.equipment-list li:first-child {
  border-top: 1px solid var(--light-gray);
}

.equipment-list li a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.type-specimen {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--gray);
}

/* ——— CONTACT ——— */

.contact-info {
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form {
  margin-top: 2rem;
  max-width: 28em;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

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

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

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-submit {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.form-submit:hover {
  background: var(--white);
  color: var(--black);
}

/* ——— FOOTER ——— */

footer {
  padding: var(--page-margin);
  padding-top: 3rem;
  border-top: 1px solid var(--light-gray);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-address {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray);
}

.footer-address a {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-address a:hover {
  color: var(--black);
}

.footer-logo img {
  height: 2rem;
  width: auto;
}

/* ——— RESPONSIVE ——— */

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col .col-label {
    position: static;
  }

  .about-images {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  nav {
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

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