:root {
  --ink: #17211c;
  --muted: #607066;
  --paper: #fbf7ef;
  --panel: #fffaf1;
  --line: rgba(23, 33, 28, 0.14);
  --orange: #e36f3d;
  --teal: #0d7a7f;
  --green: #315f4f;
  --gold: #d59b38;
  --shadow: 0 22px 60px rgba(24, 32, 27, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(251, 247, 239, 0.82);
  box-shadow: 0 12px 34px rgba(15, 31, 24, 0.12);
  backdrop-filter: blur(18px);
  transition: inset 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  inset-block-start: 8px;
  background: rgba(251, 247, 239, 0.95);
}

.brand,
.desktop-nav,
.hero-actions,
.section-heading.split,
.filters,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.desktop-nav {
  gap: 4px;
}

.desktop-nav a,
.dropdown-trigger {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #26362d;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.desktop-nav .studio-link {
  color: white;
  background: var(--ink);
}

.desktop-nav a:hover,
.dropdown:hover .dropdown-trigger,
.dropdown-trigger:focus-visible {
  background: rgba(13, 122, 127, 0.1);
  color: var(--teal);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: 0.18s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  border-radius: 6px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.mobile-nav {
  position: fixed;
  inset: 84px 16px auto;
  z-index: 19;
  display: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a,
.mobile-dropdown-button {
  padding: 13px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.mobile-dropdown-button {
  display: flex;
  justify-content: space-between;
}

.mobile-dropdown-panel {
  display: none;
  padding-left: 12px;
}

.mobile-dropdown-panel.open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 140px 6vw 80px;
  color: white;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 26, 22, 0.86), rgba(12, 26, 22, 0.36) 54%, rgba(12, 26, 22, 0.15)),
    linear-gradient(0deg, rgba(12, 26, 22, 0.54), transparent 38%);
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(4rem, 10vw, 8rem);
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  box-shadow: 0 12px 24px rgba(227, 111, 61, 0.24);
}

.button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: white;
}

.button.danger {
  color: white;
  background: #b13c2e;
}

.hero-card {
  position: absolute;
  right: 6vw;
  bottom: 7vh;
  width: min(260px, 42vw);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-card span {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
}

.hero-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 96px 6vw;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.split {
  max-width: none;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.section-note,
.contact-panel p,
.intro-grid p,
.featured-copy p,
.story-list p,
.destination-card p {
  color: var(--muted);
  line-height: 1.7;
}

.editorial {
  background: linear-gradient(180deg, #fff8ec, var(--paper));
}

.search-box {
  width: min(100%, 340px);
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: white;
  box-shadow: 0 10px 28px rgba(31, 41, 35, 0.08);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
}

.featured-post,
.quick-posts article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(31, 41, 35, 0.08);
}

.featured-post {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  min-height: 430px;
}

.featured-image {
  min-height: 320px;
  background-image:
    linear-gradient(180deg, rgba(23, 33, 28, 0.05), rgba(23, 33, 28, 0.28)),
    url("assets/hero-travel.png");
  background-size: cover;
  background-position: center;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 46px);
}

.featured-copy span,
.quick-posts span {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-copy h3 {
  margin-top: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
}

.featured-copy a {
  align-self: flex-start;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 900;
}

.quick-posts {
  display: grid;
  gap: 14px;
}

.quick-posts article {
  padding: 24px;
}

.quick-posts h3 {
  margin-top: 8px;
  line-height: 1.25;
}

.categories {
  padding-top: 32px;
  background: var(--paper);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.category-strip a {
  display: grid;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid var(--line);
  font-weight: 900;
}

.category-strip a:last-child {
  border-right: 0;
}

.category-strip a:hover {
  color: white;
  background: var(--teal);
}

.category-strip span {
  color: var(--orange);
  font-size: 0.85rem;
}

.intro-grid,
.destination-grid,
.story-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.intro-grid article,
.story-list article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(31, 41, 35, 0.08);
}

.intro-grid article,
.story-list article {
  padding: 26px;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.filters {
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.filter.active {
  color: white;
  border-color: transparent;
  background: var(--teal);
}

.destination-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.destination-card.hidden {
  display: none;
}

.destination-card > div:last-child {
  padding: 22px;
}

.destination-card span,
.story-list span {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-visual {
  height: 230px;
  background-size: cover;
  background-position: center;
}

.card-visual.mountains {
  background-image: linear-gradient(135deg, rgba(28, 66, 74, 0.2), rgba(227, 111, 61, 0.16)), url("assets/hero-travel.png");
}

.card-visual.coast {
  background: radial-gradient(circle at 70% 20%, #ffe2a7, transparent 22%), linear-gradient(135deg, #0d7a7f, #9fd8cf 48%, #f8c478);
}

.card-visual.city {
  background: linear-gradient(135deg, #d95e46, #f0b366 50%, #315f4f);
}

.card-visual.uploaded,
.gallery-item.uploaded {
  background-image: var(--uploaded-image);
}

.gallery {
  background: #f1eadf;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 16px;
}

.gallery-item {
  border: 0;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(22, 29, 25, 0.14);
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item.tall {
  grid-row: span 2;
  background-image: url("assets/hero-travel.png");
}

.gallery-item.warm {
  background: linear-gradient(135deg, #873f2f, #e36f3d, #f3c575);
}

.gallery-item.cool {
  background: linear-gradient(135deg, #153c48, #0d7a7f, #cce8dd);
}

.gallery-item.forest {
  background: linear-gradient(135deg, #142c22, #315f4f, #d59b38);
}

.story-list article a {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal);
  font-weight: 900;
}

.bucket {
  background: var(--green);
  color: white;
}

.bucket .eyebrow,
.bucket .section-note {
  color: #ffc081;
}

.progress-box {
  display: grid;
  min-width: 110px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.progress-box strong {
  font-size: 1.5rem;
}

.bucket-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bucket-list label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  font-weight: 800;
}

.bucket-list input {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  padding: clamp(24px, 5vw, 48px);
}

.email-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: white;
  resize: vertical;
}

.studio {
  background:
    radial-gradient(circle at 10% 0%, rgba(227, 111, 61, 0.16), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(13, 122, 127, 0.16), transparent 30%),
    #fff8ec;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.studio-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 14px 40px rgba(31, 41, 35, 0.08);
}

.studio-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.studio-card input,
.studio-card select,
.studio-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: white;
}

.studio-card input[type="file"] {
  padding: 10px;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.import-button {
  position: relative;
  overflow: hidden;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px 6vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--teal);
  font-weight: 900;
}

.lightbox {
  width: min(860px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(10, 18, 15, 0.68);
}

.lightbox-art {
  min-height: min(560px, 62vh);
  background-size: cover;
  background-position: center;
}

.lightbox p {
  margin: 0;
  padding: 18px 22px;
  font-weight: 900;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 1.6rem;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 320px);
    margin-top: 34px;
  }

  .section-heading.split,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .editorial-grid,
  .featured-post {
    grid-template-columns: 1fr;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-strip a:nth-child(2) {
    border-right: 0;
  }

  .category-strip a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    inset-inline: 10px;
  }

  .brand strong {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding: 120px 20px 54px;
  }

  .section {
    padding: 72px 20px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .gallery-grid,
  .category-strip,
  .bucket-list {
    grid-template-columns: 1fr;
  }

  .category-strip a {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-strip a:last-child {
    border-bottom: 0;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .hero-actions,
  .studio-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 132px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .section-heading h2 {
    font-size: 2rem;
  }
}
