@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');


/* --------------------------------------------------
   PAGE
   -------------------------------------------------- */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    background: #000;
    overflow: hidden;
    color: #d8d8d8;
}


/* --------------------------------------------------
   OUTER CORRIDOR
   -------------------------------------------------- */

.outerContainer {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    margin: 0;
    padding: 0;

    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

    background: #000;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


/* --------------------------------------------------
   STORY CARD
   -------------------------------------------------- */

.container {
    box-sizing: border-box;

    width: 100%;
    max-width: 720px;
    min-height: 100vh;

    margin: 0 auto;
    padding: 70px 32px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #000;

    outline: none;
}


/*
   Linear cards are advanced by clicking/tapping anywhere
   on the card. There is deliberately no visible Continue
   button and no hover animation giving the mechanism away.
*/
.container.advanceable {
    cursor: pointer;
}


/* --------------------------------------------------
   STORY TEXT
   -------------------------------------------------- */

p {
    margin: 0 0 1.15em 0;

    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 19pt;
    line-height: 1.55em;

    font-weight: 400;
    color: #d0d0d0;
    text-align: center;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: #fff;
    font-weight: 700;
}

em {
    font-style: italic;
}


/* --------------------------------------------------
   REAL CHOICES
   -------------------------------------------------- */

.choice {
    text-align: center;
    line-height: 1.5em;
    margin-bottom: 0.8em;
}

:not(.choice) + .choice {
    padding-top: 1.4em;
}

.choice a,
.choice span {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 20pt;
    font-weight: 600;
}

a {
    color: #c49343;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #fff;
}

.unclickable {
    color: #8d744a;
    font-weight: 600;
    cursor: not-allowed;
}


/* --------------------------------------------------
   RETURN TO THE BOOK
   -------------------------------------------------- */

.corridor-exit {
    color: #c49343;
    font-weight: 600;
    text-decoration: none;
}

.corridor-exit:hover,
.corridor-exit:focus {
    color: #fff;
}

.corridor-exit-full {
    display: block;
    color: inherit;
    font-weight: inherit;
}


/* --------------------------------------------------
   START AT THE BEGINNING
   -------------------------------------------------- */

/*
   This is deliberately positioned outside the narrative
   composition. It is a utility for someone who actively
   wants to erase the current path and begin again, not a
   suggested next action.
*/

.corridor-replay {
    position: fixed;

    left: 18px;
    bottom: 16px;

    z-index: 100;

    margin: 0;
    padding: 0;

    line-height: 1;
    text-align: left;
}

.corridor-replay a {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    font-size: 11pt;
    font-weight: 400;
    font-style: normal;

    color: #464646;

    text-decoration: none;
}

.corridor-replay a:hover,
.corridor-replay a:focus {
    color: #777;
}


/* --------------------------------------------------
   IMAGES
   -------------------------------------------------- */

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
}


/* --------------------------------------------------
   FADE-IN
   -------------------------------------------------- */

.container .hide {
    opacity: 0;
}

.container > * {
    opacity: 1;
}

.container .invisible {
    display: none;
}

@media screen and (prefers-reduced-motion: no-preference) {

    .container > * {
        transition: opacity 0.8s ease;
    }

    a {
        transition: color 0.4s ease;
    }

    a:hover,
    a:focus {
        transition: color 0.1s ease;
    }
}


/* --------------------------------------------------
   DARK MODE
   -------------------------------------------------- */

body.dark {
    background: #000;
    color: #fff;
}

.dark .container {
    background: #000;
}

.dark p {
    color: #d0d0d0;
}

.dark strong {
    color: #fff;
}

.dark a {
    color: #c49343;
}

.dark a:hover,
.dark a:focus {
    color: #fff;
}

.dark .unclickable {
    color: #8d744a;
}

.dark .corridor-exit {
    color: #c49343;
}

.dark .corridor-exit:hover,
.dark .corridor-exit:focus {
    color: #fff;
}

.dark .corridor-replay a {
    color: #464646;
}

.dark .corridor-replay a:hover,
.dark .corridor-replay a:focus {
    color: #777;
}


/* --------------------------------------------------
   DEFAULT INK UI — NOT PART OF THE CORRIDOR
   -------------------------------------------------- */

.written-in-ink,
#controls,
.header,
.end {
    display: none !important;
}


/* --------------------------------------------------
   MOBILE
   -------------------------------------------------- */

@media screen and (max-width: 700px) {

    .container {
        max-width: none;
        min-height: 100vh;

        padding:
            max(48px, env(safe-area-inset-top))
            24px
            max(48px, env(safe-area-inset-bottom));
    }

    p {
        font-size: 17pt;
        line-height: 1.5em;
    }

    .choice a,
    .choice span {
        font-size: 18pt;
    }

    .corridor-replay {
        left: max(14px, env(safe-area-inset-left));
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .corridor-replay a {
        font-size: 10.5pt;
    }
}