@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=IM+Fell+English&family=Libre+Baskerville:wght@400;700&display=swap');

/* =========================================================
   MINEN — SHARED SITE STYLES
   Dark academia / magical old-web / personal archive
   ========================================================= */

:root {
    --cream: #f7f1e6;
    --paper: #fffaf1;
    --paper-dark: #eee3d3;
    --wine: #8f1f3d;
    --wine-dark: #65152d;
    --plum: #5a405f;
    --plum-dark: #403044;
    --plum-light: #806785;
    --green: #536b4b;
    --green-dark: #394b34;
    --gold: #b58a45;
    --gold-light: #d8bc82;
    --ink: #30252c;
    --muted: #74666d;
    --line: rgba(90, 64, 95, 0.28);
    --shadow: rgba(48, 37, 44, 0.12);
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(181, 138, 69, 0.09), transparent 25%),
        radial-gradient(circle at 88% 24%, rgba(90, 64, 95, 0.08), transparent 28%),
        var(--cream);
    color: var(--ink);
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14px;
    line-height: 1.75;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wine);
    z-index: 9999;
}

img {
    max-width: 100%;
}

a {
    color: var(--wine);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--plum);
}

button,
input {
    font: inherit;
}

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

.site-header {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 24px 0;
}

.header-banner {
    position: relative;
    min-height: 230px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(90, 64, 95, 0.84), rgba(64, 48, 68, 0.94)),
        var(--plum);
    box-shadow: 0 12px 30px var(--shadow);
    overflow: hidden;
}

.header-banner::before,
.header-banner::after {
    position: absolute;
    color: rgba(255, 250, 241, 0.42);
    font-family: 'Cormorant Garamond', serif;
    pointer-events: none;
}

.header-banner::before {
    content: '✦   ✧   ⋆   ✦   ⋆   ✧   ✦';
    top: 22px;
    left: 28px;
    font-size: 24px;
    letter-spacing: 8px;
}

.header-banner::after {
    content: '☾';
    right: 34px;
    bottom: -24px;
    font-size: 150px;
    line-height: 1;
    opacity: 0.2;
}

.header-banner-placeholder {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 250, 241, 0.7);
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.page-heading {
    padding: 22px 8px 18px;
    text-align: center;
}

.page-eyebrow,
.section-label,
.mini-heading,
.card-kicker,
.card-meta {
    margin: 0;
    color: var(--wine);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.page-eyebrow {
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0.06em;
}

.page-heading h1 {
    margin: 2px 0 4px;
    color: var(--plum-dark);
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.05;
}

.page-subtitle {
    margin: 0;
    color: var(--muted);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-style: italic;
}

/* =========================================================
   NAVIGATION — sticky, not fixed
   ========================================================= */

.main-nav {
    position: sticky;
    top: 8px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 28px;
    padding: 8px;
    border: 1px solid var(--line);
    background: rgba(247, 241, 230, 0.94);
    box-shadow: 0 7px 18px rgba(48, 37, 44, 0.08);
    backdrop-filter: blur(7px);
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    border: 1px solid transparent;
    color: var(--plum-dark);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
    border-color: rgba(143, 31, 61, 0.35);
    background: var(--wine);
    color: var(--paper);
}

/* =========================================================
   MAIN THREE-COLUMN LAYOUT
   ========================================================= */

.site-layout {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr) 205px;
    gap: 24px;
    align-items: start;
}

