/* ============================================
   YOURIYOUNG — GLOBAL DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500&family=Inconsolata:wght@300;400;500&display=swap');

:root {
  --bg:         #0d0d0b;
  --bg-2:       #111110;
  --gold:       #B9965B;
  --gold-dim:   #8a6e3f;
  --gold-pale:  #d4b483;
  --white:      #f0ece4;
  --white-dim:  #a89e8e;
  --border:     rgba(185,150,91,0.18);
  --border-dim: rgba(185,150,91,0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --font-mono:    'Inconsolata', monospace;

  --max-prose: 680px;
  --max-wide:  1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

p { margin-bottom: 1.5em; color: #b8af9f; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-pale); }

/* NAV */
.yw-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(13,13,11,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dim);
}

.yw-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 0;
}
.yw-nav-logo .yw-mark { width: 30px; height: auto; }
.yw-nav-logo .yw-wordmark { width: 134px; height: auto; }
@media (max-width: 520px) {
  .yw-nav-logo .yw-wordmark { display: none; }
}

.yw-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.yw-nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s;
}

.yw-nav-links a:hover { color: var(--gold); }

/* FOOTER */
.yw-footer {
  border-top: 1px solid var(--border-dim);
  padding: 3.5rem 2.5rem 3rem;
  text-align: center;
}
.yw-footer .yw-lockup {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 2rem;
}

.yw-footer p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  margin: 0;
}

/* UTILITIES */
.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto;
  opacity: 0.5;
}

.overline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

/* BUTTONS: boarding-pass stubs (notched sides, a perforation, a tilt on hover) */
.btn, .yyn-cta, .yyr-btn {
  --notch: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
           radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.3;
  padding: 1rem 3.4rem 1rem 1.7rem;
  border: 0;
  border-radius: 0;
  color: var(--gold);
  background: rgba(185,150,91,0.14);
  box-shadow: none;
  cursor: pointer;
  -webkit-mask: var(--notch);
          mask: var(--notch);
  transition: transform .3s cubic-bezier(.3,1.5,.5,1), background .25s, color .25s;
}
.btn::after, .yyn-cta::after, .yyr-btn::after {
  content: '';
  position: absolute;
  top: 22%; bottom: 22%;
  right: 2.2rem;
  border-left: 1px dashed currentColor;
  opacity: .5;
}
.btn:hover, .btn:focus-visible,
.yyn-cta:hover, .yyn-cta:focus-visible,
.yyr-btn:hover, .yyr-btn:focus-visible {
  background: var(--gold);
  color: var(--bg);
  transform: rotate(-1.5deg);
}
.btn-filled, .yyn-cta, .yyr-btn.is-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-filled:hover, .btn-filled:focus-visible,
.yyn-cta:hover, .yyn-cta:focus-visible,
.yyr-btn.is-primary:hover, .yyr-btn.is-primary:focus-visible {
  background: var(--gold-pale);
  color: var(--bg);
}
.btn:focus-visible, .yyn-cta:focus-visible, .yyr-btn:focus-visible {
  outline: 2px solid var(--gold-pale);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .yyn-cta:hover, .yyr-btn:hover { transform: none; }
}

/* FORMS */
.yw-form { max-width: 560px; margin: 0 auto; }

.yw-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}

.yw-form input,
.yw-form select,
.yw-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  margin-bottom: 1.6rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.yw-form input:focus,
.yw-form select:focus,
.yw-form textarea:focus { border-color: var(--gold); }

.yw-form textarea { min-height: 130px; resize: vertical; }
.yw-form select option { background: var(--bg-2); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 0; }
.form-group input,
.form-group select,
.form-group textarea { margin-bottom: 0; }

/* PAGE SHELL */
.yw-page { padding-top: 80px; min-height: 100vh; }

.yw-section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.yw-prose {
  max-width: var(--max-prose);
  margin: 0 auto;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp 1s ease forwards; }
.fade-up-2 { animation: fadeUp 1s 0.2s ease forwards; opacity: 0; }
.fade-up-3 { animation: fadeUp 1s 0.4s ease forwards; opacity: 0; }
.fade-up-4 { animation: fadeUp 1s 0.6s ease forwards; opacity: 0; }
.fade-up-5 { animation: fadeUp 1s 0.8s ease forwards; opacity: 0; }

/* MOBILE */
@media (max-width: 640px) {
  .yw-nav { padding: 1rem 1.25rem; }
  .yw-nav-links { gap: 1.2rem; }
  .yw-section { padding: 3.5rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── NAV MENU (drop-down, all pages) ── */
.yw-menu { position: relative; display: flex; align-items: center; gap: 0.65rem; }
.yw-node-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-pale);
  background: rgba(185, 150, 91, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.44rem 0.9rem;
  white-space: nowrap;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.yw-node-pill:hover {
  border-color: var(--gold);
  background: rgba(185, 150, 91, 0.16);
  color: var(--white);
}
@media (max-width: 640px) {
  .yw-node-pill { padding: 0.38rem 0.72rem; font-size: 0.62rem; }
  .yw-node-pill .yw-node-pill-prefix { display: none; }
}
.yw-menu-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  font: 500 .85rem var(--font-body);
  letter-spacing: .04em;
  color: var(--white);
  background: rgba(240,236,228,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1rem .5rem .6rem;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.yw-menu-btn:hover { border-color: var(--gold); background: rgba(185,150,91,.08); }
.yw-menu-needle { width: 22px; height: 22px; transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.yw-menu-btn[aria-expanded="true"] .yw-menu-needle { transform: rotate(135deg); }
.yw-menu-panel {
  position: absolute;
  top: calc(100% + .8rem);
  right: 0;
  width: 300px;
  padding: .5rem;
  background: rgba(13,13,11,.96);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  transform-origin: top right;
  animation: yw-menu-in .3s cubic-bezier(.2,.7,.2,1);
}
.yw-menu-panel[hidden] { display: none; }
@keyframes yw-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.yw-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem;
  border-radius: 7px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
  transition: background .2s;
}
.yw-menu-item img {
  width: 52px; height: 64px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.yw-menu-item:hover, .yw-menu-item:focus-visible { background: rgba(185,150,91,.1); color: var(--gold-pale); }
.yw-menu-item:hover img, .yw-menu-item:focus-visible img { transform: scale(1.12) rotate(-2deg); }
.yw-menu-item[aria-current="page"] { color: var(--gold); }
.yw-menu :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 520px) {
  .yw-menu-panel { position: fixed; top: 4.4rem; left: .75rem; right: .75rem; width: auto; }
}
.yyr-second-note { margin-top: 0.45rem !important; font-size: 0.9rem; color: var(--yy-dusk, #8e8bc4); }

@media (prefers-reduced-motion: reduce) {
  .yw-menu-needle, .yw-menu-panel, .yw-menu-item img { transition: none; animation: none; }
}
