Chew & Rinse / website / style.css
| 1 | *{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f4f4f1;color:#161616;font:17px/1.6 system-ui,-apple-system,sans-serif} |
| 2 | .shell{width:min(100%,1230px);padding:0 clamp(1rem,5vw,4rem);margin:auto} |
| 3 | header{display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap;border-bottom:1px solid #bababa;padding:1.1rem 0} |
| 4 | .logo{font-weight:880;letter-spacing:-.06em;font-size:1.55rem;text-decoration:none}nav{display:flex;gap:1rem;flex-wrap:wrap}nav a{font-size:.93rem;text-decoration:none}nav a:hover{text-decoration:underline} |
| 5 | a{color:inherit;text-underline-offset:.22em} |
| 6 | h1,h2{font:400 clamp(3rem,7vw,6.4rem)/.98 Georgia,serif;letter-spacing:-.06em;margin:.17em 0 .3em}h2{font-size:clamp(2.1rem,4.8vw,4.2rem)}h3{line-height:1.2;margin:.2em 0 .35em;font-size:1.2rem} |
| 7 | .label{font-weight:750;text-transform:uppercase;letter-spacing:.135em;font-size:.82rem} |
| 8 | .hero,.split{display:grid;grid-template-columns:.95fr 1.05fr;gap:clamp(1.3rem,5vw,4rem);align-items:center} |
| 9 | .hero{padding:clamp(2.2rem,6vw,5rem) 0}.lede{font-size:1.18rem;max-width:40ch;color:#3f3f3f} |
| 10 | .button{background:#161616;color:#fff;border-radius:999px;display:inline-block;font-weight:690;padding:.7rem 1.1rem;text-decoration:none;margin:.3rem .4rem .3rem 0}.button:hover{background:#363636}.button.ghost{background:transparent;color:inherit;border:1.5px solid currentColor} |
| 11 | figure{margin:0}img{width:100%;height:auto;display:block;aspect-ratio:3/2;object-fit:cover}figcaption{font-size:.86rem;color:#505050;margin-top:.35rem} |
| 12 | .section{padding:clamp(2rem,6vw,4.5rem) 0;border-top:1px solid #bababa}.sub{max-width:62ch;color:#444;font-size:1.08rem} |
| 13 | .big{border:2px solid #161616;border-radius:22px;padding:clamp(1.2rem,3vw,2rem);margin:1.4rem 0;max-width:820px}.big p{margin:.3rem 0}.big strong{font-size:1.1rem} |
| 14 | .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;margin-top:1.2rem}.cards article{border-top:2px solid #161616;padding-top:.6rem}.cards p{color:#444;margin:.2rem 0} |
| 15 | .steps{counter-reset:s;list-style:none;padding:0;display:grid;gap:.9rem;max-width:820px}.steps li{counter-increment:s;display:grid;grid-template-columns:2.4rem 1fr;gap:.8rem;align-items:start} |
| 16 | .steps li:before{content:counter(s);display:grid;place-items:center;width:2.2rem;height:2.2rem;border-radius:50%;background:#161616;color:#fff;font-weight:750} |
| 17 | .steps p{margin:.15rem 0;color:#444}.facts{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem 2rem;max-width:960px}.facts p{margin:.2rem 0;color:#444} |
| 18 | .cite{font-size:.86rem;color:#555}.note{font-size:.92rem;color:#555;max-width:70ch} |
| 19 | footer{padding:1.3rem 0 2rem;border-top:1px solid #aaa;display:flex;gap:1rem;flex-wrap:wrap}footer a{text-decoration:none}footer a:hover{text-decoration:underline} |
| 20 | :focus-visible{outline:2px solid currentColor;outline-offset:4px} |
| 21 | @media(max-width:860px){.hero,.split,.cards,.facts{grid-template-columns:1fr}.split figure{order:2}nav{gap:.7rem}} |
| 22 | @media(prefers-color-scheme:dark){body{background:#161616;color:#f7f7f4}.lede,.sub,figcaption,.cards p,.steps p,.facts p,.cite,.note{color:#d4d4d4}.big{border-color:#f4f4f1}.cards article{border-color:#f4f4f1}.steps li:before{background:#f4f4f1;color:#161616}.button{background:#f4f4f1;color:#161616}.button:hover{background:#ddd}.button.ghost{background:transparent;color:inherit}} |
| 23 | @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}} |