/*
Theme Name: Your Charm — Coming Soon
Theme URI: https://yourcharmllc.com/
Author: Your Charm LLC
Description: A custom editorial coming-soon experience for Your Charm.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: yourcharm
*/

:root {
  --ink: #100c12;
  --plum: #211321;
  --plum-soft: #41283e;
  --ivory: #f5efe5;
  --paper: #ebe1d3;
  --muted: #ad9ca9;
  --gold: #cbb28d;
  --line: rgba(245, 239, 229, 0.2);
  --max-width: 1240px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Baskerville, Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  background: var(--ivory);
  color: var(--ink);
  padding: 10px 16px;
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  transition: background 400ms ease, border-color 400ms ease, backdrop-filter 400ms ease;
}

.site-header.is-scrolled {
  background: rgba(16, 12, 18, 0.72);
  border-bottom: 1px solid rgba(245, 239, 229, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.27em;
  line-height: 1;
}

.brand-mark {
  position: relative;
  width: 22px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px 5px;
  border: 1px solid var(--gold);
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.brand-mark::after {
  inset: 7px 8px;
  border-color: rgba(245, 239, 229, 0.7);
}

.header-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 239, 229, 0.75);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.header-note::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(203, 178, 141, 0.12);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  background-color: #0b080d;
  background-image: url("assets/yc-crystal-hero.webp");
  background-position: 62% center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 9, 0.98) 0%, rgba(8, 6, 9, 0.87) 25%, rgba(8, 6, 9, 0.26) 58%, rgba(8, 6, 9, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 7, 11, 0.72) 0%, transparent 33%, rgba(8, 6, 9, 0.18) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20%;
  opacity: 0.55;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 70%) var(--mouse-y, 42%), rgba(201, 157, 194, 0.17), transparent 23%);
  transition: background-position 200ms ease;
}

.hero-inner {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 150px 0 100px;
}

.hero-copy {
  width: min(680px, 55vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 30px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.31em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 670px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(70px, 7.7vw, 122px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.83;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  padding-left: 0.52em;
  color: var(--gold);
  font-weight: 400;
}

.hero-intro {
  max-width: 510px;
  margin: 34px 0 0;
  padding-left: 54px;
  color: rgba(245, 239, 229, 0.69);
  font-family: var(--serif);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.65;
}

.signup-wrap {
  max-width: 510px;
  margin: 42px 0 0 54px;
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid rgba(245, 239, 229, 0.4);
  transition: border-color 250ms ease;
}

.signup-form:focus-within {
  border-color: var(--gold);
}

.signup-form input[type="email"] {
  min-width: 0;
  height: 57px;
  padding: 0 18px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.signup-form input[type="email"]::placeholder {
  color: rgba(245, 239, 229, 0.47);
  opacity: 1;
}

.signup-form button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 57px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.signup-form button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(245, 239, 229, 0.35);
  border-radius: 50%;
  transition: border-color 250ms ease, background 250ms ease, color 250ms ease, transform 250ms ease;
}

.signup-form button:hover span,
.signup-form button:focus-visible span {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  transform: translateX(3px);
}

.signup-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-note,
.form-status {
  margin: 12px 0 0;
  color: rgba(245, 239, 229, 0.42);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.form-status {
  color: var(--gold);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(245, 239, 229, 0.48);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform-origin: top;
  animation: linePulse 2.2s ease-in-out infinite;
}

@keyframes linePulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.manifesto {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.manifesto::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(73, 43, 68, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(73, 43, 68, 0.025), 0 0 0 160px rgba(73, 43, 68, 0.02);
}

.manifesto-inner {
  width: min(calc(100% - 64px), 1080px);
  margin: 0 auto;
  padding: clamp(110px, 13vw, 190px) 0;
}

.section-kicker {
  margin: 0 0 34px;
  color: #755b70;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.31em;
  text-transform: uppercase;
}

.manifesto h2 {
  max-width: 920px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.manifesto h2 em {
  color: #73526d;
  font-weight: 400;
}

.manifesto-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid rgba(16, 12, 18, 0.18);
}

.manifesto-bottom p {
  margin: 0;
  color: rgba(16, 12, 18, 0.68);
}

.manifesto-bottom p:first-child {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.35;
}

.collection {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 11vw, 170px) 0;
  background: #130e15;
}

.collection-inner {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
}

.collection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.collection-head .section-kicker {
  color: var(--gold);
}

.collection-head h2 {
  max-width: 630px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(47px, 5.4vw, 78px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.collection-head p {
  max-width: 320px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
}

.crystal-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  background-image: url("assets/yc-crystal-hero.webp");
  background-repeat: no-repeat;
  background-size: auto 135%;
}

.crystal-card:nth-child(1) {
  background-position: 64% 57%;
}

.crystal-card:nth-child(2) {
  margin-top: 74px;
  background-position: 87% 50%;
}

.crystal-card:nth-child(3) {
  margin-top: 22px;
  background-position: 47% 54%;
}

.crystal-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 6, 10, 0.92), transparent 58%);
  transition: background-color 500ms ease;
}

.crystal-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(245, 239, 229, 0.15);
  transition: inset 350ms ease, border-color 350ms ease;
}

