Files
stain.otf/index.html

51 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>stain</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
:root { --bg: #111; --fg: #fafafa; --ui: system-ui, sans-serif; }
body {
margin: 0; padding: 2rem;
background: var(--bg); color: var(--fg);
font-family: var(--ui);
display: flex; align-items: center; justify-content: center;
min-height: 100vh;
}
@font-face { font-family: "Stain"; src: url("./dist/Stain.otf") format("opentype"); }
.stain-font { font-family: "Stain"; }
.container { max-width: 800px; width: 100%; }
.entry { border-left: 1px solid #333; padding-left: 2rem; }
h1 { font-size: clamp(4rem, 15vw, 10rem); line-height: 0.8; margin: 0 0 1rem -0.5rem; font-weight: normal; }
.pos { font-size: 1.5rem; color: #888; margin-bottom: 2rem; display: block; font-style: italic; font-family: serif; }
/* Note: "noun" rendered in stain font if pos class uses stain, but requested distinct "definition style" implies standard layout practices. Using Stain for definition text as requested. */
.def-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.def-item { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.1; color: #ccc; }
.footer { margin-top: 4rem; border-top: 1px solid #333; padding-top: 2rem; text-align: right; }
.btn { color: #fff; text-decoration: none; border: 1px solid #fff; padding: 0.8rem 2rem; border-radius: 2rem; transition: 0.2s; font-family: var(--ui); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }
.btn:hover { background: #fff; color: #000; }
</style>
</head>
<body>
<div class="container">
<div class="entry">
<!-- Using "Stain" font for content. Note: Only A-Z, a-z, period, space available. No numbers/commas. -->
<h1 class="stain-font">stain</h1>
<span class="stain-font pos">noun</span>
<ul class="def-list">
<li class="def-item stain-font">
a colored patch or dirty mark that is difficult to remove.
</li>
<li class="def-item stain-font">
a mark of disgrace associated with a particular circumstance quality or person.
</li>
</ul>
</div>
<div class="footer">
<a href="./dist/Stain.otf" class="btn" download>Download Font</a>
</div>
</div>
</body>
</html>