Files
2025-02-08 20:09:59 +09:00

189 lines
3.0 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
box-sizing: border-box;
}
/* 2. Remove default margin */
* {
margin: 0;
}
body {
/* 3. Add accessible line-height */
line-height: 1.5;
/* 4. Improve text rendering */
-webkit-font-smoothing: antialiased;
}
/* 5. Improve media defaults */
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
/* 6. Inherit fonts for form controls */
input, button, textarea, select {
font: inherit;
}
/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
/* 8. Improve line wrapping */
p {
text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;
}
/*
9. Create a root stacking context
*/
#root, #__next {
isolation: isolate;
}
:root {
--dark-background: #1F2937;
}
body {
font-family: Roboto;
margin: 0
}
.header-wrap,
.hero-wrap{
max-width: 1024px;
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 auto;
}
header {
background-color: var(--dark-background);
color: #F9FAF8;
padding: 20px 40px;
}
header .logo {
font-size: 24px;
}
header .nav ul {
list-style: none;
display: flex;
gap: 20px
}
header .nav ul a {
color: #e5e7eb;
font-size: 18px;
text-decoration: none;
}
#hero {
background-color: var(--dark-background);
color: #F9FAF8;
display: flex;
justify-content: space-between;
align-items: center;
padding: 40px;
}
#hero h1 {
font-size: 48px;
color: #F9FAF8;
font-weight: 900;
}
#hero p {
color: #e5e7eb;
font-size: 18px;
}
.button {
background-color: #3882F6;
color: #FFF;
text-decoration: none;
padding: 5px 20px;
border-radius: 10px;
display: inline-block;
margin-top: 10px;
}
.button.alt {
background-color: transparent;
border: 1px solid #FFF;
}
#hero div {
flex: 1;
}
#product {
padding: 60px 0;
text-align: center;
}
.product-wrap {
max-width: 1024px;
margin: 0 auto;
}
#product h2 {
margin-bottom: 30px;
}
.product-loop {
display: flex;
}
.product-loop div {
flex: 1;
}
#quote {
background: #e5e7eb;
font-size: 36px;
color: #1F2937;
font-style: italic;
font-weight: 300;
}
.quote-wrap {
max-width: 900px;
padding: 60px 40px;
margin: 0 auto;
}
cite {
font-size: 18px;
display: block;
text-align: right;
font-weight: 600;
}
#cta {
padding: 40px;
}
#cta .blue-box {
background-color: #3882F6;
color: #FFF;
max-width: 1024px;
padding: 40px;
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 auto;
border-radius: 10px;
}
footer {
background-color: var(--dark-background);
color: #F9FAF8;
padding: 20px 40px;
text-align: center;
}