204 lines
11 KiB
CSS
204 lines
11 KiB
CSS
@font-face { font-family: "Slyng Condensed"; src: url("../fonts/slyng-condensed-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
|
|
@font-face { font-family: "Slyng Text"; src: url("../fonts/slyng-text-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
|
|
@font-face { font-family: "Slyng Text"; src: url("../fonts/slyng-text-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
|
|
|
|
/* The brand's four colours, and the grounds the round-one drafts were made on. */
|
|
:root {
|
|
--ink: #111014;
|
|
--bone: #F1F0EC;
|
|
--white: #FFFFFF;
|
|
--volt: #D9FF3D;
|
|
--ink-2: #57554F;
|
|
--line: rgba(17, 16, 20, 0.14);
|
|
--red: #FF3D2E;
|
|
--peri: #C9C6FF;
|
|
--cobalt: #2340FF;
|
|
--concrete: #D7D5CF;
|
|
--cond: "Slyng Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
|
|
--text: "Slyng Text", "Century Gothic", "Avenir", system-ui, sans-serif;
|
|
--gutter: clamp(16px, 4vw, 48px);
|
|
--wide: 1200px;
|
|
--radius: 16px;
|
|
color-scheme: light;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
|
|
body {
|
|
margin: 0;
|
|
background: var(--white);
|
|
color: var(--ink);
|
|
font: 400 17px/1.55 var(--text);
|
|
font-kerning: normal;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
img { display: block; max-width: 100%; height: auto; }
|
|
picture { display: contents; }
|
|
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
|
|
a:hover { text-decoration-thickness: 3px; }
|
|
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
|
|
h1, h2, h3, h4 { font-family: var(--cond); font-weight: 700; line-height: 1.02; letter-spacing: 0.005em; margin: 0 0 0.45em; }
|
|
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
|
|
h3 { font-size: 1.5rem; }
|
|
p { margin: 0 0 0.9em; }
|
|
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
|
|
|
|
/* ------------------------------------------------------------------ the logo, firing */
|
|
.hero { background: var(--ink); color: var(--white); }
|
|
.hero a { color: var(--white); text-decoration-color: var(--volt); }
|
|
.hero :focus-visible { outline-color: var(--volt); }
|
|
.crumbs { display: flex; align-items: baseline; gap: 10px; padding-top: 18px; padding-bottom: 4px; font: 700 1.35rem/1 var(--cond); letter-spacing: 0.04em; }
|
|
.crumbs a { text-decoration: none; }
|
|
.crumbs a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
|
|
.crumbs span { color: rgba(255, 255, 255, 0.5); }
|
|
.crumbs [aria-current] { color: rgba(255, 255, 255, 0.78); }
|
|
.reel { max-width: var(--wide); margin: 0 auto; }
|
|
.reel img { width: 100%; }
|
|
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px clamp(24px, 5vw, 64px); align-items: start; padding-bottom: clamp(48px, 8vw, 96px); }
|
|
.intro h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); line-height: 0.95; margin: 0; }
|
|
.intro p { color: rgba(255, 255, 255, 0.86); font-size: 1.12rem; max-width: 33em; }
|
|
.jump { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 0; }
|
|
.jump a { font-weight: 700; text-decoration-thickness: 2px; }
|
|
|
|
/* ------------------------------------------------------------------ sections */
|
|
.part { padding-top: clamp(64px, 10vw, 120px); }
|
|
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 40em; margin-bottom: 28px; }
|
|
.note { color: var(--ink-2); max-width: 46em; margin-top: 20px; }
|
|
|
|
/* tiles: each piece on the ground it was drawn for */
|
|
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
|
|
.tile { margin: 0; min-width: 0; }
|
|
.ground {
|
|
display: grid; place-items: center; min-height: 200px; overflow: hidden;
|
|
padding: clamp(18px, 6%, 40px); border-radius: var(--radius);
|
|
}
|
|
.ground img { width: auto; max-height: 170px; }
|
|
.ground.icon { min-height: 270px; }
|
|
.ground.icon img { max-height: 210px; }
|
|
.ground.sticker { min-height: 300px; }
|
|
.ground.sticker img { max-height: 250px; }
|
|
.tiles + .tiles, .tiles + .story { margin-top: 16px; }
|
|
.ground.big { min-height: clamp(210px, 32vw, 400px); }
|
|
.ground.big img { width: min(84%, 860px); max-height: none; }
|
|
.ground.bleed { padding: 0; min-height: 0; }
|
|
.ground.bleed img { width: 100%; max-height: none; }
|
|
.g-ink { background: var(--ink); }
|
|
.g-bone { background: var(--bone); }
|
|
.g-white { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
|
|
.g-volt { background: var(--volt); }
|
|
.g-red { background: var(--red); }
|
|
.g-peri { background: var(--peri); }
|
|
.g-cobalt { background: var(--cobalt); }
|
|
.g-concrete { background: var(--concrete); }
|
|
figcaption { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); }
|
|
|
|
/* the volt stone marks what was picked */
|
|
.stone { display: inline-block; flex: none; width: 0.78em; height: 0.78em; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 2px var(--ink); vertical-align: -0.04em; margin: 0 0.5em 0 2px; }
|
|
figcaption .stone, .picked .stone { margin: 0 0 0 2px; }
|
|
|
|
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
|
|
|
|
/* the logo */
|
|
.anatomy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; align-items: start; }
|
|
.closeup { padding: clamp(12px, 4%, 32px); }
|
|
.closeup img { width: 100%; max-width: 460px; max-height: none; }
|
|
.anatomy dl { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 14px 20px; margin: 0; }
|
|
.anatomy dt { font-weight: 700; }
|
|
.anatomy dd { margin: 0; color: var(--ink-2); }
|
|
.donts { margin: 36px 0 0; padding-left: 1.15em; max-width: 46em; }
|
|
.donts li { margin-bottom: 0.45em; }
|
|
|
|
/* the icon */
|
|
.ladder { list-style: none; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px clamp(16px, 3vw, 36px); margin: 32px 0 0; padding: 0; }
|
|
.ladder li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
|
|
.ladder .px180 { width: 180px; }
|
|
.ladder .px120 { width: 120px; }
|
|
.ladder .px64 { width: 64px; }
|
|
.ladder .px44 { width: 44px; }
|
|
.ladder .px32 { width: 32px; }
|
|
.ladder .px20 { width: 20px; }
|
|
|
|
/* files */
|
|
.files { list-style: none; margin: 0; padding: 0; max-width: 780px; border-top: 2px solid var(--ink); }
|
|
.files li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
|
|
.files a { font-weight: 700; }
|
|
.files span { color: var(--ink-2); font-size: 0.95rem; }
|
|
|
|
/* colour: widths follow how much of each the brand uses */
|
|
.swatches { list-style: none; margin: 0; padding: 0; display: flex; min-height: clamp(200px, 26vw, 300px); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
|
|
.sw { display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; min-width: 0; padding: 16px; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
|
|
.sw b { font: 700 1.7rem/1 var(--cond); margin-bottom: 8px; }
|
|
.sw-ink { flex: 5; background: var(--ink); color: var(--white); }
|
|
.sw-bone { flex: 3; background: var(--bone); }
|
|
.sw-white { flex: 2; background: var(--white); border-left: 1px solid var(--line); }
|
|
.sw-volt { flex: 1.35; background: var(--volt); }
|
|
|
|
/* type */
|
|
.type-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
|
|
.spec { padding: clamp(18px, 5%, 40px); }
|
|
.spec img { width: 100%; max-height: none; }
|
|
.type-grid h3 + p { color: var(--ink-2); max-width: 34em; }
|
|
.type-grid h3:not(:first-child) { margin-top: 1.3em; }
|
|
.type-grid .sample-cond { font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--cond); margin: 0.2em 0 0.35em; color: var(--ink); }
|
|
.sample-text { font-size: 1.15rem; max-width: 30em; }
|
|
|
|
/* motion */
|
|
.beats { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px 28px; margin: 32px 0 0; padding: 0; }
|
|
.beats li { border-top: 2px solid var(--ink); padding-top: 10px; color: var(--ink-2); }
|
|
.beats b { display: block; font: 700 1.35rem/1.1 var(--cond); color: var(--ink); }
|
|
.beats span { display: block; font-size: 0.85rem; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
|
|
|
|
/* how it got here */
|
|
.drafts .lede .stone { margin-right: 0.35em; }
|
|
.round { margin-top: clamp(56px, 9vw, 104px); }
|
|
.round-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(16px, 3vw, 36px); align-items: start; margin-bottom: 26px; }
|
|
.round-head .num { font: 700 clamp(4.2rem, 10vw, 7.5rem)/0.78 var(--cond); margin: 0; min-width: 0.55em; color: var(--ink); }
|
|
.round-head h3 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 0.3em; }
|
|
.round-head p { color: var(--ink-2); max-width: 44em; }
|
|
.after { margin: 24px 0 0; padding-top: 14px; border-top: 2px solid var(--ink); font-weight: 700; }
|
|
.after span { display: block; max-width: 48em; }
|
|
.concept { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
|
|
.concept-meta h4 { display: flex; align-items: center; gap: 10px; font-size: 1.75rem; margin-bottom: 6px; }
|
|
.cn { display: inline-grid; place-items: center; flex: none; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--bone); font-size: 0.72em; line-height: 1; }
|
|
.cn.chosen { background: var(--volt); box-shadow: 0 0 0 2px var(--ink); }
|
|
.face { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 10px; }
|
|
.picked { display: flex; align-items: center; gap: 8px; font-weight: 700; }
|
|
.story { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; }
|
|
.story .ground { min-height: 0; padding: 10px; }
|
|
.story .ground img { width: 100%; max-height: none; }
|
|
.story span { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--ink-2); }
|
|
|
|
.foot { margin-top: clamp(72px, 11vw, 132px); padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.9rem; }
|
|
.foot p { max-width: 62em; }
|
|
|
|
/* ------------------------------------------------------------------ wider screens */
|
|
@media (min-width: 720px) {
|
|
.tiles.two, .tiles.three, .pair.side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
@media (min-width: 960px) {
|
|
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.anatomy { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; }
|
|
.type-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; }
|
|
.concept { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 16px 40px; }
|
|
.concept-meta { position: sticky; top: 20px; align-self: start; }
|
|
}
|
|
@media (max-width: 859px) {
|
|
.intro { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
@media (max-width: 640px) {
|
|
body { font-size: 16px; }
|
|
.swatches { flex-direction: column; min-height: 460px; }
|
|
.sw-white { border-left: 0; border-top: 1px solid var(--line); }
|
|
.anatomy dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
|
|
.anatomy dd { margin-bottom: 12px; }
|
|
.ground { min-height: 150px; }
|
|
.ground.icon { min-height: 220px; }
|
|
.ground img { max-height: 140px; }
|
|
.ground.sticker { min-height: 240px; }
|
|
.ground.sticker img { max-height: 200px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
html { scroll-behavior: auto; }
|
|
}
|