@layer reset, tokens, base, layout, components, home, motion;
@font-face {
font-family: "Oswald";
src: url("/fonts/oswald-latin.woff2") format("woff2");
font-weight: 200 700;
font-display: swap;
}
@layer reset {
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
}
@layer tokens {
:root {
--ink: #14110f;
--linen: #eee8dc;
--linen-deep: #e2d9c6;
--madder: #7a1e1a;
--madder-soft: #a8362d;
--stone: #5c544a;
--line: color-mix(in oklab, var(--ink) 20%, transparent);
--font-display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
--font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
--step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.86rem);
--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
--step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
--step-3: clamp(2.2rem, 1.5rem + 3vw, 4rem);
--step-4: clamp(3rem, 1.6rem + 6vw, 7.5rem);
--gutter: clamp(1.1rem, 4vw, 3rem);
--band: clamp(14px, 2.2vw, 22px);
--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
--intro: 0s;
}
}
@layer base {
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
position: relative;
background: var(--linen);
color: var(--ink);
font-family: var(--font-text);
font-size: var(--step-0);
line-height: 1.55;
min-height: 100dvh;
}
body::before {
content: "";
position: fixed;
inset: 0;
background: url("/img/grain.svg");
opacity: 0.06;
mix-blend-mode: multiply;
pointer-events: none;
z-index: 50;
}
:focus-visible { outline: 3px solid var(--madder-soft); outline-offset: 3px; }
::selection { background: var(--madder); color: var(--linen); }
h1, h2, h3 {
font-family: var(--font-display);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
line-height: 1;
text-wrap: balance;
}
}
@layer layout {
.sr-only {
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus {
left: 1rem; top: 1rem; z-index: 400; padding: 0.6rem 1rem;
background: var(--ink); color: var(--linen); text-decoration: none;
}
}
@layer components {
.wordmark { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; line-height: 1; color: inherit; white-space: nowrap; }
.band {
height: var(--band);
background-color: var(--madder);
-webkit-mask: url("/img/ornament.svg") repeat-x left center / auto 100%;
mask: url("/img/ornament.svg") repeat-x left center / auto 100%;
}
.band--soft { background-color: var(--madder-soft); }
.stitch-mark {
display: block; width: 36%; aspect-ratio: 13 / 9; background-color: var(--madder);
-webkit-mask: url("/img/ornament.svg") center / contain no-repeat;
mask: url("/img/ornament.svg") center / contain no-repeat;
}
.is-empty { display: grid; place-items: center; }
.empty {
padding: clamp(2rem, 6vw, 4rem) 1rem; text-align: center; color: var(--stone);
border: 1px solid var(--line); letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--step--1);
}
dialog {
border: 0; padding: 0; background: var(--linen); color: var(--ink);
width: min(92vw, 56rem); max-height: 90dvh; overflow: auto;
}
dialog::backdrop { background: rgb(20 17 15 / 0.78); }
}
@media (prefers-reduced-motion: no-preference) {
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: ease; }
}
