/* signal.css: Homing Signal's pages, in the main page's colors, type and cards. */
:root {
    --color-orange: #FF8C00;
    --color-mint: #66CDAA;
    --color-coral: #FF6F61;
    --color-white: #FFFFFF;
    --color-dark: #333333;
    --atomic-lime: #C3FF00;
    --burnt-orange: #E36414;
    --oxidized-teal: #2F4F4F;
    --vhs-beige: #D6C7A1;
    --fallout-green: #6EFFB5;
    --matte-black: #111111;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: Arial, Helvetica, sans-serif; background-color: var(--color-orange); color: var(--color-dark); line-height: 1.6; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
/* A short page still ends at the footer. */
body > main { flex: 1 0 auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* The header, as on the main page; the logo goes home. */
header { background-color: var(--color-orange); padding: 20px 0; position: relative; z-index: 10; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { width: 300px; height: auto; display: block; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.1) rotate(5deg); }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 30px; }
nav ul li a { color: var(--color-white); text-decoration: none; font-family: "Courier New", Courier, monospace; font-size: 1.5rem; }
nav ul li a:hover { color: var(--color-mint); }

/* The beacon: a light that pulses like a signal going out. */
.beacon { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--color-coral); margin-right: 0.5em; vertical-align: 0.05em; animation: beacon 1.6s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { box-shadow: 0 0 0 0.12em rgba(255, 111, 97, 0.55); } 50% { box-shadow: 0 0 0 0.45em rgba(255, 111, 97, 0); } }
@media (prefers-reduced-motion: reduce) { .beacon { animation: none; } }

/* The list page: the main page's hero, with the list on the dots. The angled
   bands give the same edges, and reach in less, so the heading and the last
   card sit clear of them. */
.signal-hero { background-color: var(--color-mint); padding: 80px 0 110px; position: relative; overflow: hidden; }
.signal-hero::before, .signal-hero::after { content: ''; position: absolute; background-color: var(--color-orange); width: 300%; left: -100%; z-index: 1; }
.signal-hero::before { height: 140px; top: -110px; transform: rotate(-3deg); }
.signal-hero::after { height: 120px; bottom: -90px; transform: rotate(-2deg); }
.hero-content { position: relative; z-index: 2; }
.signal-hero h1 { font-family: "Courier New", Courier, monospace; font-size: 4rem; line-height: 1.1; color: var(--color-orange); text-shadow: 3px 3px 0 var(--color-coral); margin-bottom: 30px; }
.polka-dots { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(var(--color-white) 20%, transparent 20%), radial-gradient(var(--color-coral) 20%, transparent 20%); background-size: 240px 240px; background-position: 0 0, 120px 120px; opacity: 0.6; animation: floatDots 240s linear infinite; }
@keyframes floatDots { 0% { background-position: 0 0, 120px 120px; } 100% { background-position: 240px 240px, 360px 360px; } }

/* The list: the archive's cards, one column, newest first, lined up under the heading. */
.post-list { display: flex; flex-direction: column; gap: 15px; max-width: 900px; }
.link-card { display: flex; gap: 15px; background-color: #111; border: 1px solid #333; padding: 15px 20px; text-decoration: none; font-family: "Courier New", Courier, monospace; transition: border-color 0.2s ease, box-shadow 0.2s ease; align-items: center; }
.link-card:hover { border-color: #00FF88; box-shadow: 0 2px 12px rgba(0, 255, 136, 0.15); }
.link-card-thumb { width: 120px; height: 80px; object-fit: cover; flex-shrink: 0; }
.link-card-thumb.is-logo { object-fit: contain; background-color: var(--color-orange); padding: 6px; }
.link-card-body { flex: 1; min-width: 0; }
.link-card-title { display: block; font-size: 1rem; font-weight: bold; color: #00FF88; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05rem; }
.link-card-desc { display: block; font-size: 0.8rem; color: #999; line-height: 1.4; margin-bottom: 6px; }
.link-card-meta { display: block; font-size: 0.7rem; color: #777; text-transform: uppercase; letter-spacing: 0.1rem; }
.list-note { font-family: "Courier New", Courier, monospace; font-size: 1.2rem; color: var(--color-dark); }
.more { display: block; margin-top: 25px; }

/* A post: the archive panels' look, open on the page. */
.post-section { padding: 40px 0 60px; }
.post { background-color: var(--matte-black); color: var(--vhs-beige); max-width: 900px; margin: 0 auto; border: 3px solid var(--atomic-lime); border-radius: 10px; box-shadow: 0 20px 60px rgba(195, 255, 0, 0.3); overflow: hidden; }
.post-header { background-color: var(--oxidized-teal); padding: 30px; border-bottom: 2px solid var(--atomic-lime); }
.post-no { font-family: "Courier New", Courier, monospace; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.15rem; color: var(--fallout-green); margin-bottom: 6px; }
.post-header h1 { color: var(--atomic-lime); font-family: "Courier New", Courier, monospace; font-size: 2.5rem; line-height: 1.2; text-shadow: 2px 2px 0 var(--burnt-orange); }
.post-date { margin-top: 10px; font-family: "Courier New", Courier, monospace; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1rem; color: var(--vhs-beige); }
.post-body { padding: 30px; font-size: 1.1rem; }
.post-body p { margin-bottom: 15px; line-height: 1.8; }
.post-body h2 { color: var(--atomic-lime); font-family: "Courier New", Courier, monospace; font-size: 1.6rem; margin: 30px 0 15px; }
.post-body h3 { color: var(--fallout-green); font-family: "Courier New", Courier, monospace; font-size: 1.3rem; margin: 25px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 15px 1.5rem; line-height: 1.8; }
.post-body blockquote { border-left: 4px solid var(--burnt-orange); margin: 0 0 15px; padding: 4px 0 4px 18px; font-style: italic; color: #e8dcbb; }
.post-body blockquote p { margin-bottom: 8px; }
.post-body hr { border: 0; border-top: 2px dashed #444; margin: 25px 0; }
.post-body a { color: var(--atomic-lime); text-decoration: none; }
.post-body a:hover { text-decoration: underline; }
.post-body strong { color: var(--color-white); }
.post-body figure { margin: 25px 0; }
.post-body img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 0 auto; border: 1px solid #333; border-radius: 5px; }
.post-body p img { display: inline-block; max-height: 2em; vertical-align: middle; border: 0; }
.post-nav { max-width: 900px; margin: 30px auto 0; display: flex; gap: 15px; flex-wrap: wrap; }
.post-nav .newer { margin-left: auto; }
.cta-button { display: inline-block; background-color: var(--color-coral); color: var(--color-white); padding: 15px 30px; text-decoration: none; font-family: "Courier New", Courier, monospace; font-size: 1.3rem; border-radius: 5px; border: none; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }

footer { background-color: var(--color-dark); color: var(--color-white); text-align: center; padding: 20px 0; }

@media (max-width: 768px) {
    .logo { width: 200px; }
    nav ul { flex-direction: column; align-items: flex-end; }
    nav ul li { margin: 5px 0; }
    .signal-hero { padding: 55px 0 80px; }
    .signal-hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
    .link-card { padding: 12px 14px; }
    .link-card-thumb { width: 90px; height: 60px; }
    .post-section { padding: 20px 0 40px; }
    .post-header { padding: 20px; }
    .post-header h1 { font-size: 1.8rem; }
    .post-body { padding: 20px; font-size: 1.05rem; }
    .cta-button { width: 100%; text-align: center; }
    .post-nav .newer { margin-left: 0; }
}
