:root {
  --ink: #1f1712;
  --paper: #fff8ef;
  --coal: #20140d;
  --ember: #b83a1b;
  --mustard: #e5ad35;
  --mint: #2f7d5b;
  --smoke: #f0e4d5;
  --muted: #77665b;
  --line: rgba(31, 23, 18, 0.16);
  --shadow: 0 18px 44px rgba(32, 20, 13, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 5vw, 64px);
  color: #fffaf2;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(32, 20, 13, 0.94);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 242, 0.44);
  border-radius: 50%;
  color: var(--coal);
  background: var(--mustard);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fffaf2;
  background: var(--coal);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 20, 13, 0.96) 0%, rgba(32, 20, 13, 0.78) 34%, rgba(32, 20, 13, 0.22) 72%),
    linear-gradient(0deg, rgba(32, 20, 13, 0.72), rgba(32, 20, 13, 0.08) 48%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 78px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
  max-width: 680px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 250, 242, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-actions {
  margin-top: 34px;
}

.button,
.signup button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.primary,
.signup button {
  background: var(--ember);
  color: #fffaf2;
  box-shadow: var(--shadow);
}

.secondary {
  color: #fffaf2;
  background: rgba(255, 250, 242, 0.13);
  border: 1px solid rgba(255, 250, 242, 0.28);
}

.band {
  background: var(--coal);
  color: #fffaf2;
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.split,
.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.intro p:not(.eyebrow),
.join p {
  margin: 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: 1.08rem;
}

.guide,
.cities,
.map-section {
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-heading.narrow {
  max-width: 680px;
  display: block;
}

.section-kicker {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgba(32, 20, 13, 0.07);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-weight: 900;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.blog-preview .section-heading {
  align-items: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.08);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card span {
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: #fffaf2;
  font-size: 1.15rem;
  font-weight: 900;
}

.blog-hero {
  padding-top: 112px;
  background: var(--coal);
  color: #fffaf2;
}

.blog-hero .section-inner {
  padding-bottom: 72px;
}

.blog-hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.blog-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 1.12rem;
}

.blog-list,
.article-shell {
  background: var(--paper);
}

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

.article-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgba(32, 20, 13, 0.07);
}

.article-card img,
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.article-card h2,
.article-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.article-meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.article {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0;
}

.article h2 {
  margin-top: 38px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.article p,
.article li {
  color: var(--muted);
  font-size: 1.06rem;
}

.article img {
  margin: 28px 0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(32, 20, 13, 0.14);
}

.article-cta {
  display: grid;
  gap: 14px;
  margin-top: 38px;
  padding: 24px;
  border-radius: 8px;
  color: #fffaf2;
  background: var(--coal);
}

.article-cta p {
  margin: 0;
  color: rgba(255, 250, 242, 0.76);
}

.ritual-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 250, 242, 0.18);
}

.ritual-list li {
  min-height: 180px;
  padding: 28px;
  background: var(--coal);
}

.ritual-list span {
  display: block;
  color: var(--mustard);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.ritual-list p {
  margin: 0;
  color: rgba(255, 250, 242, 0.74);
}

.city-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.city-strip span {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 900;
  text-align: center;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.map-shell {
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #d8e1cf;
  box-shadow: 0 8px 22px rgba(32, 20, 13, 0.07);
}

.kokorec-map {
  width: 100%;
  height: 620px;
}

.leaflet-container {
  font: inherit;
}

.place-form,
.places-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgba(32, 20, 13, 0.07);
}

.place-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

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

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

.place-form input,
.place-form select,
.place-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.place-form textarea {
  resize: vertical;
}

.place-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fffaf2;
  background: var(--ember);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.places-panel {
  margin-top: 18px;
  overflow: hidden;
}

.places-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.places-panel-head h3 {
  margin: 0;
}

.places-panel-head span {
  color: var(--muted);
  font-weight: 900;
}

.place-search {
  display: grid;
  gap: 7px;
  width: min(340px, 100%);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.place-search input,
.rating-form input,
.rating-form select,
.comment-form input,
.comment-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.places-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

.place-item {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: #fffdf8;
}

.place-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.place-focus {
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--coal);
  background: #fff8ef;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.place-item h4 {
  margin: 0;
  font-size: 1.08rem;
}

.place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.place-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 900;
}

.place-pill.bad {
  background: var(--ember);
}

.place-pill.neutral {
  color: var(--coal);
  background: var(--mustard);
}

.place-pill.light {
  color: var(--muted);
  background: var(--smoke);
}

.place-item p {
  margin: 0;
  color: var(--muted);
}

.social-box {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.rating-form {
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.rating-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.84rem;
}

.rating-form button,
.comment-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fffaf2;
  background: var(--ember);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.comments {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fff8ef;
}

.comments p {
  font-size: 0.92rem;
}

.comments strong {
  color: var(--ink);
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form textarea {
  resize: vertical;
}

.interaction-status {
  min-height: 20px;
  font-size: 0.88rem;
}

.signup {
  padding: 28px;
  border-radius: 8px;
  background: #fffaf2;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.signup label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.signup input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: #fffaf2;
  background: #150d09;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 84vh;
    align-items: end;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(32, 20, 13, 0.98) 0%, rgba(32, 20, 13, 0.78) 48%, rgba(32, 20, 13, 0.1) 100%);
  }

  .hero-content {
    width: min(640px, calc(100% - 40px));
    margin: 0 auto;
    padding: 120px 0 58px;
  }

  .split,
  .join-layout,
  .feature-grid,
  .ritual-list,
  .map-layout,
  .places-list,
  .blog-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .places-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .map-shell,
  .kokorec-map {
    min-height: 430px;
    height: 430px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 18px;
  }

  .brand span:last-child {
    max-width: 160px;
  }

  .hero-content {
    width: calc(100% - 36px);
    max-width: 354px;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions .button,
  .form-row button {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .signup {
    padding: 20px;
  }

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

  .place-title-row,
  .rating-form {
    grid-template-columns: 1fr;
  }

  .place-title-row {
    display: grid;
  }

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