1666 lines
46 KiB
CSS
1666 lines
46 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;
|
||
}
|
||
|
||
body::after {
|
||
content: '';
|
||
position: fixed;
|
||
inset: 0;
|
||
pointer-events: none;
|
||
z-index: 9998;
|
||
opacity: 0.035;
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
|
||
background-repeat: repeat;
|
||
background-size: 200px 200px;
|
||
}
|
||
|
||
.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 {
|
||
display: block;
|
||
text-decoration: none;
|
||
color: inherit;
|
||
border-bottom: 1px solid var(--color-border);
|
||
padding-bottom: var(--space-12);
|
||
transition: background 0.15s;
|
||
}
|
||
|
||
/* 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:hover .entry-card-photo img { transform: scale(1.04); }
|
||
|
||
|
||
|
||
/* 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:hover .entry-title { 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);
|
||
}
|
||
|
||
@keyframes card-highlight {
|
||
0% { background-color: color-mix(in srgb, var(--color-accent) 12%, transparent); }
|
||
100% { background-color: transparent; }
|
||
}
|
||
|
||
|
||
/* ── Journal post (inline feed) ─────────────────────────────────────────────── */
|
||
|
||
.journal-post {
|
||
border-bottom: 1px solid var(--color-border);
|
||
padding-bottom: var(--space-12);
|
||
margin-bottom: var(--space-12);
|
||
}
|
||
|
||
.journal-post-header {
|
||
margin-bottom: var(--space-4);
|
||
}
|
||
|
||
.journal-post-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-2);
|
||
}
|
||
|
||
.journal-post-meta {
|
||
font-size: var(--text-xs);
|
||
color: var(--color-ink-muted);
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: var(--space-2);
|
||
}
|
||
|
||
.journal-post-permalink {
|
||
color: var(--color-ink-muted);
|
||
text-decoration: none;
|
||
font-weight: 700;
|
||
letter-spacing: 0.07em;
|
||
}
|
||
|
||
.journal-post-permalink:hover { color: var(--color-accent); }
|
||
|
||
.journal-post-location,
|
||
.journal-post-weather {
|
||
color: var(--color-ink-muted);
|
||
}
|
||
|
||
.journal-photo-strip {
|
||
display: flex;
|
||
overflow-x: scroll;
|
||
scroll-snap-type: x mandatory;
|
||
scrollbar-width: none;
|
||
border-radius: var(--radius-md);
|
||
margin-bottom: var(--space-3);
|
||
}
|
||
|
||
.journal-photo-strip::-webkit-scrollbar { display: none; }
|
||
|
||
.journal-photo-slide {
|
||
flex: 0 0 100%;
|
||
scroll-snap-align: start;
|
||
aspect-ratio: 3 / 2;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.journal-photo-slide img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
|
||
.journal-photo-dots {
|
||
display: flex;
|
||
justify-content: center;
|
||
gap: var(--space-2);
|
||
margin-bottom: var(--space-4);
|
||
}
|
||
|
||
.journal-photo-dot {
|
||
width: 6px;
|
||
height: 6px;
|
||
border-radius: 9999px;
|
||
background: var(--color-border);
|
||
transition: background 0.2s;
|
||
}
|
||
|
||
.journal-photo-dot.is-active {
|
||
background: var(--color-ink-muted);
|
||
}
|
||
|
||
.journal-post-body {
|
||
font-size: var(--text-base);
|
||
line-height: var(--leading-normal);
|
||
color: var(--color-ink-2);
|
||
}
|
||
|
||
.journal-post-body p { margin-bottom: var(--space-4); }
|
||
.journal-post-body p:last-child { margin-bottom: 0; }
|
||
|
||
.journal-post.is-highlighted,
|
||
.entry-card.is-highlighted {
|
||
animation: card-highlight 0.7s ease-out forwards;
|
||
}
|
||
|
||
/* ── Single entry ────────────────────────────────────────────────────────────── */
|
||
|
||
.entry-hero {
|
||
width: 100%;
|
||
max-height: 480px;
|
||
overflow: hidden;
|
||
margin-bottom: var(--space-8);
|
||
border-radius: var(--radius-md);
|
||
}
|
||
|
||
.entry-hero img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
|
||
.entry-back-fixed {
|
||
position: fixed;
|
||
top: calc(var(--site-header-height) + var(--space-3));
|
||
left: var(--space-4);
|
||
z-index: 100;
|
||
}
|
||
|
||
.entry-header { margin-bottom: var(--space-8); }
|
||
|
||
.entry-header-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: var(--space-3);
|
||
margin-bottom: var(--space-4);
|
||
}
|
||
|
||
.entry-header .entry-date {
|
||
font-size: var(--text-sm);
|
||
font-weight: 600;
|
||
letter-spacing: 0.06em;
|
||
text-transform: uppercase;
|
||
color: var(--color-ink-muted);
|
||
display: inline;
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.entry .entry-title {
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-2xl);
|
||
font-weight: 400;
|
||
line-height: var(--leading-snug);
|
||
color: var(--color-ink);
|
||
margin-bottom: var(--space-4);
|
||
}
|
||
|
||
@media (min-width: 520px) {
|
||
.entry .entry-title { font-size: var(--text-3xl); }
|
||
}
|
||
|
||
.entry-title-rule {
|
||
height: 1px;
|
||
background: var(--color-border);
|
||
margin-bottom: var(--space-8);
|
||
}
|
||
|
||
.entry-body { margin-bottom: var(--space-10); }
|
||
.entry-body p { margin-bottom: 1.4em; font-size: var(--text-md); line-height: var(--leading-normal); color: var(--color-ink-2); }
|
||
.entry-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
|
||
|
||
.entry-footer { border-top: 1px solid var(--color-border); padding-top: var(--space-5); }
|
||
.entry-footer a { color: var(--color-accent); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
|
||
.entry-footer a:hover { color: var(--color-accent-hover); }
|
||
|
||
/* ── Photo gallery ───────────────────────────────────────────────────────────── */
|
||
|
||
.entry-gallery {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 3px;
|
||
margin-bottom: var(--space-10);
|
||
border-radius: var(--radius-md);
|
||
overflow: hidden;
|
||
}
|
||
|
||
@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;
|
||
}
|
||
|
||
.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.82; }
|
||
|
||
.gallery-thumb:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }
|
||
|
||
/* ── Lightbox ────────────────────────────────────────────────────────────────── */
|
||
|
||
.lightbox {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(0,0,0,0.94);
|
||
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: var(--radius-sm);
|
||
display: block;
|
||
}
|
||
|
||
.lightbox-close,
|
||
.lightbox-prev,
|
||
.lightbox-next {
|
||
position: absolute;
|
||
background: rgba(255,255,255,0.12);
|
||
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;
|
||
transition: background 0.15s;
|
||
}
|
||
|
||
.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.26); }
|
||
|
||
/* ── Map page ────────────────────────────────────────────────────────────────── */
|
||
|
||
.map-page .site-main { max-width: none; padding: 0; }
|
||
|
||
.map-container {
|
||
height: calc(100vh - var(--site-header-height));
|
||
width: 100%;
|
||
}
|
||
|
||
.map-empty {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 100%;
|
||
color: var(--color-ink-muted);
|
||
font-style: italic;
|
||
}
|
||
|
||
/* ── MapLibre GL overrides ───────────────────────────────────────────────── */
|
||
/* Selectors use a parent class to reach specificity 020, beating MapLibre's
|
||
own 010 rules which load after style.css (inline CDN link in templates). */
|
||
|
||
/* Navigation controls (zoom +/−) */
|
||
.maplibregl-ctrl .maplibregl-ctrl-group {
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-sm);
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
.maplibregl-ctrl-group button {
|
||
background: var(--color-canvas);
|
||
color: var(--color-ink-2);
|
||
}
|
||
.maplibregl-ctrl-group button:hover {
|
||
background: var(--color-surface-raised);
|
||
color: var(--color-ink);
|
||
}
|
||
.maplibregl-ctrl-group button + button {
|
||
border-top: 1px solid var(--color-border);
|
||
}
|
||
|
||
/* Attribution bar */
|
||
.maplibregl-ctrl-attrib {
|
||
background: color-mix(in srgb, var(--color-paper) 75%, transparent) !important;
|
||
color: var(--color-ink-muted) !important;
|
||
font-family: var(--font-ui);
|
||
font-size: 0.7rem;
|
||
backdrop-filter: blur(4px);
|
||
-webkit-backdrop-filter: blur(4px);
|
||
}
|
||
.maplibregl-ctrl-attrib a {
|
||
color: var(--color-accent) !important;
|
||
}
|
||
|
||
/* Popup */
|
||
.maplibregl-popup .maplibregl-popup-content {
|
||
background: var(--color-canvas);
|
||
color: var(--color-ink);
|
||
font-family: var(--font-ui);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-md);
|
||
box-shadow: var(--shadow-md);
|
||
padding: var(--space-4);
|
||
}
|
||
.maplibregl-popup .maplibregl-popup-tip {
|
||
border-top-color: var(--color-canvas) !important;
|
||
}
|
||
.maplibregl-popup .maplibregl-popup-close-button {
|
||
color: var(--color-ink-muted);
|
||
font-size: 1.1rem;
|
||
padding: var(--space-1) var(--space-2);
|
||
}
|
||
.maplibregl-popup .maplibregl-popup-close-button:hover {
|
||
color: var(--color-ink);
|
||
background: transparent;
|
||
}
|
||
|
||
/* Cursor */
|
||
.maplibregl-canvas-container.maplibregl-interactive { cursor: grab; }
|
||
.maplibregl-canvas-container.maplibregl-interactive:active { cursor: grabbing; }
|
||
|
||
/* Hover tooltip (title only, non-interactive) */
|
||
.map-tip-popup { pointer-events: none; }
|
||
.map-tip-popup .maplibregl-popup-content {
|
||
padding: var(--space-2) var(--space-3);
|
||
}
|
||
.map-tip {
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-sm);
|
||
font-weight: 500;
|
||
color: var(--color-ink);
|
||
white-space: nowrap;
|
||
user-select: none;
|
||
display: block;
|
||
}
|
||
|
||
/* ── Stats page ──────────────────────────────────────────────────────────────── */
|
||
|
||
.stats-heading {
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-2xl);
|
||
font-weight: 400;
|
||
margin-bottom: var(--space-8);
|
||
color: var(--color-ink);
|
||
}
|
||
|
||
.stats-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: var(--space-4);
|
||
margin-bottom: var(--space-8);
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.stats-grid { grid-template-columns: repeat(2, 1fr); }
|
||
}
|
||
|
||
.stat-block {
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-md);
|
||
padding: var(--space-6) var(--space-5);
|
||
text-align: center;
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
.stat-value {
|
||
display: block;
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-3xl);
|
||
font-weight: 400;
|
||
color: var(--color-accent);
|
||
line-height: 1.1;
|
||
margin-bottom: var(--space-2);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.stat-label {
|
||
display: block;
|
||
font-size: var(--text-xs);
|
||
font-weight: 600;
|
||
color: var(--color-ink-muted);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.07em;
|
||
}
|
||
|
||
.stats-countries {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-ink-2);
|
||
text-align: center;
|
||
line-height: 1.9;
|
||
}
|
||
|
||
.stats-countries-label {
|
||
font-weight: 600;
|
||
display: block;
|
||
margin-bottom: var(--space-2);
|
||
color: var(--color-ink);
|
||
text-transform: uppercase;
|
||
font-size: var(--text-xs);
|
||
letter-spacing: 0.07em;
|
||
}
|
||
|
||
.stats-note {
|
||
font-size: var(--text-xs);
|
||
color: var(--color-ink-muted);
|
||
text-align: center;
|
||
margin-top: var(--space-6);
|
||
}
|
||
|
||
/* ── Mini-map on tracker feed ────────────────────────────────────────────────── */
|
||
|
||
.feed-map-wrap {
|
||
margin-bottom: var(--space-10);
|
||
border-radius: var(--radius-md);
|
||
overflow: hidden;
|
||
border: 1px solid var(--color-border);
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
.feed-map {
|
||
height: 240px;
|
||
width: 100%;
|
||
}
|
||
|
||
@media (min-width: 520px) {
|
||
.feed-map { height: 300px; }
|
||
}
|
||
|
||
.feed-map-link {
|
||
display: block;
|
||
text-align: right;
|
||
font-size: var(--text-xs);
|
||
font-weight: 500;
|
||
color: var(--color-accent);
|
||
text-decoration: none;
|
||
padding: var(--space-2) var(--space-4);
|
||
background: var(--color-paper);
|
||
border-top: 1px solid var(--color-border);
|
||
}
|
||
|
||
.feed-map-link:hover { color: var(--color-accent-hover); }
|
||
|
||
/* ── 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: var(--color-canvas); color: var(--color-ink); 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-family: var(--font-display);
|
||
font-size: var(--text-xl);
|
||
font-weight: 400;
|
||
margin-bottom: var(--space-6);
|
||
color: var(--color-ink);
|
||
}
|
||
|
||
/* Hide GPS coordinate fields — filled by JS, not user-facing */
|
||
.post-form-wrap .form-field:has(input[name="data[lat]"]),
|
||
.post-form-wrap .form-field:has(input[name="data[lng]"]) { display: none !important; }
|
||
|
||
/* Grav form field inputs */
|
||
.post-form-wrap .form-field { margin-bottom: var(--space-5); }
|
||
.post-form-wrap .form-label label {
|
||
display: block;
|
||
font-size: var(--text-sm);
|
||
font-weight: 600;
|
||
color: var(--color-ink);
|
||
margin-bottom: var(--space-2);
|
||
}
|
||
|
||
.post-form-wrap input[type="text"],
|
||
.post-form-wrap input[type="datetime-local"],
|
||
.post-form-wrap textarea {
|
||
width: 100%;
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-base);
|
||
padding: 0.875rem 1rem;
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-md);
|
||
background: var(--color-canvas);
|
||
color: var(--color-ink);
|
||
min-height: 44px;
|
||
transition: border-color 0.15s;
|
||
-webkit-appearance: none;
|
||
}
|
||
|
||
.post-form-wrap input:focus,
|
||
.post-form-wrap textarea:focus {
|
||
outline: 2px solid var(--color-accent);
|
||
outline-offset: 1px;
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.post-form-wrap textarea { resize: vertical; min-height: 160px; line-height: var(--leading-normal); }
|
||
|
||
/* Submit button */
|
||
.post-form-wrap .btn-post {
|
||
display: block;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
padding: 1.1rem 1rem;
|
||
min-height: 56px;
|
||
background: var(--color-accent);
|
||
color: var(--color-accent-on);
|
||
border: none;
|
||
border-radius: var(--radius-md);
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-md);
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
transition: background 0.15s;
|
||
margin-top: var(--space-6);
|
||
text-align: center;
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
}
|
||
|
||
.post-form-wrap .btn-post:hover { background: var(--color-accent-hover); }
|
||
|
||
/* Inline field validation */
|
||
.post-form-wrap .field-invalid {
|
||
border-color: #c0392b !important;
|
||
outline-color: #c0392b !important;
|
||
}
|
||
|
||
.post-form-wrap .field-error {
|
||
display: block;
|
||
color: #c0392b;
|
||
font-size: var(--text-sm);
|
||
margin-top: var(--space-1);
|
||
}
|
||
|
||
/* Location / weather action buttons */
|
||
.form-action-row {
|
||
display: flex;
|
||
gap: var(--space-3);
|
||
margin-top: var(--space-5);
|
||
}
|
||
|
||
.btn-action {
|
||
flex: 1;
|
||
padding: 0.75rem var(--space-3);
|
||
min-height: 44px;
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-md);
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-sm);
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
color: var(--color-ink);
|
||
transition: background 0.15s, border-color 0.15s;
|
||
}
|
||
|
||
.btn-action:hover { background: var(--color-paper); border-color: var(--color-accent); }
|
||
|
||
/* Status feedback */
|
||
.form-status {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-ink-muted);
|
||
margin-top: var(--space-2);
|
||
min-height: 1.4em;
|
||
}
|
||
|
||
.form-status--ok { color: var(--color-accent); }
|
||
.form-status--err { color: #B44A2A; }
|
||
|
||
/* ── Accessibility & motion ──────────────────────────────────────────────────── */
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
*, *::before, *::after {
|
||
animation-duration: 0.01ms !important;
|
||
animation-iteration-count: 1 !important;
|
||
transition-duration: 0.01ms !important;
|
||
}
|
||
}
|
||
|
||
:focus-visible {
|
||
outline: 2px solid var(--color-accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
/* ── Home page layout ────────────────────────────────────────────────────────── */
|
||
|
||
.home-page .site-main { max-width: 1400px; margin: 0 auto; padding: 0; }
|
||
|
||
.home-layout {
|
||
display: grid;
|
||
grid-template-columns: 45% 55%;
|
||
}
|
||
|
||
.home-map-col {
|
||
position: sticky;
|
||
top: var(--site-header-height);
|
||
height: calc(100vh - var(--site-header-height));
|
||
align-self: start;
|
||
}
|
||
|
||
.home-map {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.home-feed-col {
|
||
padding: var(--space-8) var(--space-8);
|
||
}
|
||
|
||
.home-trip-header {
|
||
margin-bottom: var(--space-8);
|
||
padding-bottom: var(--space-6);
|
||
border-bottom: 1px solid var(--color-border);
|
||
}
|
||
|
||
.home-trip-name {
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-2xl);
|
||
font-weight: 400;
|
||
color: var(--color-ink);
|
||
margin-bottom: var(--space-2);
|
||
}
|
||
|
||
.home-trip-counts {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-ink-muted);
|
||
}
|
||
|
||
/* ── Trip page filter bar ────────────────────────────────────────────────────── */
|
||
|
||
.trip-filter-bar {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: var(--space-3);
|
||
margin-top: var(--space-4);
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.trip-filter-group {
|
||
display: flex;
|
||
gap: var(--space-2);
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.trip-filter-btn,
|
||
.trip-stats-btn {
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-sm);
|
||
font-weight: 500;
|
||
color: var(--color-ink-muted);
|
||
background: transparent;
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-full);
|
||
padding: var(--space-1) var(--space-4);
|
||
cursor: pointer;
|
||
transition: color 0.15s, border-color 0.15s, background 0.15s;
|
||
}
|
||
|
||
.trip-filter-btn:hover,
|
||
.trip-stats-btn:hover {
|
||
color: var(--color-ink);
|
||
border-color: var(--color-ink-muted);
|
||
}
|
||
|
||
.trip-filter-btn.is-active,
|
||
.trip-stats-btn.is-active {
|
||
color: var(--color-accent);
|
||
border-color: var(--color-accent);
|
||
background: var(--color-accent-light);
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.home-layout { display: flex; flex-direction: column; }
|
||
.home-map-col { position: static; height: 40vh; align-self: stretch; }
|
||
.home-map { height: 40vh; }
|
||
.home-feed-col { padding: var(--space-6) var(--space-5); }
|
||
}
|
||
|
||
/* ── Past trips archive ──────────────────────────────────────────────────────── */
|
||
|
||
.trips-heading {
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-2xl);
|
||
font-weight: 400;
|
||
color: var(--color-ink);
|
||
margin-bottom: var(--space-8);
|
||
}
|
||
|
||
.trips-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-4);
|
||
}
|
||
|
||
.trip-card {
|
||
display: block;
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-md);
|
||
padding: var(--space-6);
|
||
text-decoration: none;
|
||
color: inherit;
|
||
transition: border-color 0.15s, background 0.15s;
|
||
}
|
||
|
||
.trip-card:hover {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.trip-card:hover,
|
||
.entry-card:hover,
|
||
.story-card:hover {
|
||
background: var(--color-surface-raised);
|
||
}
|
||
|
||
.trip-card-title {
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-xl);
|
||
font-weight: 400;
|
||
color: var(--color-ink);
|
||
margin-bottom: var(--space-2);
|
||
}
|
||
|
||
.trip-card-meta {
|
||
display: flex;
|
||
gap: var(--space-4);
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
}
|
||
|
||
.trip-card-dates { font-size: var(--text-sm); color: var(--color-ink-2); }
|
||
.trip-card-counts { font-size: var(--text-sm); color: var(--color-ink-muted); }
|
||
|
||
/* ── Trip page sidebar ───────────────────────────────────────────────────────── */
|
||
|
||
.trip-counts {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-ink-muted);
|
||
margin-top: var(--space-2);
|
||
}
|
||
|
||
.trip-layout {
|
||
display: grid;
|
||
grid-template-columns: 1fr 220px;
|
||
gap: var(--space-10);
|
||
align-items: start;
|
||
}
|
||
|
||
.trip-sidebar {
|
||
position: sticky;
|
||
top: calc(var(--site-header-height) + var(--space-6));
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-6);
|
||
}
|
||
|
||
.trip-sidebar-heading {
|
||
font-size: var(--text-xs);
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.08em;
|
||
color: var(--color-ink-muted);
|
||
margin-bottom: var(--space-3);
|
||
}
|
||
|
||
.trip-sidebar-list {
|
||
list-style: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-1);
|
||
}
|
||
|
||
.trip-sidebar-link {
|
||
display: block;
|
||
font-size: var(--text-sm);
|
||
color: var(--color-ink-2);
|
||
text-decoration: none;
|
||
padding: var(--space-1) 0;
|
||
transition: color 0.15s;
|
||
}
|
||
|
||
.trip-sidebar-link:hover { color: var(--color-accent); }
|
||
|
||
.trip-sidebar-date {
|
||
font-size: var(--text-xs);
|
||
color: var(--color-ink-muted);
|
||
margin-right: var(--space-2);
|
||
}
|
||
|
||
@media (max-width: 900px) {
|
||
.trip-layout { grid-template-columns: 1fr; }
|
||
.trip-sidebar { position: static; display: none; }
|
||
}
|
||
|
||
/* ── Story cards in feed ─────────────────────────────────────────────────────── */
|
||
|
||
.entry-card--story {
|
||
border: 2px solid var(--color-accent);
|
||
border-radius: var(--radius-md);
|
||
padding: var(--space-6);
|
||
background: var(--color-canvas);
|
||
}
|
||
|
||
.entry-card-photo--story { aspect-ratio: 16 / 7; }
|
||
|
||
.story-badge {
|
||
display: inline-block;
|
||
font-size: var(--text-xs);
|
||
font-weight: 600;
|
||
font-variant: small-caps;
|
||
letter-spacing: 0.08em;
|
||
color: var(--color-accent);
|
||
margin-bottom: var(--space-2);
|
||
}
|
||
|
||
.trip-feed { min-width: 0; }
|
||
|
||
.trip-sidebar-section {}
|
||
|
||
/* ── Trip page inline stats block ───────────────────────────────────────────── */
|
||
|
||
.trip-stats-block {
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-md);
|
||
padding: var(--space-6);
|
||
margin-bottom: var(--space-6);
|
||
}
|
||
|
||
.trip-stats-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: var(--space-4);
|
||
margin-bottom: var(--space-4);
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.trip-stats-grid { grid-template-columns: repeat(2, 1fr); }
|
||
}
|
||
|
||
.trip-stats-countries {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-ink-2);
|
||
margin-bottom: var(--space-2);
|
||
}
|
||
|
||
.trip-stats-note {
|
||
font-size: var(--text-xs);
|
||
color: var(--color-ink-muted);
|
||
}
|
||
|
||
/* ── Trip page cycling panel ─────────────────────────────────────────────────── */
|
||
|
||
.trip-cycling-block {
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-md);
|
||
padding: var(--space-6);
|
||
margin-bottom: var(--space-6);
|
||
}
|
||
|
||
.trip-cycling-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
margin-bottom: var(--space-4);
|
||
}
|
||
|
||
.trip-cycling-icon {
|
||
font-size: var(--text-xl);
|
||
}
|
||
|
||
.trip-cycling-title {
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-lg);
|
||
color: var(--color-ink);
|
||
}
|
||
|
||
.trip-cycling-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, 1fr);
|
||
gap: var(--space-4);
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.trip-cycling-grid { grid-template-columns: repeat(2, 1fr); }
|
||
}
|
||
|
||
/* ── Story pages ─────────────────────────────────────────────────────────── */
|
||
|
||
/* Override site-main constraints for story pages */
|
||
.template-story .site-main { max-width: none; padding: 0; }
|
||
|
||
/* Floating escape link */
|
||
.story-escape {
|
||
position: fixed;
|
||
top: calc(var(--site-header-height) + var(--space-4));
|
||
left: var(--space-4);
|
||
z-index: 100;
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-sm);
|
||
font-weight: 500;
|
||
color: rgba(255,255,255,0.85);
|
||
background: rgba(26,24,20,0.55);
|
||
backdrop-filter: blur(6px);
|
||
-webkit-backdrop-filter: blur(6px);
|
||
border: 1px solid rgba(255,255,255,0.12);
|
||
border-radius: var(--radius-full);
|
||
padding: var(--space-2) var(--space-4);
|
||
text-decoration: none;
|
||
transition: background 0.2s;
|
||
}
|
||
.story-escape:hover { background: rgba(26,24,20,0.8); }
|
||
|
||
/* Hero */
|
||
.story-hero { position: relative; }
|
||
.story-hero__img-wrap {
|
||
position: sticky;
|
||
top: 0;
|
||
height: 100vh;
|
||
width: 100%;
|
||
overflow: hidden;
|
||
}
|
||
.story-hero__img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
animation: storyKenBurns 12s ease-out forwards;
|
||
transform-origin: center center;
|
||
}
|
||
@keyframes storyKenBurns {
|
||
from { transform: scale(1.06); }
|
||
to { transform: scale(1); }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.story-hero__img { animation: none; }
|
||
}
|
||
.story-hero__img-placeholder {
|
||
width: 100%;
|
||
height: 100%;
|
||
background: linear-gradient(135deg, #1A1814 0%, #2A2720 100%);
|
||
}
|
||
.story-hero__overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
pointer-events: none;
|
||
z-index: 1;
|
||
}
|
||
.story-hero__content {
|
||
position: absolute;
|
||
bottom: 18%;
|
||
left: 0;
|
||
width: 100%;
|
||
padding: 0 var(--space-8);
|
||
text-align: center;
|
||
color: #fff;
|
||
z-index: 2;
|
||
}
|
||
.story-hero__title {
|
||
font-family: var(--font-display);
|
||
font-size: clamp(2.2rem, 6vw, 4.5rem);
|
||
font-weight: 900;
|
||
line-height: 1.08;
|
||
letter-spacing: -0.02em;
|
||
margin-bottom: var(--space-3);
|
||
text-shadow: 0 2px 20px rgba(0,0,0,0.5);
|
||
animation: storyReveal 0.9s cubic-bezier(.16,1,.3,1) 0.2s both;
|
||
}
|
||
.story-hero__meta {
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-base);
|
||
opacity: 0.85;
|
||
letter-spacing: 0.04em;
|
||
text-shadow: 0 1px 6px rgba(0,0,0,0.4);
|
||
animation: storyReveal 0.9s cubic-bezier(.16,1,.3,1) 0.55s both;
|
||
margin: 0;
|
||
}
|
||
@keyframes storyReveal {
|
||
from { filter: blur(10px); opacity: 0; transform: translateY(22px); }
|
||
to { filter: blur(0); opacity: 1; transform: translateY(0); }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.story-hero__title, .story-hero__meta { animation: none; opacity: 1; filter: none; transform: none; }
|
||
}
|
||
.story-hero__scroll-cue {
|
||
position: absolute;
|
||
bottom: var(--space-8);
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
color: rgba(255,255,255,0.7);
|
||
z-index: 2;
|
||
animation: storyCueBounce 2s ease-in-out infinite;
|
||
transition: opacity 0.4s;
|
||
}
|
||
.story-hero__scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
|
||
@keyframes storyCueBounce {
|
||
0%, 100% { transform: translateX(-50%) translateY(0); }
|
||
50% { transform: translateX(-50%) translateY(6px); }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.story-hero__scroll-cue { animation: none; }
|
||
}
|
||
.story-hero__spacer { height: 40vh; position: relative; z-index: 3; }
|
||
|
||
/* Story body */
|
||
.story-body {
|
||
max-width: 680px;
|
||
margin: 0 auto;
|
||
padding: var(--space-16) var(--space-6) var(--space-16);
|
||
}
|
||
.story-body p {
|
||
font-family: var(--font-ui);
|
||
font-size: 1.0625rem;
|
||
line-height: 1.85;
|
||
color: var(--color-ink-2);
|
||
margin-bottom: var(--space-6);
|
||
}
|
||
.story-body h2, .story-body h3 {
|
||
font-family: var(--font-display);
|
||
color: var(--color-ink);
|
||
margin-top: var(--space-10);
|
||
margin-bottom: var(--space-4);
|
||
}
|
||
.story-footer {
|
||
margin-top: var(--space-16);
|
||
padding-top: var(--space-8);
|
||
border-top: 1px solid var(--color-border);
|
||
}
|
||
.story-footer a:not(.back-pill) {
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-sm);
|
||
color: var(--color-accent);
|
||
text-decoration: none;
|
||
}
|
||
|
||
/* ── Story nav title (desktop: fades into header center) ─────── */
|
||
.story-nav-title {
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-lg);
|
||
font-weight: 400;
|
||
letter-spacing: -0.01em;
|
||
color: var(--color-ink);
|
||
white-space: nowrap;
|
||
max-width: 40%;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
}
|
||
@media (max-width: 640px) { .story-nav-title { display: none; } }
|
||
|
||
/* ── Back pill (shared navigation pill component) ───────────────────── */
|
||
.back-pill {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-sm);
|
||
font-weight: 500;
|
||
color: var(--color-ink);
|
||
text-decoration: none;
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-full);
|
||
padding: 0.4rem 0.9rem;
|
||
transition: border-color 0.15s, color 0.15s;
|
||
cursor: pointer;
|
||
}
|
||
.back-pill:hover { border-color: var(--color-accent); color: var(--color-accent); }
|
||
|
||
/* ── Back to top pill ─────────────────────────────────────── */
|
||
.story-totop {
|
||
position: fixed;
|
||
bottom: 1.5rem;
|
||
right: 1.5rem;
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-xs);
|
||
font-weight: 500;
|
||
letter-spacing: 0.04em;
|
||
color: var(--color-ink);
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: 9999px;
|
||
padding: 0.4rem 0.9rem;
|
||
cursor: pointer;
|
||
opacity: 0;
|
||
transform: translateY(6px);
|
||
transition: opacity 0.3s ease, transform 0.3s ease, background 0.15s;
|
||
pointer-events: none;
|
||
z-index: 90;
|
||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||
}
|
||
.story-totop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
|
||
.story-totop:hover { background: var(--color-paper); }
|
||
|
||
/* ── ChapterBreak ─────────────────────────────────────────── */
|
||
.chapter-break {
|
||
position: relative;
|
||
width: 100vw;
|
||
left: 50%;
|
||
margin-left: -50vw;
|
||
height: 60vh;
|
||
min-height: 320px;
|
||
overflow: hidden;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
margin-top: var(--space-16);
|
||
margin-bottom: var(--space-16);
|
||
}
|
||
.chapter-break__bg { position: absolute; inset: 0; }
|
||
.chapter-break__img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||
.chapter-break__tint {
|
||
position: absolute;
|
||
inset: 0;
|
||
background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
|
||
}
|
||
.chapter-break__panel {
|
||
position: relative;
|
||
z-index: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
padding: var(--space-10) var(--space-12);
|
||
background: rgba(26,24,20,0.25);
|
||
backdrop-filter: blur(18px) saturate(1.4);
|
||
-webkit-backdrop-filter: blur(18px) saturate(1.4);
|
||
border: 1px solid rgba(255,255,255,0.12);
|
||
border-radius: var(--radius-sm);
|
||
max-width: 520px;
|
||
width: 90%;
|
||
text-align: center;
|
||
opacity: 0;
|
||
filter: blur(12px);
|
||
transform: translateY(28px);
|
||
transition: opacity 0.9s cubic-bezier(.16,1,.3,1), filter 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
|
||
}
|
||
.chapter-break__panel.is-revealed { opacity: 1; filter: blur(0); transform: translateY(0); }
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.chapter-break__panel { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
|
||
}
|
||
.chapter-break__number {
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-xs);
|
||
font-weight: 600;
|
||
letter-spacing: 0.22em;
|
||
text-transform: uppercase;
|
||
color: rgba(255,255,255,0.6);
|
||
}
|
||
.chapter-break__title {
|
||
font-family: var(--font-display);
|
||
font-size: clamp(1.6rem, 4vw, 2.6rem);
|
||
font-weight: 700;
|
||
line-height: 1.15;
|
||
color: #fff;
|
||
text-shadow: 0 2px 16px rgba(0,0,0,0.4);
|
||
margin: 0;
|
||
}
|
||
.chapter-break__rule {
|
||
width: 40px;
|
||
height: 2px;
|
||
background: var(--color-accent);
|
||
border-radius: 1px;
|
||
margin-top: var(--space-2);
|
||
}
|
||
|
||
/* ── ScrollySection ───────────────────────────────────────── */
|
||
.scrolly {
|
||
position: relative;
|
||
display: grid;
|
||
grid-template-columns: 55% 45%;
|
||
width: 100vw;
|
||
left: 50%;
|
||
margin-left: -50vw;
|
||
margin-top: var(--space-16);
|
||
margin-bottom: var(--space-16);
|
||
align-items: start;
|
||
}
|
||
.scrolly__media {
|
||
position: sticky;
|
||
top: var(--site-header-height);
|
||
height: calc(100vh - var(--site-header-height));
|
||
overflow: hidden;
|
||
}
|
||
.scrolly__media-inner { position: relative; width: 100%; height: 100%; }
|
||
.scrolly__img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
object-position: 50% 50%;
|
||
display: block;
|
||
will-change: filter, object-position;
|
||
transition: filter 0.6s cubic-bezier(.16,1,.3,1), object-position 1.2s cubic-bezier(.16,1,.3,1);
|
||
}
|
||
.scrolly .scrolly__img { margin: 0; border-radius: 0; max-width: none; }
|
||
.scrolly__img-overlay {
|
||
position: absolute;
|
||
inset: 0;
|
||
background: rgba(0,0,0,0);
|
||
transition: background 0.6s ease;
|
||
pointer-events: none;
|
||
}
|
||
.scrolly__caption {
|
||
position: absolute;
|
||
bottom: var(--space-4);
|
||
left: 50%;
|
||
right: auto;
|
||
transform: translateX(-50%);
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-xs);
|
||
color: rgba(255,255,255,0.85);
|
||
text-align: center;
|
||
pointer-events: none;
|
||
margin: 0;
|
||
white-space: nowrap;
|
||
max-width: 85%;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
background: rgba(0,0,0,0.38);
|
||
box-shadow: 0 0 14px 8px rgba(0,0,0,0.38);
|
||
padding: 0.2rem 0.65rem;
|
||
border-radius: 9999px;
|
||
z-index: 2;
|
||
}
|
||
.scrolly__steps-content { display: none; }
|
||
.scrolly-step { min-height: 60vh; display: flex; align-items: center; padding: var(--space-16) var(--space-8); }
|
||
.scrolly-step__inner {
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
border-left: 3px solid var(--color-accent);
|
||
border-radius: var(--radius-sm);
|
||
padding: var(--space-8) var(--space-8);
|
||
opacity: 0;
|
||
transform: translateY(20px);
|
||
transition: opacity 0.55s cubic-bezier(.16,1,.3,1), transform 0.55s cubic-bezier(.16,1,.3,1);
|
||
}
|
||
.scrolly-step.is-active .scrolly-step__inner { opacity: 1; transform: translateY(0); }
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.scrolly-step__inner { opacity: 1 !important; transform: none !important; transition: none !important; }
|
||
}
|
||
.scrolly-step__inner p {
|
||
font-family: var(--font-ui);
|
||
font-size: 1.05rem;
|
||
line-height: 1.8;
|
||
color: var(--color-ink-2);
|
||
margin-bottom: var(--space-3);
|
||
}
|
||
.scrolly-step__inner p:last-child { margin-bottom: 0; }
|
||
.scrolly-step:last-child { padding-bottom: 50vh; }
|
||
@media (max-width: 768px), (pointer: coarse) {
|
||
.scrolly { display: block; }
|
||
.scrolly__steps { margin-top: calc(-(100vh - var(--site-header-height))); position: relative; z-index: 1; }
|
||
.scrolly-step { min-height: 80vh; padding: var(--space-8) var(--space-6); align-items: center; justify-content: center; }
|
||
.scrolly-step:last-child { padding-bottom: 50vh; }
|
||
}
|
||
|
||
/* ── PullQuote ────────────────────────────────────────────── */
|
||
.pull-quote {
|
||
position: relative;
|
||
width: calc(100% + 3rem);
|
||
margin-left: -1.5rem;
|
||
margin-right: -1.5rem;
|
||
margin-top: var(--space-12);
|
||
margin-bottom: var(--space-12);
|
||
overflow: hidden;
|
||
border-radius: var(--radius-sm);
|
||
border: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
opacity: 0;
|
||
filter: blur(6px);
|
||
transform: translateY(24px);
|
||
transition: opacity 0.85s cubic-bezier(.16,1,.3,1), filter 0.85s cubic-bezier(.16,1,.3,1), transform 0.85s cubic-bezier(.16,1,.3,1);
|
||
}
|
||
.pull-quote.is-revealed { opacity: 1; filter: blur(0); transform: translateY(0); }
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.pull-quote { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
|
||
}
|
||
.pull-quote__bg { position: absolute; inset: 0; z-index: 0; }
|
||
.pull-quote__bg-img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||
.pull-quote__bg-tint { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
|
||
.pull-quote__inner {
|
||
position: relative;
|
||
z-index: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
padding: var(--space-10) var(--space-8);
|
||
backdrop-filter: blur(14px) saturate(1.3);
|
||
-webkit-backdrop-filter: blur(14px) saturate(1.3);
|
||
background: rgba(26,24,20,0.08);
|
||
text-align: center;
|
||
}
|
||
.pull-quote__inner--no-image {
|
||
background: var(--color-canvas);
|
||
backdrop-filter: none;
|
||
-webkit-backdrop-filter: none;
|
||
}
|
||
.pull-quote__mark {
|
||
font-family: var(--font-display);
|
||
font-size: 5rem;
|
||
line-height: 0.8;
|
||
color: var(--color-accent);
|
||
opacity: 0.4;
|
||
display: block;
|
||
}
|
||
.pull-quote__mark--close { margin-top: var(--space-2); }
|
||
.pull-quote__text {
|
||
font-family: var(--font-display);
|
||
font-size: clamp(1.2rem, 3vw, 1.6rem);
|
||
font-style: italic;
|
||
color: #fff;
|
||
line-height: 1.5;
|
||
margin: var(--space-4) 0;
|
||
}
|
||
.pull-quote__inner--no-image .pull-quote__text { color: var(--color-ink); }
|
||
|
||
/* ── SnapGallery ──────────────────────────────────────────── */
|
||
.pgallery {
|
||
width: 100vw;
|
||
left: 50%;
|
||
margin-left: -50vw;
|
||
position: relative;
|
||
margin-top: var(--space-16);
|
||
margin-bottom: var(--space-16);
|
||
}
|
||
.pgallery__frame {
|
||
position: relative;
|
||
height: 100vh;
|
||
overflow-y: scroll;
|
||
scroll-snap-type: y mandatory;
|
||
-webkit-overflow-scrolling: touch;
|
||
}
|
||
.pgallery__slide {
|
||
position: relative;
|
||
height: 100vh;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
scroll-snap-align: start;
|
||
scroll-snap-stop: always;
|
||
}
|
||
.pgallery__bg {
|
||
position: absolute;
|
||
inset: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
filter: blur(20px) brightness(0.4);
|
||
transform: scale(1.05);
|
||
}
|
||
.pgallery__fg {
|
||
position: relative;
|
||
z-index: 1;
|
||
max-height: 90vh;
|
||
max-width: 90vw;
|
||
object-fit: contain;
|
||
}
|
||
.pgallery__caption {
|
||
position: absolute;
|
||
bottom: var(--space-8);
|
||
left: 0;
|
||
right: 0;
|
||
z-index: 2;
|
||
text-align: center;
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-sm);
|
||
color: rgba(255,255,255,0.8);
|
||
margin: 0;
|
||
padding: 0 var(--space-8);
|
||
}
|
||
.pgallery__dots {
|
||
position: absolute;
|
||
right: var(--space-4);
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
z-index: 3;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-2);
|
||
}
|
||
.pgallery__dot {
|
||
width: 6px;
|
||
height: 6px;
|
||
border-radius: 50%;
|
||
background: rgba(255,255,255,0.35);
|
||
transition: background 0.25s;
|
||
display: block;
|
||
}
|
||
.pgallery__dot.is-active { background: var(--color-accent); }
|
||
|
||
/* ── Stories listing ──────────────────────────────────────── */
|
||
.stories-listing { padding: var(--space-10) 0; }
|
||
.stories-listing__heading {
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-2xl);
|
||
font-weight: 400;
|
||
color: var(--color-ink);
|
||
margin-bottom: var(--space-10);
|
||
}
|
||
.stories-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: var(--space-8);
|
||
}
|
||
@media (max-width: 640px) { .stories-grid { grid-template-columns: 1fr; } }
|
||
.story-card {
|
||
text-decoration: none;
|
||
color: inherit;
|
||
display: flex;
|
||
flex-direction: column;
|
||
border-radius: var(--radius-md);
|
||
overflow: hidden;
|
||
background: var(--color-canvas);
|
||
border: 1px solid var(--color-border);
|
||
transition: box-shadow 0.2s, background 0.15s;
|
||
}
|
||
.story-card:hover { box-shadow: var(--shadow-md); }
|
||
.story-card__photo { aspect-ratio: 16/9; overflow: hidden; }
|
||
.story-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
|
||
.story-card:hover .story-card__photo img { transform: scale(1.03); }
|
||
.story-card__photo--empty { background: var(--color-surface-raised); }
|
||
.story-card__body { padding: var(--space-5); }
|
||
.story-card__date {
|
||
display: block;
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-xs);
|
||
color: var(--color-ink-muted);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.06em;
|
||
margin-bottom: var(--space-1);
|
||
}
|
||
.story-card__location {
|
||
display: block;
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-xs);
|
||
color: var(--color-ink-muted);
|
||
margin-bottom: var(--space-3);
|
||
}
|
||
.story-card__title {
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-lg);
|
||
font-weight: 400;
|
||
color: var(--color-ink);
|
||
margin-bottom: var(--space-3);
|
||
line-height: var(--leading-snug);
|
||
}
|
||
.story-card__cta {
|
||
font-family: var(--font-ui);
|
||
font-size: var(--text-sm);
|
||
color: var(--color-accent);
|
||
}
|
||
.stories-empty {
|
||
font-family: var(--font-ui);
|
||
color: var(--color-ink-muted);
|
||
font-style: italic;
|
||
}
|