Files
devil-fruit-encyclopedia/styles.css
2026-03-16 14:34:16 +01:00

249 lines
3.9 KiB
CSS

:root {
color-scheme: dark;
--bg: #081018;
--bg-accent: #101b27;
--panel: rgba(10, 21, 35, 0.9);
--panel-border: rgba(141, 182, 214, 0.18);
--text: #edf4ff;
--muted: #b6c7dd;
--highlight: #8fd3ff;
--highlight-strong: #ffd36e;
--shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
font-family: "Trebuchet MS", "Segoe UI", sans-serif;
line-height: 1.5;
color: var(--text);
background:
radial-gradient(circle at top, rgba(71, 134, 181, 0.3), transparent 28%),
linear-gradient(180deg, #102133 0%, var(--bg) 55%, #050b11 100%);
}
img {
max-width: 100%;
}
.page-header {
padding: 4.5rem 1.2rem 3rem;
text-align: center;
}
.eyebrow {
margin: 0;
text-transform: uppercase;
letter-spacing: 0.32rem;
font-size: 0.76rem;
color: var(--highlight);
}
.page-header h1 {
margin: 0.65rem 0 0;
font-size: clamp(2.5rem, 5vw, 4.75rem);
line-height: 0.95;
}
.hero-copy {
width: min(46rem, 92%);
margin: 1rem auto 0;
color: var(--muted);
font-size: 1.05rem;
}
.content {
width: min(1180px, calc(100% - 2rem));
margin: 0 auto 2.5rem;
display: grid;
gap: 1.25rem;
}
.card,
.fruit-card,
.section-heading {
border: 1px solid var(--panel-border);
background: var(--panel);
backdrop-filter: blur(10px);
box-shadow: var(--shadow);
}
.card,
.section-heading {
border-radius: 22px;
padding: 1.2rem 1.35rem;
}
.overview {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
gap: 1rem;
align-items: center;
}
.overview h2,
.section-heading h2 {
margin: 0 0 0.35rem;
}
.overview p,
.section-heading p,
.credits p {
margin: 0;
color: var(--muted);
}
.stat-row {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
justify-content: flex-end;
}
.stat-pill {
min-width: 10.5rem;
padding: 0.85rem 1rem;
border-radius: 16px;
background: rgba(143, 211, 255, 0.08);
border: 1px solid rgba(143, 211, 255, 0.16);
}
.stat-label {
display: block;
margin-bottom: 0.25rem;
color: var(--muted);
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.08rem;
}
.fruit-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
gap: 1rem;
}
.fruit-card {
border-radius: 22px;
overflow: hidden;
display: grid;
min-height: 100%;
}
.fruit-card img {
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
background: linear-gradient(135deg, rgba(255, 211, 110, 0.16), rgba(143, 211, 255, 0.08));
}
.fruit-info {
display: grid;
gap: 0.75rem;
padding: 1rem 1rem 1.1rem;
}
.title-row {
display: flex;
gap: 0.75rem;
align-items: flex-start;
justify-content: space-between;
}
.title-row h3 {
margin: 0;
font-size: 1.18rem;
line-height: 1.15;
}
.fruit-type {
flex-shrink: 0;
padding: 0.28rem 0.55rem;
border-radius: 999px;
background: rgba(255, 211, 110, 0.16);
color: var(--highlight-strong);
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05rem;
}
.subtitle,
.description,
.extra-detail {
margin: 0;
}
.subtitle {
color: var(--highlight);
font-weight: 700;
}
.description,
.extra-detail {
color: var(--muted);
}
.fruit-meta {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 0.42rem;
}
.fruit-meta li {
color: var(--text);
}
.fruit-meta strong {
color: var(--highlight-strong);
}
.source-link {
width: fit-content;
color: var(--highlight);
text-decoration: none;
font-weight: 700;
}
.source-link:hover,
.source-link:focus-visible {
text-decoration: underline;
}
@media (max-width: 820px) {
.overview {
grid-template-columns: 1fr;
}
.stat-row {
justify-content: flex-start;
}
}
@media (max-width: 560px) {
.page-header {
padding-top: 3.4rem;
}
.content {
width: min(100% - 1rem, 1180px);
}
.card,
.section-heading,
.fruit-info {
padding-left: 0.95rem;
padding-right: 0.95rem;
}
.fruit-grid {
grid-template-columns: 1fr;
}
}