/* =====================================================================
   RETELLING TIME — site-wide layout & page styles
   Built on top of tokens.css design system
   ===================================================================== */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea { font-family: var(--font-ui); font-size: var(--t-body); }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--ink);
  padding: 0 28px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-art);
  font-size: 22px;
  color: var(--bone);
  letter-spacing: 0;
}
.nav__links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav__links a {
  font-weight: 500; font-size: 14px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--bone-dim);
  transition: color .15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--bone); }
.nav__links .btn { padding: 8px 16px; font-size: 12px; }

/* Mobile nav toggle */
.nav__toggle {
  display: none; background: none; border: none;
  width: 28px; height: 28px; position: relative;
  cursor: pointer;
}
.nav__toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--bone); position: absolute; left: 0;
  transition: .2s;
}
.nav__toggle span:nth-child(1) { top: 6px; }
.nav__toggle span:nth-child(2) { top: 13px; }
.nav__toggle span:nth-child(3) { top: 20px; }

@media (max-width: 680px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 20px 28px 28px;
    gap: 18px;
  }
  .nav__links.open { display: flex; }
}

/* Body offset for fixed nav */
body.paper { padding-top: 56px; }

/* ── Page wrapper ── */
.page { min-height: calc(100vh - 56px); }

/* ── Hero section ── */
.hero {
  padding: 100px 28px 80px;
  text-align: center;
}
.hero__eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, var(--t-hero));
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 20px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ── Section ── */
.section {
  padding: 80px 28px;
}
.section--ink {
  background: var(--ink);
  color: var(--bone);
}
.section--paper2 {
  background: var(--paper-2);
}
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ── Feature grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  padding: 36px 32px;
  position: relative;
}
.feature-card__icon {
  font-size: 36px;
  margin-bottom: 18px;
  display: block;
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.feature-card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone-dim);
}

/* ── Auth forms ── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: 40px 28px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card__header {
  margin-bottom: 36px;
}
.auth-card__title {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.auth-card__sub {
  color: var(--ink-2);
  font-size: 16px;
}

.form-group {
  margin-bottom: 22px;
}
.form-label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 2px solid transparent;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--ink);
}
.form-input::placeholder {
  color: rgba(27,24,20,.35);
}

.form-error {
  background: var(--rust);
  color: var(--bone);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  background: var(--teal);
  color: var(--bone);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}
.form-success.visible { display: block; }

.form-submit {
  width: 100%;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bone);
  transition: transform .04s;
}
.form-submit:active { transform: translateY(1px); }
.form-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.form-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
}
.form-footer a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

/* ── Profile page ── */
.profile-hero {
  background: var(--ink);
  color: var(--bone);
  padding: 48px 28px 56px;
}
.profile-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.profile-avatar {
  width: 88px; height: 88px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--gold-ink);
  flex-shrink: 0;
}
.profile-info__name {
  font-family: var(--font-art);
  font-size: 42px;
  line-height: 1;
  margin-bottom: 6px;
}
.profile-info__handle {
  font-size: 15px;
  color: var(--bone-dim);
  margin-bottom: 4px;
}
.profile-info__member {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.profile-info__bio {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 500px;
}

.profile-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 600px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}

.profile-section {
  margin-bottom: 48px;
}
.profile-section__title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

/* Assessment cards */
.assessment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.assessment-card {
  padding: 28px 26px;
  color: var(--bone);
}
.assessment-card__shift {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 10px;
}
.assessment-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.assessment-card__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* Activity feed */
.activity-list {
  list-style: none;
}
.activity-item {
  padding: 18px 0;
  border-bottom: var(--line-strong);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.activity-dot {
  width: 10px; height: 10px;
  background: var(--gold);
  margin-top: 7px;
  flex-shrink: 0;
}
.activity-text {
  font-size: 15px;
  line-height: 1.5;
}
.activity-time {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
}

/* ── Contact page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 56px);
}
@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-info {
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-form-wrap {
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: var(--bone-dim);
  padding: 48px 28px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__brand {
  font-family: var(--font-art);
  font-size: 20px;
  color: var(--bone);
}
.footer__links {
  display: flex; gap: 24px; list-style: none;
}
.footer__links a {
  font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.footer__links a:hover { color: var(--bone); }

@media (max-width: 600px) {
  .footer__inner { flex-direction: column; gap: 20px; text-align: center; }
  .hero { padding: 60px 20px 50px; }
  .section { padding: 50px 20px; }
  .profile-hero__inner { flex-direction: column; align-items: center; text-align: center; }
  .profile-info__bio { margin-left: auto; margin-right: auto; }
  .contact-info, .contact-form-wrap { padding: 50px 24px; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── Verify notice ── */
.notice-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: 40px 28px;
  text-align: center;
}
.notice-card {
  max-width: 480px;
}
.notice-card__icon {
  width: 64px; height: 64px;
  background: var(--gold);
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
