:root {
  --ink: #1b2a4a;
  --muted: #5b6b86;
  --paper: #f3f7fb;
  --accent: #4f5eff;
  --accent-2: #2f9dff;
  --line: #d7e2ef;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand, .topbar a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}
.brand-mark {
  display: block;
  height: 28px;
  width: auto;
}
.brand-word {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
  line-height: 1;
}
.brand-joo { color: var(--ink); }
.brand-meet { color: var(--accent); }
.brand-on-dark .brand-joo { color: #fff; }
.brand-on-dark .brand-meet { color: #9db4ff; }
.topbar nav {
  display: flex;
  gap: 12px 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-link { color: var(--accent) !important; }
.page { padding: 48px 24px; max-width: 760px; margin: 0 auto; width: 100%; flex: 1; }
.page.page-wide { max-width: 1120px; }
.hero h1 { font-size: 2.4rem; margin-bottom: 10px; }
.hero p { color: var(--muted); font-size: 1.05rem; }
.cta-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.submit-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.submit-btn { background: linear-gradient(135deg, #2f9dff, #4f5eff); color: #fff; border: 0; }
.ghost-btn { background: transparent; border: 1px solid var(--line); color: var(--ink); }

.profile-hero { margin-bottom: 24px; }
.profile-hero .eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.profile-hero h1 { margin: 0 0 8px; font-size: 2rem; }
.profile-hero p { margin: 0; color: var(--muted); }
.profile-card {
  display: grid;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.profile-card label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 600; }
.profile-card label em { font-style: normal; font-weight: 500; color: var(--muted); }
.profile-card small { font-weight: 500; color: var(--muted); }
.profile-card input,
.profile-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.profile-card input:focus,
.profile-card textarea:focus {
  outline: 2px solid rgba(224, 90, 60, 0.35);
  border-color: var(--accent);
}
.profile-photo-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  overflow: hidden;
  background: #ece4d8;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-copy p { margin: 4px 0 10px; color: var(--muted); font-weight: 500; }
.photo-picker { display: inline-flex; }
.form-error {
  margin: 0;
  color: #b42318;
  background: #fdecea;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
}
.form-error.form-ok {
  color: #1f7a54;
  background: #e7f6ee;
}
.profile-card .submit-btn { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  margin-top: auto;
  background: #0f1728;
  color: #9aa8c2;
  padding: 48px 24px 28px;
  position: relative;
  overflow: hidden;
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}
.site-footer-grid a {
  display: block;
  color: #9aa8c2;
  text-decoration: none;
  font-weight: 500;
  margin: 8px 0;
  font-size: 0.94rem;
}
.site-footer-grid a:hover { color: #fff; }
.site-footer-subscribe {
  display: flex;
  gap: 0;
  margin-top: 4px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a3650;
  background: #0b1220;
}
.site-footer-subscribe input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}
.site-footer-subscribe input::placeholder { color: #6f7d96; }
.site-footer-subscribe input:focus { outline: none; }
.site-footer-subscribe button {
  border: 0;
  background: #1b2740;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}
.site-footer-subscribe button:hover { background: #243250; }
.site-footer-subscribe-msg {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #9db4ff;
}
.site-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.site-footer-social a {
  width: 36px;
  height: 36px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #1b2740;
  color: #d7e2ef;
  font-size: 0.85rem;
  font-weight: 700;
}
.site-footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #243047;
  text-align: center;
}
.site-footer-bottom nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.site-footer-bottom a {
  color: #c5d0e0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-footer-bottom a:hover { color: #fff; }
.site-footer-bottom p {
  margin: 12px 0 0;
  color: #7d8ba3;
  font-size: 0.88rem;
}
.site-footer-visitors {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1b2740;
  color: #c5d0e0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-footer-visitors-count {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.site-footer-sparkle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .topbar nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 14px;
  }
  .page { padding: 24px 16px; }
  .hero h1 { font-size: 1.8rem; }
  .profile-card { padding: 20px 16px; }
  .profile-photo-row { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 36px 16px 24px; }
  .site-footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
