
* {
    box-sizing: border-box;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: #000;
}

.home {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 520px;
    overflow: hidden;
    background-image: url("foggy-ocean.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Navigation */
nav {
    position: absolute;
    top: clamp(12px, 1.3vh, 18px);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: clamp(45px, 13vw, 210px);
    z-index: 10;
}

nav a {
    display: block;

    background: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 6px 15px;
}

/* The three introductory lines deliberately stay above the horizon. */
.intro {
    position: absolute;
    top: clamp(60px, 10vh, 105px);
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 1050px);
    text-align: center;
    font-weight: bold;
    font-size: clamp(18px, 2vw, 30px);
    line-height: 1.65;
    z-index: 5;
}

/* The title is deliberately below the horizon. */
.tagline {
    position: absolute;
    top: 61%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: clamp(18px, 2vw, 30px);
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    z-index: 5;
}

/* Caption sits near the lower-right edge of the photograph. */
.caption {
    position: absolute;
    right: clamp(18px, 3vw, 50px);
    bottom: clamp(16px, 3vh, 30px);
    color: #c5c5c5;
    font-size: clamp(14px, 1.5vw, 23px);
    line-height: 1.2;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    z-index: 5;
}

/* Placeholder pages */
.placeholder-page {
    min-height: 100vh;
    margin: 0;
    padding: 40px;
    background: #eee;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}

.placeholder-page main {
    max-width: 800px;
    margin: 60px auto;
}

.placeholder-page a {
    color: #111;
}

@media (max-width: 600px) {
    .home {
        min-height: 100vh;
    }

    nav {
        gap: 4vw;
    }

    nav a {
        padding: 5px 4px;
    }

    .intro {
        top: 12vh;
        width: 92vw;
        line-height: 1.45;
    }

    .tagline {
        top: 59%;
    }

    .caption {
        max-width: 75vw;
    }
}

/* Short fiction page */
.fiction-page {
    min-height: 100vh;
    margin: 0;
    padding: 40px;
    background: #eeeeee;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}

.fiction-content {
    max-width: 900px;
    margin: 60px auto;
}

.fiction-content a {
    color: #111;
}

.story {
    display: flex;
    gap: 40px;
    margin: 50px 0;
    align-items: flex-start;
}

.cover-placeholder {
    width: 180px;
    height: 250px;
    background: #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.story-info {
    flex: 1;
}

.story-info h2 {
    margin-top: 0;
}
