/* ============================================
   NAYA — Waitlist Page (single screen, no photo)
   Palette: brown #2C1A0E (bg) · cream #F5EFE4 (text) · gold #B8860B (accent) · sand #E8D9C2
   Type: Houstiq (display) + TT Commons (body/UI)

   One screen. One goal. No scrolling required.
   ============================================ */

@font-face {
  font-family: "Houstiq";
  src: url("assets/fonts/Houstiq.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TT Commons";
  src: url("assets/fonts/TT_Commons_Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "TT Commons";
  src: url("assets/fonts/TT_Commons_Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TT Commons";
  src: url("assets/fonts/TT_Commons_Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "TT Commons";
  src: url("assets/fonts/TT_Commons_DemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: #f8f5f0;
  --sand: #e9dec9;
  --brown: #2f160b;
  --gold: #b5781f;
  --olive: #a8986e;

  --serif: "Houstiq", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "TT Commons", "Helvetica Neue", Arial, sans-serif;

  --edge: clamp(24px, 6vw, 64px);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--sand);
  color: var(--brown);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* single screen — no scrolling */
}

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

.screen {
  height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
}

/* ---------- two-column layout ---------- */

.left-col {
  position: relative;
  z-index: 2;
  flex: 1 1 54%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 var(--edge);
  max-width: 620px;
}

.right-col {
  position: relative;
  flex: 1 1 46%;
  min-width: 0;
  overflow: hidden;
}

.product-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(20px, 4vh, 34px);
  flex-shrink: 0;
}

.logo img {
  height: clamp(56px, 10vh, 108px);
  width: auto;
}

.tag {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}

/* ---------- main content, vertically centered ---------- */

.main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(20px, 6vh, 60px);
  max-width: 480px;
}

h1.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.06;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  margin: 0 0 18px;
}

.main p.sub {
  margin: 0 0 clamp(24px, 4vh, 34px);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 300;
  line-height: 1.55;
  max-width: 420px;
  opacity: 0.88;
}

/* ---------- form ---------- */

.waitlist-form {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(44, 26, 14, 0.35);
  outline: none;
  color: var(--brown);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 8px 4px 10px;
  min-width: 0;
}

.waitlist-form input[type="email"]::placeholder {
  color: rgba(44, 26, 14, 0.5);
}

.waitlist-form button {
  background: var(--gold);
  border: none;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.waitlist-form button:hover {
  background: #9c6519;
}

.form-note {
  margin-top: 12px;
  font-size: 0.72rem;
  opacity: 0.55;
}

/* ---------- postcard confirmation ---------- */

.postcard-confirm {
  display: none;
  max-width: 400px;
  background: var(--brown);
  color: var(--cream);
  padding: 20px 22px;
  border-radius: 2px;
  position: relative;
  font-family: var(--sans);
  box-shadow: 0 18px 40px rgba(44, 26, 14, 0.25);
}

.postcard-confirm.show {
  display: block;
  animation: postcardIn 0.5s ease forwards;
}

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

.postcard-confirm .stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
}

.postcard-confirm .to-line {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 5px;
}

.postcard-confirm .note {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 239, 228, 0.25);
  margin-bottom: 8px;
  max-width: 82%;
}

.postcard-confirm .sign {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.postcard-confirm .share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.postcard-confirm .share-row button {
  background: transparent;
  border: 1px solid rgba(245, 239, 228, 0.4);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.postcard-confirm .share-row button:hover {
  background: rgba(245, 239, 228, 0.1);
}

.postcard-confirm .share-note {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ---------- footer, bottom of the same screen ---------- */

.footbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(18px, 3.5vh, 30px);
  flex-shrink: 0;
  font-size: 0.7rem;
}

.footbar .copyright {
  opacity: 0.45;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icons a {
  color: var(--brown);
  opacity: 1;
  display: flex;
  transition: opacity 0.2s ease;
}

.social-icons a:hover {
  opacity: 0.65;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  body {
    overflow-y: auto;
  }
  .screen {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    padding-top: clamp(20px, 4vh, 30px);
    padding-bottom: clamp(20px, 4vh, 30px);
    gap: 20px;
  }
  .left-col {
    max-width: none;
    flex: none;
  }
  .right-col {
    order: 2;
    flex: none;
    width: 100%;
    height: 34vh;
  }
  .product-shot {
    width: 100%;
    height: 100%;
  }
  .topbar {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .waitlist-form button {
    align-self: flex-start;
  }
  .footbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .postcard-confirm.show {
    animation: none;
  }
}
