:root{
  --font-sans: "Josefin Sans Variable", "Josefin Sans", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Montserrat Variable", "Montserrat", sans-serif;
  --font-handwriting: "Reenie Beanie", cursive;

  --color-whiteish: #fffbf2;
  --color-sand: #ebe8d1;
  --color-darksand: #adaf92;
  --color-greenish: #55633a;
}

*{ 
  box-sizing: border-box;
}

html{
  background: #212818;
}

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

body{
  font-family: var(--font-sans);
  color: var(--color-whiteish);
  overscroll-behavior: none;
}

h1, p{
  margin:0;
}

.sr-only{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

::selection {
  background-color: var(--color-darksand);
  color: var(--color-whiteish);
}

.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #212818;
  background-image:
    linear-gradient(180deg, rgba(33, 40, 24, .32) 0%, rgba(33, 40, 24, .219) 100%),
    url('images/main_intro.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.scene{
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.content{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 1.5rem 4vh;
}

.content > *{
  animation: fadeUp .8s ease both;
}

.content > *:nth-child(1){ 
  animation-delay:.05s;
}

.content > *:nth-child(2){ 
  animation-delay:.15s;
}

.content > *:nth-child(3){
  animation-delay:.28s;
}

.content > *:nth-child(4){
  animation-delay:.4s;
}
.content > *:nth-child(5){
  animation-delay:.5s;
}

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

.logo{
  width: min(64vw, 280px);
  filter: drop-shadow(0 3px 16px rgba(0,0,0,.25));
}

.logo svg{ 
  width: 100%;
  height: auto;
  display: block;
}

.coming-soon {
  color: var(--color-whiteish);
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.text-heading {
  color: var(--color-whiteish);
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 300;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.lede {
  max-width: 42ch;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.7;
  opacity: .94;
  text-wrap: balance;
}

form{
  width:100%;
  max-width:440px;
  margin-top: 1rem;
}

.field-row{
  display: flex;
  gap: .6rem;
  width: 100%;
}

input[type="email"]{
  flex: 1;
  min-width: 0;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,251,242,.45);
  background: rgba(255,251,242,.12);
  color: var(--color-whiteish);
  font-family: var(--font-sans);
  font-size: 1rem;
}

input[type="email"]::placeholder{
  color: rgba(255,251,242,.6);
}

input[type="email"]:focus-visible{
  outline: 2px solid var(--color-whiteish);
  outline-offset: 2px;
}

button[type="submit"]{
  flex: 0 0 auto;
  padding: .85rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--color-whiteish);
  color: var(--color-greenish);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

button[type="submit"]:hover{
  background: var(--color-sand);
}

button[type="submit"]:active{
  transform: scale(.97);
}

button[type="submit"]:disabled{
  opacity:.7;
  cursor:default;
}

button[type="submit"]:focus-visible{
  outline: 2px solid var(--color-whiteish);
  outline-offset: 2px;
}

.hp{
  position: absolute;
  left: -9999px;
  width: 1px; 
  height: 1px; 
  opacity: 0; 
}

.microcopy{
  margin-top: .7rem;
  font-size: .82rem;
  opacity: .75;
  text-align: center;
}

.toggle-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: .9rem;
  text-align: center;
  cursor: pointer;
}

.toggle-switch{
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 24px;
  margin-top: .1rem;
}

.toggle-switch input{
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.toggle-track{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,251,242,.22);
  border: 1px solid rgba(255,251,242,.45);
  transition: background .2s ease, border-color .2s ease;
}

.toggle-thumb{
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-whiteish);
  transition: transform .2s ease;
}

.toggle-switch input:checked + .toggle-track{
  background: var(--color-greenish);
  border-color: var(--color-greenish);
}

.toggle-switch input:checked + .toggle-track .toggle-thumb{
  transform: translateX(16px);
}

.toggle-switch input:focus-visible + .toggle-track{
  outline: 2px solid var(--color-whiteish);
  outline-offset: 2px;
}

.toggle-text{
  padding-top: 5px;
  font-size: .85rem;
  line-height: 1.45;
  opacity: .88;
  text-align: left;
  max-width: 260px;
}

.form-status{
  min-height: 1.3em;
  margin-top: 1.3rem;
  font-size:.9rem;
  font-weight: 500;
  text-align: center;
}

.form-status.success{
  color: #4bb543;
}

.form-status.error{
  color: #ffd9d6;
}

@media (max-width: 480px){
  .field-row{ flex-direction: column; }
  button[type="submit"]{ width: 100%; }
}

.address {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  flex: 0 0 auto;
  padding: 1.4rem 1.5rem 1.8rem;
  width: 100%;
}

.address::before {
  content: "";
  display: block;
}

.address-block {
  grid-column: 2;
  text-align: center;
}

.address div:last-child {
  grid-column: 3;
  text-align: right;
}

.address a {
  color: inherit;
  font-size: 0.8rem;
  opacity: 0.7;
  text-decoration: underline;
  text-decoration-color: rgba(255, 251, 242, 0.7);
  text-underline-offset: 3px;
  transition: opacity .2s ease, text-decoration-color .2s ease;
}

.address a:hover {
  opacity: 0.9;
  text-decoration-color: var(--color-whiteish);
}

.address-label{
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  color: var(--color-whiteish);
  opacity: .85;
  margin-bottom: .1rem;
}

.address-text{
  font-size: .85rem;
  opacity: .85;
}

.address-coords{
  margin-top: .15rem;
  font-size: .8rem;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  opacity: .7;
}

.instagram-hint {
  margin-top: 2.5rem; 
  font-size: 1.05rem; 
  opacity: 1; 
  text-align: center; 
  line-height: 1.5; 
  padding: 0 1rem; 
}

.instagram-hint svg { 
  display: inline-block;
  vertical-align: middle;
  width: 20px; 
  height: 20px;
  margin-right: 0.4rem;
  position: relative;
  top: -2px; 
}

.instagram-hint a {
  color: inherit;
  font-weight: 500; 
  text-decoration: underline;
  text-decoration-color: rgba(255,251,242,.6);
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}

.instagram-hint a:hover { 
  text-decoration-color: var(--color-whiteish); 
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 15, 8, 0.75);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 680px;
  max-height: 80vh;
  background-color: var(--color-greenish);
  border: 1px solid rgba(255, 251, 242, 0.15);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transform: translateY(15px);
  transition: transform 0.3s ease;
}

