/* ===================================================
   Society No. 150 — Unified Design System
   =================================================== */

/* --- Reset & Base --- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #f0e0cc;
  --cream2: #e8d5be;
  --muted: rgba(240, 224, 204, 0.5);
  --muted2: rgba(240, 224, 204, 0.28);
  --stroke: rgba(240, 224, 204, 0.15);
  --stroke2: rgba(240, 224, 204, 0.25);
  --accent: #c4956a;
  --accent2: #9b6f4a;
  --bg: #1a0608;
  --bg2: #2a0d12;
  --bg3: #3a1218;
  --bg4: #0d0304;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --sidebar-width: 220px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg4);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(196, 149, 106, 0.2);
  color: var(--cream);
}

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


/* ===================================================
   HERO PAGE (index.html)
   =================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg4);
  position: relative;
}

.hero-logo-link {
  display: block;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.hero-logo-link:hover {
  opacity: 1;
  filter: brightness(1.35);
}

.hero-logo {
  width: min(420px, 60vw);
  height: auto;
  display: block;
}

.hero-nav {
  margin-top: 6vh;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-nav-link {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
  cursor: pointer;
  padding: 4px 0;
}

.hero-nav-link:hover {
  color: var(--cream);
}

.hero-nav-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(240, 224, 204, 0.2);
}


/* ===================================================
   PAGE SHELL (shared by about, login)
   =================================================== */

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg4);
}


/* --- Header bar --- */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(13, 3, 4, 0.97);
  border-bottom: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.top-bar-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.top-bar-logo:hover {
  opacity: 0.7;
}

.top-bar-logo-img {
  height: 18px;
  width: auto;
  display: block;
}

.top-bar-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.top-bar-nav-link {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.top-bar-nav-link:hover {
  color: var(--cream);
}

.top-bar-nav-link.active {
  color: var(--cream);
}


/* --- Left sidebar (matches prototype sidebar) --- */

.sidebar {
  position: fixed;
  top: 68px;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  border-right: 1px solid var(--stroke);
  background: var(--bg4);
  z-index: 90;
  padding: 3rem 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-link {
  display: block;
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: var(--cream);
}

.sidebar-link.active {
  color: var(--cream);
  border-left-color: var(--accent);
}


/* --- Main content area (right of sidebar) --- */

.main-content {
  margin-top: 68px;
  margin-left: var(--sidebar-width);
  flex: 1;
}


/* ===================================================
   ABOUT PAGE
   =================================================== */

.about-content {
  padding: 4vh 48px 10vh;
  max-width: 720px;
}

.about-divider {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: rgba(240, 224, 204, 0.18);
  margin: 4vh 0;
}

.about-inner p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--cream2);
  margin-bottom: 2em;
  letter-spacing: 0.01em;
}

.about-inner p:last-child {
  margin-bottom: 0;
}

.about-lead {
  font-style: italic;
  color: var(--muted) !important;
  font-size: 1.0625rem !important;
  line-height: 2 !important;
}

.about-statement {
  font-size: 1.25rem !important;
  color: var(--cream) !important;
  letter-spacing: 0.03em;
  margin-top: 0.5em;
  margin-bottom: 2.5em !important;
}

.about-closing {
  font-style: italic;
}


/* --- Inquiry block (on about page) --- */

.inquiry {
  margin-top: 6vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inquiry-note {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.inquiry-link {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream2);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 224, 204, 0.3);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
  align-self: flex-start;
}

.inquiry-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* --- Bottom mark --- */

.bottom-mark {
  margin-top: 8vh;
}

.bottom-mark-img {
  height: 24px;
  width: auto;
  display: block;
  opacity: 0.4;
}


/* ===================================================
   LOGIN PAGE
   =================================================== */

.login-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px 8vh;
  min-height: calc(100vh - 68px);
}

.login-box {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.04em;
  margin-bottom: 0.4em;
}

.login-subtitle {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted2);
}

.login-input {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--stroke2);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.3s ease;
}

.login-input:focus {
  border-bottom-color: var(--accent);
}

.login-input::placeholder {
  color: var(--muted2);
}

.login-submit {
  margin-top: 1.5rem;
  padding: 15px 32px;
  border: 1px solid var(--stroke2);
  border-radius: 40px;
  background: transparent;
  color: var(--cream2);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.login-submit:hover {
  background: rgba(240, 224, 204, 0.04);
  border-color: var(--accent);
  color: var(--cream);
}

.login-error {
  margin-top: 1.25rem;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  min-height: 1.5em;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.login-error.visible {
  opacity: 1;
}


/* ===================================================
   MOBILE
   =================================================== */

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .top-bar {
    padding: 0 20px;
  }

  /* Show nav links in top bar on mobile since sidebar is hidden */
  .top-bar-nav-mobile {
    display: flex;
  }

  .hero-logo {
    width: min(340px, 72vw);
  }

  .hero-nav {
    gap: 2rem;
  }

  .hero-nav-link {
    font-size: 9px;
  }

  .about-content {
    padding: 4vh 24px 10vh;
  }

  .about-inner p {
    font-size: 1rem;
  }

  .login-content {
    padding: 0 24px 8vh;
  }

  .login-box {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 78vw;
  }

  .hero-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-nav-dot {
    display: none;
  }

  .about-inner p {
    font-size: 0.9375rem;
    line-height: 1.8;
  }
}
