/* ============================================================
   TheSecond.day — Mid-Century Modern Stylesheet
   Palette:
     #f5ede0 cream
     #e87040 orange
     #2a9d8f teal
     #5a3a20 brown
     #d4a020 mustard
   Fonts:
     Display: "Abril Fatface"
     Body:    "Raleway"
     Accent:  "Josefin Sans"
   ============================================================ */

:root {
    --cream: #f5ede0;
    --orange: #e87040;
    --teal: #2a9d8f;
    --brown: #5a3a20;
    --mustard: #d4a020;

    --rule: 4px;
    --gutter: clamp(1.5rem, 4vw, 3rem);
    --section-pad: clamp(2.5rem, 6vw, 5rem);
}

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

html, body {
    width: 100%;
}

body {
    background: var(--cream);
    color: var(--brown);
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

/* ----- Page container ----- */

.page {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
    position: relative;
}

/* ----- Section rules ----- */

.rule {
    border: 0;
    border-top: var(--rule) solid var(--brown);
    margin: 0;
}

.rule-thick {
    border-top-width: 8px;
}

/* ----- Typography helpers ----- */

.display-title,
.section-title {
    font-family: "Abril Fatface", "Lora", serif;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--brown);
}

.display-title {
    font-size: clamp(3rem, 8vw, 6rem);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-title.light {
    color: var(--cream);
}

.eyebrow,
.kicker,
.card-eyebrow,
.footer-heading,
.counter-label,
.schedule-time,
.poster-label,
.form-label,
.btn-label,
.cta-label {
    font-family: "Josefin Sans", "Raleway", sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brown);
}

.kicker-light,
.section-title.light + .lede.light,
.lede.light,
.kicker-light + .section-title.light {
    color: var(--cream);
}

.kicker-light {
    color: var(--cream);
    opacity: 0.85;
}

.tagline {
    font-family: "Raleway", sans-serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--brown);
    margin-top: 0.5rem;
}

.lede {
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 1.25rem 0 1.5rem;
    color: var(--brown);
}

