/* =====================================================
   TasperWind — retro personal page
   Palette:
     --rust      #d24e01  (primary accent / headers)
     --rust-dark #a83e01  (borders / secondary accent)
     --brown     #7a2e00  (menu / footer / dark text accent)
     --ink       #4a2100  (body text)
     --cream     #e4d7bd  (page/container background)
     --paper     #fffaf0  (card background)
     --sand      #fff3de  (soft panel background)
     --tan       #f9ddb1  (stripe / hover fill)
     --orange    #ff7a1a  (hover / bright accent)
   ===================================================== */

:root {
    --rust: #d24e01;
    --rust-dark: #a83e01;
    --brown: #7a2e00;
    --ink: #4a2100;
    --cream: #e4d7bd;
    --paper: #fffaf0;
    --sand: #fff3de;
    --tan: #f9ddb1;
    --orange: #ff7a1a;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--rust);
    background-image: url('../images/bg.gif');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
    font-size: 13px;
    color: var(--ink);
    margin: 0;
    padding: 20px 0;
}

a {
    color: var(--rust-dark);
    font-weight: bold;
}

a:visited {
    color: var(--brown);
}

a:hover,
a:focus-visible {
    color: var(--orange);
    text-decoration: underline wavy;
}

/* ---------- layout shell ---------- */

.container {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--cream);
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.35);
    border: 2px solid var(--rust);
    overflow: hidden;
}

.top-header {
    height: 120px;
    background-color: var(--sand);
    position: relative;
    border-bottom: 4px dashed var(--ink);

    background-image: url('../images/headergif.gif');
    background-origin: content-box;
    background-clip: content-box;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 4px;
}

/* ---------- menu ---------- */

.menu {
    background-color: var(--brown);
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu li {
    border-right: 2px dashed var(--ink);
}

.menu li:last-child {
    border-right: none;
}

.menu a {
    display: block;
    padding: 12px 20px;
    color: var(--tan);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.menu a:hover,
.menu a:focus-visible {
    background-color: var(--orange);
    color: var(--paper);
    text-decoration: none;
}

.menu li.closed a {
    color: var(--rust-dark);
    cursor: not-allowed;
}

.menu li.closed a:hover,
.menu li.closed a:focus-visible {
    background-color: transparent;
    color: var(--rust-dark);
}

/* ---------- placeholders ---------- */

.placeholder {
    background-color: var(--sand);
    border: 2px dashed var(--rust-dark);
    color: var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-weight: bold;
}

.banner-placeholder {
    margin: 15px 15px 0 15px;
    height: 80px;
}

.construction-placeholder {
    margin: 15px 15px 0 15px;
    height: 42px;
    background-color: #ffe8b8;
    border-color: var(--rust-dark);
    padding: 0;

    background-image: url('../images/underconstruction.gif');
    background-repeat: repeat;
    background-position: top left;
    background-size: 60px 40px;
}

.combined-placeholder {
    height: 210px;
}

.video-placeholder {
    height: 180px;
}

.gif-placeholder {
    height: 100px;
}

/* ---------- content grid ---------- */

.content {
    display: flex;
    padding: 15px;
    gap: 20px;
}

.main-left {
    flex: 7;
    min-width: 0;
}

.main-right {
    flex: 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ---------- headings ----------
   .ntitle = tab-style title tacked onto the top edge of a section-box
   .mtitle = inline banner title used to break up the page flow
*/

h2.ntitle,
h2.mtitle {
    color: var(--paper);
    background-color: var(--rust);
    font-size: 15px;
    margin: 0;
    padding: 4px 10px;
    border: 2px solid var(--rust);
}

h2.mtitle {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 6px;
}

h2.ntitle {
    position: absolute;
    top: -22px;
    left: 15px;
    padding: 2px 10px;
}

.main-left h2:first-child {
    margin-top: 0;
}

/* ---------- shared card ---------- */

.section-box {
    background-color: var(--paper);
    border: 2px solid var(--rust);
    padding: 15px;
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.35);
    position: relative;
    margin-top: 15px;
}

.blurb p {
    line-height: 1.5;
    margin: 0;
}

/* ---------- news ---------- */

.news-item {
    margin-bottom: 15px;
}

.news-heading {
    background-color: var(--sand);
    padding: 5px 10px;
    font-size: 12px;
    color: var(--ink);
    border-left: 3px solid var(--rust);
    margin-bottom: 5px;
}

.news-text {
    padding: 0 10px;
    line-height: 1.4;
}

/* ---------- guestbook ---------- */

.guestbook-box {
    padding: 10px;
    margin-top: 2px;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--rust-dark);
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 8px;
    border: 2px inset var(--rust-dark);
    background-color: var(--sand);
    box-sizing: border-box;
    font-family: inherit;
    color: var(--ink);
}

.guestbook-form input:focus-visible,
.guestbook-form textarea:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 1px;
}

