461 lines
12 KiB
CSS
461 lines
12 KiB
CSS
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
body {
|
|
font-family: var(--font-ui);
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading-normal);
|
|
color: var(--color-ink);
|
|
background: var(--color-paper);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
.site-main {
|
|
max-width: var(--content-width);
|
|
margin: 0 auto;
|
|
padding: var(--space-8) var(--space-5);
|
|
}
|
|
|
|
@media (min-width: 520px) {
|
|
.site-main { padding: var(--space-10) var(--space-6); }
|
|
}
|
|
|
|
/* ── Header ──────────────────────────────────────────────────────────────────── */
|
|
|
|
.site-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 var(--space-5);
|
|
height: var(--site-header-height);
|
|
background: var(--color-canvas);
|
|
border-top: 3px solid var(--color-accent);
|
|
border-bottom: 1px solid var(--color-border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.site-title {
|
|
font-family: var(--font-display);
|
|
font-size: var(--text-lg);
|
|
font-weight: 400;
|
|
letter-spacing: -0.01em;
|
|
text-decoration: none;
|
|
color: var(--color-ink);
|
|
line-height: 1;
|
|
}
|
|
|
|
.site-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.site-nav a {
|
|
font-family: var(--font-ui);
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
color: var(--color-ink-2);
|
|
text-decoration: none;
|
|
padding: var(--space-2) var(--space-3);
|
|
border-radius: var(--radius-sm);
|
|
min-height: 44px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
transition: color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.site-nav a:hover { color: var(--color-ink); background: var(--color-paper); }
|
|
.site-nav a[aria-current="page"] { color: var(--color-accent); font-weight: 600; }
|
|
|
|
@media (max-width: 380px) {
|
|
.site-title { font-size: var(--text-md); }
|
|
.site-nav a { padding: var(--space-2); font-size: 0.8rem; }
|
|
}
|
|
|
|
/* ── Feed ────────────────────────────────────────────────────────────────────── */
|
|
|
|
.feed { display: flex; flex-direction: column; gap: var(--space-12); }
|
|
.feed-empty { color: var(--color-ink-muted); font-style: italic; }
|
|
|
|
.entry-card { border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-12); }
|
|
|
|
.entry-card-inner {
|
|
display: block;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
/* Card: photo variant */
|
|
|
|
.entry-card-photo {
|
|
position: relative;
|
|
aspect-ratio: 16 / 9;
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
background: var(--color-border);
|
|
margin-bottom: var(--space-5);
|
|
}
|
|
|
|
.entry-card-photo img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
transition: transform 0.45s ease;
|
|
}
|
|
|
|
.entry-card-inner:hover .entry-card-photo img { transform: scale(1.04); }
|
|
|
|
.entry-card-photo-overlay {
|
|
position: absolute;
|
|
inset: auto 0 0 0;
|
|
padding: var(--space-5) var(--space-4) var(--space-3);
|
|
background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, transparent 100%);
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: var(--space-3);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.entry-date-overlay {
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
color: rgba(255,255,255,0.92);
|
|
}
|
|
|
|
.entry-location-overlay {
|
|
font-size: var(--text-xs);
|
|
color: rgba(255,255,255,0.85);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 180px;
|
|
}
|
|
|
|
/* Card: text-only variant */
|
|
|
|
.entry-card-textmeta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
margin-bottom: var(--space-3);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.entry-date-plain {
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
letter-spacing: 0.07em;
|
|
color: var(--color-ink-muted);
|
|
}
|
|
|
|
.entry-location-plain {
|
|
font-size: var(--text-xs);
|
|
color: var(--color-ink-muted);
|
|
}
|
|
|
|
/* Card body */
|
|
|
|
.entry-card .entry-title {
|
|
font-family: var(--font-display);
|
|
font-size: var(--text-xl);
|
|
font-weight: 400;
|
|
line-height: var(--leading-snug);
|
|
color: var(--color-ink);
|
|
margin-bottom: var(--space-3);
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.entry-card-inner:hover .entry-title { color: var(--color-accent); }
|
|
|
|
.entry-excerpt {
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading-normal);
|
|
color: var(--color-ink-2);
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
|
|
.entry-read-more {
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
/* Location & weather badges (single entry page) */
|
|
|
|
.entry-location {
|
|
font-size: var(--text-sm);
|
|
color: var(--color-ink-2);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.entry-weather {
|
|
font-size: var(--text-sm);
|
|
color: var(--color-ink-2);
|
|
}
|
|
|
|
/* ── Single entry ───────────────────────────────────────────────────────────── */
|
|
|
|
.entry-header { margin-bottom: 1.5rem; }
|
|
.entry-header .entry-date { margin-bottom: 0.3rem; }
|
|
.entry-header .entry-location { margin-bottom: 0.2rem; display: block; }
|
|
.entry-header .entry-weather { margin-bottom: 0.75rem; }
|
|
.entry .entry-title { font-size: 1.8rem; margin-top: 0.5rem; }
|
|
.entry-body { margin-bottom: 2rem; }
|
|
.entry-body p { margin-bottom: 1em; }
|
|
.entry-body img { max-width: 100%; height: auto; border-radius: 4px; }
|
|
.entry-footer { border-top: 1px solid #e5e5e5; padding-top: 1rem; }
|
|
.entry-footer a { color: #0066cc; text-decoration: none; font-size: 0.9rem; }
|
|
|
|
/* ── Photo gallery ──────────────────────────────────────────────────────────── */
|
|
|
|
.entry-gallery {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 4px;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
@media (min-width: 520px) {
|
|
.entry-gallery { grid-template-columns: repeat(3, 1fr); }
|
|
}
|
|
|
|
.gallery-thumb {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
display: block;
|
|
aspect-ratio: 1;
|
|
overflow: hidden;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.gallery-thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.gallery-thumb:hover img,
|
|
.gallery-thumb:focus img { opacity: 0.85; }
|
|
|
|
.gallery-thumb:focus { outline: 2px solid #0066cc; outline-offset: 2px; }
|
|
|
|
/* ── Lightbox ───────────────────────────────────────────────────────────────── */
|
|
|
|
.lightbox {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,0.92);
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lightbox[hidden] { display: none; }
|
|
|
|
.lightbox-img {
|
|
max-width: 92vw;
|
|
max-height: 90vh;
|
|
object-fit: contain;
|
|
border-radius: 4px;
|
|
display: block;
|
|
}
|
|
|
|
.lightbox-close,
|
|
.lightbox-prev,
|
|
.lightbox-next {
|
|
position: absolute;
|
|
background: rgba(255,255,255,0.15);
|
|
border: none;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
border-radius: 50%;
|
|
width: 44px;
|
|
height: 44px;
|
|
font-size: 1.4rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
}
|
|
|
|
.lightbox-close { top: 1rem; right: 1rem; }
|
|
.lightbox-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
|
|
.lightbox-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
|
|
|
|
.lightbox-close:hover,
|
|
.lightbox-prev:hover,
|
|
.lightbox-next:hover { background: rgba(255,255,255,0.28); }
|
|
|
|
/* ── Map page ───────────────────────────────────────────────────────────────── */
|
|
|
|
.map-page .site-main { max-width: none; padding: 0; }
|
|
|
|
.map-container {
|
|
height: calc(100vh - 61px);
|
|
width: 100%;
|
|
}
|
|
|
|
.map-empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
color: #666;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* ── Stats page ─────────────────────────────────────────────────────────────── */
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.stat-block {
|
|
border: 1px solid #e5e5e5;
|
|
border-radius: 8px;
|
|
padding: 1.25rem 1rem;
|
|
text-align: center;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
color: #0066cc;
|
|
line-height: 1.1;
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.stats-countries {
|
|
font-size: 0.9rem;
|
|
color: #444;
|
|
text-align: center;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.stats-countries-label {
|
|
font-weight: 600;
|
|
display: block;
|
|
margin-bottom: 0.4rem;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.stats-note {
|
|
font-size: 0.78rem;
|
|
color: #999;
|
|
text-align: center;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* ── Mini-map on tracker feed ───────────────────────────────────────────────── */
|
|
|
|
.feed-map-wrap {
|
|
margin-bottom: 2rem;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
border: 1px solid #e5e5e5;
|
|
}
|
|
|
|
.feed-map {
|
|
height: 240px;
|
|
width: 100%;
|
|
}
|
|
|
|
@media (min-width: 520px) {
|
|
.feed-map { height: 320px; }
|
|
}
|
|
|
|
.feed-map-link {
|
|
display: block;
|
|
text-align: right;
|
|
font-size: 0.8rem;
|
|
color: #0066cc;
|
|
text-decoration: none;
|
|
padding: 0.4rem 0.6rem;
|
|
background: #fafafa;
|
|
border-top: 1px solid #e5e5e5;
|
|
}
|
|
|
|
/* ── Login form ─────────────────────────────────────────────────────────────── */
|
|
|
|
.login-form { max-width: 400px; margin: var(--space-8) auto; padding: 0 var(--space-4); }
|
|
.login-form .form-field { margin-bottom: var(--space-5); }
|
|
.login-form .form-label label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
|
|
.login-form input[type="text"],
|
|
.login-form input[type="password"],
|
|
.login-form input[type="email"] {
|
|
width: 100%;
|
|
font-family: var(--font-ui);
|
|
font-size: var(--text-base);
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--color-canvas);
|
|
color: var(--color-ink);
|
|
min-height: 44px;
|
|
}
|
|
.login-form input:focus {
|
|
outline: 2px solid var(--color-accent);
|
|
outline-offset: 1px;
|
|
border-color: var(--color-accent);
|
|
}
|
|
.login-form .form-actions { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
|
|
.login-form .button { display: block; width: 100%; text-align: center; padding: 0.85rem 1rem; min-height: 44px; border-radius: var(--radius-md); font-size: var(--text-base); font-family: var(--font-ui); font-weight: 600; cursor: pointer; border: none; }
|
|
.login-form .button.primary { background: var(--color-accent); color: var(--color-accent-on); }
|
|
.login-form .button.primary:hover { background: var(--color-accent-hover); }
|
|
.login-form .button.secondary { background: #f0f0f0; color: #333; text-decoration: none; line-height: 44px; padding: 0 1rem; }
|
|
.login-form .rememberme { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
|
|
|
|
/* ── Post form ──────────────────────────────────────────────────────────────── */
|
|
|
|
.post-form-wrap h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
|
|
|
|
.form-actions-extra {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.btn-extra {
|
|
flex: 1;
|
|
padding: 0.75rem 0.5rem;
|
|
min-height: 44px;
|
|
background: #f0f0f0;
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
}
|
|
|
|
.btn-extra:hover { background: #e5e5e5; }
|
|
|
|
.field-status {
|
|
font-size: 0.85rem;
|
|
color: #555;
|
|
margin-top: 0.4rem;
|
|
min-height: 1.2em;
|
|
}
|