eureka-web/gallery/assets/style.css

159 lines
3.7 KiB
CSS
Raw Normal View History

:root {
--bg: #0e1013;
--bg-soft: #161a1f;
--ink: #e8e6e1;
--muted: #8b8f96;
--line: #24282e;
--amber: #d9a441;
--max: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font: 16px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.top {
max-width: var(--max);
margin: 0 auto;
padding: 28px 24px 8px;
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
}
.brand { font-size: 18px; letter-spacing: .02em; }
.brand span { color: var(--muted); font-weight: 400; }
.top nav a {
color: var(--muted);
font-size: 14px;
border-bottom: 1px solid transparent;
padding-bottom: 2px;
}
.top nav a:hover { color: var(--ink); border-color: var(--amber); }
main { max-width: var(--max); margin: 0 auto; padding: 8px 24px 64px; }
.sr-only {
position: absolute; width: 1px; height: 1px;
padding: 0; margin: -1px; overflow: hidden;
clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lede {
color: var(--muted);
max-width: 62ch;
margin: 8px 0 40px;
font-size: 17px;
}
/* -- gallery grid: walls of a museum, light on the works -- */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
}
.card {
display: block;
background: var(--bg-soft);
border: 1px solid var(--line);
border-radius: 6px;
overflow: hidden;
transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--amber); transform: translateY(-2px); }
.card img {
display: block;
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
background: #000;
}
.card-title {
display: block;
padding: 12px 14px;
font-size: 15px;
color: var(--ink);
}
/* -- single work page -- */
.work {
display: grid;
grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
gap: 40px;
align-items: start;
margin-top: 24px;
}
.work figure { margin: 0; }
.work figure img {
display: block;
width: 100%;
border: 1px solid var(--line);
border-radius: 6px;
background: #000;
}
.zoom { display: block; cursor: zoom-in; }
.zoom img { transition: opacity .18s ease; }
.zoom:hover img { opacity: .92; }
.work .meta h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; }
.work .when { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.work .note { margin: 0; font-size: 16px; }
.work .full { margin: 20px 0 0; font-size: 14px; }
.work .full a { color: var(--amber); border-bottom: 1px solid transparent; }
.work .full a:hover { border-color: var(--amber); }
.worknav {
max-width: var(--max);
display: flex;
justify-content: space-between;
gap: 16px;
margin-top: 48px;
padding-top: 20px;
border-top: 1px solid var(--line);
font-size: 14px;
}
.pager { color: var(--muted); }
.pager:hover { color: var(--amber); }
/* -- about -- */
.about { max-width: 66ch; margin-top: 24px; }
.about h1 { font-size: 28px; margin: 0 0 20px; }
.about h2 { font-size: 19px; margin: 36px 0 12px; color: var(--amber); font-weight: 600; }
.about p { margin: 0 0 16px; }
.about .sign { margin-top: 32px; color: var(--muted); }
.foot {
max-width: var(--max);
margin: 0 auto;
padding: 24px;
display: flex;
justify-content: space-between;
gap: 16px;
color: var(--muted);
font-size: 13px;
border-top: 1px solid var(--line);
}
.foot a { border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--ink); border-color: var(--amber); }
@media (max-width: 780px) {
.work { grid-template-columns: 1fr; gap: 24px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.top { padding-top: 20px; }
}