.crystal-card:hover::after {
  inset: 10px;
  border-color: rgba(203, 178, 141, 0.65);
}

.card-number {
  position: absolute;
  top: 26px;
  right: 28px;
  color: rgba(245, 239, 229, 0.52);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.card-copy small {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.card-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.principles {
  background: var(--paper);
  color: var(--ink);
}

.principles-inner {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 110px 0;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid rgba(16, 12, 18, 0.2);
}

.principle {
  padding: 36px 40px 0 0;
}

.principle + .principle {
  padding-left: 40px;
  border-left: 1px solid rgba(16, 12, 18, 0.14);
}

.principle span {
  display: block;
  margin-bottom: 55px;
  color: #755b70;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.principle h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.principle p {
  margin: 0;
  color: rgba(16, 12, 18, 0.62);
  font-size: 13px;
}

.closing {
  position: relative;
  overflow: hidden;
  min-height: 76vh;
  display: grid;
  place-items: center;
  padding: 120px 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(119, 77, 111, 0.38), transparent 30%),
    #100c12;
}

.closing::before,
.closing::after {
  content: "";
  position: absolute;
  width: 610px;
  height: 610px;
  border: 1px solid rgba(203, 178, 141, 0.16);
  border-radius: 50%;
}

.closing::after {
  width: 440px;
  height: 440px;
  border-color: rgba(245, 239, 229, 0.08);
}

.closing-inner {
  position: relative;
  z-index: 1;
}

.closing .section-kicker {
  color: var(--gold);
}

.closing h2 {
  max-width: 870px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.closing h2 em {
  color: var(--gold);
  font-weight: 400;
}

.closing p {
  max-width: 440px;
  margin: 30px auto 38px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
}

.closing-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(245, 239, 229, 0.35);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: border-color 250ms ease, color 250ms ease;
}

.closing-link:hover,
.closing-link:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.site-footer {
  background: #0a080b;
  color: rgba(245, 239, 229, 0.5);
}

.footer-inner {
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(245, 239, 229, 0.1);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-inner .brand {
  color: var(--ivory);
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero {
    background-position: 62% center;
  }

  .hero-copy {
    width: min(640px, 72vw);
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(8, 6, 9, 0.98) 0%, rgba(8, 6, 9, 0.78) 43%, rgba(8, 6, 9, 0.18) 100%);
  }

  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .crystal-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    margin: 18px 0 0 auto;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero-inner,
  .manifesto-inner,
  .collection-inner,
  .principles-inner,
  .footer-inner {
    width: min(calc(100% - 40px), var(--max-width));
  }

  .header-inner {
    min-height: 76px;
  }

  .header-note span {
    display: none;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-end;
    background-position: 68% top;
    background-size: auto 72%;
    background-repeat: no-repeat;
  }

  .hero::before {
    background:
      linear-gradient(to top, rgba(8, 6, 9, 1) 4%, rgba(8, 6, 9, 0.97) 31%, rgba(8, 6, 9, 0.2) 71%, rgba(8, 6, 9, 0.16) 100%),
      linear-gradient(90deg, rgba(8, 6, 9, 0.7), transparent);
  }

  .hero-inner {
    padding: 310px 0 74px;
  }

  .hero-copy {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 8px;
  }

  .eyebrow::before {
    width: 28px;
  }

  .hero h1 {
    font-size: clamp(58px, 17vw, 84px);
    line-height: 0.86;
  }

  .hero h1 em {
    padding-left: 0.22em;
  }

  .hero-intro,
  .signup-wrap {
    margin-left: 0;
    padding-left: 0;
  }

  .hero-intro {
    max-width: 92%;
    margin-top: 25px;
    font-size: 16px;
    line-height: 1.5;
  }

  .signup-wrap {
    margin-top: 26px;
  }

  .signup-form button {
    font-size: 0;
  }

  .signup-form button span {
    font-size: 16px;
  }

  .form-note {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .manifesto-bottom,
  .collection-head {
    grid-template-columns: 1fr;
    display: grid;
    gap: 28px;
  }

  .manifesto-bottom {
    margin-top: 48px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .crystal-card,
  .crystal-card:nth-child(2),
  .crystal-card:nth-child(3) {
    width: 100%;
    min-height: 430px;
    margin: 0;
    grid-column: auto;
    background-size: auto 128%;
  }

  .crystal-card + .crystal-card {
    margin-top: 16px;
  }

  .principles-inner {
    padding: 90px 0;
  }

  .principle-list {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    padding: 30px 0;
    border-left: 0;
  }

  .principle + .principle {
    border-top: 1px solid rgba(16, 12, 18, 0.12);
  }

  .principle span {
    margin-bottom: 22px;
  }

  .closing::before {
    width: 430px;
    height: 430px;
  }

  .closing::after {
    width: 280px;
    height: 280px;
  }

  .footer-inner {
    min-height: 145px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }
}

@media (max-width: 380px) {
  .hero-inner {
    padding-top: 275px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-intro {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
