/* Appily-Two — Field Guide theme (homepage + botanical zones) */

body.velocity-management.atlas-store,
body.atlas-store.page-atlas,
body.page-home.atlas-store {
  background-color: var(--parchment);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(31, 92, 69, 0.04) 0, transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(166, 124, 0, 0.05) 0, transparent 24%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(12, 22, 16, 0.025) 39px,
      rgba(12, 22, 16, 0.025) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(12, 22, 16, 0.025) 39px,
      rgba(12, 22, 16, 0.025) 40px
    );
}

.page-home .page-main { overflow-x: hidden; }

/* ── Hero atlas ── */
.hero-atlas {
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.72) 0%, transparent 42%),
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(31, 92, 69, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 8% 88%, rgba(196, 83, 58, 0.06) 0%, transparent 50%),
    var(--parchment);
  border-bottom: 1px solid var(--line);
}

.hero-topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--fern);
  opacity: .55;
}

.topo-lines {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-atlas-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px 48px;
  align-items: center;
}

.hero-copy-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 520px;
}

.hero-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.index-num {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brass);
}

.index-rule {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

.index-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-atlas h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 3.45rem);
  letter-spacing: -.02em;
  line-height: 1.06;
}

.hero-atlas h1 em {
  font-style: italic;
  color: var(--fern);
}

.hero-atlas .hero-lede {
  margin-bottom: 22px;
  max-width: 44ch;
}

.hero-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.coord {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coord strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.coord span {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 460px;
}

.hero-trust li {
  padding: 6px 12px;
  border: 1px dashed rgba(12, 22, 16, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.72);
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-trust li::before {
  content: '◆ ';
  color: var(--brass);
  font-size: .55rem;
}

/* ── Specimen bento / perforated tickets ── */
.specimen-bento {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr 0.9fr;
  grid-template-areas:
    "bento-a bento-b"
    "bento-a bento-c"
    "bento-d bento-c";
  gap: 12px;
  min-height: 440px;
  padding: 8px;
}

.specimen-bento::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(166, 124, 0, 0.18);
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.specimen-bento-a { grid-area: bento-a; }
.specimen-bento-b { grid-area: bento-b; }
.specimen-bento-c { grid-area: bento-c; }
.specimen-bento-d { grid-area: bento-d; }

.specimen-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background: var(--white);
  border: 1px solid rgba(12, 22, 16, 0.12);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(12, 22, 16, 0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.specimen-ticket::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 50%, transparent 7px, rgba(12, 22, 16, 0.08) 7px, rgba(12, 22, 16, 0.08) 8px, transparent 8px) left center / 16px 16px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 7px, rgba(12, 22, 16, 0.08) 7px, rgba(12, 22, 16, 0.08) 8px, transparent 8px) right center / 16px 16px repeat-y;
}

.ticket-notch {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--parchment);
  border: 1px solid rgba(12, 22, 16, 0.1);
  z-index: 2;
}

.ticket-notch-tl { top: -7px; left: 18px; }
.ticket-notch-tr { top: -7px; right: 18px; }

.specimen-ticket:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(12, 22, 16, 0.1);
  border-color: rgba(166, 124, 0, 0.28);
}

.specimen-ticket.is-featured {
  border-color: rgba(166, 124, 0, 0.35);
  box-shadow: 0 12px 32px rgba(166, 124, 0, 0.12);
}

.ticket-id {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  padding: 3px 8px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--line);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}

.ticket-img {
  position: relative;
  flex: 1;
  min-height: 100px;
  background: linear-gradient(145deg, var(--fern-light), var(--parchment));
  overflow: hidden;
}

.ticket-img img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .45s ease;
}

.specimen-ticket:hover .ticket-img img { transform: scale(1.05); }

.ticket-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px 14px;
  border-top: 1px dashed rgba(12, 22, 16, 0.12);
  background: var(--white);
}

.ticket-zone {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass);
}

.ticket-name {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-price {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--fern);
}

.specimen-ticket.is-featured .ticket-name { font-size: .92rem; }
.specimen-ticket.is-featured .ticket-price { font-size: 1.05rem; color: var(--clay); }

/* ── Zone deck ── */
.zone-deck {
  padding: 56px 0;
  background:
    linear-gradient(180deg, var(--white) 0%, var(--parchment) 100%);
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.zone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  isolation: isolate;
}

.zone-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.zone-card > * { position: relative; z-index: 1; }

.zone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.zone-marker {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--line);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brass);
}

.zone-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--fern-light);
}

.zone-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.zone-card:hover .zone-thumb img { transform: scale(1.04); }