.modal.is-active .modal-container {
  transform: translateY(0);
}

.modal-content {
  padding: 2.5rem;
  overflow-y: auto;
  font-family: var(--font-sans);
  color: var(--color-whiteish);
  line-height: 1.6;
  font-size: 0.95rem;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--color-darksand);
  border-radius: 10px;
}

.modal-content h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  color: var(--color-sand);
}

.modal-content h1:not(:first-child) {
  margin-top: 2rem;
}

.modal-content h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem 0;
  color: var(--color-sand);
}

.modal-content p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.modal-content p.muted {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: -0.8rem;
}

.modal-content ul {
  margin: 0 0 1rem 0;
  padding-left: 1.2rem;
}

.modal-content li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.modal-content hr {
  border: 0;
  height: 1px;
  background: rgba(255, 251, 242, 0.15);
  margin: 2rem 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--color-sand);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1002;
}

.modal-close:hover {
  opacity: 1;
  transform: scale(1.05);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
  }
  .modal-container {
    max-height: 85vh;
  }
}

@media (prefers-reduced-motion: reduce){
  .content > *{ animation: none; opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .address {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    justify-items: center;
  }
  .address-block {
    grid-column: 1;
  }
  .address div:last-child {
    grid-column: 1;
    text-align: center;
  }
}