* {
  box-sizing: border-box;
}

:root {
  --page-bg: #f3f7f1;
  --card-bg: #ffffff;
  --text: #222222;
  --muted: #667066;
  --forest: #2d6a2d;
  --forest-dark: #214f21;
  --red: #c90000;
  --border: #dce5da;
  --shadow: 0 8px 24px rgba(33, 79, 33, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 247, 241, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  width: min(1080px, 92%);
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: var(--forest);
}

.container {
  width: min(900px, 92%);
  margin: 0 auto;
  padding: 42px 0 28px;
  text-align: center;
}

.logo {
  width: 420px;
  max-width: 92%;
  display: block;
  margin: 0 auto 18px;
  border-radius: 18px;
}

h1 {
  margin: 10px 0;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.05;
}

.tagline {
  color: var(--forest);
  font-weight: normal;
  margin: 16px 0 38px;
}

.intro {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 1.08rem;
}

.welcome {
  font-weight: 700;
  font-size: 1.2rem;
}

.adventure-button,
.card-link {
  display: inline-block;
  color: #ffffff;
  background: var(--forest);
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.adventure-button {
  margin-top: 30px;
  padding: 16px 28px;
}

.adventure-button:hover,
.card-link:hover {
  background: var(--forest-dark);
  transform: translateY(-2px);
}

.section-title {
  grid-column: 1 / -1;
  color: var(--forest);
  margin: 0 0 6px;
}

.photographer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 68px;
}

.photographer-card,
.info-card,
.gallery-placeholder {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.photographer-card {
  padding: 28px;
}

.photographer-card h3 {
  margin: 14px 0 8px;
  font-size: 1.6rem;
}

.photographer-card p {
  color: var(--muted);
  line-height: 1.65;
}

.initial-badge {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--red);
  border: 8px solid #111111;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
}

.card-link {
  margin-top: 8px;
  padding: 11px 16px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 58px;
}

.categories div {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 17px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

footer {
  margin-top: 78px;
  color: var(--muted);
}

footer hr {
  border: 0;
  border-top: 1px solid #aeb9ac;
  margin-bottom: 34px;
}

.quote {
  color: var(--forest);
  font-style: italic;
}

.version {
  margin-top: 24px;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Photographer pages */

.profile-page {
  text-align: left;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.profile-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 38px;
  align-items: center;
}

.profile-photo-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.25), transparent 28%),
    var(--forest);
  border: 10px solid #111111;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.profile-photo-placeholder span {
  font-size: 4rem;
  font-weight: 800;
}

.profile-photo-placeholder small {
  font-size: 0.75rem;
}

.profile-copy h1 {
  margin: 4px 0 14px;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.profile-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.profile-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.info-card {
  padding: 24px;
}

.info-card h2 {
  margin-top: 0;
  color: var(--forest);
  font-size: 1.1rem;
}

.info-card p {
  color: var(--muted);
  line-height: 1.6;
}

.gallery-placeholder {
  margin-top: 52px;
  padding: 34px;
  text-align: center;
}

.gallery-placeholder h2 {
  margin: 8px 0 12px;
}

.gallery-placeholder > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.photo-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.photo-placeholder-grid div {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(45, 106, 45, 0.08), rgba(201, 0, 0, 0.05));
  border: 2px dashed #b9c7b7;
  border-radius: 14px;
}

.fade-in {
  opacity: 0;
  animation: fade 0.9s forwards;
}

.delay1 { animation-delay: 0.15s; }
.delay2 { animation-delay: 0.3s; }
.delay3 { animation-delay: 0.5s; }
.delay4 { animation-delay: 0.7s; }
.delay5 { animation-delay: 0.9s; }
.delay6 { animation-delay: 1.1s; }

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .photographer-grid,
  .profile-sections,
  .photo-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-photo-placeholder {
    width: 190px;
    margin: 0 auto;
  }

  .profile-intro {
    margin: 0 auto;
  }

  .profile-page {
    text-align: center;
  }
}


/* Inline profile editing prototype */

.profile-photo-wrap {
  position: relative;
  text-align: center;
}

.profile-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 10px solid #111111;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.edit-photo-button {
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #ffffff;
  background: var(--forest);
  font-weight: 700;
  cursor: pointer;
}

.editable-block {
  position: relative;
  padding-right: 42px;
}

.editable-block.compact {
  min-height: 82px;
}

.edit-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--forest);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.edit-icon:hover,
.edit-photo-button:hover {
  transform: translateY(-1px);
}

[data-editable].is-editing {
  outline: 2px solid var(--forest);
  outline-offset: 6px;
  border-radius: 4px;
  background: #fbfff9;
}

.save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 20;
  width: fit-content;
  margin: 34px auto 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.save-button,
.cancel-button {
  border: 0;
  border-radius: 9px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}

.save-button {
  color: #ffffff;
  background: var(--forest);
}

.cancel-button {
  margin-left: 8px;
  color: var(--text);
  background: #e9eee8;
}

.profile-status {
  width: fit-content;
  margin: 18px auto 0;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--forest-dark);
  border-radius: 999px;
  text-align: center;
}

@media (max-width: 720px) {
  .profile-photo-wrap {
    width: 190px;
    margin: 0 auto;
  }

  .editable-block {
    padding-right: 0;
    padding-top: 42px;
  }

  .edit-icon {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .edit-icon:hover {
    transform: translateX(-50%) translateY(-1px);
  }
}