.left-column,
.right-column,
.center-column {
    min-width: 0;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.center-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.left-column,
.right-column {
    position: sticky;
    top: 74px;
    align-self: start;
}

.center-column > *,
.left-column > *,
.right-column > * {
    width: 100%;
}

/* =========================================================
   PANELS / PAPER
   ========================================================= */

.panel,
.welcome-section,
.quote-note,
.music-player {
    position: relative;
    border: 1px solid var(--line);
    background: rgba(255, 250, 241, 0.84);
    box-shadow: 0 8px 20px var(--shadow);
}

.panel {
    padding: 20px;
}

.panel::before,
.welcome-section::before,
.quote-note::before {
    content: '✦';
    position: absolute;
    top: 8px;
    right: 11px;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    opacity: 0.8;
}

.section-label {
    margin-bottom: 12px;
    font-size: 13px;
}

.panel h2,
.panel h3,
.welcome-section h2 {
    color: var(--plum-dark);
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.panel h2,
.welcome-section h2 {
    margin: 0 0 9px;
    font-size: 29px;
    line-height: 1.15;
}

.panel h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.panel p:last-child {
    margin-bottom: 0;
}

.panel a:not(.button-link):not(.big-link):not(.portfolio-image-link) {
    display: block;
    margin: 4px 0;
}

.text-link {
    display: inline-block !important;
    margin-top: 10px !important;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
}

.mini-heading {
    margin-bottom: 11px;
    font-size: 13px;
}

/* =========================================================
   PLACEHOLDER IMAGES
   ========================================================= */

.image-placeholder,
.portfolio-image,
.featured-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(90, 64, 95, 0.24);
    background:
        linear-gradient(135deg, rgba(90, 64, 95, 0.18), rgba(181, 138, 69, 0.12)),
        var(--paper-dark);
    color: var(--plum);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-align: center;
}

.image-placeholder::after,
.portfolio-image::after,
.featured-placeholder::after {
    content: '✦  ✧  ✦';
    position: absolute;
    bottom: 9px;
    left: 0;
    right: 0;
    color: rgba(90, 64, 95, 0.4);
    font-size: 12px;
}

.image-placeholder.square {
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
}

.image-placeholder.portrait {
    min-height: 230px;
}

.image-placeholder.character-image {
    min-height: 300px;
}

/* Real image support */
.image-placeholder img,
.portfolio-image img,
.featured-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================================================
   HOME
   ========================================================= */

.profile-panel h2 {
    margin-top: 0;
    font-size: 31px;
}

.welcome-section {
    padding: 28px 30px;
    background:
        linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(238, 227, 211, 0.72));
}

.welcome-section p {
    max-width: 760px;
}

.quote-note {
    padding: 20px;
    background: rgba(83, 107, 75, 0.09);
}

.quote-note > p:first-child {
    margin: 0;
    color: var(--green);
    font-family: 'IM Fell English', serif;
    font-size: 32px;
    line-height: 0.8;
}

.quote-note blockquote {
    margin: 8px 0 10px;
    color: var(--plum-dark);
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 19px;
    line-height: 1.45;
}

.quote-note cite {
    color: var(--muted);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 17px;
}

.featured-placeholder {
    min-height: 220px;
}

.featured-placeholder:only-child {
    grid-column: 1 / -1;
}

.faq-section details,
.center-column details {
    border-top: 1px dashed var(--line);
    padding: 12px 0;
}

.faq-section details:first-of-type,
.center-column details:first-of-type {
    border-top: 0;
}

summary {
    cursor: pointer;
    color: var(--plum-dark);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
}

summary::marker {
    color: var(--wine);
}

.updates article {
    padding: 10px 0;
    border-top: 1px dashed var(--line);
}

.updates article:first-of-type {
    border-top: 0;
}

.updates strong {
    color: var(--wine);
    font-family: 'Cormorant Garamond', serif;
}

.updates p {
    margin: 3px 0 0;
}

.mini-character-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mini-character-grid a {
    margin: 0 !important;
    text-align: center;
}

.mini-character-grid .portrait {
    min-height: 125px;
    margin-bottom: 5px;
}

/* =========================================================
   MUSIC PLAYER
   ========================================================= */

.music-player {
    padding: 18px;
    background: var(--plum-dark);
    color: var(--paper);
    border-color: rgba(255, 250, 241, 0.2);
}

.music-title {
    color: var(--gold-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.music-track {
    margin-top: 4px;
    color: rgba(255, 250, 241, 0.78);
    font-family: 'IM Fell English', serif;
    font-size: 16px;
}

.music-controls {
    display: flex;
    gap: 5px;
    margin: 13px 0;
}

.music-controls button {
    width: 34px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 250, 241, 0.24);
    background: rgba(255, 250, 241, 0.07);
    color: var(--paper);
    cursor: pointer;
}

.music-controls button:hover {
    background: var(--wine);
    border-color: var(--wine);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 250, 241, 0.75);
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
}

