@font-face {
    font-family: 'Sile';
    src: url('./Sile.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --color-primary-dark: #fa8826;
    --color-primary: #edaf33;
    --color-primary-light: #ffef8e;
    --color-background: #ffd247;
    --color-text: #3a2c05;
    --color-muted: #8a6d1f;
    --color-muted-dark: #6b520f;
    --color-border: #e0c04a;
    --color-surface: #fff6d6;
    --color-link: #c25e00;
}

html {
    cursor: url('./gude-cursor-a.png'), auto;
}

body {
    font-family: system-ui, sans-serif;
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: var(--color-text);
    line-height: 1.5;
    /* Sticky footer: fill the viewport (minus the 2rem top/bottom margins) and
     stack as a column so .page-content can grow and push the footer down when
     there's little content. */
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    background: var(--color-background);
    /*background: linear-gradient(180deg,rgba(255, 210, 71, 1) 0%, rgba(255, 255, 255, 1) 100%);*/
    background: linear-gradient(180deg,rgba(255, 210, 71, 1) 0%, rgba(255, 255, 255, 1) 71%);

}

.page-content {
    flex: 1 0 auto;
}

a {
    color: var(--color-link);
}

a:hover {
    color: var(--color-primary-dark);
}

a, button {
    cursor: url('./gude-cursor.png'), auto;
}

*:focus-visible {
    outline: 2px solid var(--color-primary-dark);
}

p {
    color: var(--color-text);
}

.site-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.site-header .hero {
    max-width: 100%;
    display: block;
    margin: 0 auto 0.75rem;
}

.site-header h1 {
    font-family: 'Sile', sans-serif;
    color: white;
    margin: -70px -230px 0 0;
    font-size: 5rem;
    text-transform: lowercase;
    font-weight: lighter;
    letter-spacing: 0.05em;
}

.tagline {
    text-align: center;
    color: black;
    margin-top: -0.5rem;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    margin-bottom: 1.5rem;
}

.site-nav a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
}

.site-nav a:hover {
    color: var(--color-muted-dark);
}

.site-nav a.active {
    color: var(--color-muted-dark);
    font-weight: bold;
}

.buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.button-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.button-item img {
    border: 1px solid var(--color-border);
}

.button-item textarea {
    width: 260px;
    font-family: monospace;
    font-size: 0.75rem;
    padding: 0.4rem;
    box-sizing: border-box;
}

.hint {
    color: var(--color-muted);
    font-size: 0.9em;
}

.flash {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.flash-success {
    background: #e6ffed;
    border: 1px solid #34d399;
}

.flash-info {
    background: #ebf8ff;
    border: 1px solid #63b3ed;
}

.flash-error {
    background: #fff5f5;
    border: 1px solid #fc8181;
}

.errors,
.error {
    color: #c53030;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    text-align: left;
}

img.fanlisting-button {
    image-rendering: pixelated;
    width: 50px;
    height: 50px;
}

.member-list li {
    margin-bottom: 0.25rem;
}

.country {
    color: var(--color-muted);
    font-size: 0.9em;
}

form button {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

form label {
    display: block;
    margin-bottom: 0.75rem;
}

form select {
    border-radius: 1rem;
    height: 2.2rem;
    padding: 0.5rem;
    border: 2px dashed var(--color-border);
    background: var(--color-primary-light);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='url'] {
    width: 100%;
    max-width: 320px;
    padding: 0.4rem;
    box-sizing: border-box;
    border-radius: 1rem;
    border: 2px dashed var(--color-border);
}

input:disabled {
    background: var(--color-surface);
    color: var(--color-muted);
}

.listing-counts {
    text-align: center;
    color: var(--color-muted-dark);
}

.pending-count {
    color: #b7791f;
}

/* Plain listing-facts panel */
.listing-info {
    float: right;
    width: 240px;
    max-width: 100%;
    border: 1px solid var(--color-primary);
    padding: 0.9rem 1.1rem;
    margin: 0 0 1.5rem 1.5rem;
    background: var(--color-primary-light);
}

@media (max-width: 480px) {
    .site-header h1 {
        margin: -40px 0 0 0;
    }

    .listing-info {
        float: none;
        width: auto;
        margin: 0 0 1.5rem;
    }
}

.listing-info dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1.25rem;
}

.listing-info dt {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    align-self: baseline;
    padding-top: 0.1rem;
}

.listing-info dd {
    margin: 0;
    font-size: 0.9rem;
    word-break: break-word;
}

.listing-info .pending-count {
    font-size: 0.85em;
}

.filter-form {
    margin-bottom: 1rem;
}

.filter-form label {
    font-size: 0.9rem;
    color: var(--color-muted-dark);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pagination .page-info {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-primary);
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0.35rem 0;
}

.site-footer .footer-owner {
    color: var(--color-muted-dark);
}

.site-footer .footer-disclaimer {
    font-size: 0.75rem;
    max-width: 34rem;
    margin: 0.75rem auto 0;
}
