- replace the three stacked route cards with a Shortest | Shaded | Accessible segmented control and one large card - default to Accessible for Ruth; keep the 16:00 trade-off visible as one sentence - fold the audience vote into the card's primary action so the mobile action stays above the fold - soften cards with a 28 px radius, soft shadow and one subtle selected ring - leave the stage and city information architecture intact
527 lines
10 KiB
CSS
527 lines
10 KiB
CSS
:root {
|
|
--cc-ground: #f6f3ee;
|
|
--cc-surface: rgba(255, 255, 255, 0.86);
|
|
--cc-surface-solid: #fffdf9;
|
|
--cc-ink: #121212;
|
|
--cc-ink-2: #343434;
|
|
--cc-muted: #6b6b6b;
|
|
--cc-line: rgba(18, 18, 18, 0.12);
|
|
--cc-line-strong: rgba(18, 18, 18, 0.24);
|
|
--cc-heat: #e4572e;
|
|
--cc-heat-text: #a83a19;
|
|
--cc-heat-soft: #fbe8e2;
|
|
--cc-shade: #2f6fed;
|
|
--cc-shade-deep: #1f4fae;
|
|
--cc-shade-soft: #e5edff;
|
|
--cc-water: #3aa6b9;
|
|
--cc-focus: #a83a19;
|
|
--cc-radius: 28px;
|
|
--cc-shadow: 0 18px 60px rgba(18, 18, 18, 0.12);
|
|
--cc-shadow-soft: 0 8px 26px rgba(18, 18, 18, 0.07);
|
|
--cc-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
|
|
|
|
--cc-dark: #0b1114;
|
|
--cc-dark-2: #14191c;
|
|
--cc-dark-3: #1d2428;
|
|
--cc-dark-line: rgba(255, 255, 255, 0.14);
|
|
--cc-dark-muted: #a3a3a3;
|
|
--cc-heat-bright: #ff6b3d;
|
|
--cc-shade-bright: #6fa8ff;
|
|
--cc-water-bright: #7ad1df;
|
|
--cc-focus-dark: #ff9b76;
|
|
}
|
|
|
|
body.pc-cool-presentation {
|
|
background: var(--cc-ground);
|
|
color: var(--cc-ink);
|
|
}
|
|
|
|
body.pc-cool-presentation,
|
|
.cc-cool,
|
|
.cc-stage {
|
|
font-family: var(--cc-font);
|
|
}
|
|
|
|
.cc-cool,
|
|
.cc-cool *,
|
|
.cc-cool *::before,
|
|
.cc-cool *::after,
|
|
.cc-stage,
|
|
.cc-stage *,
|
|
.cc-stage *::before,
|
|
.cc-stage *::after,
|
|
.cc-city,
|
|
.cc-city *,
|
|
.cc-city *::before,
|
|
.cc-city *::after {
|
|
box-sizing: border-box;
|
|
font-family: var(--cc-font);
|
|
}
|
|
|
|
.cc-cool {
|
|
min-height: 100dvh;
|
|
padding-bottom: 3rem;
|
|
background: var(--cc-ground);
|
|
color: var(--cc-ink);
|
|
}
|
|
|
|
/* Top bar --------------------------------------------------------------- */
|
|
|
|
.cc-topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.55rem 0.9rem;
|
|
min-height: 60px;
|
|
padding: 0.65rem 1rem;
|
|
border-bottom: 1px solid var(--cc-line);
|
|
background: color-mix(in srgb, var(--cc-ground) 88%, transparent);
|
|
backdrop-filter: blur(18px) saturate(140%);
|
|
-webkit-backdrop-filter: blur(18px) saturate(140%);
|
|
}
|
|
|
|
.cc-wordmark {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: var(--cc-ink);
|
|
font-size: 0.96rem;
|
|
font-weight: 800;
|
|
letter-spacing: -0.03em;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.cc-mark {
|
|
display: block;
|
|
width: 0.55rem;
|
|
height: 1.25rem;
|
|
border-radius: 999px;
|
|
background: linear-gradient(180deg, var(--cc-heat) 0 50%, var(--cc-shade) 50% 100%);
|
|
}
|
|
|
|
.cc-topbar__place {
|
|
color: var(--cc-muted);
|
|
font-size: 0.72rem;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.cc-topbar__status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
margin-inline-start: auto;
|
|
color: var(--cc-muted);
|
|
font-size: 0.62rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.cc-topbar__status i {
|
|
display: block;
|
|
width: 0.4rem;
|
|
height: 0.4rem;
|
|
border-radius: 50%;
|
|
background: var(--cc-shade);
|
|
}
|
|
|
|
/* Phone ----------------------------------------------------------------- */
|
|
|
|
.cc-phone {
|
|
display: flex;
|
|
width: 100%;
|
|
max-width: 35rem;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
margin-inline: auto;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.cc-ruth {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.45rem;
|
|
padding: 0.4rem 0 0.7rem;
|
|
}
|
|
|
|
.cc-ruth h1 {
|
|
max-width: 13ch;
|
|
margin: 0;
|
|
font-size: clamp(2.6rem, 10.8vw, 4.2rem);
|
|
font-weight: 850;
|
|
letter-spacing: -0.06em;
|
|
line-height: 0.9;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
.cc-ruth__copy {
|
|
max-width: 46ch;
|
|
margin: 0.15rem 0 0;
|
|
color: var(--cc-muted);
|
|
font-size: 0.98rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.cc-ruth__tag {
|
|
display: inline-flex;
|
|
width: fit-content;
|
|
margin-top: 0.25rem;
|
|
padding: 0.18rem 0.5rem;
|
|
border: 1px solid var(--cc-line);
|
|
border-radius: 999px;
|
|
color: var(--cc-muted);
|
|
font-size: 0.6rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.cc-panel {
|
|
padding: 1rem;
|
|
border: 1px solid var(--cc-line);
|
|
border-radius: var(--cc-radius);
|
|
background: var(--cc-surface);
|
|
box-shadow: var(--cc-shadow-soft);
|
|
backdrop-filter: blur(18px) saturate(140%);
|
|
-webkit-backdrop-filter: blur(18px) saturate(140%);
|
|
}
|
|
|
|
.cc-time__head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 0.7rem;
|
|
margin-bottom: 0.55rem;
|
|
}
|
|
|
|
.cc-time__head h2 {
|
|
margin: 0;
|
|
color: var(--cc-muted);
|
|
font-size: 0.72rem;
|
|
font-weight: 650;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.cc-time__head strong {
|
|
font-size: clamp(2.6rem, 10vw, 3.6rem);
|
|
font-weight: 850;
|
|
letter-spacing: -0.06em;
|
|
line-height: 0.9;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.cc-time :deep(.onyx-slider__marks),
|
|
.cc-time :deep(.onyx-slider__mark-label) {
|
|
color: var(--cc-muted);
|
|
font-family: var(--cc-font);
|
|
font-size: 0.65rem;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.cc-time :deep(.onyx-slider__track) {
|
|
accent-color: var(--cc-shade);
|
|
}
|
|
|
|
.cc-vote-only {
|
|
display: flex;
|
|
min-height: calc(100dvh - 62px);
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2rem 1rem 3rem;
|
|
}
|
|
|
|
.cc-vote-only__inner {
|
|
width: 100%;
|
|
max-width: 34rem;
|
|
}
|
|
|
|
.cc-vote-only h1 {
|
|
max-width: 10ch;
|
|
margin: 0;
|
|
font-size: clamp(3rem, 12vw, 5rem);
|
|
font-weight: 850;
|
|
letter-spacing: -0.06em;
|
|
line-height: 0.9;
|
|
}
|
|
|
|
.cc-vote-only__lede {
|
|
max-width: 34ch;
|
|
margin: 0.8rem 0 1.4rem;
|
|
color: var(--cc-muted);
|
|
font-size: 1rem;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.cc-vote-only__buttons {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.cc-vote-only__confirmation {
|
|
padding: 1rem;
|
|
border: 1px solid var(--cc-line);
|
|
border-radius: 24px;
|
|
background: var(--cc-surface);
|
|
}
|
|
|
|
.cc-vote-only__confirmation p {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.cc-details {
|
|
border: 1px solid var(--cc-line);
|
|
border-radius: 24px;
|
|
background: var(--cc-surface);
|
|
}
|
|
|
|
.cc-details summary:focus-visible,
|
|
.cc-city__method summary:focus-visible {
|
|
outline: 2px solid var(--cc-focus);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.cc-details summary {
|
|
padding: 0.9rem 1rem;
|
|
color: var(--cc-ink);
|
|
font-size: 0.82rem;
|
|
font-weight: 650;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cc-details__body {
|
|
display: grid;
|
|
gap: 0.6rem;
|
|
padding: 0 1rem 1rem;
|
|
color: var(--cc-muted);
|
|
font-size: 0.82rem;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.cc-details__body p {
|
|
margin: 0;
|
|
}
|
|
|
|
.cc-details__body strong {
|
|
color: var(--cc-ink);
|
|
}
|
|
|
|
.cc-details__links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.8rem;
|
|
padding-top: 0.3rem;
|
|
}
|
|
|
|
.cc-details__links a {
|
|
color: var(--cc-ink);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.cc-phone__footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
gap: 0.4rem 1rem;
|
|
padding-top: 1.1rem;
|
|
border-top: 1px solid var(--cc-line);
|
|
color: var(--cc-muted);
|
|
font-size: 0.68rem;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
/* Onyx theming on the phone --------------------------------------------- */
|
|
|
|
.cc-cool {
|
|
--onyx-font-family-paragraph: var(--cc-font);
|
|
--onyx-font-family-h1: var(--cc-font);
|
|
--onyx-font-family-h2: var(--cc-font);
|
|
--onyx-font-family-h3: var(--cc-font);
|
|
--onyx-font-family-h4: var(--cc-font);
|
|
--onyx-font-family-data: var(--cc-font);
|
|
--onyx-radius-component-button: 999px;
|
|
--onyx-radius-component-container-soft: var(--cc-radius);
|
|
--onyx-radius-component-input: 999px;
|
|
--onyx-color-base-primary-500: var(--cc-ink);
|
|
--onyx-color-base-primary-600: var(--cc-ink);
|
|
--onyx-color-base-primary-900: var(--cc-ink);
|
|
--onyx-color-component-cta-default: var(--cc-ink);
|
|
--onyx-color-component-cta-default-hover: #000;
|
|
--onyx-color-text-icons-neutral-button: #fff;
|
|
--onyx-color-component-focus-primary: var(--cc-heat);
|
|
}
|
|
|
|
.cc-cool :deep(.onyx-button) {
|
|
min-height: 52px;
|
|
border-radius: 999px;
|
|
font-family: var(--cc-font);
|
|
font-weight: 650;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.cc-cool :deep(.onyx-button--outline) {
|
|
border-color: var(--cc-line-strong);
|
|
color: var(--cc-ink);
|
|
}
|
|
|
|
.cc-cool :deep(.onyx-button--outline:hover) {
|
|
background: var(--cc-ink);
|
|
border-color: var(--cc-ink);
|
|
color: var(--cc-ground);
|
|
}
|
|
|
|
.cc-cool :deep(.onyx-button__label) {
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
/* Stage ----------------------------------------------------------------- */
|
|
|
|
.cc-stage {
|
|
position: relative;
|
|
display: flex;
|
|
height: 100dvh;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background: var(--cc-dark);
|
|
color: var(--cc-ink);
|
|
}
|
|
|
|
.cc-stage__top {
|
|
position: relative;
|
|
z-index: 4;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 0.7rem;
|
|
padding: 0.65rem clamp(1rem, 2.4vw, 2.4rem);
|
|
border-bottom: 1px solid var(--cc-line);
|
|
background: color-mix(in srgb, var(--cc-dark) 86%, transparent);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
}
|
|
|
|
.cc-stage__wordmark {
|
|
color: var(--cc-ink);
|
|
}
|
|
|
|
.cc-stage__place {
|
|
color: var(--cc-muted);
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.cc-stage__round {
|
|
margin-inline-start: auto;
|
|
color: var(--cc-muted);
|
|
font-size: 0.7rem;
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.cc-dark {
|
|
--cc-ground: #0b1114;
|
|
--cc-surface: rgba(23, 28, 31, 0.88);
|
|
--cc-surface-solid: #131a1e;
|
|
--cc-ink: #f5f3ef;
|
|
--cc-ink-2: #dedbd4;
|
|
--cc-muted: #a3a3a3;
|
|
--cc-line: rgba(255, 255, 255, 0.14);
|
|
--cc-line-strong: rgba(255, 255, 255, 0.26);
|
|
--cc-heat: #ff6b3d;
|
|
--cc-heat-text: #ff9b76;
|
|
--cc-heat-soft: #2b1711;
|
|
--cc-shade: #6fa8ff;
|
|
--cc-shade-deep: #a9c8ff;
|
|
--cc-shade-soft: #142238;
|
|
--cc-water: #7ad1df;
|
|
--cc-focus: #ff9b76;
|
|
--cc-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
|
|
--cc-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
|
|
color: var(--cc-ink);
|
|
}
|
|
|
|
.cc-dark .cc-wordmark {
|
|
color: var(--cc-ink);
|
|
}
|
|
|
|
.cc-dark .cc-topbar {
|
|
background: color-mix(in srgb, var(--cc-dark) 86%, transparent);
|
|
}
|
|
|
|
@media (min-width: 900px) {
|
|
.cc-phone {
|
|
display: grid;
|
|
max-width: 72rem;
|
|
grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
|
|
grid-template-areas:
|
|
"ruth routes"
|
|
"time routes"
|
|
"details details"
|
|
"footer footer";
|
|
gap: 1rem 1.5rem;
|
|
align-items: start;
|
|
padding: 1.5rem 1.5rem 3rem;
|
|
}
|
|
|
|
.cc-ruth {
|
|
grid-area: ruth;
|
|
padding-top: 0.5rem;
|
|
}
|
|
|
|
.cc-ruth h1 {
|
|
font-size: clamp(3rem, 4.6vw, 4.8rem);
|
|
}
|
|
|
|
.cc-time {
|
|
grid-area: time;
|
|
}
|
|
|
|
.cc-route {
|
|
grid-area: routes;
|
|
}
|
|
|
|
.cc-details {
|
|
grid-area: details;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.cc-phone__footer {
|
|
grid-area: footer;
|
|
grid-column: 1 / -1;
|
|
margin-top: 0.5rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 460px) {
|
|
.cc-topbar {
|
|
min-height: 56px;
|
|
padding: 0.55rem 0.8rem;
|
|
}
|
|
|
|
.cc-topbar__place {
|
|
font-size: 0.66rem;
|
|
}
|
|
|
|
.cc-topbar__status {
|
|
font-size: 0.58rem;
|
|
}
|
|
|
|
.cc-phone {
|
|
padding-inline: 0.8rem;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.cc-topbar,
|
|
.cc-panel {
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
}
|
|
}
|