/* ===================================
   UNTASTIC STYLESHEET
   =================================== */

body {
    margin: 0;
    font-family: "Special Elite", monospace;
    background: #f6f3ee;
    color: #2b2b2b;

    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);

    background-size: 20px 20px;
}

/* ===================================
   HEADER
   =================================== */

.hero {
    text-align: center;
    padding: 30px 20px 20px;
}

.logo-image {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0 auto;
    transform: rotate(-0.4deg);
}

.subtitle {
    margin-top: 10px;
    font-style: italic;
    opacity: 0.7;
}

/* ===================================
   NAVIGATION
   =================================== */

nav {
    text-align: center;
    margin-bottom: 40px;
}

nav a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    border-bottom: 1px dashed #999;
}

nav a:hover {
    opacity: 0.7;
}

/* ===================================
   MAIN CONTENT
   =================================== */

main {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

h2 {
    font-family: "Reenie Beanie", cursive;
    font-size: 38px;
    border-bottom: 1px dashed #aaa;
    padding-bottom: 5px;
    margin-top: 50px;
}

/* ===================================
   STORY CARDS
   =================================== */

.card {
    background: rgba(255,255,255,0.65);
    border: 1px dashed #aaa;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
    transform: rotate(-0.3deg);
    transition: all 0.2s ease;
}

.card:hover {
    transform: rotate(0deg) scale(1.01);
}

.card a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #666;
}

.card a:hover {
    opacity: 0.7;
}

/* ===================================
   GALLERY
   =================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.sketch-box {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #888;
    background: rgba(255,255,255,0.5);
    transform: rotate(0.5deg);
    overflow: hidden;
}

.gallery-image {
    max-width: 180px;
    max-height: 120px;
    width: auto;
    height: auto;
    display: block;
}

/* ===================================
   STORY PAGES
   =================================== */

.story-header {
    text-align: center;
    padding: 60px 20px 20px;
}

.story {
    max-width: 750px;
    margin: auto;
    padding: 20px;
    line-height: 1.8;
}

.story p {
    margin-bottom: 20px;
}

.sketch-frame {
    max-width: 350px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    border: 1px dashed #999;
    background: rgba(255,255,255,0.4);
    transform: rotate(-0.5deg);
}

.story-image {
    max-width: 250px;
    max-height: 250px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.back {
    display: inline-block;
    margin-top: 40px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px dashed #666;
}

.back:hover {
    opacity: 0.7;
}

/* ===================================
   HOBBY GENERATOR
   =================================== */

.hobby-generator {
    max-width: 600px;
    padding: 35px;
}

.generator-label {
    margin-bottom: 10px;
    font-style: italic;
    opacity: 0.75;
}

#hobby {
    font-family: "Reenie Beanie", cursive;
    font-size: 72px;
    border: none;
    margin: 10px 0 20px;
    padding: 0;
    line-height: 1;
}

#quote {
    max-width: 500px;
    margin: 0 auto 30px;
    font-style: italic;
}

.generator-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

button,
.button-link {

    font-family: "Special Elite", monospace;
    font-size: 16px;

    background: rgba(255,255,255,0.7);

    color: #333;

    border: 1px dashed #777;

    padding: 12px 20px;

    cursor: pointer;

    text-decoration: none;

    transition: all .2s ease;

    box-shadow: 2px 2px 0 rgba(0,0,0,.05);
}

button:hover,
.button-link:hover {

    background: white;

    transform: rotate(-1deg);

    opacity: 1;
}

button:active {
    transform: translateY(1px);
}

/* ===================================
   FOOTER
   =================================== */

footer {
    text-align: center;
    padding: 40px;
    font-size: 12px;
    opacity: 0.6;
}

/* ===================================
   MOBILE
   =================================== */

