/*
Theme Name: Laviz Coming Soon
Description: One-page coming soon theme for Laviz International Company (jackets and bags). Zipper-opening intro, email sign-up list, optional launch countdown.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: laviz-coming-soon
*/

@property --p { syntax: '<percentage>'; inherits: true; initial-value: 0%; }

:root {
  --oxblood: #4a1620;
  --leather: #5c1d29;
  --lining: #2a0b11;
  --thread: #e9b44c;
  --bone: #f2ece2;
  --steel: #aeb5bb;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Newsreader', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lining);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Zipper intro ---------- */
.zip {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  animation:
    pull 1.8s cubic-bezier(.65, 0, .35, 1) .7s forwards,
    leave .4s linear 3.5s forwards;
}
.zip__half {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--leather);
}
.zip__half--l { left: 0; clip-path: polygon(0 0, 100% var(--p), 100% 100%, 0 100%); animation: part-l .8s cubic-bezier(.7, 0, .9, .5) 2.5s forwards; }
.zip__half--r { right: 0; clip-path: polygon(0 var(--p), 100% 0, 100% 100%, 0 100%); animation: part-r .8s cubic-bezier(.7, 0, .9, .5) 2.5s forwards; }
.zip__half::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  border-left: 2px dashed rgba(233, 180, 76, .75);
}
.zip__half--l::after { right: 22px; }
.zip__half--r::after { left: 22px; }
.zip__half span {
  position: absolute; top: 50%; transform: translateY(-52%);
  font-family: var(--display); font-weight: 800; line-height: 1;
  font-size: clamp(4.5rem, 17vw, 15rem); letter-spacing: -.04em; color: var(--bone);
}
.zip__half--l span { right: 34px; }
.zip__half--r span { left: 34px; }
.zip__seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; margin-left: -7px; }
.zip__teeth {
  position: absolute; inset: 0; clip-path: inset(var(--p) 0 0 0);
  background:
    repeating-linear-gradient(180deg, var(--steel) 0 6px, transparent 6px 12px) 0 0 / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 6px, var(--steel) 6px 12px) 8px 0 / 6px 100% no-repeat;
}
.zip__pull {
  position: absolute; left: 50%; top: var(--p); width: 28px; height: 58px; margin-left: -14px;
  transform: translateY(-8px); border-radius: 6px 6px 14px 14px;
  background: linear-gradient(90deg, #c9cfd4, var(--steel) 45%, #8b949b);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}
.zip__pull::after {
  content: ""; position: absolute; left: 50%; bottom: 9px; width: 10px; height: 20px; margin-left: -5px;
  border-radius: 5px; background: var(--leather);
}
@keyframes pull { to { --p: 100%; } }
@keyframes part-l { to { transform: translateX(-101%); } }
@keyframes part-r { to { transform: translateX(101%); } }
@keyframes leave { to { opacity: 0; visibility: hidden; } }

/* ---------- Page ---------- */
.page {
  min-height: 100vh;
  background: radial-gradient(120% 80% at 85% 0%, #6a2230 0%, var(--oxblood) 45%, var(--lining) 100%);
}
.wrap {
  max-width: 1240px; margin: 0 auto; min-height: 100vh;
  padding: clamp(20px, 4vw, 56px);
  display: grid; grid-template-rows: auto 1fr auto; gap: 2.5rem;
}
.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.top .custom-logo { max-height: 48px; width: auto; display: block; }
.top__links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: 1rem; }
.top__links a, .foot a { text-decoration-color: var(--thread); text-underline-offset: 4px; }

.main { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
h1 {
  margin: 1rem 0 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em;
}
.lead { max-width: 34em; margin: 1.5rem 0 0; font-size: 1.3rem; line-height: 1.6; }

.count { display: flex; gap: 1.6rem; margin-top: 1.9rem; }
.count[hidden] { display: none; }
.count b {
  display: block; font-family: var(--display); font-weight: 800; line-height: 1;
  font-size: clamp(2rem, 4vw, 2.9rem); color: var(--thread); font-variant-numeric: tabular-nums;
}
.count span { font-size: .95rem; }

.notify { margin-top: 2rem; max-width: 34rem; padding: 1.1rem; border: 2px dashed rgba(233, 180, 76, .7); border-radius: 6px; }
.notify__row { display: flex; gap: .6rem; }
.notify input[type="email"] {
  flex: 1; min-width: 0; padding: .85rem 1rem; font: inherit; color: var(--bone);
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(242, 236, 226, .3); border-radius: 4px;
}
.notify input::placeholder { color: rgba(242, 236, 226, .65); }
.notify button {
  font-family: var(--display); font-weight: 700; font-size: 1rem; padding: .85rem 1.4rem;
  color: var(--lining); background: var(--thread); border: 0; border-radius: 4px; cursor: pointer;
}
.notify button:hover { background: #f4c565; }
.notify small { display: block; margin-top: .7rem; font-size: .95rem; opacity: .85; }
.hp { position: absolute; left: -9999px; }
.notice {
  margin: 0 0 1rem; padding: .8rem 1rem; max-width: 34rem; background: rgba(0, 0, 0, .3);
  border-left: 4px solid var(--thread);
}
.notice--error { border-left-color: #ff8a7a; }

/* Coming Soon: running-stitch lettering */
.soon svg { display: block; width: 100%; max-width: 680px; height: auto; overflow: visible; }
.soon__t {
  font-family: var(--display); font-weight: 800; font-size: 138px;
  fill: var(--thread); fill-opacity: 0;
  stroke: var(--bone); stroke-width: 2.5; stroke-dasharray: 11 9;
  animation: soon-fill 1.1s ease 3.3s forwards, soon-run 1.1s linear 3.3s infinite;
}
@keyframes soon-fill { to { fill-opacity: 1; } }
@keyframes soon-run { to { stroke-dashoffset: -40; } }

/* Hang tag */
.tag {
  position: relative; background: var(--bone); color: var(--lining);
  padding: 3.4rem 2rem 2.2rem; transform: rotate(1.5deg);
  clip-path: polygon(14% 0, 86% 0, 100% 10%, 100% 100%, 0 100%, 0 10%);
}
.tag::before {
  content: ""; position: absolute; top: 1.1rem; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: var(--oxblood); box-shadow: inset 0 0 0 3px var(--thread);
}
.tag__head { margin: 0 0 1.2rem; font-family: var(--display); font-weight: 700; font-size: 1rem; text-align: center; }
.tag__item + .tag__item { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 2px dashed rgba(42, 11, 17, .35); }
.tag__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1; letter-spacing: -.02em; }
.tag__item p { margin: .4rem 0 0; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: 1rem; }
.foot nav { display: flex; gap: 1.5rem; }

@media (max-width: 880px) {
  .main { grid-template-columns: 1fr; }
  .tag { max-width: 26rem; }
}
@media (max-width: 520px) {
  .notify__row { flex-direction: column; }
  .count { gap: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .zip { display: none; }
  .soon__t { animation: none; fill-opacity: 1; }
}