.volume-control input {
    width: 100%;
    accent-color: var(--gold);
}

/* =========================================================
   BUTTONS / LINKS
   ========================================================= */

.button-link,
.big-link {
    display: inline-block !important;
    margin: 6px 5px 0 0 !important;
    padding: 8px 13px;
    border: 1px solid var(--wine);
    background: var(--wine);
    color: var(--paper) !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 700;
}

.button-link:hover,
.big-link:hover {
    background: var(--plum);
    border-color: var(--plum);
    color: var(--paper) !important;
    transform: translateY(-1px);
}

.button-link.secondary {
    border-color: var(--plum);
    background: transparent;
    color: var(--plum-dark) !important;
}

.button-link.secondary:hover {
    background: var(--plum);
    color: var(--paper) !important;
}

.big-link {
    width: 100%;
    margin-top: 12px !important;
    text-align: center;
    letter-spacing: 0.06em;
}

/* =========================================================
   COMMISSIONS
   ========================================================= */

.commission-action-row {
    margin-top: 14px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.price-grid article {
    min-height: 130px;
    padding: 15px 12px;
    border: 1px solid rgba(90, 64, 95, 0.2);
    background: rgba(255, 255, 255, 0.42);
    text-align: center;
}

.price-grid h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.price-grid strong {
    display: block;
    color: var(--wine);
    font-family: 'IM Fell English', serif;
    font-size: 29px;
    font-weight: 400;
}

.price-grid p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.note {
    padding: 10px 12px;
    border-left: 3px solid var(--gold);
    background: rgba(181, 138, 69, 0.08);
}

.do-dont {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.do-dont > div {
    padding: 15px;
    border: 1px solid var(--line);
}

.do-dont > div:first-child {
    background: rgba(83, 107, 75, 0.08);
}

.do-dont > div:last-child {
    background: rgba(143, 31, 61, 0.06);
}

.do-dont h3 {
    margin-bottom: 8px;
}

.do-dont p {
    margin: 0;
}

.email-link {
    overflow-wrap: anywhere;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 700;
}

/* =========================================================
   PORTFOLIO
   ========================================================= */

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.filter-button {
    padding: 7px 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--plum-dark);
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 700;
}

.filter-button:hover,
.filter-button.active {
    background: var(--wine);
    border-color: var(--wine);
    color: var(--paper);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.portfolio-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 250, 241, 0.84);
    box-shadow: 0 7px 17px var(--shadow);
}

.portfolio-image-link {
    display: block;
    color: inherit;
}

