/*
Theme Name: Love, Miweni — Coming Soon
Author: Love, Miweni
Description: A one-page coming soon screen with a live countdown to opening day. Activate it while the main Love, Miweni theme is being finished, then switch back. Edit everything in Appearance → Customize → Coming Soon.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: love-miweni-coming-soon
*/

:root {
  --cocoa: #563C32;
  --cocoa-deep: #3F2B24;
  --blush: #D9B5AC;
  --cream: #F7F1E8;
  --taupe: #B7A28F;
  --rose: #E7D1C8;
  --ink: #4A332A;
  --muted: #7C665B;
  --line: rgba(86, 60, 50, .16);
  --f-logo: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --f-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --f-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
em, i { font-style: normal; }
img { max-width: 100%; display: block; }
a { color: var(--cocoa); }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }

.cs {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* Left: content */
.cs__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 6vw, 88px);
}
.cs__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wordmark {
  font-family: var(--f-logo);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: var(--cocoa);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.wordmark__dot { width: .2em; height: .2em; border-radius: 50%; background: var(--blush); margin-left: .05em; display: inline-block; }
.cs__love { font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); }

.cs__main { max-width: 34rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--blush); }
h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--cocoa);
  margin: 0 0 20px;
  text-wrap: balance;
}
.lede { font-size: 1.08rem; color: var(--muted); margin: 0 0 40px; max-width: 30rem; }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.countdown__unit { padding: 20px 0 18px; text-align: left; }
.countdown__unit + .countdown__unit { border-left: 1px solid var(--line); padding-left: clamp(14px, 2.4vw, 28px); }
.countdown__num {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--cocoa);
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown__label { display: block; margin-top: 8px; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cs__date { font-size: .85rem; color: var(--muted); margin: 0 0 36px; }
.cs__date strong { color: var(--cocoa); font-weight: 500; }

.opened { display: none; }
.is-open .countdown, .is-open .cs__date, .is-open .before-open { display: none; }
.is-open .opened { display: block; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--f-body); font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; border: 1px solid var(--cocoa);
  background: var(--cocoa); color: var(--cream);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--cocoa-deep); border-color: var(--cocoa-deep); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--cocoa); border-color: rgba(86, 60, 50, .3); }
.btn--ghost:hover { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
.btn svg { width: 17px; height: 17px; flex: none; }

.cs__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .8rem; color: var(--muted); }
.cs__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cs__links a { color: var(--cocoa); text-decoration: none; border-bottom: 1px solid var(--blush); padding-bottom: 2px; }
.cs__links a:hover { border-color: var(--cocoa); }

/* Right: photos */
.cs__media { position: relative; background: var(--rose); overflow: hidden; }
.cs__media > img { width: 100%; height: 100%; object-fit: cover; }
.cs__media .cs__card {
  position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 48px);
  width: min(46%, 240px); height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border: 10px solid var(--cream);
}
.cs__stamp {
  position: absolute; right: clamp(20px, 4vw, 48px); top: clamp(20px, 4vw, 48px);
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--cream); color: var(--cocoa);
  display: grid; place-items: center; text-align: center;
  font-family: var(--f-display); font-size: 1.05rem; line-height: 1.15;
}
.cs__stamp small { display: block; font-family: var(--f-body); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 2px; }

@media (max-width: 900px) {
  .cs { grid-template-columns: 1fr; }
  .cs__media { order: -1; height: 46vh; min-height: 280px; }
  .cs__card { display: none; }
  .cs__content { gap: 36px; }
}
@media (max-width: 480px) {
  .countdown__unit + .countdown__unit { padding-left: 10px; }
  .countdown__label { letter-spacing: .12em; font-size: .6rem; }
  .btn { width: 100%; }
  .cs__stamp { width: 92px; height: 92px; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.is-open .btn .opened { display: inline; }
