:root {
  --accent: #2f6f4e;
  --accent-soft: #dceee3;
  --ink: #1c241c;
  --paper: #f7f3ea;
  --sand: #e8dfcf;
  --sky: #b7cfc4;
  --white: #fffdf8;
  --danger: #8b3a2f;
  --shadow: 0 24px 60px rgba(28, 36, 28, 0.18);
  --radius: 1.25rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(183, 207, 196, 0.55), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(47, 111, 78, 0.18), transparent 50%),
    linear-gradient(180deg, #efe7d8 0%, var(--paper) 45%, #e7f0ea 100%);
  line-height: 1.5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(28, 36, 28, 0.04) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  opacity: 0.45;
  z-index: 0;
}

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

[hidden] {
  display: none !important;
}

/* Gate */
.gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: fade-up 0.7s ease both;
}

.gate__panel {
  width: min(100%, 26rem);
  padding: 2rem 1.5rem;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.gate__eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.gate__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
}

.gate__text {
  margin: 0.85rem 0 1.4rem;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

.gate__form {
  display: grid;
  gap: 0.75rem;
}

.gate__form input {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.gate__form input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, white);
  outline-offset: 2px;
}

.gate__error {
  margin: 0.85rem 0 0;
  color: var(--danger);
  font-weight: 600;
}

/* App */
.app {
  position: relative;
  z-index: 1;
  animation: fade-up 0.75s ease both;
}

.hero {
  position: relative;
  display: block;
  color: var(--white);
  overflow: hidden;
  background: #1c241c;
}

.hero__media {
  position: relative;
  width: 100%;
  line-height: 0;
}

.hero__media img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
  animation: none;
  image-orientation: from-image;
}

.hero__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: min(70%, 28rem);
  background:
    linear-gradient(180deg, rgba(18, 28, 20, 0) 0%, rgba(18, 28, 20, 0.55) 45%, rgba(18, 28, 20, 0.88) 100%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 5vw, 2.8rem);
  max-width: 42rem;
  animation: rise 0.9s 0.15s ease both;
}

.hero__label {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 14vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero__message {
  margin: 1rem 0 1.4rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: color-mix(in srgb, var(--white) 92%, transparent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 28px rgba(47, 111, 78, 0.35);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, black);
}

.btn--ghost {
  background: color-mix(in srgb, var(--white) 14%, transparent);
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 45%, transparent);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--white) 24%, transparent);
}

.status {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--white) 88%, transparent);
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.section__lead {
  margin: 0.55rem 0 1.6rem;
  max-width: 34rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.info-list {
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.info-list > div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.info-list dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.info-list dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.info-list a {
  color: inherit;
  text-decoration: none;
}

.info-list a:hover {
  text-decoration: underline;
}

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

.gallery__item {
  position: relative;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 0.35rem;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 0.35rem;
  animation: fade-up 0.8s ease both;
  display: block;
  image-orientation: from-image;
}

.gallery__item:nth-child(2) img {
  animation-delay: 0.08s;
}

.gallery__item:nth-child(3) img {
  animation-delay: 0.16s;
}

.gallery__delete {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: white;
  background: color-mix(in srgb, var(--danger) 88%, black);
}

.upload-form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

.upload-file {
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  padding: 0.6rem 0;
}

.upload-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.upload-form input[type="text"] {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font: inherit;
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

.upload-chosen {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
}

.upload-status {
  min-height: 1.4rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 80%, white);
}

.upload-status:empty {
  display: none;
}

.upload-status.is-error {
  color: #fff;
  background: var(--danger);
}

.upload-status.is-ok {
  color: #fff;
  background: var(--accent);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

.footer__note {
  margin: 0;
  font-size: 0.9rem;
}

#footer-owner {
  justify-content: flex-start;
  max-width: 72rem;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.linkish {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 2rem;
  }
}

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

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

@keyframes slow-zoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__media img {
    transform: none;
  }
}
