/* ==========================================================================
   Digital Invitations — splash page
   DigitalInvitations.com
   ========================================================================== */

:root {
    --gold: #BD945A;
    --gold-dark: #9d7a45;
    --gold-light: #e6d3b3;
    --ink: #16130f;
    --muted: #857f77;
    --paper: #fffdfa;
    --line: rgba(189, 148, 90, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 20px;
    color: var(--ink);
}

p { margin: 0 0 20px; color: var(--muted); }

a { color: var(--gold-dark); }

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.script {
    font-family: 'Alex Brush', cursive;
    color: var(--gold);
    font-weight: 400;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin: 0 0 18px;
}

/* ===== Site header ===== */
.site-head {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 5;
    padding: 26px 0;
}

.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.brand span { color: var(--gold-light); }

.site-head .link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 3px;
    transition: 0.3s;
}

.site-head .link:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 130px 0 90px;
    background: #0f0d0b url('../images/banner.jpg') center / cover no-repeat;
    background-attachment: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 10, 8, 0.72) 0%, rgba(12, 10, 8, 0.58) 45%, rgba(12, 10, 8, 0.85) 100%);
}

.hero .wrap { position: relative; z-index: 2; }

.hero .eyebrow { color: var(--gold-light); }

.hero h1 {
    color: #fff;
    font-size: clamp(46px, 9vw, 104px);
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}

.hero h1 .script {
    display: block;
    font-size: clamp(38px, 7vw, 78px);
    color: var(--gold-light);
    line-height: 1.1;
}

.hero .lede {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    max-width: 640px;
    margin: 22px auto 44px;
}

/* ===== The giant call to action ===== */
.cta-giant {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: clamp(22px, 3.6vw, 34px) clamp(38px, 7vw, 82px);
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), background 0.35s, box-shadow 0.35s;
}

.cta-giant .cta-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 4.4vw, 46px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
}

.cta-giant .cta-sub {
    font-size: clamp(11px, 1.4vw, 13px);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.cta-giant:hover,
.cta-giant:focus-visible {
    background: var(--gold-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    color: #fff;
}

.cta-note {
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cta-note .dot { color: var(--gold-light); margin: 0 10px; }

.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
}

.scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 34px;
    margin: 12px auto 0;
    background: linear-gradient(rgba(255, 255, 255, 0.6), transparent);
}

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }

.section-head h2 { font-size: clamp(32px, 5vw, 48px); }

.section-head p { font-size: 17px; font-weight: 300; }

.rule {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 26px;
}

/* feature grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 26px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 34px 30px;
    transition: 0.35s;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(22, 19, 15, 0.08); }

.card .ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 20px;
}

.card h3 { font-size: 25px; margin-bottom: 10px; }

.card p { margin: 0; font-size: 15px; }

/* steps */
.steps { counter-reset: step; }

.step { position: relative; padding-left: 74px; margin-bottom: 40px; }

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -6px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    color: var(--gold);
    opacity: 0.55;
}

.step h3 { font-size: 24px; margin-bottom: 6px; }

.step p { margin: 0; }

.alt { background: #faf6f0; }

/* closing CTA band */
.band {
    background: var(--ink);
    color: #fff;
    text-align: center;
    padding: clamp(64px, 9vw, 104px) 0;
}

.band h2 { color: #fff; font-size: clamp(32px, 5.5vw, 52px); }

.band p { color: rgba(255, 255, 255, 0.7); max-width: 560px; margin: 0 auto 38px; }

/* footer */
.site-foot {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.site-foot a { text-decoration: none; }

.site-foot a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .hero { background-attachment: scroll; }
    .site-head .link { display: none; }
    .step { padding-left: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
/* hero composes itself on load */
.hero .eyebrow { animation: sp-rise .7s ease .1s both; }
.hero h1 { animation: sp-rise .8s cubic-bezier(.2, .7, .3, 1) .25s both; }
.hero .lede { animation: sp-rise .7s ease .45s both; }
.hero .cta-giant { animation: sp-cta .8s cubic-bezier(.2, .8, .3, 1.1) .6s both; }
.hero .cta-note { animation: sp-rise .7s ease .85s both; }

@keyframes sp-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes sp-cta {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: none; }
}

/* the giant CTA has a slow sheen so the eye keeps returning to it */
.cta-giant { position: relative; overflow: hidden; }

.cta-giant::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
    transform: translateX(-130%);
    animation: cta-sheen 4.5s ease-in-out 2s infinite;
    pointer-events: none;
}

@keyframes cta-sheen {
    0% { transform: translateX(-130%); }
    28% { transform: translateX(130%); }
    100% { transform: translateX(130%); }
}

.scroll-hint { animation: sp-rise .7s ease 1.1s both; }

.scroll-hint::after { animation: hint-drip 2.2s ease-in-out 1.6s infinite; }

@keyframes hint-drip {
    0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* scroll reveals */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

[data-reveal].revealed { opacity: 1; transform: none; }

.grid > [data-reveal].revealed:nth-child(2) { transition-delay: .08s; }
.grid > [data-reveal].revealed:nth-child(3) { transition-delay: .16s; }
.grid > [data-reveal].revealed:nth-child(4) { transition-delay: .08s; }
.grid > [data-reveal].revealed:nth-child(5) { transition-delay: .16s; }
.grid > [data-reveal].revealed:nth-child(6) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    .hero .eyebrow, .hero h1, .hero .lede, .hero .cta-giant, .hero .cta-note,
    .scroll-hint, .scroll-hint::after, .cta-giant::after { animation: none; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}