.portfolio-image {
    aspect-ratio: 4 / 5;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.portfolio-image-link:hover .portfolio-image {
    transform: translateY(-2px);
}

.portfolio-info {
    padding: 13px 14px 16px;
}

.portfolio-info h2 {
    margin: 4px 0 4px;
    font-size: 24px;
}

.card-kicker {
    font-size: 11px;
}

.card-meta {
    color: var(--muted);
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.find-panel {
    background: rgba(83, 107, 75, 0.08);
}

.commission-find {
    background: rgba(143, 31, 61, 0.07);
}

.find-panel .big-link {
    margin-bottom: 4px !important;
}

/* =========================================================
   ABOUT
   ========================================================= */

.identity-card {
    border-top: 4px solid var(--wine);
}

.identity-card .tag-cloud {
    margin-top: 12px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud span {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid rgba(90, 64, 95, 0.2);
    background: rgba(90, 64, 95, 0.06);
    color: var(--plum-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
}

.husbandos-panel {
    background:
        linear-gradient(135deg, rgba(143, 31, 61, 0.08), rgba(90, 64, 95, 0.08)),
        rgba(255, 250, 241, 0.9);
}

.husbandos-panel ul,
.panel ul {
    padding-left: 20px;
}

.husbandos-panel li {
    margin-bottom: 3px;
}

/* =========================================================
   CHARACTERS ARCHIVE
   ========================================================= */

.character-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.character-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 250, 241, 0.84);
    box-shadow: 0 8px 18px var(--shadow);
}

.character-card a {
    color: inherit;
}

.character-card .character-image {
    min-height: 330px;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.character-card-info {
    padding: 15px;
}

.character-card-info h2 {
    margin: 2px 0 5px;
    font-size: 27px;
}

.character-card-info p:last-child {
    margin-bottom: 0;
}

/* Character wiki pages */

.character-hero {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.character-hero .portrait {
    min-height: 330px;
}

.character-data {
    width: 100%;
    border-collapse: collapse;
}

.character-data th,
.character-data td {
    padding: 9px 10px;
    border-bottom: 1px dashed var(--line);
    text-align: left;
    vertical-align: top;
}

.character-data th {
    width: 38%;
    color: var(--plum-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
}

.character-data td {
    color: var(--ink);
}

/* =========================================================
   GUESTBOOK
   ========================================================= */

.guestbook-intro {
    background:
        linear-gradient(135deg, rgba(83, 107, 75, 0.09), rgba(255, 250, 241, 0.86));
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.prompt-grid > div {
    padding: 13px;
    border: 1px dashed var(--line);
    background: rgba(255, 250, 241, 0.6);
}

.prompt-grid strong {
    display: block;
    margin-bottom: 4px;
    color: var(--wine);
    font-family: 'Cormorant Garamond', serif;
}

.guestbook-service {
    padding: 28px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--plum-light);
    background: rgba(90, 64, 95, 0.05);
    text-align: center;
}

.guestbook-placeholder {
    max-width: 530px;
}

.guestbook-placeholder h2 {
    margin-bottom: 8px;
}

.mini-note {
    padding: 13px;
    border-left: 3px solid var(--gold);
    background: rgba(181, 138, 69, 0.08);
    font-size: 13px;
}

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

.site-footer {
    margin-top: 18px;
    padding: 42px 24px 24px;
    background: var(--plum);
    color: var(--paper);
}

.footer-columns {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.footer-columns section {
    min-width: 0;
}

.footer-columns h3 {
    margin: 0 0 10px;
    color: var(--gold-light);
    font-family: 'IM Fell English', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.footer-columns p {
    margin: 3px 0;
    color: rgba(255, 250, 241, 0.8);
}

.footer-columns a {
    display: block;
    width: fit-content;
    margin: 3px 0;
    color: rgba(255, 250, 241, 0.84);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
}

.footer-columns a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    width: 100%;
    max-width: var(--max-width);
    margin: 34px auto 0;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 250, 241, 0.2);
    color: rgba(255, 250, 241, 0.7);
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .site-layout {
        grid-template-columns: 180px minmax(0, 1fr) 180px;
        gap: 17px;
    }

    .price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .site-layout {
        grid-template-columns: 1fr;
    }

    .left-column,
    .right-column {
        position: static;
    }

    .center-column {
        grid-row: 1;
    }

    .left-column {
        grid-row: 2;
    }

    .right-column {
        grid-row: 3;
    }

    .header-banner,
    .header-banner-placeholder {
        min-height: 180px;
    }

    .page-heading h1 {
        font-size: 41px;
    }

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

    .character-hero .portrait {
        max-width: 320px;
        width: 100%;
    }
}

@media (max-width: 650px) {
    body {
        font-size: 13px;
    }

    .site-header {
        padding: 16px 12px 0;
    }

    .site-layout {
        padding: 0 12px 35px;
    }

    .header-banner,
    .header-banner-placeholder {
        min-height: 145px;
    }

    .header-banner::after {
        font-size: 100px;
    }

    .page-heading {
        padding: 18px 4px 15px;
    }

    .page-heading h1 {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .main-nav {
        top: 5px;
        gap: 3px;
        padding: 5px;
    }

    .main-nav a {
        padding: 6px 9px;
        font-size: 14px;
    }

    .panel,
    .welcome-section,
    .quote-note,
    .music-player {
        padding: 16px;
    }

    .featured-grid,
    .portfolio-grid,
    .character-grid,
    .prompt-grid {
        grid-template-columns: 1fr;
    }

    .price-grid,
    .do-dont {
        grid-template-columns: 1fr;
    }

    .portfolio-image {
        aspect-ratio: 1 / 1;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer {
        padding: 32px 20px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
