:root {
  --bg: #e8efe6;
  --bg-deep: #0f1f17;
  --ink: #122018;
  --muted: #4a5c52;
  --line: rgba(18, 32, 24, 0.14);
  --accent: #c6f25a;
  --accent-deep: #8fbf2a;
  --field: #1f6b45;
  --sky: #7eb8d4;
  --paper: #f4f7f2;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(15, 31, 23, 0.18);
  --radius: 4px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(126, 184, 212, 0.28), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(198, 242, 90, 0.22), transparent 55%),
    linear-gradient(180deg, #dfe9dc 0%, var(--bg) 40%, #d7e4d8 100%);
  min-height: 100vh;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--bg-deep);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(232, 239, 230, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: grid;
  gap: 0.05rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-cta {
  text-decoration: none;
  background: var(--bg-deep);
  color: #f3f8ef;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
}

.lang-link {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.lang-link.is-active {
  background: var(--bg-deep);
  color: #f3f8ef;
}

.lang-link:hover:not(.is-active) {
  color: var(--ink);
}

.cart-count {
  background: var(--accent);
  color: var(--bg-deep);
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f5f8f2;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 31, 23, 0.25) 0%, rgba(15, 31, 23, 0.55) 45%, rgba(15, 31, 23, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 31, 23, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem);
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 8.5rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0 0 1rem;
  animation: rise 0.9s ease both;
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(245, 248, 242, 0.88);
  margin: 0 0 1.5rem;
  animation: rise 0.9s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}

.btn-primary:hover {
  background: #d5f87a;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(245, 248, 242, 0.45);
  color: #f5f8f2;
}

.btn-ghost.dark {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost.dark:hover {
  border-color: var(--ink);
}

.btn-secondary {
  background: var(--bg-deep);
  color: #f3f8ef;
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.btn.is-selected,
.chip.is-selected {
  background: var(--field);
  color: #f4f8f1;
  border-color: var(--field);
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section- Tight {
  padding-top: 2.5rem;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--field);
  margin: 0 0 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.section-text {
  max-width: 38rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.page-hero {
  padding: 2.75rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.6rem;
  line-height: 1;
}

.page-hero p {
  max-width: 40rem;
  color: var(--muted);
  margin: 0;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-tile {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  min-height: 22rem;
  background: var(--bg-deep);
  color: #f4f8f1;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease;
  opacity: 0.88;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 22, 16, 0.92) 100%);
  z-index: 1;
}

.gallery-tile-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  z-index: 2;
}

.gallery-tile-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.gallery-tile-body p {
  margin: 0;
  color: rgba(244, 248, 241, 0.78);
  font-size: 0.92rem;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.photo-card {
  position: relative;
  overflow: hidden;
  background: #0d1812;
  aspect-ratio: 4 / 3;
}

.gallery-tile picture,
.photo-card picture {
  position: absolute;
  inset: 0;
  display: block;
}

.gallery-tile picture img,
.photo-card picture img,
.hero-media picture,
.hero-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card picture img {
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.hero-media picture {
  position: absolute;
  inset: 0;
}


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

.photo-card.is-selected img {
  opacity: 0.72;
}

.photo-card-actions {
  position: absolute;
  inset: auto 0.6rem 0.6rem auto;
  z-index: 2;
}

.photo-check {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 2px solid white;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.photo-card.is-selected .photo-check,
.photo-card:hover .photo-check {
  opacity: 1;
}

.photo-card.is-selected .photo-check {
  background: var(--accent);
  border-color: var(--accent);
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.6rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ol,
.prose ul {
  padding-left: 1.2rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--field);
  line-height: 1;
}

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.panel {
  background: rgba(244, 247, 242, 0.72);
  border: 1px solid var(--line);
  padding: 1.35rem;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.cart-empty {
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 107, 69, 0.35);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.alert {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(198, 242, 90, 0.28);
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.25);
  color: var(--danger);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

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

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--bg-deep);
  color: rgba(244, 248, 241, 0.86);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
  color: #f4f8f1;
}

.footer-text {
  margin: 0;
  max-width: 28rem;
  color: rgba(244, 248, 241, 0.68);
}

.footer-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.45rem;
  color: rgba(244, 248, 241, 0.78);
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 248, 241, 0.12);
  color: rgba(244, 248, 241, 0.55);
  font-size: 0.88rem;
}

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

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 900px) {
  .gallery-grid,
  .feature-row,
  .checkout-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(232, 239, 230, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-cta {
    justify-content: center;
  }
}
