/* Styles for the pages written in Elm (source.html, code-of-conduct.html, not_found.html)! */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100vh; font-family: 'Segoe UI', 'JetBrains Mono', -apple-system, BlinkMacSystemFont, sans-serif; background: radial-gradient(circle at 50% 30%, #021f2b 0%, #000a12 100%); color: #fff; }
.elm-page { min-height: 100vh; display: flex; flex-direction: column; }
.top-navbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px clamp(16px, 4vw, 40px); position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 2px solid rgba(5,147,255,.4); }
.brand-logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 900; text-shadow: 0 0 12px rgba(5,143,255,.9); }
.brand-logo span { font-size: 1.5em; white-space: pre-wrap; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: #cde9f5; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 8px rgba(5,168,255,.6); }
.elm-main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 40px) 60px; }
h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 8px; }
.conduct-title { background: linear-gradient(135deg, #ffffff 0%, #9eddff 50%, #0582ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h2 { color: #b5d9fd; }
.sub { color: #9fc4d6; line-height: 1.6; margin: 0 0 28px; }
a { color: #7ee2ff; }
code { font-family: 'JetBrains Mono', monospace; background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.card { padding: 22px; border-radius: 16px; border: 1px solid rgba(126,226,255,.35); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.4); display: flex; flex-direction: column; gap: 10px; }
.card h2 { margin: 0; font-size: 20px; color: #fff; }
.card p { margin: 0; color: #b6d3e0; font-size: 14px; line-height: 1.55; flex: 1; }
.meta { font-size: 12px; color: #7fb0c6; font-family: 'JetBrains Mono', monospace; }
.btn { display: inline-block; text-align: center; text-decoration: none; color: #fff; font-weight: 800; padding: 12px 18px; border-radius: 12px; background: linear-gradient(180deg, #38d4ff, #0593ff); border: 1px solid #9be8ff; box-shadow: 0 6px 18px rgba(5,147,255,.45), inset 0 1px 2px #fff; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5,147,255,.6), inset 0 1px 2px #fff; }
.btn.kc { background: linear-gradient(180deg, #ff9a8f, #FF6B5E); border-color: #ffc2bb; box-shadow: 0 6px 18px rgba(255,107,94,.45), inset 0 1px 2px #fff; }
.note { margin-top: 28px; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.06); color: #b6d3e0; font-size: 13.5px; line-height: 1.65; }
/* Code of Conduct */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.chip { font: 700 13px 'Segoe UI', sans-serif; color: #fff; text-decoration: none; padding: 7px 13px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(126,226,255,.5); background: linear-gradient(180deg, rgba(56,212,255,.35), rgba(5,147,255,.25)); box-shadow: inset 0 1px 1px rgba(255,255,255,.5); }
.chip:hover { background: linear-gradient(180deg, rgba(56,212,255,.55), rgba(5,147,255,.4)); }
.chip-plain { background: rgba(255,255,255,.06); }
.conduct-section { margin-bottom: 14px; scroll-margin-top: 90px; }
.conduct-section h2 { font-size: 19px; }
.fold { all: unset; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; color: #fff; }
.fold:focus-visible { outline: 2px solid #7ee2ff; outline-offset: 4px; border-radius: 4px; }
.fold-arrow { width: 1em; color: #7ee2ff; }
.conduct-body p, .conduct-body li { color: #cfe6f3; font-size: 15px; line-height: 1.7; }
.conduct-body p { margin: 4px 0 10px; flex: none; }
.conduct-body ul { margin: 0 0 10px; padding-left: 22px; }
.conduct-body a { color: #D5E9FF; overflow-wrap: anywhere; }
/* Not Found */
.guess { font-size: 18px; padding: 14px 18px; border-radius: 12px; background: rgba(56,212,255,.12); border: 1px solid rgba(126,226,255,.35); }
.guess a { font-weight: 800; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.place { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: #fff; border: 1px solid rgba(5,118,255,.35); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); transition: transform .15s, border-color .15s; }
.place:hover { transform: translateY(-2px); border-color: #0582ff; }
.place-name { font-weight: 800; }
.place-what { font-size: 12px; color: #9edfff; }
/* Footer */
.site-footer { width: 100%; padding: 24px clamp(16px, 4vw, 40px); text-align: center; font-size: .9rem; color: #b5d9fd; line-height: 1.9; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.08)); border-top: 2px solid rgba(5,147,255,.3); }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; text-shadow: 0 0 8px rgba(5,143,255,.6); }
.site-footer a:hover { color: #0582ff; text-decoration: underline; }
.footer-rss-link { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.footer-rss-link img { width: 18px; height: 18px; }
.elm-made { margin-top: 6px; font-size: 12px; color: #7fb0c6; }
.no-elm { max-width: 640px; margin: 120px auto; padding: 0 20px; color: #cfe6f3; line-height: 1.6; }
@media (max-width: 600px) { .elm-main { padding-top: 130px; } .nav-links { gap: 14px; } }
