Dough Git

clove/email

src/web/app.css

back to src/web

/* mailbox/src/web/app.css
 * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
 * Licensed under the DASL-1.0 Licence.
 * See LICENCE.md in the project root for full licence information.
 */

/* Global tokens and base only; components carry their own scoped styles.
   The colours, wallpaper and type follow ~/projects/web (theme.css,
   header.css): translucent surfaces, hairline borders, IBM Plex Sans for text
   and Comic Code for monospace, as on doughmination.gay. The controls follow
   the Android app instead: Material 3 buttons, text fields and icons, so the
   two look the same.

   Email content never sees any of this: it renders inside EmailFrame's
   iframe, which is also what keeps an email's fonts and styles off the app. */

/* IBM Plex Sans for text, as on doughmination.gay; Comic Code for anything monospace */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Comic Code";
  src: url("https://raw.doughmination.gay/f/Comic-Code/woff2/ComicCode-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comic Code";
  src: url("https://raw.doughmination.gay/f/Comic-Code/woff2/ComicCode-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Comic Code";
  src: url("https://raw.doughmination.gay/f/Comic-Code/woff2/ComicCode-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comic Code";
  src: url("https://raw.doughmination.gay/f/Comic-Code/woff2/ComicCode-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* From the site's theme.css. */
  --bg: #0b0a0d;
  --raised: rgb(255 255 255 / 3.5%);
  --line: rgb(255 255 255 / 9%);
  --text: #ece9ef;
  --muted: #a49eab;
  --accent: #eb459e;
  --accent-dim: rgb(235 69 158 / 14%);

  /* Derived for the app: hovered/selected rows, accent borders, panels. */
  --raised-hover: rgb(255 255 255 / 6%);
  --accent-line: rgb(235 69 158 / 40%);
  --panel: rgb(11 10 13 / 72%);
  --danger: #ff5c7a;
  /* From the Android app's Material colour scheme (ui/Theme.kt). */
  --outline: #3a3640;
  --outline-variant: #26222b;
  --surface-low: #131116;
  --surface-high: #1e1b22;
  --primary-container: #3a1a2c;
  --on-primary-container: #ffd8ea;
  --secondary-container: #2a1a24;
  --on-secondary-container: #ffd8ea;
  --star: #f7c948;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "Comic Code", ui-monospace, "Cascadia Code", Menlo, monospace;

  color-scheme: only dark;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 14%) transparent;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

/* The site's wallpaper and fade (header.css .backdrop), fixed behind the
   whole app rather than just the top of a page. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background: url("/background.avif") center / cover no-repeat;
  opacity: 0.5;
}

body::after {
  background:
    linear-gradient(rgb(11 10 13 / 55%), rgb(11 10 13 / 80%) 55%, var(--bg)),
    radial-gradient(70% 60% at 20% 30%, rgb(235 69 158 / 12%), transparent 70%);
}

#app {
  position: relative;
  z-index: 1;
  height: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--text);
  text-decoration-color: rgb(235 69 158 / 55%);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

/* Buttons: Material 3, as in the Android app. A plain .btn is an outlined
   button, .accent a filled one, .text a text button and .icon an icon button.
   Hovering lays a tint over the button, as Material's state layers do. */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 1.5rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.btn:has(> svg:first-child) {
  padding-left: 1rem;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.btn:hover:not(:disabled)::after {
  opacity: 0.08;
}

.btn:active:not(:disabled)::after,
.btn:focus-visible::after {
  opacity: 0.12;
}

.btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.btn.accent {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.btn.accent:hover:not(:disabled) {
  box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
}

.btn.text {
  padding: 0 0.75rem;
  border-color: transparent;
}

.btn.danger {
  color: var(--danger);
}

.btn.icon {
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border-color: transparent;
  color: var(--muted);
}

.btn.icon.danger {
  color: var(--danger);
}

/* Cards: the site's project/contact tiles. */

.card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
}

/* Small uppercase accent label (.eyebrow / .contact-name on the site). */
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Material's outlined text field, as in the app. */
.field input,
.field select,
.field textarea,
.input {
  padding: 0.85rem 1rem;
  border: 1px solid var(--outline);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Phones: 16px fields, or iOS Safari zooms the page on focus. */
@media (max-width: 800px) {
  .field input,
  .field select,
  .field textarea,
  .input {
    font-size: 16px;
  }
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--danger);
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

code,
kbd,
pre,
samp {
  font-family: var(--mono);
}