README / style.css
matthewschramm's picture
style: brand the organization card
0fcf24e verified
Raw
History Blame Contribute Delete
3.3 kB
:root {
color-scheme: dark;
--ink: #433b47;
--paper: #e2dccf;
--paper-soft: #bfb7ac;
--line: rgba(226, 220, 207, 0.28);
}
* {
box-sizing: border-box;
}
html {
background: var(--ink);
}
body {
margin: 0;
min-width: 280px;
background: var(--ink);
color: var(--paper);
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a {
color: inherit;
}
main {
min-height: 100vh;
display: grid;
grid-template-rows: auto 1fr auto;
gap: clamp(2.5rem, 7vw, 6.5rem);
padding: clamp(1.25rem, 4vw, 3.5rem) clamp(1.25rem, 6vw, 6rem);
}
.topline,
footer {
display: flex;
justify-content: space-between;
gap: 2rem;
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.topline a,
.actions a {
text-decoration: none;
}
.topline a:hover,
.topline a:focus-visible {
text-decoration: underline;
text-underline-offset: 0.3em;
}
.hero {
align-self: center;
max-width: 72rem;
}
.wordmark {
display: block;
width: min(100%, 58rem);
height: auto;
margin: 0 0 clamp(1.5rem, 4vw, 3.5rem);
}
h1 {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.lead {
max-width: 54rem;
margin: 0;
font-size: clamp(1.35rem, 3.2vw, 3rem);
font-weight: 400;
line-height: 1.06;
letter-spacing: -0.035em;
}
.proof {
margin: 1rem 0 0;
color: var(--paper-soft);
font-size: clamp(0.95rem, 1.4vw, 1.2rem);
line-height: 1.5;
}
.actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.8rem;
margin-top: clamp(2rem, 5vw, 4rem);
}
.actions a {
display: inline-flex;
min-height: 2.9rem;
align-items: center;
justify-content: center;
gap: 1.5rem;
border: 1px solid var(--line);
padding: 0.8rem 1.1rem;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.actions a:hover,
.actions a:focus-visible {
border-color: var(--paper);
outline: none;
}
.actions .primary {
border-color: var(--paper);
background: var(--paper);
color: var(--ink);
}
.actions .primary:hover,
.actions .primary:focus-visible {
background: transparent;
color: var(--paper);
}
footer {
align-items: end;
border-top: 1px solid var(--line);
padding-top: 1.25rem;
color: var(--paper-soft);
}
footer p {
max-width: 52rem;
margin: 0;
font-size: clamp(0.72rem, 1vw, 0.88rem);
font-weight: 500;
line-height: 1.55;
letter-spacing: 0.05em;
text-transform: none;
}
footer em {
color: var(--paper);
font-family: Georgia, "Times New Roman", serif;
font-weight: 400;
}
footer span {
white-space: nowrap;
}
@media (max-width: 620px) {
main {
gap: 3rem;
}
.topline,
footer {
align-items: flex-start;
}
.topline {
font-size: 0.64rem;
}
.wordmark {
width: 115%;
max-width: none;
margin-left: -7.5%;
}
.actions {
align-items: stretch;
flex-direction: column;
}
.actions a {
justify-content: space-between;
width: 100%;
}
footer {
flex-direction: column;
}
}
@media (prefers-reduced-motion: reduce) {
.actions a {
transition: none;
}
}