@media (max-width: 768px) {

    .logo-image {
        max-width: 95%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .story {
        padding: 15px;
    }

    .story-image {
        max-width: 200px;
    }

    .hobby-generator {
        padding: 25px;
    }

    #hobby {
        font-size: 56px;
    }

    .generator-buttons {
        flex-direction: column;
    }

    button,
    .button-link {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===================================
   HOMEPAGE PORTALS
   =================================== */

.intro-note {
    max-width: 760px;
    margin: 0 auto 25px;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin: 30px 0 50px;
}

.portal-card {
    background: rgba(255,255,255,0.65);
    border: 1px dashed #aaa;
    padding: 24px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.portal-card:nth-child(1) { transform: rotate(-0.4deg); }
.portal-card:nth-child(2) { transform: rotate(0.3deg); }
.portal-card:nth-child(3) { transform: rotate(-0.2deg); }

.portal-card:hover {
    transform: rotate(0deg) scale(1.01);
    background: rgba(255,255,255,0.8);
}

.portal-card h2 {
    margin-top: 0;
    font-size: 44px;
}

.portal-card h2 a,
.portal-card h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #666;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.65;
}

.preview-list {
    padding-left: 20px;
    line-height: 1.7;
    opacity: 0.85;
}

.mini-sketch-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 20px 0;
}

.mini-sketch-row span,
.utility-preview {
    display: block;
    border: 1px dashed #999;
    background: rgba(255,255,255,0.4);
    padding: 10px;
    text-align: center;
    transform: rotate(-0.3deg);
}

.featured-strip {
    margin-top: 40px;
}

.card-row,
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.compact-card {
    margin: 0;
}

/* ===================================
   COLLECTION PAGES
   =================================== */

.page-intro {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.page-intro h2 {
    display: inline-block;
}

.story-card,
.utility-card {
    margin: 0;
}

.sketch-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.sketch-card {
    margin: 0;
    text-align: center;
}

.large-sketch {
    height: 220px;
}

.large-sketch .gallery-image,
.large-sketch img {
    max-width: 90%;
    max-height: 190px;
}

.sketch-card figcaption {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.75;
}

/* ===================================
   MOBILE ADDITIONS
   =================================== */

@media (max-width: 768px) {
    nav a {
        display: inline-block;
        margin: 8px 10px;
    }

    .portal-card {
        min-height: auto;
    }

    .portal-card h2 {
        font-size: 38px;
    }

    .large-sketch {
        height: 180px;
    }
}


/* ===================================
   COUNTY UKULELE BAND FILE BROWSER
   Add this to the bottom of styles.css
   =================================== */

.file-browser-page {
    max-width: 980px;
}

.file-browser-panel {
    max-width: 850px;
    padding: 28px;
}

.file-search-input {
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 18px;
    padding: 14px 16px;
    font-family: "Special Elite", monospace;
    font-size: 18px;
    color: #2b2b2b;
    background: rgba(255,255,255,0.75);
    border: 1px dashed #777;
    outline: none;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
}

.file-search-input:focus {
    background: white;
    border-color: #333;
}

.file-toolbar,
.file-browser-controls,
.file-actions,
.file-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.file-toolbar {
    justify-content: center;
    margin: 10px 0 18px;
}

.file-toolbar button {
    width: auto;
    padding: 9px 12px;
    font-size: 14px;
}

.file-toolbar button.active-filter {
    background: #fff;
    border-style: solid;
    transform: rotate(-1deg);
}

.file-browser-controls {
    justify-content: space-between;
    margin-top: 15px;
}

.file-browser-controls label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 210px;
    font-size: 14px;
    opacity: 0.85;
}

.file-browser-controls select {
    font-family: "Special Elite", monospace;
    padding: 10px;
    background: rgba(255,255,255,0.75);
    border: 1px dashed #777;
    color: #2b2b2b;
}

.file-count,
.search-hint {
    text-align: center;
    opacity: 0.75;
}

.search-hint {
    font-size: 14px;
    line-height: 1.5;
}

.file-list {
    margin-top: 26px;
}

.file-card {
    transform: rotate(-0.12deg);
}

.file-card:nth-child(even) {
    transform: rotate(0.12deg);
}

.file-card:hover,
.file-card:nth-child(even):hover {
    transform: rotate(0deg) scale(1.01);
}

.file-card-topline {
    justify-content: space-between;
    margin-bottom: 8px;
}

.file-badge {
    display: inline-block;
    padding: 5px 8px;
    border: 1px dashed #999;
    background: rgba(255,255,255,0.55);
    font-size: 13px;
}

.file-title {
    margin: 8px 0 6px;
    padding-bottom: 0;
    border-bottom: none;
    font-family: "Reenie Beanie", cursive;
    font-size: 36px;
    line-height: 1.05;
}

.file-meta,
.file-path {
    font-size: 13px;
    opacity: 0.7;
}

.file-path {
    margin-top: 0;
    overflow-wrap: anywhere;
}

.file-actions {
    margin-top: 14px;
}

.file-actions .button-link {
    padding: 9px 13px;
    font-size: 14px;
}

.empty-message {
    text-align: center;
}

@media (max-width: 768px) {
    .file-browser-panel {
        padding: 22px;
    }

    .file-browser-controls {
        display: block;
    }

    .file-browser-controls label {
        margin-top: 12px;
        width: 100%;
    }

    .file-card-topline {
        display: block;
    }

    .file-meta {
        display: block;
        margin-top: 8px;
    }

    .file-title {
        font-size: 32px;
    }

    .file-actions .button-link {
        width: auto;
    }
}
