TinyNarrator / static /app.css
cvpfus
Add hackathon award evidence checklist
38c87e2
Raw
History Blame
7.65 kB
:root {
color-scheme: light;
--ink: #202124;
--muted: #62696f;
--paper: #fbfaf7;
--surface: #ffffff;
--line: #d8d3ca;
--accent: #1f6f68;
--accent-strong: #184d48;
--focus: #c5452c;
--shadow: 0 18px 45px rgba(32, 33, 36, 0.12);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
line-height: 1.55;
}
button,
input,
select,
output {
font: inherit;
}
button {
border: 1px solid var(--line);
background: var(--surface);
color: var(--ink);
cursor: pointer;
}
button:hover {
border-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
.topbar {
position: sticky;
top: 0;
z-index: 20;
display: grid;
grid-template-columns: max-content 1fr max-content;
align-items: center;
gap: 24px;
min-height: 72px;
padding: 12px clamp(18px, 4vw, 48px);
border-bottom: 1px solid rgba(216, 211, 202, 0.88);
background: rgba(251, 250, 247, 0.92);
backdrop-filter: blur(16px);
}
.brand {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--ink);
font-weight: 750;
text-decoration: none;
}
.brand-mark {
display: grid;
width: 38px;
height: 38px;
place-items: center;
border-radius: 6px;
background: var(--ink);
color: var(--paper);
font-size: 0.82rem;
letter-spacing: 0;
}
.topnav {
display: flex;
justify-content: center;
gap: clamp(12px, 3vw, 28px);
}
.topnav a {
color: var(--muted);
font-size: 0.92rem;
font-weight: 650;
text-decoration: none;
}
.topnav a:hover {
color: var(--accent-strong);
}
.reader-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 174px;
min-height: 42px;
gap: 10px;
border-radius: 999px;
padding: 0 16px;
font-weight: 700;
}
.toggle-dot {
width: 12px;
height: 12px;
border-radius: 999px;
background: #8b949e;
}
.reader-toggle[aria-pressed="true"] {
border-color: var(--accent);
background: var(--accent);
color: white;
}
.reader-toggle[aria-pressed="true"] .toggle-dot {
background: #f4d35e;
}
.article-shell {
display: grid;
grid-template-columns: minmax(0, 760px) minmax(260px, 340px);
gap: clamp(28px, 5vw, 64px);
width: min(1180px, calc(100% - 36px));
margin: 46px auto 130px;
align-items: start;
}
.article {
min-width: 0;
}
.kicker {
margin: 0 0 14px;
color: var(--accent-strong);
font-size: 0.88rem;
font-weight: 800;
letter-spacing: 0;
text-transform: uppercase;
}
h1,
h2 {
line-height: 1.08;
letter-spacing: 0;
}
h1 {
max-width: 11ch;
margin: 0;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(3.4rem, 10vw, 6.7rem);
font-weight: 540;
}
h2 {
margin: 72px 0 16px;
font-size: clamp(1.8rem, 3.6vw, 3rem);
}
.dek {
max-width: 680px;
margin: 24px 0 34px;
color: #3d4247;
font-size: clamp(1.18rem, 2.4vw, 1.5rem);
}
p,
blockquote,
figcaption {
font-size: 1.05rem;
}
blockquote {
margin: 32px 0;
padding: 0 0 0 24px;
border-left: 5px solid var(--accent);
color: #33383c;
font-size: 1.35rem;
font-family: Georgia, "Times New Roman", serif;
}
figure {
margin: 0;
}
img {
display: block;
max-width: 100%;
}
.hero-figure,
.inline-figure {
overflow: hidden;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--surface);
box-shadow: var(--shadow);
}
.hero-figure img,
.inline-figure img {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}
figcaption {
padding: 14px 16px 16px;
color: var(--muted);
}
.inline-figure {
margin-top: 24px;
box-shadow: none;
}
.status-panel {
position: sticky;
top: 96px;
border-left: 1px solid var(--line);
padding-left: 24px;
}
.status-panel h2 {
margin: 0 0 18px;
font-size: 1rem;
text-transform: uppercase;
}
.status-panel h3 {
margin: 0;
font-size: 0.86rem;
text-transform: uppercase;
}
dl {
display: grid;
gap: 12px;
margin: 0;
}
dt {
color: var(--muted);
font-size: 0.78rem;
font-weight: 800;
text-transform: uppercase;
}
dd {
margin: 2px 0 0;
font-weight: 650;
}
.live-narration {
margin-top: 22px;
padding: 16px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--surface);
}
.history-header {
display: grid;
grid-template-columns: 1fr max-content max-content;
gap: 8px;
align-items: center;
margin-top: 22px;
}
.award-header {
margin-top: 22px;
}
.history-header button {
min-height: 34px;
border-radius: 6px;
padding: 0 10px;
color: var(--muted);
font-size: 0.82rem;
font-weight: 750;
}
.transcript-log {
display: grid;
gap: 10px;
max-height: 340px;
margin: 12px 0 0;
padding: 0;
overflow: auto;
list-style: none;
}
.transcript-log li {
border: 1px solid var(--line);
border-radius: 8px;
padding: 10px 12px;
background: var(--surface);
}
.transcript-meta {
display: flex;
justify-content: space-between;
gap: 8px;
color: var(--muted);
font-size: 0.75rem;
font-weight: 800;
text-transform: uppercase;
}
.transcript-text {
margin: 6px 0 0;
font-size: 0.92rem;
}
.award-list {
display: grid;
gap: 10px;
margin: 12px 0 0;
padding: 0;
list-style: none;
}
.award-list li {
border: 1px solid var(--line);
border-radius: 8px;
padding: 10px 12px;
background: var(--surface);
}
.award-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 0.82rem;
font-weight: 850;
text-transform: uppercase;
}
.award-status {
border-radius: 999px;
background: rgba(31, 111, 104, 0.12);
color: var(--accent-strong);
padding: 2px 8px;
font-size: 0.7rem;
}
.award-evidence {
margin: 6px 0 0;
color: var(--muted);
font-size: 0.88rem;
}
.reader-bar {
position: fixed;
right: clamp(14px, 3vw, 32px);
bottom: clamp(14px, 3vw, 32px);
left: clamp(14px, 3vw, 32px);
z-index: 30;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
min-height: 72px;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(255, 255, 255, 0.96);
box-shadow: var(--shadow);
}
.reader-bar[hidden] {
display: none;
}
.reader-bar button {
min-width: 88px;
min-height: 42px;
border-radius: 6px;
font-weight: 750;
}
.reader-bar label {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 0.92rem;
font-weight: 750;
}
.reader-bar select {
min-height: 42px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--surface);
color: var(--ink);
padding: 0 10px;
}
.reader-bar output {
min-width: 48px;
color: var(--ink);
font-weight: 750;
}
.speakable {
scroll-margin: 112px;
}
.reader-active {
outline: 4px solid var(--focus);
outline-offset: 8px;
background: rgba(197, 69, 44, 0.05);
}
@media (max-width: 900px) {
.topbar {
grid-template-columns: 1fr;
gap: 12px;
}
.topnav {
justify-content: flex-start;
overflow-x: auto;
}
.reader-toggle {
width: 100%;
}
.article-shell {
grid-template-columns: 1fr;
}
h1 {
max-width: 12ch;
font-size: clamp(3rem, 17vw, 5rem);
}
.status-panel {
position: static;
border-left: 0;
border-top: 1px solid var(--line);
padding: 24px 0 0;
}
.reader-bar {
flex-wrap: wrap;
justify-content: flex-start;
}
.reader-bar button {
min-width: 76px;
flex: 1 1 28%;
}
}