fafo / source /src /styles.css
LetsFafo's picture
Lets-Fafo React page (moved out of the README Space so the org card renders)
4f81136 verified
Raw History Blame Contribute Delete
11.7 kB
/* Tokens and base rules follow meetfafo.com so this page reads as the same house. */
@font-face {
font-family: 'Space Grotesk';
src: url('/assets/fonts/space-grotesk.ttf') format('truetype');
font-weight: 300 700;
font-style: normal;
font-display: swap;
}
:root {
color-scheme: light;
--paper: #f5f9fa;
--white: #fff;
--ink: #10232e;
--muted: #516571;
--navy: #081923;
--navy-light: #0e2633;
--cyan: #00c4e9;
--accent: #006c85;
--line: #d4e0e5;
--dark-line: #29414e;
--mist: #b7c9d2;
--shell: 1320px;
--font: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
--mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { color: var(--navy); background: var(--cyan); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
figure, p, dl, dd { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 500; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.shell { width: min(calc(100% - 112px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -90px; left: 16px; background: var(--cyan); color: var(--navy); padding: 14px 20px; }
.skip-link:focus { top: 12px; }
.eyebrow { font: 500 11px/1.6 var(--mono); letter-spacing: 0.065em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.section { padding-block: 112px; }
h2 { font-size: clamp(40px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -0.055em; }
.large-copy { font-size: 25px; line-height: 1.45; letter-spacing: -0.03em; }
/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--navy); color: var(--paper); border-bottom: 1px solid var(--dark-line); }
.nav-shell { height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; font-size: 25px; font-weight: 400; letter-spacing: -0.07em; line-height: 1; }
.wordmark strong { font-weight: 700; }
.fafo-logo { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.site-nav { display: flex; gap: 29px; align-items: center; font-size: 13px; font-weight: 500; }
.site-nav a { transition: color 0.15s ease; }
.site-nav a:hover { color: var(--cyan); }
.nav-contact { display: flex; align-items: center; gap: 25px; padding: 12px 18px; margin-left: 8px; background: var(--cyan); color: var(--navy); }
.site-nav .nav-contact:hover { background: var(--white); color: var(--navy); }
.nav-contact span { font-size: 20px; line-height: 1; }
/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 56px; padding: 15px 22px; font-size: 14px; font-weight: 500; line-height: 1.5; border: 0; transition: background 0.18s, color 0.18s; }
.button span { font-size: 24px; line-height: 1; transition: transform 0.18s ease; }
.button:hover span, .text-link:hover span, .hero-results-link:hover span { transform: translate(3px, -3px); }
.button-cyan { background: var(--cyan); color: var(--navy); }
.button-cyan:hover { background: var(--white); }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 500; }
.text-link span { font-size: 22px; line-height: 1; transition: transform 0.18s ease; }
.text-link:hover { color: var(--accent); }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .models-section :focus-visible { outline-color: var(--cyan); }
/* Hero */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); align-items: center; gap: 5%; padding-block: 52px 50px; }
.hero-copy > .eyebrow { color: var(--cyan); }
.hero h1 { font-size: clamp(54px, 5.7vw, 83px); line-height: 0.99; letter-spacing: -0.065em; font-weight: 500; }
.hero h1 > span { color: var(--cyan); }
.hero-lede { max-width: 550px; margin: 27px 0 26px; font-size: 16px; line-height: 1.75; color: var(--mist); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero-results-link { display: inline-flex; gap: 16px; align-items: center; padding-block: 12px; font-size: 13px; }
.hero-results-link:hover { color: var(--cyan); }
.hero-results-link span { font-size: 20px; line-height: 1; transition: transform 0.18s ease; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 22px 0; border-top: 1px solid var(--dark-line); font-size: 11px; color: #afc3ce; }
.hero-foot a { display: inline-flex; align-items: center; gap: 16px; color: var(--white); }
.hero-foot a:hover { color: var(--cyan); }
.hero-foot a span { font-size: 22px; line-height: 1; }
.hero-foot .inception img { height: 40px; width: auto; }
/* Signature: the work graph */
.work-graph { width: 100%; max-width: 520px; justify-self: end; }
.work-graph svg { width: 100%; height: auto; }
.graph-edges line { stroke: #1f3a48; stroke-width: 1.5; transition: stroke 0.5s ease; }
.graph-edges line.is-lit { stroke: var(--cyan); stroke-width: 2.5; }
.graph-nodes circle { fill: var(--navy-light); stroke: #2f4c5b; stroke-width: 1.5; transition: fill 0.4s ease, stroke 0.4s ease; }
.graph-nodes circle.is-lit { fill: var(--cyan); stroke: var(--cyan); }
.graph-nodes circle.is-current { stroke: var(--white); stroke-width: 3; }
.graph-labels text { font: 500 12px var(--mono); fill: #3f5a68; letter-spacing: 0.04em; text-transform: uppercase; transition: fill 0.4s ease; }
.graph-labels text.is-lit { fill: var(--white); }
.work-graph figcaption { display: flex; justify-content: space-between; gap: 14px; padding: 17px 4px 0; font: 10px/1.6 var(--mono); color: #9bb5c3; }
/* Seven questions */
.questions-section { background: var(--white); }
.questions-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 9%; align-items: end; }
.questions-heading > p { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 440px; padding-bottom: 4px; }
.questions-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--ink); }
.questions-grid li { padding: 22px 18px 24px 0; border-right: 1px solid var(--line); }
.questions-grid li + li { padding-left: 18px; }
.questions-grid li:last-child { border-right: 0; }
.questions-grid span { font: 500 11px/1.6 var(--mono); letter-spacing: 0.065em; text-transform: uppercase; color: var(--accent); }
.questions-grid p { margin-top: 14px; font-size: 18px; line-height: 1.3; letter-spacing: -0.03em; }
/* Products */
.products-section { background: #edf4f7; border-block: 1px solid var(--line); }
.products-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 9%; align-items: end; }
.products-heading .eyebrow { grid-column: 1 / -1; }
.products-heading > p:last-child { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 440px; padding-bottom: 2px; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 42px; margin-top: 52px; }
.products-grid li { border-top: 1px solid #b9cdd7; padding-top: 22px; display: flex; flex-direction: column; }
.products-grid img { width: 56px; height: 56px; }
.products-grid span { margin-top: 20px; font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.products-grid h3 { margin: 10px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -0.03em; }
.products-grid p { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 24px; }
.products-grid .text-link { margin-top: auto; align-self: flex-start; }
/* Models */
.models-section { background: var(--navy); color: var(--white); }
.models-heading { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10%; align-items: end; }
.models-heading .eyebrow { color: var(--cyan); }
.models-heading > p { color: var(--mist); font-size: 17px; line-height: 1.75; max-width: 380px; padding-bottom: 4px; }
.model-card { display: grid; grid-template-columns: 0.9fr 1.35fr; gap: 8%; border: 1px solid #35515e; margin-top: 55px; padding: 42px; background: var(--navy-light); }
.model-title .eyebrow { color: var(--cyan); }
.model-title h3 { font-size: 27px; line-height: 1.2; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.model-title > p:not(.eyebrow) { color: var(--mist); font-size: 15px; line-height: 1.75; margin: 16px 0 28px; }
.model-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; align-content: center; }
.model-stats > div { border-top: 2px solid var(--cyan); padding-top: 16px; }
.model-stats dt { font: 500 11px/1.6 var(--mono); letter-spacing: 0.065em; text-transform: uppercase; color: var(--cyan); }
.model-stats dd { margin-top: 10px; font-size: 42px; line-height: 1; letter-spacing: -0.05em; font-weight: 500; }
.model-stats dd small { font-size: 16px; letter-spacing: -0.02em; color: var(--mist); }
.model-stats > div > p { margin-top: 8px; font-size: 13px; color: var(--mist); }
/* MeetFAFO */
.meet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; }
.meet-copy > p:not(.large-copy) { color: var(--muted); margin-top: 22px; font-size: 16px; line-height: 1.8; }
.meet-copy .text-link { margin-top: 30px; }
/* Footer */
.site-footer { background: var(--navy); color: var(--paper); border-top: 1px solid var(--dark-line); padding-block: 56px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; align-items: start; }
.footer-tag { margin-top: 18px; color: var(--mist); }
.footer-links { display: grid; gap: 10px; font-weight: 500; }
.footer-links a:hover { color: var(--cyan); }
.footer-legal { display: grid; gap: 10px; color: #afc3ce; font-size: 12px; line-height: 1.6; }
/* Responsive */
@media (max-width: 1100px) {
.questions-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 }
.questions-grid li { border-bottom: 1px solid var(--line); }
.questions-grid li:nth-child(4n) { border-right: 0; }
.questions-grid li:nth-child(4n + 1) { padding-left: 0; }
.products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model-card { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
.shell { width: min(calc(100% - 40px), var(--shell)); }
.section { padding-block: 72px; }
.nav-shell { height: auto; padding-block: 16px; flex-wrap: wrap; }
.site-nav { flex-wrap: wrap; gap: 16px 22px; }
.nav-contact { margin-left: 0; }
.hero-grid, .questions-heading, .products-heading, .models-heading, .meet-grid, .footer-grid { grid-template-columns: 1fr; }
.work-graph { justify-self: stretch; max-width: 440px; margin-top: 24px; }
.questions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.questions-grid li:nth-child(4n) { border-right: 1px solid var(--line); }
.questions-grid li:nth-child(2n) { border-right: 0; }
.questions-grid li:nth-child(4n + 1) { padding-left: 18px; }
.questions-grid li:nth-child(2n + 1) { padding-left: 0; }
.products-grid { grid-template-columns: 1fr; }
.model-card { padding: 28px; }
.model-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { transition: none !important; }
}