@import url('https://fonts.googleapis.com/css2?family=Forum&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #1d1d3a;
  font-family: 'Forum', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../images/bg-rotated.png') center center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

header, main, footer {
  position: relative;
  z-index: 1;
}

/* ── Header / Nav ── */
header {
  text-align: center;
  padding: 36px 20px 0;
}

.logo {
  font-size: 2rem;
  letter-spacing: 0.15em;
  font-weight: 400;
  text-decoration: none;
  color: #1d1d3a;
  display: inline-block;
  margin-bottom: 28px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px 0 0;
}

nav a {
  text-decoration: none;
  color: #1d1d3a;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Forum', Georgia, serif;
  transition: color 0.2s;
}

nav a:hover {
  color: #8b8272;
}

nav a.active {
  color: #8b8272;
}

/* ── Main content ── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

/* ── Hero (Home) ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 60vh;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d1d3a;
}

/* ── Page headings ── */
.page-heading {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.page-subheading {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #555;
  text-align: center;
  margin-bottom: 60px;
}

/* ── About / Bio ── */
.bio-text {
  max-width: 780px;
  text-align: center;
  line-height: 1.9;
  font-size: 1rem;
}

.bio-text p + p {
  margin-top: 28px;
}

/* ── Portfolio list ── */
.project-list {
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.project-list li {
  padding: 14px 0;
}

.project-list a {
  text-decoration: none;
  color: #1d1d3a;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.project-list a:hover {
  color: #8b8272;
}

/* ── Media page ── */
.media-list {
  width: 100%;
  max-width: 900px;
}

.media-item {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 50px 0;
  border-bottom: 1px solid #e0e0e0;
}

.media-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.media-item.reverse {
  flex-direction: row-reverse;
}

.media-img {
  flex: 0 0 280px;
  height: 200px;
  object-fit: cover;
  background: #f5f5f5;
}

.media-img-placeholder {
  flex: 0 0 280px;
  height: 200px;
  background: #f0eeeb;
}

.media-text {
  flex: 1;
}

.media-publication {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  color: #1d1d3a;
  display: block;
  margin-bottom: 8px;
}

.media-title {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #1d1d3a;
  text-decoration: underline;
  display: block;
  margin-bottom: 20px;
}

.media-description {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #444;
}

/* ── Contact form ── */
.contact-section {
  width: 100%;
  max-width: 680px;
}

.contact-section h2 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 48px;
}

.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  flex: none;
  width: 100%;
  margin-bottom: 32px;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1d1d3a;
}

.form-group input,
.form-group textarea {
  border: none;
  border-bottom: 1px solid #1d1d3a;
  outline: none;
  padding: 8px 0;
  font-family: 'Forum', Georgia, serif;
  font-size: 0.95rem;
  color: #1d1d3a;
  background: transparent;
  width: 100%;
  resize: none;
}

.form-group textarea {
  height: 80px;
}

.btn-send {
  display: block;
  width: 100%;
  padding: 16px;
  background: #7a7a7a;
  color: #fff;
  border: none;
  font-family: 'Forum', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-send:hover {
  background: #5a5a5a;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 40px 20px 32px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.social-links a {
  color: #1d1d3a;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #8b8272;
}

.copyright {
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 0.03em;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .media-item,
  .media-item.reverse {
    flex-direction: column;
    gap: 24px;
  }

  .media-img,
  .media-img-placeholder {
    flex: none;
    width: 100%;
    height: 200px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