.guestbook-form button {
    background-color: var(--rust);
    color: #fff5e6;
    border: 2px outset var(--rust-dark);
    padding: 6px 14px;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-start;
    font-family: inherit;
}

.guestbook-form button:hover,
.guestbook-form button:focus-visible {
    background-color: var(--orange);
}

.guestbook-entries {
    max-height: 185px;
    overflow-y: auto;
    padding-right: 5px;
}

.guestbook-entries .entry {
    padding: 10px;
    font-size: 12px;
    border-bottom: 1px dashed var(--rust-dark);
    animation: entry-in 0.25s ease-out;
}

.guestbook-entries .entry:last-child {
    border-bottom: none;
}

.guestbook-entries .entry:nth-child(even) {
    background-color: var(--tan);
}

.guestbook-entries .entry-header {
    color: var(--rust);
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.guestbook-entries .entry-date {
    font-size: 10px;
    color: var(--brown);
    white-space: nowrap;
}

.guestbook-entries .entry-message {
    word-wrap: break-word;
}

@keyframes entry-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- interests page ---------- */

.interest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.interest-card {
    flex: 1 1 150px;
    background-color: var(--paper);
    border: 2px solid var(--rust);
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.35);
    padding: 15px;
    text-align: center;
}

.interest-icon {
    font-size: 26px;
    font-weight: bold;
    color: var(--rust);
    background-color: var(--sand);
    border: 2px dashed var(--rust-dark);
    width: 56px;
    height: 56px;
    line-height: 52px;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.interest-logo {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin: 0 auto 8px;
    background-color: transparent;
    border: none;
    padding: 0;
}

.interest-img {
    display: block;
    width: 100%;
    height: 125px;
    object-fit: cover;
    border: 2px solid var(--rust-dark);
    background-color: var(--sand);
    margin: 0 auto 10px;
}

.interest-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
}

.interest-card h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--brown);
}

.interest-card p {
    margin: 0;
    line-height: 1.4;
    font-size: 12px;
}

.fandom-box {
    background-color: var(--sand);
}

.fandom-header {
    margin-bottom: 10px;
}

.fandom-tag {
    display: inline-block;
    background-color: var(--rust);
    color: var(--paper);
    padding: 4px 12px;
    font-weight: bold;
    font-size: 13px;
    border: 2px solid var(--rust-dark);
}

.fandom-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.fandom-gallery .fandom-img {
    flex: 1 1 200px;
    width: 100%;
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border: 2px solid var(--rust-dark);
    background-color: var(--sand);
    margin: 0;
}

.fandom-img {
    display: block;
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 2px solid var(--rust-dark);
    background-color: var(--sand);
}

.side-img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 2px solid var(--rust-dark);
    background-color: var(--sand);
    margin: 8px 0;
}

.fandom-box p,
.music-box p,
.cars-box p {
    margin: 0;
    line-height: 1.4;
}

.music-label {
    font-weight: bold;
    color: var(--brown);
    margin: 0 0 8px !important;
}

/* ---------- link-to-me ---------- */

.link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    margin-top: -11px;
}

.link-box p {
    margin: 0;
    font-size: 11px;
}

.link-box textarea {
    width: 100%;
    height: 55px;
    padding: 5px;
    border: 2px inset var(--rust-dark);
    background-color: var(--sand);
    color: var(--ink);
    font-family: monospace;
    font-size: 11px;
    resize: none;
    box-sizing: border-box;
}

.copy-btn {
    background-color: var(--rust);
    color: #fff5e6;
    border: 2px outset var(--rust-dark);
    padding: 4px 12px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    font-size: 12px;
}

.copy-btn:hover,
.copy-btn:focus-visible {
    background-color: var(--orange);
}

/* ---------- utility ---------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- footer ---------- */

.footer {
    background-color: var(--brown);
    color: var(--tan);
    text-align: center;
    padding: 15px;
    font-size: 12px;
    border-top: 4px dashed var(--ink);
}

/* ---------- small screens ---------- */

@media (max-width: 620px) {
    body {
        padding: 0;
    }

    .container {
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .content {
        flex-direction: column;
    }

    .menu a {
        padding: 10px 12px;
        font-size: 11px;
    }

    h2.ntitle {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }

    .section-box {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guestbook-entries .entry {
        animation: none;
    }
}
