/* ==========================================================================
   pencloser.com — Privacy Encloser
   Translucent-frost palette, retro-display typography, f-pattern layout,
   botanical-illustration imagery, grid-lines motifs.
   ========================================================================== */

:root {
    --frost-white: #E8EEF0;
    --ice-blue: #D0D8E0;
    --grid-gray: #C0C8D0;
    --charcoal: #282830;
    --botanical: #507848;
    --seal-gold: #B8983B;
    --rose-antique: #C08070;

    --grid-line: rgba(192, 200, 208, 0.08);
    --grid-line-strong: rgba(192, 200, 208, 0.22);
    --frost-glass: rgba(232, 238, 240, 0.78);
    --ice-shadow: rgba(40, 40, 48, 0.06);

    --mx: 0;
    --my: 0;

    --gap: 32px;
    --rule: 1px;
    --pad: clamp(20px, 3vw, 56px);
}

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

html, body {
    background: var(--frost-white);
    color: var(--charcoal);
    font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
    font-weight: 400;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(1200px 700px at 20% 10%, rgba(208, 216, 224, 0.55), transparent 60%),
        radial-gradient(900px 500px at 90% 60%, rgba(232, 238, 240, 0.95), transparent 65%),
        var(--frost-white);
}

/* ==========================================================================
   Grid-lines overlay (classified-section structure)
   ========================================================================== */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background-image:
        repeating-linear-gradient(to right,
            var(--grid-line) 0,
            var(--grid-line) 1px,
            transparent 1px,
            transparent 64px),
        repeating-linear-gradient(to bottom,
            var(--grid-line) 0,
            var(--grid-line) 1px,
            transparent 1px,
            transparent 64px);
    transition: opacity 600ms ease;
}
.grid-overlay.is-on {
    opacity: 1;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.encloser {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

h1, h2, h3, h4 {
    font-family: "Abril Fatface", "Source Serif 4", Georgia, serif;
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: 0.01em;
}

p, li {
    font-family: "Source Serif 4", Georgia, serif;
    color: var(--charcoal);
}

em { font-style: italic; }

/* ==========================================================================
   Frosted entry (100vh)
   ========================================================================== */
.entry {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-content: center;
    padding: clamp(60px, 10vh, 140px) 0;
    overflow: hidden;
}

.entry-floral {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(140px, 18vw, 240px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1200ms ease;
}
.entry-floral.is-drawn {
    opacity: 0.85;
}
.entry-floral--left { left: 0; }
.entry-floral--right { right: 0; transform: scaleX(-1); }

.botanical { width: 100%; height: 100%; }
.botanical .bot-stem,
.botanical .bot-leaf,
.seal-svg .seal-ring,
.seal-svg .seal-leaf {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1400ms ease;
}
.entry-floral.is-drawn .bot-stem,
.entry-floral.is-drawn .bot-leaf {
    stroke-dashoffset: 0;
}
.seal-svg.is-drawn .seal-ring,
.seal-svg.is-drawn .seal-leaf {
    stroke-dashoffset: 0;
}

.entry-frost {
    position: relative;
    margin: 0 auto;
    width: min(820px, 90%);
    padding: clamp(28px, 5vh, 56px) clamp(28px, 5vw, 64px);
    background: var(--frost-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(208, 216, 224, 0.6);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 30px 80px -40px rgba(40, 40, 48, 0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 800ms ease, transform 800ms ease, backdrop-filter 400ms ease;
}
.entry-frost.is-on {
    opacity: 1;
    transform: translateY(0);
}

.entry-rule {
    height: 1px;
    background: var(--grid-gray);
    opacity: 0.6;
    margin: 14px 0;
}
.entry-rule--top { margin-top: 0; }
.entry-rule--bot { margin-bottom: 0; }
.entry-rule--mid {
    background: linear-gradient(to right,
        transparent, var(--grid-gray) 18%, var(--grid-gray) 82%, transparent);
    margin: 22px 0;
}

.entry-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0.75;
    margin-bottom: 18px;
}
.rule-piece {
    flex: 1;
    height: 1px;
    background: var(--grid-gray);
    max-width: 120px;
    opacity: 0.7;
}

.entry-domain {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: clamp(28px, 6vw, 78px);
    line-height: 1.05;
    text-align: center;
    color: var(--charcoal);
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    margin: 8px 0 12px;
}

.entry-tagline {
    text-align: center;
    font-size: clamp(14px, 1.1vw, 17px);
    color: var(--charcoal);
    opacity: 0.8;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.entry-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-left: 1px solid var(--grid-gray);
}
.entry-meta-cell {
    border-right: 1px solid var(--grid-gray);
    padding: 10px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.meta-label {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0.55;
}
.meta-value {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 16px;
    color: var(--charcoal);
}

.entry-scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0;
    transition: opacity 800ms ease 1400ms;
}
.entry-scroll.is-on { opacity: 0.55; }
.scroll-arrow { animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(4px); opacity: 1; }
}

/* ==========================================================================
   Classifieds — F-pattern grid
   ========================================================================== */
.classifieds {
    position: relative;
    padding: clamp(60px, 10vh, 120px) 0;
}

.classifieds-masthead,
.registry-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 auto var(--gap);
    width: min(960px, 100%);
}
.masthead-rule {
    flex: 1;
    height: 2px;
    background: var(--grid-gray);
    opacity: 0.55;
}
.masthead-title {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: clamp(22px, 2.4vw, 32px);
    text-align: center;
    color: var(--charcoal);
    white-space: nowrap;
    padding: 0 6px;
}

.f-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
}

/* F-band 1: long top */
.classified--primary {
    grid-column: span 7;
}
.classified--secondary {
    grid-column: span 5;
}
/* F-band 2: shorter horizontal */
.classified--band {
    grid-column: span 6;
}
.classified--note {
    grid-column: span 3;
    background: rgba(232, 238, 240, 0.55);
}
/* Seal divider full-width */
.seal-divider {
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
/* F-band 3: vertical scan down left -- 4 small classifieds, narrow column */
.classified--scan {
    grid-column: span 4;
}

@media (max-width: 960px) {
    .classified--primary,
    .classified--secondary,
    .classified--band,
    .classified--note,
    .classified--scan {
        grid-column: span 12;
    }
    .seal-divider { grid-column: span 12; }
}

/* ==========================================================================
   Classified card — frosted glass panel with grid rules
   ========================================================================== */
.classified {
    position: relative;
    background: var(--frost-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(208, 216, 224, 0.55);
    padding: clamp(20px, 2.4vw, 32px);
    color: var(--charcoal);
    transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px));
    transition:
        transform 600ms cubic-bezier(.2,.8,.2,1),
        border-color 300ms ease,
        backdrop-filter 400ms ease,
        box-shadow 400ms ease,
        opacity 800ms ease;

    opacity: 0;
}
.classified.is-in { opacity: 1; }

.classified::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(192, 200, 208, 0.18);
    pointer-events: none;
}

