mirror of
https://github.com/HananoshikaYomaru/openfreebooks.git
synced 2026-11-12 20:45:52 +00:00
511 lines
9.1 KiB
SCSS
511 lines
9.1 KiB
SCSS
h1,
|
|
h2,
|
|
h3 {
|
|
margin: 0;
|
|
font-family: var(--font-heading);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.site-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 8;
|
|
border-bottom: 1px solid transparent;
|
|
transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
|
|
}
|
|
|
|
.site-header.is-scrolled {
|
|
backdrop-filter: blur(10px);
|
|
background: var(--header-bg-scrolled);
|
|
border-color: var(--line);
|
|
box-shadow: 0 8px 20px var(--shadow-soft);
|
|
}
|
|
|
|
.header-row {
|
|
padding: 24px 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 20px;
|
|
transition: padding 320ms ease;
|
|
}
|
|
|
|
.site-header.is-scrolled .header-row {
|
|
padding: 13px 0;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.brand-name {
|
|
font-family: var(--font-heading);
|
|
font-weight: 400;
|
|
font-size: 1.2rem;
|
|
color: var(--ink);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.brand-name:hover,
|
|
.brand-name:focus-visible {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.main-nav {
|
|
display: flex;
|
|
gap: 26px;
|
|
}
|
|
|
|
.main-nav a {
|
|
color: var(--soft-ink);
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
font-family: var(--mono);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.main-nav a:hover,
|
|
.main-nav a:focus-visible {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.theme-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
|
border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
|
|
}
|
|
|
|
.theme-toggle:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.nav-burger {
|
|
display: none;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 5px;
|
|
width: 32px;
|
|
height: 32px;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
position: relative;
|
|
z-index: 10003;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.nav-burger:hover {
|
|
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
}
|
|
|
|
.nav-burger:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.nav-burger-line {
|
|
display: block;
|
|
width: 22px;
|
|
height: 2px;
|
|
border-radius: 1px;
|
|
background: currentColor;
|
|
transition: transform 0.32s ease, opacity 0.24s ease;
|
|
}
|
|
|
|
.site-header.nav-is-open .nav-burger-line:nth-child(1) {
|
|
transform: translateY(7px) rotate(45deg);
|
|
}
|
|
|
|
.site-header.nav-is-open .nav-burger-line:nth-child(2) {
|
|
opacity: 0;
|
|
}
|
|
|
|
.site-header.nav-is-open .nav-burger-line:nth-child(3) {
|
|
transform: translateY(-7px) rotate(-45deg);
|
|
}
|
|
|
|
.nav-backdrop {
|
|
display: none;
|
|
}
|
|
|
|
.mobile-nav-panel {
|
|
display: none;
|
|
}
|
|
|
|
.hero {
|
|
position: relative;
|
|
min-height: min(88vh, 720px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
}
|
|
|
|
.hero .container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding-block: clamp(2rem, 6vh, 5rem);
|
|
}
|
|
|
|
.hero h1 {
|
|
max-width: 860px;
|
|
font-size: clamp(2.2rem, 5.2vw, 4.2rem);
|
|
line-height: 1.08;
|
|
}
|
|
|
|
.hero-lead {
|
|
max-width: 680px;
|
|
margin: 24px 0 16px;
|
|
color: var(--soft-ink);
|
|
font-size: clamp(1.05rem, 1.9vw, 1.35rem);
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.hero-points {
|
|
max-width: 680px;
|
|
margin: 0 0 32px;
|
|
padding: 0;
|
|
list-style: none;
|
|
color: var(--soft-ink);
|
|
font-size: 1.02rem;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.hero-points li {
|
|
margin-bottom: 0.5rem;
|
|
padding-left: 1.25rem;
|
|
position: relative;
|
|
}
|
|
|
|
.hero-points li::before {
|
|
content: "—";
|
|
position: absolute;
|
|
left: 0;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.hero-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
align-items: center;
|
|
}
|
|
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
padding: 16px 32px;
|
|
text-decoration: none;
|
|
font-weight: 700;
|
|
font-size: 0.93rem;
|
|
letter-spacing: 0.02em;
|
|
border: 1px solid transparent;
|
|
transition: transform 200ms ease, box-shadow 200ms ease, color 200ms ease;
|
|
}
|
|
|
|
.button-primary {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.button-primary:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
|
|
}
|
|
|
|
.button-secondary {
|
|
color: var(--ink);
|
|
border-color: transparent;
|
|
background: transparent;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.button-secondary:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.section-kicker {
|
|
margin-bottom: 8px;
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.16em;
|
|
color: var(--accent);
|
|
text-transform: uppercase;
|
|
font-weight: 700;
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.section-title {
|
|
font-size: clamp(1.75rem, 3.1vw, 2.8rem);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.section-note {
|
|
margin-top: 14px;
|
|
color: var(--muted);
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.work-grid {
|
|
display: grid;
|
|
gap: 18px;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.work-card {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--card-border);
|
|
border-radius: 0;
|
|
overflow: hidden;
|
|
padding: 24px;
|
|
transition: transform 350ms ease, opacity 500ms ease, translate 500ms ease;
|
|
opacity: 0;
|
|
translate: 0 20px;
|
|
}
|
|
|
|
.work-card.is-inview {
|
|
opacity: 1;
|
|
translate: 0 0;
|
|
}
|
|
|
|
.work-card:hover {
|
|
transform: scale(1.01);
|
|
}
|
|
|
|
.work-card h3 {
|
|
margin: 0 0 12px;
|
|
font-size: clamp(1.4rem, 2vw, 1.85rem);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.work-card p {
|
|
color: var(--soft-ink);
|
|
margin: 0;
|
|
font-size: 1.02rem;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.work-card--link .work-card__anchor,
|
|
.work-card--link .work-card__anchor:any-link {
|
|
display: block;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.work-card__anchor h3,
|
|
.work-card__anchor p,
|
|
.work-card__anchor .card-subtitle {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.work-card__anchor:hover h3,
|
|
.work-card__anchor:focus-visible h3 {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.card-subtitle {
|
|
font-style: italic;
|
|
color: var(--muted);
|
|
font-size: 0.98rem;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.marquee-shell {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.marquee {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
width: 100vw;
|
|
margin-left: calc(-50vw + 50%);
|
|
padding: 14px 0;
|
|
}
|
|
|
|
.marquee-track {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
animation: marquee-slide 32s linear infinite;
|
|
}
|
|
|
|
.marquee-text {
|
|
font-family: var(--font-heading);
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
color: color-mix(in srgb, var(--ink) 72%, transparent);
|
|
font-size: clamp(1.25rem, 2.3vw, 1.65rem);
|
|
line-height: 1.22;
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
padding-right: 3rem;
|
|
}
|
|
|
|
.marquee-line {
|
|
height: 1px;
|
|
background: linear-gradient(
|
|
90deg,
|
|
color-mix(in srgb, var(--accent) 45%, transparent) 0%,
|
|
color-mix(in srgb, var(--accent) 20%, transparent) 100%
|
|
);
|
|
}
|
|
|
|
@keyframes marquee-slide {
|
|
from {
|
|
transform: translateX(0);
|
|
}
|
|
to {
|
|
transform: translateX(-33.333333%);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.work-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 467px) {
|
|
.nav-burger {
|
|
display: inline-flex;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.header-actions .main-nav {
|
|
display: none;
|
|
}
|
|
|
|
.site-header.nav-is-open {
|
|
z-index: 10000;
|
|
background-color: var(--paper);
|
|
border-bottom-color: var(--line);
|
|
box-shadow: 0 8px 20px var(--shadow-soft);
|
|
backdrop-filter: none;
|
|
}
|
|
|
|
.nav-backdrop {
|
|
display: block;
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10001;
|
|
background: rgba(22, 22, 22, 0.48);
|
|
backdrop-filter: blur(10px);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.site-header.nav-is-open .nav-backdrop {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.mobile-nav-panel {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10002;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
align-items: flex-start;
|
|
gap: 0;
|
|
padding: 96px 28px 40px;
|
|
margin: 0;
|
|
background-color: var(--paper);
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transition: none;
|
|
}
|
|
|
|
.mobile-nav-panel::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
opacity: 0.7;
|
|
mix-blend-mode: multiply;
|
|
background-image: var(--grain-svg);
|
|
background-size: 180px 180px;
|
|
}
|
|
|
|
.site-header.nav-is-open .mobile-nav-panel {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
}
|
|
|
|
.mobile-nav-panel a {
|
|
position: relative;
|
|
z-index: 1;
|
|
color: var(--soft-ink);
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
font-size: 1.05rem;
|
|
font-weight: 700;
|
|
font-family: var(--mono);
|
|
text-decoration: none;
|
|
padding: 14px 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.mobile-nav-panel a:hover {
|
|
color: var(--accent);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.marquee-track {
|
|
animation: none;
|
|
}
|
|
|
|
.work-card {
|
|
opacity: 1;
|
|
translate: 0 0;
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
@media (hover: none), (pointer: coarse) {
|
|
.marquee-track {
|
|
animation-duration: 48s;
|
|
}
|
|
}
|