/* ---------------------------------------------------------
   AIRTH — Page Scope
   --------------------------------------------------------- */

body.airth-page {
    background: radial-gradient(
        circle at 50% 50%,
        #ece9e3 0%,
        #e3dfd8 55%,
        #d4d1cb 100%
    );
    color: #222;
    animation: airth-fade 0.8s ease-out;
    position: relative;
    overflow-x: hidden;
}

/* Subtle archival texture overlay */
body.airth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("../textures/faint-grain.png");
    opacity: 0.08;
    mix-blend-mode: multiply;
    z-index: 0;
}

/* Membrane fade-in */
@keyframes airth-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------------------------------------------------------
   Layout Refinements
   --------------------------------------------------------- */

body.airth-page header {
    padding-top: 2rem;
    padding-bottom: 1rem;
    position: relative;
    z-index: 1;
}

body.airth-page main {
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

/* Narrower manuscript column */
body.airth-page .text-column {
    max-width: 70ch;
    margin: 0 auto;
}

/* ---------------------------------------------------------
   Sigil
   --------------------------------------------------------- */

body.airth-page .press-sigil {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    opacity: 0.75;
}

/* ---------------------------------------------------------
   Links — Quiet, Manuscript-like
   --------------------------------------------------------- */

body.airth-page a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    padding-bottom: 1px;
}

body.airth-page a:hover {
    border-bottom-color: rgba(0,0,0,0.55);
}

/* ---------------------------------------------------------
   Breadcrumbs — Glyph-Based
   --------------------------------------------------------- */

.airth-breadcrumb {
    font-size: 0.85rem;
    opacity: 0.7;
    text-align: left;
    margin: 0 auto 1.2rem auto;
    max-width: 850px;
    position: relative;
    z-index: 1;
}

.airth-breadcrumb .sep {
    margin: 0 0.4rem;
    opacity: 0.5;
}

.airth-breadcrumb a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.airth-breadcrumb a:hover {
    border-bottom-color: rgba(0,0,0,0.5);
}

/* ---------------------------------------------------------
   Archive Micro-Tones
   --------------------------------------------------------- */

.airth-breadcrumb.ethics {
    letter-spacing: 0.02em;
}

.airth-breadcrumb.sortition {
    font-style: italic;
}

.airth-breadcrumb.ai {
    opacity: 0.75;
}

.airth-breadcrumb.fragments {
    opacity: 0.55;
    font-style: italic;
}

.ingress {
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.85;
    margin: 2rem 0 2.5rem 0;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255,255,255,0.12);
    letter-spacing: 0.01em;
}

/* --- MYTHIC CAPTION STRIP --- */

.codex-captions {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(230, 227, 220, 0.18);
}

.codex-captions .caption {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin: 0.6rem 0;
}

.codex-captions .entity {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ---------------------------------------------------------
   AIRTH — Verification Ritual Panel
   --------------------------------------------------------- */

#airth-verify {
    max-width: 60ch;
    margin: 4rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Panel container */
.airth-panel {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 2rem 2.2rem;
    backdrop-filter: blur(2px);
}

/* Header */
.airth-header h1 {
    margin: 0 0 0.4rem 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #222;
}

.airth-subtitle {
    margin: 0 0 1.4rem 0;
    font-size: 0.95rem;
    opacity: 0.75;
}

/* Intro text */
.airth-intro {
    margin-bottom: 1.6rem;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.85;
}

/* Form layout */
.airth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Label */
.airth-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
}

/* Input */
.airth-input {
    padding: 0.6rem 0.7rem;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.28);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
}

.airth-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.55);
}

/* Optional error feedback */
.airth-feedback-error {
    margin: -0.4rem 0 0.4rem 0;
    font-size: 0.85rem;
    color: #a00;
}

/* Buttons */
.airth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.airth-button {
    display: inline-block;
    text-align: center;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 0.01em;
}

/* Primary button */
.airth-button.primary {
    background: #222;
    color: #fff;
    border: 1px solid #222;
}

.airth-button.primary:hover {
    background: #000;
}

/* Secondary button */
.airth-button.secondary {
    background: rgba(255, 255, 255, 0.65);
    color: #222;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.airth-button.secondary:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* Footer note */
.airth-footer {
    margin-top: 1.8rem;
    font-size: 0.8rem;
    opacity: 0.65;
    text-align: center;
}

.airth-footnote {
    margin: 0;
}

/* AIRTH Page Navigation
   Quiet, codex‑style, sits neatly under the header.
*/

.airth-nav-footer {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0 2rem 0;
    font-size: 0.9rem;
    font-family: "Georgia", "Times New Roman", serif;
    letter-spacing: 0.02em;
}

.airth-nav-footer a {
    color: #333;
    text-decoration: none;
    padding: 0.2rem 0;
}

.airth-nav-footer a:hover {
    text-decoration: underline;
}

.airth-nav-prev {
    text-align: left;
}

.airth-nav-next {
    text-align: right;
}

/* ---------------------------------------------------------
   AIRTH — Codex Exit Link (Books)
   --------------------------------------------------------- */

.codex-exit {
    margin-top: 0.4rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.75;
    letter-spacing: 0.02em;
}

.codex-exit a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    padding-bottom: 1px;
}

.codex-exit a:hover {
    border-bottom-color: rgba(0,0,0,0.55);
}
