initial
This commit is contained in:
+578
@@ -0,0 +1,578 @@
|
||||
/* ============================================================
|
||||
hipa — the family archive
|
||||
Ground: album card stock. Surfaces: glassine interleaf.
|
||||
Warm amber belongs to the archive. Cool cyan belongs to the interface.
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
--board: #16201f;
|
||||
--board-deep: #0d1413;
|
||||
--board-edge: #24312f;
|
||||
--glassine: #ede7dc;
|
||||
--stamp: #f0a02a;
|
||||
--sleeve: #7e8f86;
|
||||
--flash: #9fd8e3;
|
||||
|
||||
--ink: #16201f; /* text on paper */
|
||||
--ink-soft: #56635f;
|
||||
|
||||
--display: "Fraunces", "Iowan Old Style", Georgia, serif;
|
||||
--body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
|
||||
--mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;
|
||||
|
||||
--gutter: clamp(1.25rem, 4vw, 4.5rem);
|
||||
|
||||
/* Grain: a single emulsion overlay reused across surfaces. */
|
||||
--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.42'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
|
||||
/* The contact sheet is wider than the viewport by design. `clip` rather
|
||||
than `hidden` so focusing the card can't scroll the page sideways. */
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
overflow-x: hidden;
|
||||
overflow-x: clip;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--board);
|
||||
color: var(--glassine);
|
||||
font-family: var(--body);
|
||||
font-size: 16px;
|
||||
line-height: 1.55;
|
||||
overflow-x: hidden;
|
||||
overflow-x: clip;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* Board texture: a soft pool of light top-left, grain over everything. */
|
||||
body::before,
|
||||
body::after {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
body::before {
|
||||
background:
|
||||
radial-gradient(120% 90% at 12% -10%, #223230 0%, transparent 60%),
|
||||
radial-gradient(90% 70% at 100% 110%, #1b2725 0%, transparent 55%);
|
||||
z-index: 0;
|
||||
}
|
||||
body::after {
|
||||
background-image: var(--grain);
|
||||
opacity: .05;
|
||||
mix-blend-mode: overlay;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.skip {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background: var(--glassine);
|
||||
color: var(--ink);
|
||||
padding: .6rem 1rem;
|
||||
font: 500 .8rem/1 var(--mono);
|
||||
}
|
||||
.skip:focus { left: .75rem; top: .75rem; }
|
||||
|
||||
/* ---------------- top bar ---------------- */
|
||||
|
||||
.topbar {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: clamp(1.1rem, 2.4vw, 1.9rem) var(--gutter);
|
||||
}
|
||||
|
||||
.mark {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: .55rem;
|
||||
color: var(--glassine);
|
||||
text-decoration: none;
|
||||
}
|
||||
.mark-glyph { width: 20px; height: 20px; color: var(--stamp); flex: none; }
|
||||
.mark-word {
|
||||
font-family: var(--display);
|
||||
font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 40;
|
||||
font-weight: 600;
|
||||
font-size: 1.32rem;
|
||||
letter-spacing: -.015em;
|
||||
}
|
||||
/* ---------------- stage ---------------- */
|
||||
|
||||
.stage {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
flex: 1;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.25fr) minmax(0, 25.5rem);
|
||||
align-items: center;
|
||||
gap: clamp(2rem, 5vw, 5.5rem);
|
||||
padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
|
||||
}
|
||||
|
||||
/* ---------------- lede ---------------- */
|
||||
|
||||
.lede { position: relative; z-index: 1; }
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 clamp(1.1rem, 2.4vw, 1.7rem);
|
||||
font: 500 .7rem/1 var(--mono);
|
||||
letter-spacing: .16em;
|
||||
text-transform: uppercase;
|
||||
color: var(--stamp);
|
||||
}
|
||||
|
||||
.lede-title {
|
||||
margin: 0;
|
||||
font-family: var(--display);
|
||||
font-variation-settings: "SOFT" 70, "WONK" 1, "opsz" 110;
|
||||
font-weight: 400;
|
||||
font-size: clamp(2.7rem, 6.6vw, 5.6rem);
|
||||
line-height: .96;
|
||||
letter-spacing: -.028em;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.lede-sub {
|
||||
margin: clamp(1.1rem, 2.4vw, 1.6rem) 0 0;
|
||||
max-width: 34ch;
|
||||
font-size: clamp(.98rem, 1.15vw, 1.08rem);
|
||||
color: #b9c2bd;
|
||||
}
|
||||
|
||||
/* ---------------- contact sheet ---------------- */
|
||||
/* The real sheet runs longer than the page. It breaks out of its column
|
||||
and recedes out of the light pool rather than stopping — so the crop
|
||||
holds at any viewport height instead of depending on the card's edge
|
||||
landing in the right place. */
|
||||
|
||||
.sheet {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: clamp(.6rem, 1.2vw, 1.1rem);
|
||||
width: 100vw;
|
||||
margin: clamp(2.2rem, 4.5vw, 3.4rem) 0 0;
|
||||
padding: 1.5rem 0;
|
||||
overflow: visible;
|
||||
scrollbar-width: none;
|
||||
-webkit-mask-image: linear-gradient(to right, #000 50%, rgba(0,0,0,.3) 76%, transparent 93%);
|
||||
mask-image: linear-gradient(to right, #000 50%, rgba(0,0,0,.3) 76%, transparent 93%);
|
||||
}
|
||||
.sheet::-webkit-scrollbar { display: none; }
|
||||
|
||||
.frame {
|
||||
flex: none;
|
||||
width: clamp(8.5rem, 12.5vw, 10.5rem);
|
||||
margin: 0;
|
||||
transform: rotate(var(--tilt)) translateY(calc(var(--lift) * -1));
|
||||
transition: transform .45s cubic-bezier(.2,.8,.25,1), filter .45s ease;
|
||||
}
|
||||
.frame:hover,
|
||||
.frame:focus-within {
|
||||
transform: rotate(0deg) translateY(calc((var(--lift) + 8px) * -1));
|
||||
}
|
||||
|
||||
/* White print border — the scalloped Kodak edge, squared off. */
|
||||
.frame-print {
|
||||
position: relative;
|
||||
padding: 6px 6px 6px;
|
||||
background: linear-gradient(#f6f2e9, #e4ddd0);
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255,255,255,.16) inset,
|
||||
0 14px 26px -12px rgba(0,0,0,.72),
|
||||
0 2px 5px rgba(0,0,0,.45);
|
||||
}
|
||||
/* Intrinsic width/height on the tag carry the aspect ratio, so the prints
|
||||
hold their shape before the JPEGs land. 35mm frames are 3:2, the film
|
||||
gate is 4:3 — the sheet aligns them along the bottom and lets the tops
|
||||
run ragged, the way a hand-laid sheet does. */
|
||||
.frame-img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background-color: var(--board-deep);
|
||||
}
|
||||
|
||||
/* Burned-in date stamp. Bleeds amber light into the emulsion under it. */
|
||||
.frame-stamp {
|
||||
position: absolute;
|
||||
right: 9px;
|
||||
bottom: 9px;
|
||||
z-index: 2;
|
||||
font: 700 .58rem/1 var(--mono);
|
||||
letter-spacing: .04em;
|
||||
color: #ffca6a;
|
||||
text-shadow:
|
||||
0 0 2px rgba(240,160,42,.95),
|
||||
0 0 9px rgba(240,160,42,.6),
|
||||
0 0 20px rgba(240,160,42,.28);
|
||||
}
|
||||
|
||||
/* Film frames: sprocket rails and a running time. */
|
||||
.frame--film .frame-print {
|
||||
padding: 12px 6px;
|
||||
background:
|
||||
linear-gradient(#1c2523, #141c1b);
|
||||
}
|
||||
.frame--film .frame-print::before,
|
||||
.frame--film .frame-print::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
height: 6px;
|
||||
background-image: radial-gradient(circle at 3px 3px, #f6f2e9 0 1.6px, transparent 1.9px);
|
||||
background-size: 11px 6px;
|
||||
opacity: .5;
|
||||
}
|
||||
.frame--film .frame-print::before { top: 3px; }
|
||||
.frame--film .frame-print::after { bottom: 3px; }
|
||||
|
||||
.frame-run {
|
||||
position: absolute;
|
||||
left: 9px;
|
||||
bottom: 15px;
|
||||
z-index: 2;
|
||||
font: 500 .55rem/1 var(--mono);
|
||||
letter-spacing: .06em;
|
||||
color: var(--glassine);
|
||||
background: rgba(13,20,19,.72);
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.frame figcaption {
|
||||
margin-top: .55rem;
|
||||
font: 400 .64rem/1.4 var(--mono);
|
||||
color: var(--sleeve);
|
||||
letter-spacing: .01em;
|
||||
}
|
||||
.frame-no {
|
||||
display: block;
|
||||
color: #9caaa4;
|
||||
letter-spacing: .1em;
|
||||
}
|
||||
|
||||
/* ---------------- ticker ---------------- */
|
||||
|
||||
.ticker {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1.1rem 0; /* row gap matters the moment cells wrap */
|
||||
margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
|
||||
border-top: 1px solid var(--board-edge);
|
||||
padding-top: .95rem;
|
||||
}
|
||||
.ticker-cell {
|
||||
padding-right: clamp(1.4rem, 3vw, 2.6rem);
|
||||
}
|
||||
.ticker dt {
|
||||
font: 400 .62rem/1 var(--mono);
|
||||
letter-spacing: .13em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sleeve);
|
||||
}
|
||||
.ticker dd {
|
||||
margin: .34rem 0 0;
|
||||
font: 500 .95rem/1 var(--mono);
|
||||
color: var(--glassine);
|
||||
}
|
||||
|
||||
/* ---------------- the gate ---------------- */
|
||||
/* A sheet of glassine held to the board by four photo corners. */
|
||||
|
||||
.gate {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
/* Sits high enough that its lower edge crosses the prints mid-frame —
|
||||
the sheet has to disappear under it, not almost clear it. */
|
||||
align-self: start;
|
||||
margin-top: clamp(.5rem, 3vh, 2.75rem);
|
||||
background:
|
||||
linear-gradient(148deg, #f3efe6 0%, var(--glassine) 46%, #ddd5c6 100%);
|
||||
color: var(--ink);
|
||||
padding: clamp(1.6rem, 2.4vw, 2.3rem);
|
||||
box-shadow:
|
||||
0 40px 70px -34px rgba(0,0,0,.8),
|
||||
0 4px 14px rgba(0,0,0,.35);
|
||||
}
|
||||
.gate::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: var(--grain);
|
||||
opacity: .1;
|
||||
mix-blend-mode: multiply;
|
||||
pointer-events: none;
|
||||
}
|
||||
.gate-inner { position: relative; z-index: 1; }
|
||||
|
||||
.corner {
|
||||
position: absolute;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
z-index: 2;
|
||||
background: linear-gradient(135deg, #3c4a47, #1a2423 70%);
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,.5);
|
||||
}
|
||||
.corner--tl { top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
|
||||
.corner--tr { top: 0; right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
|
||||
.corner--bl { bottom: 0; left: 0; clip-path: polygon(0 0, 0 100%, 100% 100%); }
|
||||
.corner--br { bottom: 0; right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
|
||||
|
||||
.gate-eyebrow {
|
||||
margin: 0;
|
||||
font: 500 .66rem/1 var(--mono);
|
||||
letter-spacing: .15em;
|
||||
text-transform: uppercase;
|
||||
color: #8a6a2b;
|
||||
}
|
||||
.gate-title {
|
||||
margin: .6rem 0 1.5rem;
|
||||
font-family: var(--display);
|
||||
font-variation-settings: "SOFT" 70, "WONK" 1, "opsz" 60;
|
||||
font-weight: 500;
|
||||
font-size: clamp(1.6rem, 2.3vw, 1.95rem);
|
||||
line-height: 1.05;
|
||||
letter-spacing: -.02em;
|
||||
}
|
||||
|
||||
.form { display: grid; gap: 1.15rem; }
|
||||
|
||||
.field { position: relative; }
|
||||
.field label {
|
||||
display: block;
|
||||
font: 500 .68rem/1 var(--mono);
|
||||
letter-spacing: .11em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-soft);
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
.field input {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
border-bottom: 1.5px solid rgba(22,32,31,.28);
|
||||
background: transparent;
|
||||
padding: .5rem 4.4rem .5rem 0;
|
||||
font: 400 1rem/1.4 var(--body);
|
||||
color: var(--ink);
|
||||
border-radius: 0;
|
||||
transition: border-color .2s ease, box-shadow .2s ease;
|
||||
}
|
||||
.field input::placeholder { color: rgba(22,32,31,.3); }
|
||||
.field input:hover { border-bottom-color: rgba(22,32,31,.5); }
|
||||
.field input:focus {
|
||||
outline: 0;
|
||||
border-bottom-color: #1c6b7d;
|
||||
box-shadow: 0 2px 0 -0.5px #1c6b7d;
|
||||
}
|
||||
|
||||
.reveal {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: .45rem;
|
||||
border: 0;
|
||||
background: none;
|
||||
padding: .2rem .1rem;
|
||||
font: 500 .66rem/1 var(--mono);
|
||||
letter-spacing: .1em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-soft);
|
||||
cursor: pointer;
|
||||
}
|
||||
.reveal:hover { color: var(--ink); }
|
||||
|
||||
/* Stays in the flow whether or not it has anything to say, so the live
|
||||
region is never display:none when it updates. */
|
||||
.notice {
|
||||
margin: 0;
|
||||
font: 400 .82rem/1.45 var(--body);
|
||||
color: #8f3a1e;
|
||||
}
|
||||
|
||||
.unlock {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: var(--stamp);
|
||||
color: var(--board);
|
||||
padding: .95rem 1.2rem;
|
||||
font: 600 .74rem/1 var(--mono);
|
||||
letter-spacing: .17em;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
transition: background .2s ease, transform .12s ease;
|
||||
}
|
||||
.unlock:hover { background: #ffb44a; }
|
||||
.unlock:active { transform: translateY(1px); }
|
||||
.unlock-label { position: relative; z-index: 2; }
|
||||
|
||||
/* Shutter blade — sweeps across on submit. */
|
||||
.unlock-blade {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
background: var(--board);
|
||||
transform: translateX(-101%);
|
||||
}
|
||||
.unlock.is-firing .unlock-blade { animation: blade .5s cubic-bezier(.5,0,.4,1); }
|
||||
@keyframes blade {
|
||||
0% { transform: translateX(-101%); }
|
||||
48% { transform: translateX(0); }
|
||||
100% { transform: translateX(101%); }
|
||||
}
|
||||
|
||||
.gate-alt { margin-top: 1.35rem; }
|
||||
.link {
|
||||
border: 0;
|
||||
background: none;
|
||||
padding: 0;
|
||||
font: 400 .87rem/1.4 var(--body);
|
||||
color: #1c6b7d;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.link:hover { color: #12505e; }
|
||||
|
||||
.gate-foot {
|
||||
margin: 1.5rem 0 0;
|
||||
padding-top: 1.15rem;
|
||||
border-top: 1px solid rgba(22,32,31,.16);
|
||||
font-size: .82rem;
|
||||
line-height: 1.55;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
.gate-foot a { color: #1c6b7d; text-underline-offset: 3px; }
|
||||
|
||||
.gate.is-refused { animation: refuse .4s ease; }
|
||||
@keyframes refuse {
|
||||
0%,100% { transform: translateX(0); }
|
||||
22% { transform: translateX(-7px); }
|
||||
58% { transform: translateX(5px); }
|
||||
82% { transform: translateX(-2px); }
|
||||
}
|
||||
|
||||
/* ---------------- foot ---------------- */
|
||||
|
||||
.footfold {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: .4rem 1.5rem;
|
||||
padding: 1.15rem var(--gutter) 1.6rem;
|
||||
border-top: 1px solid var(--board-edge);
|
||||
}
|
||||
.footfold p {
|
||||
margin: 0;
|
||||
font: 400 .68rem/1.4 var(--mono);
|
||||
letter-spacing: .06em;
|
||||
color: var(--sleeve);
|
||||
}
|
||||
|
||||
/* ---------------- focus ---------------- */
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--flash);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
.gate :focus-visible { outline-color: #1c6b7d; }
|
||||
.field input:focus-visible { outline: 0; }
|
||||
|
||||
/* ---------------- develop sequence ---------------- */
|
||||
/* Frames rise out of the board through a contrast ramp; the date stamps
|
||||
flick on last, once the print has settled. */
|
||||
|
||||
.js .frame-print { animation: develop .95s cubic-bezier(.25,.9,.3,1) backwards; }
|
||||
.js .frame-stamp,
|
||||
.js .frame-run { animation: flick .35s steps(2, end) backwards; }
|
||||
|
||||
@keyframes develop {
|
||||
from { opacity: 0; filter: brightness(.15) contrast(2.4) saturate(.2); transform: translateY(14px); }
|
||||
60% { opacity: 1; }
|
||||
to { opacity: 1; filter: none; transform: translateY(0); }
|
||||
}
|
||||
@keyframes flick {
|
||||
from { opacity: 0; }
|
||||
50% { opacity: .35; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
.js .lede > .eyebrow,
|
||||
.js .lede-title,
|
||||
.js .lede-sub,
|
||||
.js .ticker,
|
||||
.js .gate { animation: settle .8s cubic-bezier(.2,.8,.25,1) backwards; }
|
||||
|
||||
@keyframes settle {
|
||||
from { opacity: 0; transform: translateY(12px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
/* ---------------- responsive ---------------- */
|
||||
|
||||
@media (max-width: 62rem) {
|
||||
/* .lede dissolves into the grid, so the row gap now does the spacing
|
||||
these elements did with their own margins. Zero the duplicates. */
|
||||
.stage {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
align-items: start;
|
||||
gap: 1.6rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
.lede { display: contents; }
|
||||
.eyebrow { order: 1; margin-bottom: 0; }
|
||||
.lede-title { order: 2; }
|
||||
.lede-sub { order: 3; margin-top: 0; max-width: 46ch; }
|
||||
.gate { order: 4; max-width: 27rem; margin-top: 0; }
|
||||
.ticker { order: 6; margin-top: 0; }
|
||||
.lede-title { font-size: clamp(2.6rem, 9vw, 4rem); }
|
||||
|
||||
/* No room to lay the sheet under the card — make it a strip you drag,
|
||||
and drop the fade so nothing you scroll to is dimmed. */
|
||||
.sheet {
|
||||
order: 5;
|
||||
width: auto;
|
||||
margin: 0 calc(var(--gutter) * -1);
|
||||
padding: 1.25rem var(--gutter);
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
-webkit-mask-image: none;
|
||||
mask-image: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 34rem) {
|
||||
.frame { width: 8.75rem; }
|
||||
.ticker { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
|
||||
.ticker-cell { padding-right: 0; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
/* Delays are set inline by the develop sequence, so they need clearing
|
||||
too — otherwise `backwards` fill holds prints at opacity 0. */
|
||||
*, *::before, *::after {
|
||||
animation-duration: .01ms !important;
|
||||
animation-delay: 0s !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: .01ms !important;
|
||||
}
|
||||
.frame:hover, .frame:focus-within { transform: rotate(var(--tilt)) translateY(calc(var(--lift) * -1)); }
|
||||
}
|
||||
Reference in New Issue
Block a user