* { box-sizing: border-box; }
body { margin: 0; }

.page {
  background: #F3EAD8;
  color: #1B1611;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  position: relative;
  transition: background-color .4s ease, color .4s ease;
}

.colm {
  width: 100%;
  max-width: 600px;
  padding: 104px 28px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wm {
  font-size: 12px;
  letter-spacing: .46em;
  text-transform: uppercase;
  font-weight: 500;
  padding-left: .46em;
}

.line { stroke: #1B1611; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.etch { stroke: #1B1611; fill: none; stroke-width: 1; stroke-linecap: round; opacity: .28; }
.dropfill { fill: #1B1611; }

.hl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.22;
  margin: 72px 0 0;
  letter-spacing: .01em;
  text-wrap: balance;
}

.sub {
  color: rgba(27, 22, 17, .62);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  max-width: 440px;
  margin-top: 28px;
  text-wrap: pretty;
}

.form {
  width: 100%;
  max-width: 420px;
  margin-top: 64px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.form[hidden], .helper[hidden] { display: none; }

.input {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(27, 22, 17, .32);
  border-radius: 0;
  padding: 10px 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #1B1611;
  flex: 1;
  min-width: 0;
  outline: none;
  transition: border-color .3s;
}
.input::placeholder { color: rgba(27, 22, 17, .38); }
.input:focus { border-bottom-color: #8C7355; }

.btn {
  background: none;
  border: none;
  padding: 10px 2px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #1B1611;
  white-space: nowrap;
  transition: color .3s;
  outline-offset: 6px;
}
.btn:hover, .btn:focus { color: #8C7355; }
.btn:focus { outline: 1px solid #8C7355; }

.helper {
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: .04em;
  color: rgba(27, 22, 17, .62);
  margin-top: 22px;
}

.thanks {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  margin-top: 64px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 1s cubic-bezier(.22,.61,.36,1) both;
}

.hr {
  width: 100%;
  height: 1px;
  background: rgba(27, 22, 17, .16);
  margin: 80px 0;
}

.scents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
}

.sname {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 26px;
  margin: 0;
}

.sdesc {
  color: rgba(27, 22, 17, .62);
  font-weight: 300;
  font-size: 13.5px;
  line-height: 1.8;
  margin-top: 12px;
  text-wrap: pretty;
}

.foot {
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(27, 22, 17, .62);
  margin-top: 104px;
  padding-left: .32em;
}

.rise { opacity: 0; animation: rise 1s cubic-bezier(.22,.61,.36,1) both; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .25s; }
.d3 { animation-delay: .45s; }
.d4 { animation-delay: .6s; }
.d5 { animation-delay: .75s; }
.d6 { animation-delay: .9s; }

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

.drop { animation: trace 3s cubic-bezier(.55,.06,.45,.94) 1.4s both; }
@keyframes trace {
  0% { opacity: 0; transform: translateY(-14px); }
  18% { opacity: 1; transform: translateY(-10px); }
  72% { opacity: 1; transform: translateY(12px); }
  88% { opacity: .5; transform: translateY(16px); }
  100% { opacity: 0; transform: translateY(17px); }
}

.sheen { animation: sheen 4s ease 2.2s both; }
@keyframes sheen { 0%, 100% { opacity: .28; } 45% { opacity: .55; } }

/* Ink theme */
.page.ink {
  background: #1B1611;
  color: #F3EAD8;
}
.page.ink .line { stroke: #F3EAD8; }
.page.ink .etch { stroke: #F3EAD8; }
.page.ink .dropfill { fill: #F3EAD8; }
.page.ink .sub { color: rgba(243, 234, 216, .62); }
.page.ink .sdesc { color: rgba(243, 234, 216, .62); }
.page.ink .helper { color: rgba(243, 234, 216, .62); }
.page.ink .foot { color: rgba(243, 234, 216, .62); }
.page.ink .input { color: #F3EAD8; border-bottom-color: rgba(243, 234, 216, .32); }
.page.ink .btn { color: #F3EAD8; }
.page.ink .hr { background: rgba(243, 234, 216, .16); }

/* Theme toggle (visitor-facing; not part of the original prototype) */
.theme-toggle {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: inherit;
  opacity: .62;
  padding: 8px;
  transition: opacity .3s;
}
.theme-toggle:hover, .theme-toggle:focus-visible { opacity: 1; }

@media (max-width: 520px) {
  .scents { grid-template-columns: 1fr; gap: 44px; }
  .form { flex-direction: column; align-items: stretch; gap: 28px; }
  .btn { align-self: center; }
  .colm { padding-top: 80px; }
  .hr { margin: 64px 0; }
  .theme-toggle { top: 18px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .thanks { animation: none; opacity: 1; transform: none; }
  .drop { animation: none; opacity: 0; }
}
