/* Unknown Frontier · resources/ pages (the UNSTUCK intro, the three self-tests): a paper reading treatment
   for content the owner supplied as standalone files, folded into the site's own tokens and type. Loaded
   after css/styles.css; the body carries class="page-simple page-read" for the rail-free paper canvas. */

.card { max-width: 40rem; margin-inline: auto; padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.card.reading { max-width: 42rem; }

/* ---------- topbar: a quiet way back in, no full site nav ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px; margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--paper-line);
}
.topbar-link, .pagefoot-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 550; font-size: 0.9375rem;
  color: var(--sumi); text-decoration: none;
}
.topbar-link:hover, .pagefoot-link:hover { color: var(--washi-ink); text-decoration: underline; text-underline-offset: 0.22em; }
.handle { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--sumi-2); }

/* ---------- hero: eyebrow, title, byline ---------- */
.reading-hero { margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 650;
  padding: 4px 10px; border-radius: 2px; margin-bottom: 14px;
}
.eyebrow-clay { background: var(--washi); color: #fff; }
.reading-hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1.05; font-weight: 350; letter-spacing: -0.02em;
  font-variation-settings: var(--flared); margin: 0 0 0.3em;
}
.reading-byline { color: var(--sumi-2); font-size: 1rem; margin: 0; }

/* ---------- reading body ---------- */
.reading-body p { color: var(--sumi-2); line-height: 1.7; font-size: 1.0625rem; margin: 0 0 1.1em; }
.reading-formula {
  text-align: center; font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); line-height: 1.3; font-weight: 350;
  font-variation-settings: var(--flared); color: var(--washi-ink); margin: 1.4em 0;
}
.reading-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--paper-line);
}
.reading-cta-btn {
  display: inline-flex; align-items: center; gap: 0.6em; min-height: 48px; padding: 0.75em 1.25em;
  background: var(--washi); color: #fff; border-radius: 2px; font-size: 0.875rem; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, transform .2s var(--ease-out);
}
.reading-cta-btn:hover { background: var(--washi-deep); transform: translateY(-2px); }

/* ---------- quiz intro copy ---------- */
.quiz-intro { color: var(--sumi-2); line-height: 1.7; font-size: 1.0625rem; margin: 0 0 1.2em; }
.quiz-subhead { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); font-weight: 450; font-variation-settings: var(--flared); margin: 0 0 0.5em; }
.quiz-lead { color: var(--sumi-2); line-height: 1.65; margin: 0 0 1em; }
.quiz-disclaimer, .privacy-note { font-size: 0.875rem; color: var(--sumi-2); background: var(--paper-2); border-radius: 2px; padding: 12px 16px; margin: 0 0 1.4em; }
.privacy-note { display: none; margin: 1.6em 0 0; }
.privacy-note.show { display: block; }
.intro { background: var(--paper-2); border-radius: 2px; padding: 14px 16px; margin: 0 0 1.6em; font-size: 0.9375rem; }
.intro p { margin: 0; }

/* ---------- progress ---------- */
.progress-bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; margin-bottom: clamp(28px, 4vw, 44px); }
.progress-fill { height: 100%; width: 0; background: var(--washi); border-radius: inherit; transition: width .3s var(--ease-out); }
.local-progress { height: 3px; background: var(--paper-2); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.local-fill { height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .3s var(--ease-out); }

/* ---------- questions ---------- */
.question { margin-bottom: clamp(28px, 3.5vw, 40px); }
.question-title { font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
.options { display: grid; gap: 8px; }
.options li {
  position: relative; list-style: none; border: 1px solid var(--paper-line); border-radius: 2px;
  padding: 12px 16px; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.options li:hover { border-color: var(--sumi-2); }
.options li.selected { border-color: var(--washi-ink); background: var(--paper-2); }
.options input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.options label { display: block; cursor: pointer; line-height: 1.45; font-size: 0.9375rem; }
.options input:focus-visible + label { outline: 2px solid var(--washi-ink); outline-offset: 2px; border-radius: 2px; }

/* ---------- submit + results ---------- */
.submit-btn {
  display: inline-flex; align-items: center; gap: 0.6em; min-height: 52px; padding: 0.85em 1.6em;
  background: var(--washi); color: #fff; border: 0; border-radius: 2px; cursor: pointer;
  font-size: 0.875rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color .2s, transform .2s var(--ease-out), opacity .2s;
}
.submit-btn:hover:not(:disabled) { background: var(--washi-deep); transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.results { display: none; margin-top: clamp(32px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); border-left: 3px solid var(--washi); background: var(--paper-2); border-radius: 0 2px 2px 0; }
.results.show { display: block; animation: results-in .5s var(--ease-out); }
@keyframes results-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-title { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem); font-weight: 450; font-variation-settings: var(--flared); margin-bottom: 0.6em; }
.result-description p { color: var(--sumi-2); line-height: 1.65; margin: 0 0 1em; }
.next-steps { margin-top: 1.4em; padding-top: 1.4em; border-top: 1px solid var(--paper-line); }
.next-steps h3 { font-size: 1rem; font-weight: 650; margin-bottom: 0.7em; }
.next-steps p { color: var(--sumi-2); line-height: 1.6; margin: 0 0 1em; }
.next-steps strong { color: var(--sumi); }

.action-buttons { display: none; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 3vw, 32px); }
.action-buttons.show { display: flex; }
.action-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.7em 1.2em;
  background: none; color: var(--sumi); border: 1px solid var(--paper-line); border-radius: 2px; cursor: pointer;
  font-size: 0.875rem; font-weight: 600; transition: border-color .2s, color .2s;
}
.action-btn:hover { border-color: var(--washi-ink); color: var(--washi-ink); }

/* ---------- footer + toast ---------- */
.pagefoot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--paper-line);
}
.legal { font-size: 0.8125rem; color: var(--sumi-2); }
.copy-notification {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); z-index: 60;
  background: var(--sumi); color: var(--paper); font-size: 0.875rem; font-weight: 550;
  padding: 12px 20px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out);
}
.copy-notification.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 599px) {
  .card { padding-inline: var(--gutter); }
  .reading-cta { flex-direction: column; align-items: flex-start; }
}
