/* diplomacy.day -- Brutalist Treaty Document */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Serif 4", Georgia, serif;
    background-color: #2C2019;
    color: #C4A882;
    overflow-x: hidden;
    line-height: 1.75;
}

/* ==================== MONOLITH ==================== */

.monolith {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #3B2212;
    overflow: hidden;
}

.monolith-inner {
    position: absolute;
    top: 38.2%;
    left: 0;
    right: 0;
    padding-left: 8vw;
    padding-right: 4vw;
}

.monolith-title {
    font-family: "Arvo", Georgia, serif;
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 9rem);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: #D4A574;
    line-height: 1;
}

.monolith-line {
    height: 2px;
    background-color: #A0522D;
    width: 0;
    margin-top: 2.5rem;
    transition: width 1200ms cubic-bezier(0.25, 0, 0.15, 1);
}

.monolith-line.visible {
    width: 100%;
}

/* ==================== ARTICLE SECTIONS ==================== */

.article {
    position: relative;
    width: 100%;
    min-height: 85vh;
    border-top: 4px solid #7A4A2A;
    border-bottom: 4px solid #7A4A2A;
    overflow: hidden;
}

.article--dark {
    background-color: #2C2019;
    border-top-color: #A0522D;
    border-bottom-color: #A0522D;
}

.article--light {
    background-color: #E8D5B7;
    border-top-color: #7A4A2A;
    border-bottom-color: #7A4A2A;
}

.article-inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 6rem 3rem;
}

/* ==================== GRID ==================== */

.grid {
    display: grid;
    grid-template-columns: 62% 34%;
    gap: 0 4%;
}

.col-left,
.col-right {
    text-align: left;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .col-right {
        margin-top: 3rem;
        padding-top: 3rem;
        border-top: 2px solid #A0522D;
    }
}

/* ==================== TYPOGRAPHY ==================== */

.overline {
    font-family: "Roboto Slab", serif;
    font-weight: 300;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #A0522D;
    margin-bottom: 1.5rem;
}

.overline--gold {
    color: #D4A574;
}

.article-title {
    font-family: "Arvo", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2C2019;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.article-title--gold {
    color: #D4A574;
}

.body-text {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
    color: #3B2212;
    max-width: 38em;
    margin-bottom: 1.5em;
}

.body-text--light {
    color: #C4A882;
}

/* ==================== TREATY LINE ==================== */

.treaty-line {
    height: 2px;
    background-color: #A0522D;
    width: 0;
    margin-bottom: 2.5rem;
    margin-right: calc(-50vw + 50%);
    transition: width 600ms cubic-bezier(0.25, 0, 0.15, 1);
}

.treaty-line--dark {
    background-color: #A0522D;
}

.treaty-line--gold {
    background-color: #D4A574;
}

.treaty-line.visible {
    width: 100vw;
}

/* ==================== SEAL ==================== */

.seal-wrap {
    width: 200px;
    height: 200px;
    margin-bottom: 2.5rem;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 800ms cubic-bezier(0.25, 0, 0.15, 1), opacity 600ms linear;
}

.seal-wrap.visible {
    transform: scale(1);
    opacity: 1;
}

.seal {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 800ms ease-in-out;
}

.seal-wrap:hover .seal {
    transform: rotate(15deg);
}

/* ==================== PULL QUOTE ==================== */

.pull-quote {
    position: relative;
    font-family: "Arvo", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #D4A574;
    border-left: 4px solid #A0522D;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    line-height: 1.4;
    background-color: #2C2019;
}

.article--light .pull-quote {
    color: #3B2212;
    background-color: #C4A882;
    border-left-color: #A0522D;
}

.pull-quote--gold {
    color: #D4A574;
}

.corner {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #A0522D;
    transform: rotate(45deg);
}

.corner--tl { top: -6px; left: -6px; }
.corner--tr { top: -6px; right: -6px; }
.corner--bl { bottom: -6px; left: -6px; }
.corner--br { bottom: -6px; right: -6px; }

/* ==================== DEMARCATION BAND ==================== */

.demarcation {
    width: 100%;
    height: 48px;
    background-image: repeating-conic-gradient(#7A4A2A 0% 25%, #3B2212 0% 50%);
    background-size: 12px 12px;
    border-top: 2px solid #2C2019;
    border-bottom: 2px solid #2C2019;
}

/* ==================== STAMP OVERLAY ==================== */

.stamp-overlay {
    position: absolute;
    font-family: "Roboto Slab", serif;
    font-weight: 300;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #A0522D;
    opacity: 0.2;
    border: 4px solid #A0522D;
    padding: 1rem 2rem;
    pointer-events: none;
    white-space: nowrap;
}

.stamp-overlay--ratified {
    bottom: 8vh;
    right: 4vw;
    transform: rotate(-4deg);
}

.stamp-overlay--protocol {
    top: 12%;
    right: 2%;
    transform: rotate(4deg);
    color: #D4A574;
    border-color: #D4A574;
}

.stamp-overlay--article {
    bottom: 8%;
    right: 4%;
    transform: rotate(-3deg);
}

/* ==================== CLOSING ==================== */

.closing {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background-color: #3B2212;
    border-top: 4px solid #A0522D;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.closing-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 6rem 3rem;
    width: 100%;
}

.closing-title {
    font-family: "Arvo", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: #D4A574;
    line-height: 1;
    margin-bottom: 2rem;
}

.closing-date {
    font-family: "Roboto Slab", serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C4A882;
    margin-top: 2rem;
}

/* ==================== FADE TARGETS ==================== */

.fade-target .col-left,
.fade-target .col-right > .pull-quote,
.closing .closing-inner > * {
    opacity: 0;
    transition: opacity 500ms linear;
}

.fade-target.visible .col-left,
.fade-target.visible .col-right > .pull-quote,
.closing.visible .closing-inner > * {
    opacity: 1;
}

/* highlight color usage -- single most important hover */
a:hover,
.seal-wrap:hover svg circle:first-child {
    color: #C0623A;
}
