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

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

body {
    background-image: url("images/main-wallpaper.webp");
    background-repeat: repeat;
    background-size: auto;
    background-position: top left;
    color: #f2ebf5;
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px;
}

.main-board {
    width: min(1180px, 100%);
    position: relative;
    padding: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.main-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #7f6e7c;
    background-image: url("images/main-table-background.webp");
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
    z-index: 0;
}

.main-board > * {
    position: relative;
    z-index: 1;
}

.board-header {
    background: #4d4255;
    padding: 22px 20px;
    margin-bottom: 18px;
    text-align: center;
}

.board-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 400;
    letter-spacing: 1px;
    color: #f4edf5;
}

.board-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 325px 240px;
    gap: 14px;
}

.panel {
    background: #4d4255;
    padding: 18px;
    overflow: hidden;
}

.panel h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 14px;
    color: #f7f1f8;
}

.panel p {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    line-height: 1.05;
    color: #ece4ef;
}

.panel-nav {
    grid-column: 1;
    grid-row: 1;
    padding: 24px 14px;
}

.panel-main {
    grid-column: 2;
    grid-row: 1;
    padding: 24px 18px;
}

.panel-currently-reading {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 12px;
}

.panel-currently-reading h2 {
    font-size: 26px;
    margin-bottom: 10px;
    text-align: center;
}

.current-read-title {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    line-height: 0.95;
    color: #b79db5;
    margin-top: 26px;
}

.current-read-ornament {
    font-size: 48px;
    line-height: 1;
    color: #f4edf5;
    margin-top: auto;
}

.panel-latest-updates {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
    padding-top: 10px;
}

.panel-latest-updates h2 {
    text-decoration: underline;
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 26px;
    font-family: 'DM Serif Display', serif;
}

.nav-links a,
.nav-links a:link,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:active,
.nav-links a:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none;
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    line-height: 1;
    display: block;
}

.nav-links a:hover,
.nav-links a:focus {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .board-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .panel-nav,
    .panel-main,
    .panel-currently-reading,
    .panel-latest-updates {
        grid-column: auto;
        grid-row: auto;
        min-height: 180px;
    }

    .panel p,
    .nav-links a,
    .current-read-title,
    .panel h2 {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 20px 12px;
    }

    .main-board {
        padding: 10px;
    }

    .board-header {
        padding: 14px 12px;
    }

    .panel {
        padding: 14px;
    }

    .panel p,
    .nav-links a,
    .current-read-title,
    .panel h2 {
        font-size: 21px;
    }

    .current-read-ornament {
        font-size: 36px;
    }
}