@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Serif+Display&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-paper: #F6F1E7;
    --ink-blue: #1F3A5F;
    --postal-red: #C73E2E;
    --warm-grey: #8C8478;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-paper);
    color: var(--ink-blue);
    line-height: 1.6;
    /* Subtle paper noise texture */
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', serif;
    font-weight: normal;
    color: var(--ink-blue);
}

.monospace {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header.top-bar {
    border-bottom: 2px solid var(--ink-blue);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo svg {
    width: 60px;
    height: 60px;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--ink-blue);
    line-height: 1;
}

nav.main-nav {
    display: flex;
    gap: 25px;
}

nav.main-nav a {
    color: var(--ink-blue);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 700;
}
nav.main-nav a:hover {
    color: var(--postal-red);
    text-decoration: underline;
    text-decoration-style: dashed;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px dashed var(--warm-grey);
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p.intro {
    font-size: 1.2rem;
    color: var(--warm-grey);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Stamp Effect */
.stamp {
    position: absolute;
    top: 20px;
    right: 10%;
    color: var(--postal-red);
    border: 3px solid var(--postal-red);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(15deg);
    opacity: 0.8;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--ink-blue);
    color: var(--bg-paper);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--ink-blue);
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn:hover {
    background-color: var(--postal-red);
    border-color: var(--postal-red);
    color: var(--bg-paper);
}
.btn-outline {
    background-color: transparent;
    color: var(--ink-blue);
    border: 2px dashed var(--ink-blue);
}
.btn-outline:hover {
    background-color: var(--ink-blue);
    color: var(--bg-paper);
}

/* Sections */
section {
    padding: 60px 0;
    border-bottom: 1px solid var(--warm-grey);
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Cards (Boarding Pass / Ticket Style) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ticket-card {
    background-color: #fffdf9;
    border: 2px dashed var(--ink-blue);
    padding: 30px;
    position: relative;
    box-shadow: 4px 4px 0px rgba(31, 58, 95, 0.1);
}
.ticket-card::before, .ticket-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-paper);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid var(--ink-blue);
}
.ticket-card::before { left: -12px; border-right-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.ticket-card::after { right: -12px; border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }

.ticket-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--warm-grey);
    padding-bottom: 10px;
}
.ticket-label {
    display: block;
    color: var(--warm-grey);
    margin-bottom: 5px;
}

/* Pricing Table */
.price-block {
    text-align: center;
    margin: 20px 0;
}
.price-block .amount {
    font-size: 3rem;
    font-family: 'DM Serif Display', serif;
    color: var(--postal-red);
}
.price-block .currency { font-size: 1.5rem; vertical-align: super; }
.ticket-card ul {
    list-style: none;
    margin: 20px 0 30px;
}
.ticket-card ul li {
    padding: 8px 0;
    border-bottom: 1px dotted var(--warm-grey);
    font-size: 0.95rem;
}

/* Resources */
.resources {
    background-color: #ece5d3;
    padding: 40px;
    border: 2px solid var(--ink-blue);
    margin: 40px 0;
    text-align: center;
}
.resources a {
    color: var(--postal-red);
    text-decoration: underline;
    font-weight: bold;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 4px double var(--ink-blue);
}
.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.footer-links a {
    color: var(--warm-grey);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: var(--ink-blue);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header.top-bar {
        flex-direction: column;
        gap: 20px;
    }
    nav.main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 { font-size: 3rem; }
    .stamp { display: none; }
    .btn { display: block; width: 100%; text-align: center; }
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--postal-red);
    color: var(--bg-paper);
    padding: 12px 20px;
    border-radius: 50px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 4px 4px 0px rgba(31, 58, 95, 0.2);
    border: 2px solid var(--ink-blue);
    transition: all 0.2s ease;
    z-index: 1000;
}
.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 4px 7px 0px rgba(31, 58, 95, 0.2);
    color: #fff;
    text-decoration: none;
}
@media (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}
.next-article-box {
    margin-top: 40px;
    padding: 20px;
    background: #fffdf9;
    border: 2px dashed var(--ink-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.next-article-box a {
    color: var(--postal-red);
    font-weight: bold;
    font-family: 'Space Mono', monospace;
}