.classified:hover {
    border-color: var(--seal-gold);
    border-width: 2px;
    padding: calc(clamp(20px, 2.4vw, 32px) - 1px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px -40px rgba(40, 40, 48, 0.35);
}

.classified-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 12px;
    border-bottom: 1px solid var(--grid-gray);
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.classified-num {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 14px;
    color: var(--seal-gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.classified-title {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 18px;
    line-height: 1.2;
    color: var(--charcoal);
}
.classified--primary .classified-title {
    font-size: clamp(22px, 2.4vw, 32px);
}
.classified-date {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0.5;
    white-space: nowrap;
}

.classified-body {
    font-size: clamp(14px, 0.95vw, 16px);
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 12px;
}
.classified-body:last-of-type { margin-bottom: 0; }
.classified--primary .classified-body {
    font-size: clamp(15px, 1.05vw, 17px);
}

.classified-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(192, 200, 208, 0.45);
}
.foot-tag {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--botanical);
    opacity: 0.85;
}

/* ==========================================================================
   Seal divider (between classifieds + interlude)
   ========================================================================== */
.seal-divider {
    min-height: 220px;
}
.seal-svg {
    width: 100%;
    max-width: 220px;
    height: auto;
}
#sealSvg2 { max-width: 360px; }

.interlude {
    position: relative;
    padding: clamp(60px, 10vh, 120px) 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.interlude-rule {
    width: min(700px, 80%);
    height: 1px;
    background: var(--grid-gray);
    opacity: 0.6;
}
.interlude-seal {
    width: min(360px, 70%);
}
.interlude-seal .seal-svg {
    max-width: 360px;
}
.interlude-motto {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: clamp(18px, 2vw, 26px);
    color: var(--charcoal);
    opacity: 0.8;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   Registry footer
   ========================================================================== */
.registry {
    padding: clamp(60px, 10vh, 120px) 0 60px;
}
.registry-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 2px solid var(--grid-gray);
    border-bottom: 2px solid var(--grid-gray);
}
@media (max-width: 800px) {
    .registry-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
    .registry-cols { grid-template-columns: 1fr; }
}

.reg-col {
    border-right: 1px solid var(--grid-gray);
    padding: 22px 18px;
}
.reg-col:last-child { border-right: 0; }

.reg-col-title {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 16px;
    color: var(--charcoal);
    border-bottom: 1px solid var(--grid-gray);
    padding-bottom: 8px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}
.reg-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reg-list li {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 13px;
    color: var(--charcoal);
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    line-height: 1.6;
}
.reg-num {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 13px;
    color: var(--seal-gold);
    text-align: right;
}

.colophon {
    margin-top: 48px;
    text-align: center;
}
.colophon-rule {
    height: 1px;
    background: var(--grid-gray);
    opacity: 0.6;
    margin: 12px 0;
}
.colophon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    justify-content: center;
    padding: 10px 0;
}
.colophon-cell {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 11px;
    color: var(--charcoal);
    letter-spacing: 0.05em;
}
.colophon-cell .meta-label {
    margin-right: 6px;
}
.colophon-fine {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 11px;
    line-height: 1.7;
    color: var(--charcoal);
    opacity: 0.65;
    max-width: 720px;
    margin: 12px auto 0;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms ease, transform 700ms ease;
}
.fade-up.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger via attribute */
.classified[data-step="0"] { transition-delay: 60ms; }
.classified[data-step="1"] { transition-delay: 120ms; }
.classified[data-step="2"] { transition-delay: 180ms; }
.classified[data-step="3"] { transition-delay: 240ms; }
.classified[data-step="4"] { transition-delay: 300ms; }
.classified[data-step="5"] { transition-delay: 360ms; }
.classified[data-step="6"] { transition-delay: 420ms; }
.classified[data-step="7"] { transition-delay: 480ms; }