.lede.light {
    color: var(--cream);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: var(--gutter);
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.header-deco {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-deco-left {
    justify-content: flex-start;
}

.header-deco-right {
    justify-content: flex-end;
}

.header-deco .circle {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.header-deco .circle-orange { background: var(--orange); }
.header-deco .circle-teal { background: var(--teal); }
.header-deco .circle-mustard { background: var(--mustard); }

.header-deco .rect {
    display: block;
    width: 56px;
    height: 18px;
}

.header-deco .rect-brown { background: var(--brown); }

.header-deco .triangle {
    display: block;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 28px solid var(--orange);
}

.header-title {
    text-align: center;
}

.header-title .eyebrow {
    margin-bottom: 0.6rem;
}

.display-title .dot {
    color: var(--orange);
}

/* ============================================================
   Section base
   ============================================================ */

.section {
    padding: var(--section-pad) 0;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.col {
    min-width: 0;
}

/* ----- Intro Composition ----- */

.section-intro {
    padding-top: clamp(2rem, 5vw, 3.5rem);
}

.composition {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--cream);
    border: var(--rule) solid var(--brown);
    overflow: hidden;
}

.composition .shape {
    position: absolute;
    display: block;
}

.composition .big-circle {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: var(--mustard);
    top: -10%;
    right: -10%;
}

.composition .mid-rect {
    width: 55%;
    height: 28%;
    background: var(--teal);
    bottom: 10%;
    left: 5%;
}

.composition .small-tri {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid var(--orange);
    bottom: 8%;
    right: 12%;
}

.composition .small-circle {
    width: 22%;
    height: 22%;
    border-radius: 50%;
    background: var(--brown);
    top: 35%;
    left: 30%;
}

/* ----- CTA arrow link ----- */

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.6rem;
    background: var(--brown);
    color: var(--cream);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border-radius: 999px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.cta:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.cta-label {
    color: var(--cream);
}

.cta-arrow {
    color: var(--mustard);
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.cta:hover .cta-arrow {
    transform: translateX(4px);
    color: var(--cream);
}

/* ============================================================
   Duotone Sections
   ============================================================ */

.section-duotone {
    padding: 0;
    margin: 0 calc(-1 * clamp(1rem, 4vw, 2rem));
}

.section-duotone .duotone-inner {
    padding: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
}

.duotone-orange {
    background: var(--orange);
    color: var(--cream);
}

.duotone-teal {
    background: var(--teal);
    color: var(--cream);
}

.duotone-orange .section-title.light,
.duotone-teal .section-title.light {
    color: var(--cream);
}

/* ----- Manifesto principles ----- */

.principle-list {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
}

.principle {
    background: var(--cream);
    color: var(--brown);
    padding: 1.75rem 1.5rem;
    border: var(--rule) solid var(--brown);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.principle:hover {
    transform: translateY(-6px);
}

.principle-num {
    display: inline-block;
    font-family: "Abril Fatface", serif;
    font-size: 2.4rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.principle:nth-child(2) .principle-num { color: var(--teal); }
.principle:nth-child(3) .principle-num { color: var(--mustard); }

.principle-title {
    font-family: "Abril Fatface", serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    color: var(--brown);
}

.principle-body {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--brown);
}

/* ============================================================
   Catalog Section
   ============================================================ */

.catalog-head {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.catalog-head .kicker {
    margin-bottom: 0.75rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
}

.catalog-card {
    border: var(--rule) solid var(--brown);
    padding: 0;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
}

.card-art {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: var(--rule) solid var(--brown);
}

.card-art-1 { background: var(--mustard); }
.card-art-2 { background: var(--teal); }
.card-art-3 { background: var(--orange); }

.art-shape {
    position: absolute;
    display: block;
}

.art-circle-1 {
    width: 70%;
    height: 110%;
    border-radius: 50%;
    background: var(--brown);
    bottom: -45%;
    left: 15%;
}

.art-rect-1 {
    width: 25%;
    height: 50%;
    background: var(--cream);
    top: 18%;
    right: 18%;
}

.art-circle-2 {
    width: 55%;
    height: 55%;
    border-radius: 50%;
    background: var(--cream);
    top: 18%;
    right: 15%;
}

.art-tri-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 90px solid var(--mustard);
    bottom: 5%;
    left: 18%;
}

.art-rect-3 {
    width: 38%;
    height: 80%;
    background: var(--teal);
    top: 10%;
    left: 12%;
}

.art-circle-3 {
    width: 50%;
    height: 70%;
    border-radius: 50%;
    background: var(--cream);
    bottom: -20%;
    right: -10%;
}

.card-eyebrow {
    margin: 1.25rem 1.25rem 0.4rem;
    color: var(--orange);
}

.card-title {
    font-family: "Abril Fatface", serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0 1.25rem 0.5rem;
    color: var(--brown);
}

.card-body {
    margin: 0 1.25rem 1.5rem;
    font-size: 0.96rem;
    line-height: 1.55;
}

/* ============================================================
   Travel Poster (Duotone Teal)
   ============================================================ */

.duotone-teal .duotone-inner.two-col {
    align-items: center;
}

.col-poster {
    display: flex;
    justify-content: center;
}

.poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--cream);
    border: var(--rule) solid var(--brown);
    overflow: hidden;
}

.poster-sun {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 38%;
    height: 38%;
    background: var(--mustard);
    border-radius: 50%;
}

.poster-cloud {
    position: absolute;
    height: 18px;
    background: var(--cream);
    border-radius: 999px;
    box-shadow: 0 0 0 4px var(--brown);
}

.poster-cloud-1 {
    width: 38%;
    top: 18%;
    left: 8%;
}

.poster-cloud-2 {
    width: 28%;
    top: 30%;
    left: 32%;
}

.poster-mountain {
    position: absolute;
    bottom: 22%;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
}

.poster-mountain-1 {
    left: 6%;
    border-left-width: 80px;
    border-right-width: 80px;
    border-bottom-width: 130px;
    border-bottom-color: var(--orange);
}

.poster-mountain-2 {
    left: 38%;
    border-left-width: 110px;
    border-right-width: 110px;
    border-bottom-width: 180px;
    border-bottom-color: var(--brown);
}

.poster-plane {
    position: absolute;
    top: 38%;
    left: 12%;
    width: 50%;
    height: 22%;
    transform: rotate(-12deg);
}

.plane-body {
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--brown);
    border-radius: 999px;
}

.plane-wing {
    position: absolute;
    top: 60%;
    left: 30%;
    width: 40%;
    height: 50%;
    background: var(--orange);
    transform: skewX(-30deg);
}

.plane-tail {
    position: absolute;
    top: 0;
    right: 8%;
    width: 18%;
    height: 60%;
    background: var(--brown);
    transform: skewX(-25deg);
}

.poster-stripe {
    position: absolute;
    bottom: 14%;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--mustard);
}

.poster-label {
    position: absolute;
    bottom: 4%;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--brown);
    background: transparent;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

/* ----- Schedule list ----- */

.schedule {
    margin-top: 1.25rem;
    border-top: 2px solid var(--cream);
}

.schedule li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 2px solid var(--cream);
    color: var(--cream);
}

.schedule-time {
    font-family: "Abril Fatface", serif;
    font-size: 1.4rem;
    color: var(--mustard);
    text-transform: none;
    letter-spacing: 0;
}

