/* Receipt Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-color: #f4f4f0;
    /* Off-white, slightly warm thermal paper */
    --text-color: #1a1a1a;
    /* Faded black ink */
    --link-color: #1a1a1a;
    --dashed-color: #888888;
}

body {
    background-color: #161617;
    /* Dark background to contrast the receipt */
    color: var(--text-color);
    font-family: 'Space Mono', 'Courier New', Courier, monospace;
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    font-size: 14px;
    line-height: 1.5;
}

/* The Receipt */
.receipt-container {
    background-color: var(--bg-color);
    /* Subtle grungy noise texture using inline SVG (no external library needed!) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
    width: 100%;
    max-width: 600px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

/* Headers */
header {
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    /* text-transform: uppercase; */
    letter-spacing: 2px;
}

h1 a {
    text-decoration: none;
    color: inherit;
}

h2,
h3,
h4,
h5,
h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    /* text-transform: uppercase; */
}

.dashed-line {
    border-top: 1px dashed var(--dashed-color);
    margin: 1rem 0;
    width: 100%;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #444;
}

/* Homepage Post List */
.post-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--link-color);
    margin-bottom: 0.25rem;
}

.post-title:hover {
    text-decoration: underline;
    text-decoration-style: dashed;
}

.post-meta {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #555;
}

/* Post Content */
.post-meta-details {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 1rem;
}

.markdown-body img {
    max-width: 65%;
    height: auto;
    display: block;
    margin: 1rem auto;
    /* filter: grayscale(100%) contrast(1.2); */
    /* Make images look like thermal prints */
}

.markdown-body figure {
    margin: 1.5rem 0;
    text-align: center;
}

.markdown-body figure img {
    margin: 0 auto;
}

.markdown-body figcaption {
    font-size: 0.6rem;
    color: #555;
    margin-top: 0.5rem;
    font-style: italic;
    border-bottom: 1px dotted var(--dashed-color);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.markdown-body a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.markdown-body a:hover {
    text-decoration-style: solid;
}

.markdown-body blockquote {
    border-left: 2px dashed var(--dashed-color);
    margin: 1rem 0;
    padding-left: 1rem;
    font-style: italic;
    color: #444;
}

.markdown-body code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.1rem 0.3rem;
    font-size: 0.9em;
}

.markdown-body pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    overflow-x: auto;
    border: 1px dashed var(--dashed-color);
}

.markdown-body ul,
.markdown-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-body ul {
    list-style: square;
    /* Fits the receipt vibe */
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: var(--link-color);
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: 2rem;
}

.center-text {
    text-align: center;
    margin: 0.5rem 0;
}

.barcode {
    text-align: center;
    margin-top: 1rem;
}

.barcode img {
    max-width: 50%;
    mix-blend-mode: multiply;
}