Same structure and behavior; only the theme changes: - css/base.css: dawn neutrals (paper gradient, warm ink), fonts, teal links - themes/inbe.css: rose accent family (#b46a5a) with warm per-platform hovers - index.html: theme-color matches the dawn paper
348 lines
6.2 KiB
CSS
348 lines
6.2 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:ital,wght@0,300;0,400;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap');
|
|
:root {
|
|
--bg: #f7ede2;
|
|
--surface: #fffcf7;
|
|
--control: #f4e6d6;
|
|
--control-hi: #ffffff;
|
|
--ink-strong: #4a4038;
|
|
--ink-soft: #9b8b7c;
|
|
--line: rgba(180, 106, 90, 0.22);
|
|
--line-strong: rgba(180, 106, 90, 0.35);
|
|
--accent: #2c7388;
|
|
--accent-deep: #174b5d;
|
|
--accent-soft: rgba(44, 115, 136, 0.10);
|
|
--card-bg: #fffcf7;
|
|
--card-hover-bg: #fffefb;
|
|
--card-active-bg: #f7ede2;
|
|
--page-bg: var(--bg);
|
|
--page-tile-opacity: 0.18;
|
|
--panel-bg: var(--surface);
|
|
--dark: var(--line-strong);
|
|
--shadow: rgba(180, 106, 90, 0.12);
|
|
--light: #ffffff;
|
|
--button-bg: var(--control);
|
|
--button-highlight: var(--control-hi);
|
|
--button-inset: var(--control-hi);
|
|
--link: var(--accent);
|
|
--link-hover: var(--accent-deep);
|
|
--ink: var(--ink-strong);
|
|
--muted: var(--ink-soft);
|
|
--panel-shadow: rgba(0, 0, 0, 0.10);
|
|
--font-main: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
|
|
--radius: 10px;
|
|
--radius-sm: 6px;
|
|
--maxw: 1080px;
|
|
--bevel:
|
|
0 1px 0 var(--control-hi),
|
|
inset 1px 1px 0 var(--control-hi),
|
|
0 2px 10px rgba(0, 0, 0, 0.04);
|
|
--bevel-hover:
|
|
0 1px 0 var(--control-hi),
|
|
inset 1px 1px 0 var(--control-hi),
|
|
0 8px 22px rgba(0, 0, 0, 0.07);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
scroll-padding-top: 72px;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
position: relative;
|
|
background-color: var(--page-bg);
|
|
color: var(--ink);
|
|
font-family: var(--font-main);
|
|
font-size: 15px;
|
|
line-height: 1.6;
|
|
cursor: default;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 0;
|
|
background-image:
|
|
linear-gradient(45deg, rgba(42, 59, 64, 0.028) 25%, transparent 25%),
|
|
linear-gradient(-45deg, rgba(42, 59, 64, 0.028) 25%, transparent 25%),
|
|
linear-gradient(45deg, transparent 75%, rgba(42, 59, 64, 0.028) 75%),
|
|
linear-gradient(-45deg, transparent 75%, rgba(42, 59, 64, 0.028) 75%);
|
|
background-position: 0 0, 0 16px, 16px -16px, -16px 0;
|
|
background-size: 32px 32px;
|
|
image-rendering: pixelated;
|
|
opacity: var(--page-tile-opacity);
|
|
pointer-events: none;
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
max-width: 100%;
|
|
height: auto;
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
a {
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: color 0.12s ease;
|
|
}
|
|
|
|
a:hover { color: var(--link-hover); }
|
|
|
|
a:active {
|
|
position: relative;
|
|
top: 1px;
|
|
left: 1px;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
color: var(--ink-strong);
|
|
line-height: 1.15;
|
|
letter-spacing: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
h1 {
|
|
font-size: clamp(42px, 7vw, 74px);
|
|
line-height: 0.98;
|
|
margin: 14px 0 16px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: clamp(26px, 4vw, 40px);
|
|
line-height: 1.08;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
h3 { font-size: 16px; }
|
|
|
|
p {
|
|
max-width: 72ch;
|
|
margin: 0 0 14px;
|
|
}
|
|
|
|
p:last-child { margin-bottom: 0; }
|
|
|
|
.site-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
background-color: rgba(243, 241, 234, 0.92);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
backdrop-filter: blur(8px);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.site-header-inner {
|
|
max-width: var(--maxw);
|
|
margin: 0 auto;
|
|
padding: 10px 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--ink-strong);
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.brand img {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.header-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 4px 18px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.header-nav a {
|
|
color: var(--ink-soft);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.header-nav a:hover,
|
|
.header-nav .is-external {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.header-nav .btn {
|
|
color: var(--ink-strong);
|
|
}
|
|
|
|
.header-nav .btn:hover {
|
|
color: var(--ink-strong);
|
|
}
|
|
|
|
.header-nav .btn-primary,
|
|
.header-nav .btn-primary:hover {
|
|
color: #fffdf8;
|
|
}
|
|
|
|
.content {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: transparent;
|
|
border: 0;
|
|
box-shadow: none;
|
|
font-family: var(--font-main);
|
|
}
|
|
|
|
main {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
section,
|
|
footer {
|
|
max-width: var(--maxw);
|
|
margin: 0 auto;
|
|
padding: 56px 20px;
|
|
}
|
|
|
|
footer {
|
|
padding-top: 16px;
|
|
padding-bottom: 28px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
footer p {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.btn,
|
|
button,
|
|
.tk-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
color: var(--ink-strong);
|
|
font-family: var(--font-main);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
background-color: var(--button-bg);
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: var(--bevel);
|
|
cursor: pointer;
|
|
transition: background-color 0.14s ease, transform 0.08s ease, box-shadow 0.14s ease;
|
|
}
|
|
|
|
.btn:hover,
|
|
button:hover,
|
|
.tk-button:hover {
|
|
background-color: var(--card-hover-bg);
|
|
box-shadow: var(--bevel-hover);
|
|
color: var(--ink-strong);
|
|
}
|
|
|
|
.btn:active,
|
|
button:active,
|
|
.tk-button:active {
|
|
transform: translate(1px, 1px);
|
|
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--accent);
|
|
border-color: var(--accent-deep);
|
|
color: #fffdf8;
|
|
box-shadow:
|
|
inset 1px 1px 0 rgba(255, 255, 255, 0.18),
|
|
0 3px 0 var(--accent-deep),
|
|
0 10px 22px rgba(44, 115, 136, 0.20);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #35879f;
|
|
color: #fffdf8;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="file"] {
|
|
font-family: var(--font-main);
|
|
font-size: 14px;
|
|
}
|
|
|
|
input[type="text"] {
|
|
background-color: #ffffff;
|
|
color: var(--ink-strong);
|
|
padding: 7px 10px;
|
|
outline: none;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.08);
|
|
cursor: text;
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.site-header-inner {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.header-nav {
|
|
margin-left: 0;
|
|
}
|
|
|
|
section,
|
|
footer {
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 44px;
|
|
}
|
|
}
|
|
|
|
/* lotus at dawn — type */
|
|
:root {
|
|
--link: #04655f;
|
|
}
|
|
|
|
body {
|
|
background: linear-gradient(180deg, #f7ede2 0%, #f2e2d0 60%, #f7ede2 100%);
|
|
font-family: "Noto Sans Mono", ui-monospace, Menlo, monospace;
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
font-family: "Cormorant Garamond", Georgia, serif;
|
|
}
|
|
|
|
a { color: var(--link, #04655f); }
|