.schedule-route {
    font-family: "Raleway", sans-serif;
    font-size: 0.95rem;
    color: var(--cream);
}

/* ============================================================
   Counter / Numbers
   ============================================================ */

.section-numbers {
    background: var(--cream);
}

.counter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    text-align: center;
}

.counter {
    border-top: var(--rule) solid var(--brown);
    padding-top: 1.25rem;
}

.counter:nth-child(1) { border-top-color: var(--orange); }
.counter:nth-child(2) { border-top-color: var(--teal); }
.counter:nth-child(3) { border-top-color: var(--mustard); }
.counter:nth-child(4) { border-top-color: var(--brown); }

.counter-num {
    font-family: "Abril Fatface", serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1;
    color: var(--brown);
    margin-bottom: 0.4rem;
}

.counter:nth-child(1) .counter-num { color: var(--orange); }
.counter:nth-child(2) .counter-num { color: var(--teal); }
.counter:nth-child(3) .counter-num { color: var(--mustard); }
.counter:nth-child(4) .counter-num { color: var(--brown); }

.counter-label {
    color: var(--brown);
    font-size: 0.75rem;
    line-height: 1.3;
}

/* ============================================================
   Postcards / Testimonials
   ============================================================ */

.postcards-head {
    text-align: center;
    margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
}

.postcards-head .kicker {
    margin-bottom: 0.6rem;
}

.postcards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 3vw, 1.75rem);
}

.postcard {
    background: var(--cream);
    border: var(--rule) solid var(--brown);
    padding: 1.5rem 1.4rem 1.25rem;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.postcard::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.postcard-1 { background: #fbf3e6; }
.postcard-1::before { background: var(--orange); }
.postcard-2 { background: #fbf3e6; }
.postcard-2::before { background: var(--teal); }
.postcard-3 { background: #fbf3e6; }
.postcard-3::before { background: var(--mustard); }

.postcard:hover {
    transform: rotate(-1.2deg) translateY(-4px);
}

.postcard-2:hover { transform: rotate(1.5deg) translateY(-4px); }
.postcard-3:hover { transform: rotate(-0.8deg) translateY(-4px); }

.postcard blockquote {
    font-family: "Abril Fatface", serif;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--brown);
    margin-bottom: 0.85rem;
    quotes: none;
}

.postcard figcaption {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brown);
    opacity: 0.8;
}

/* ============================================================
   Subscribe Form
   ============================================================ */

.section-subscribe .two-col {
    align-items: start;
}

.subscribe-form {
    margin-top: 0.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--brown);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    border: var(--rule) solid var(--brown);
    background: var(--cream);
    overflow: hidden;
}

.form-input {
    border: none;
    background: transparent;
    padding: 0.95rem 1rem;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    color: var(--brown);
    outline: none;
    min-width: 0;
}

.form-input::placeholder {
    color: var(--brown);
    opacity: 0.45;
}

.form-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.4rem;
    background: var(--brown);
    color: var(--cream);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    transition: background 0.25s ease;
    border-left: var(--rule) solid var(--brown);
}

.form-btn:hover {
    background: var(--orange);
}

.btn-mark {
    color: var(--mustard);
    transition: transform 0.25s ease;
}

.form-btn:hover .btn-mark {
    transform: translateX(4px);
    color: var(--cream);
}

.form-message {
    margin-top: 0.85rem;
    min-height: 1.2em;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brown);
}

.form-message.is-error { color: var(--orange); }
.form-message.is-ok { color: var(--teal); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.footer-logo {
    font-family: "Abril Fatface", serif;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--brown);
    margin-bottom: 0.4rem;
}

.footer-line {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brown);
}

.footer-heading {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--orange);
    margin-bottom: 0.85rem;
}

.footer-list li {
    font-size: 0.95rem;
    color: var(--brown);
    padding: 0.25rem 0;
}

.footer-deco {
    position: relative;
    min-height: 80px;
}

.footer-circle {
    position: absolute;
    top: 0;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--teal);
}

.footer-rect {
    position: absolute;
    top: 30px;
    right: 0;
    width: 60px;
    height: 22px;
    background: var(--mustard);
}

.footer-base {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--brown);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brown);
    text-align: center;
}

/* ============================================================
   Reveal animation (for scripted reveals)
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 800px) {
    .site-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-deco-left,
    .header-deco-right {
        justify-content: center;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .principle-list,
    .catalog-grid,
    .postcards {
        grid-template-columns: 1fr;
    }

    .counter-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-deco {
        display: none;
    }
}

@media (max-width: 480px) {
    .counter-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-btn {
        border-left: none;
        border-top: var(--rule) solid var(--brown);
        justify-content: center;
    }
}