.zone-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.zone-count {
  margin-bottom: 8px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.zone-body h3 {
  margin: 0 0 6px;
  font-size: .98rem;
  line-height: 1.3;
}

.zone-sample {
  margin: 0 0 12px;
  flex: 1;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zone-link {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fern);
  transition: gap .2s ease, color .2s ease;
}

.zone-card:hover .zone-link { color: var(--clay); }

/* Zone variants */
.zone-veg::before {
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 16px, rgba(31, 92, 69, 0.04) 16px, rgba(31, 92, 69, 0.04) 18px),
    linear-gradient(160deg, #EAF3EC 0%, var(--white) 70%);
}

.zone-veg { border-color: rgba(31, 92, 69, 0.18); }
.zone-veg .zone-link { color: var(--fern); }
.zone-veg:hover { border-color: var(--fern); }

.zone-flower::before {
  background:
    radial-gradient(circle at 85% 15%, rgba(196, 83, 58, 0.1) 0%, transparent 42%),
    linear-gradient(155deg, #F8EDEA 0%, var(--white) 68%);
}

.zone-flower { border-color: rgba(196, 83, 58, 0.18); }
.zone-flower .zone-marker { color: var(--clay); }
.zone-flower .zone-link { color: var(--clay); }
.zone-flower:hover { border-color: var(--clay); }

.zone-fruit::before {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(166, 124, 0, 0.12) 0%, transparent 48%),
    linear-gradient(165deg, #F7F0DF 0%, var(--white) 65%);
}

.zone-fruit { border-color: rgba(166, 124, 0, 0.22); }
.zone-fruit .zone-marker,
.zone-fruit .zone-link { color: var(--brass); }
.zone-fruit:hover { border-color: var(--brass); }

.zone-herb::before {
  background:
    linear-gradient(180deg, rgba(31, 92, 69, 0.05) 0%, transparent 35%),
    linear-gradient(150deg, #E8F0EA 0%, var(--white) 62%);
}

.zone-herb { border-color: rgba(92, 99, 88, 0.18); }
.zone-herb .zone-marker { color: var(--muted); }
.zone-herb .zone-link { color: #3D6A52; }
.zone-herb:hover { border-color: #3D6A52; }

/* ── Catalog grid (curated entries) ── */
.catalog-grid,
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.catalog-card,
.home-product-grid .catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(166, 124, 0, 0.2);
}

.catalog-img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--fern-light);
}

.catalog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.catalog-card:hover .catalog-img img { transform: scale(1.04); }

.catalog-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}

.catalog-body h3 {
  margin: 4px 0 6px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-body h3 a:hover { color: var(--fern); }

.catalog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ── Expedition split panels ── */
.expedition-split {
  padding: 0 0 64px;
  background: var(--parchment);
}

.expedition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.expedition-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 240px;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  color: var(--white);
  border: 1px solid rgba(255, 253, 249, 0.08);
  background-size: cover;
}

.panel-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}

.expedition-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--white);
  line-height: 1.25;
}

.expedition-panel p {
  margin: 0;
  max-width: 36ch;
  font-size: .9rem;
  line-height: 1.65;
  opacity: .88;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.expedition-panel-a {
  background:
    radial-gradient(circle at 100% 0%, rgba(166, 124, 0, 0.18) 0%, transparent 42%),
    linear-gradient(145deg, #1F5C45 0%, #174A38 100%);
}

.expedition-panel-b {
  background:
    radial-gradient(circle at 0% 100%, rgba(196, 83, 58, 0.18) 0%, transparent 45%),
    linear-gradient(145deg, #2A3D34 0%, var(--ink) 100%);
}

/* ── Mosaic homepage overrides ── */
.mosaic-grid-home {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mosaic-grid-home .mosaic-tile {
  background: var(--parchment);
  border-style: dashed;
}

.mosaic-grid-home .mosaic-img {
  aspect-ratio: 1;
  padding: 12px;
  background: var(--white);
}

.mosaic-grid-home .mosaic-img img { height: 100%; }

.mosaic-grid-home .mosaic-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 16px;
}

.mosaic-grid-home .mosaic-info h3 {
  flex: 1;
  font-size: .84rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mosaic-grid-home .mosaic-info .product-cat {
  font-size: .62rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-atlas-grid,
  .expedition-grid,
  .catalog-grid,
  .home-product-grid { grid-template-columns: 1fr; }

  .hero-copy-block { max-width: none; }

  .specimen-bento {
    min-height: 380px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "bento-a bento-a"
      "bento-b bento-c"
      "bento-d bento-d";
  }

  .specimen-ticket.is-featured .ticket-img { min-height: 220px; }

  .zone-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic-grid-home { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .hero-atlas { padding: 32px 0 48px; }

  .hero-coords { gap: 14px; }

  .specimen-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "bento-a"
      "bento-b"
      "bento-c"
      "bento-d";
    min-height: 0;
    padding: 0;
  }

  .specimen-bento::before { display: none; }

  .zone-grid { grid-template-columns: 1fr; }
  .mosaic-grid-home { grid-template-columns: 1fr; gap: 12px; }
  .catalog-grid,
  .home-product-grid { grid-template-columns: 1fr; }

  .expedition-panel {
    min-height: 0;
    padding: 24px 20px;
  }

  .panel-actions { flex-direction: column; align-items: stretch; }
  .panel-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .specimen-ticket:hover,
  .catalog-card:hover,
  .zone-card:hover { transform: none; }
  .specimen-ticket:hover .ticket-img img,
  .catalog-card:hover .catalog-img img,
  .zone-card:hover .zone-thumb img { transform: none; }
}
