Luigit
repositories / will

will

owned by admin

web/src/main.css

Raw
:root {
  --ink: #1b1b1d;
  --muted: #5d5d64;
  --line: #d9d9d4;
  --bg: #fcfcfa;
  --accent: #0a5a48;
  --accent-soft: #e6f0ec;
  --warn: #8a3d00;
  --mono: ui-monospace, "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    1rem / 1.55 "Iowan Old Style",
    Palatino,
    Georgia,
    serif;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

header {
  border-bottom: 2px solid var(--line);
  padding: 1rem 1.5rem 0.75rem;
}
header h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}
header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-style: italic;
}

nav[aria-label="Sections"] {
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
nav[aria-label="Sections"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav[aria-label="Sections"] button {
  font: inherit;
  border: 1px solid transparent;
  border-bottom: none;
  background: none;
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
}
nav[aria-label="Sections"] button[aria-selected="true"] {
  color: var(--accent);
  border-color: var(--line);
  background: #fff;
  font-weight: 700;
}
nav[aria-label="Sections"] button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

main {
  padding: 0 1.5rem 3rem;
  max-width: 72rem;
}
section > h2 {
  font-size: 1.15rem;
  margin: 1.2rem 0 0.5rem;
  color: var(--accent);
}
section[hidden] {
  display: none;
}
section:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}
#stream-state {
  font-family: var(--mono);
  font-size: 0.8rem;
}
#stream-state.live {
  color: var(--accent);
}
#stream-state.down {
  color: var(--warn);
}

ol#timeline-list,
ol#chat-list,
ol#deployment-list,
ul#media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.event {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}
.event time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.event .kind {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}
.event pre {
  margin: 0.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  max-height: 10rem;
  overflow: auto;
  background: var(--accent-soft);
  padding: 0.35rem;
  border-radius: 4px;
}
.event .archived::after {
  content: " · cold";
  color: var(--muted);
}

.chat-msg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.chat-msg.out {
  background: var(--accent-soft);
}
.chat-msg .meta {
  color: var(--muted);
  font-size: 0.8rem;
}
.chat-msg .hidden-note {
  color: var(--warn);
  font-style: italic;
}
.chat-msg img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 0.35rem;
}

ul#media-list {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
ul#media-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem;
}
ul#media-list img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

dl#health-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1rem;
}
dl#health-facts dt {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}
dl#health-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}
dl#health-facts .stop {
  color: var(--warn);
  font-weight: 700;
}

#docs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
}
#docs-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
}
#docs-content pre {
  overflow: auto;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .event.new {
    animation: fade-in 0.4s ease-out;
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

@media (max-width: 40rem) {
  .event {
    grid-template-columns: 1fr;
  }
  main,
  nav[aria-label="Sections"],
  header,
  footer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* usage table (health tab) */
.table-wrap {
  overflow-x: auto;
}

#usage-table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

#usage-table th,
#usage-table td {
  border: 1px solid var(--line);
  padding: 0.25rem 0.5rem;
  text-align: right;
}

#usage-table th:first-child,
#usage-table td:first-child {
  text-align: left;
}

#usage-table tfoot td {
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}