/* Nine — itsnine.com
   Fonts: Ivy Ora Display (display) + Polymath Text (body), Postmoda design system.
   Every page loads this file; page-specific keyframes and media queries are inline in each page. */

/* ---------- webfonts ---------- */
@font-face { font-family:"Ivy Ora Display"; src:url("fonts/IvyOraDisplay-Light.ttf") format("truetype");   font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:"Ivy Ora Display"; src:url("fonts/IvyOraDisplay-Regular.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Ivy Ora Display"; src:url("fonts/IvyOraDisplay-Medium.ttf") format("truetype");  font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Ivy Ora Display"; src:url("fonts/IvyOraDisplay-Bold.ttf") format("truetype");    font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Polymath Text"; src:url("fonts/PolymathText-Regular.otf") format("opentype");  font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Polymath Text"; src:url("fonts/PolymathText-Medium.otf") format("opentype");   font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Polymath Text"; src:url("fonts/PolymathText-Semibold.otf") format("opentype"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Polymath Text"; src:url("fonts/PolymathText-Bold.otf") format("opentype");     font-weight:700; font-style:normal; font-display:swap; }

/* ---------- tokens ---------- */
:root {
  --font-display: "Ivy Ora Display", "Playfair Display", Georgia, serif;
  --font-body: "Polymath Text", "Poppins", system-ui, -apple-system, sans-serif;
  --accent: #E6FF9C;
  --accent-hover: #C9E86F;
  --ink: #F8F3E6;
  --ink-dim: #B9ACB5;
  --ink-muted: #9F929B;
  --ink-faint: #8C7F89;
  --bg: #100B0F;
  --bg-alt: #0C080B;
  --bg-deep: #0A070A;
  --text-on-accent: #392A35;
  --hairline: rgba(248, 243, 230, 0.10);
}

/* ---------- resets ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-dim); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #F1FFC9; }
::selection { background: var(--accent); color: var(--text-on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- button (Postmoda) ---------- */
.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--accent);
  color: var(--text-on-accent);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(.16,1,.3,1), filter 160ms cubic-bezier(.16,1,.3,1);
}
a:hover > .pm-btn, .pm-btn:hover { filter: brightness(0.94); color: var(--text-on-accent); }
a:active > .pm-btn, .pm-btn:active { transform: scale(0.97); }
.pm-btn--sm { font-size: 12px; padding: 8px 16px; letter-spacing: .10em; }
.pm-btn--md { font-size: 13px; padding: 12px 24px; letter-spacing: .11em; }
.pm-btn--lg { font-size: 14px; padding: 16px 34px; letter-spacing: .12em; }
.pm-btn--outline { background: transparent; border-color: rgba(248,243,230,.28); color: var(--ink); }
a:hover > .pm-btn--outline { color: var(--ink); border-color: rgba(248,243,230,.55); }

/* ---------- hover states lifted from the design ---------- */
.hv1:hover { color:#F8F3E6; }

/* ---------- login modal ---------- */
#nine-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 7, 10, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#nine-modal[hidden] { display: none; }
.nine-modal__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 44px 40px 40px;
  background: var(--bg-alt);
  border: 1px solid rgba(248, 243, 230, 0.14);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nine-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 999px;
  color: var(--ink-faint);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.nine-modal__close:hover { color: var(--ink); background: rgba(248, 243, 230, 0.06); }
.nine-modal__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
}
.nine-modal__sub {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.nine-modal__input {
  margin-top: 26px;
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid rgba(248, 243, 230, 0.16);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .04em;
  transition: border-color 160ms ease;
}
.nine-modal__input::placeholder { color: #6F6470; }
.nine-modal__input:focus { outline: none; border-color: rgba(230, 255, 156, 0.55); }
.nine-modal__err {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  color: #E88C8C;
}
.nine-modal__submit { margin-top: 8px; width: 100%; }

@media (max-width: 420px) {
  .nine-modal__panel { padding: 40px 26px 32px; }
}
