/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --ink: #1b1b1b;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --accent: #8a2f2f;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #fbfaf8;
  margin: 0;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  line-height: 1.5;
}

a { color: var(--accent); }

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .5rem;
  margin-bottom: 1.5rem;
}

h1 { font-size: 1.6rem; margin: 0; }
.count { color: var(--muted); font-size: 1rem; font-weight: 400; }

.notice:empty { display: none; }
.notice { color: #1f6b3a; }

.search { margin-bottom: 1.5rem; display: flex; gap: .5rem; align-items: center; }
.search input[type="search"] { min-width: min(24rem, 100%); }

input[type="text"], input[type="search"], input[type="number"],
input[type="date"], select, textarea {
  font: inherit;
  padding: .4rem .5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

input[type="submit"], .button {
  font: inherit;
  padding: .4rem .8rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:hover { background: #f4f1ec; }
.actions { text-align: right; white-space: nowrap; }

form > div { margin-bottom: .9rem; }
label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.site-nav .brand { font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.site-nav .who { margin-left: auto; color: var(--muted); font-size: .85rem; }
.site-nav form { margin: 0; }

.linkish {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-size: .85rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.auth-card {
  max-width: 22rem;
  margin: 3rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}
.auth-card h1 { margin-bottom: 1.25rem; font-size: 1.25rem; }
.auth-card input[type="email"],
.auth-card input[type="password"] { width: 100%; box-sizing: border-box; }
.auth-card label { display: block; margin-bottom: .2rem; }
.auth-card input[type="submit"] { width: 100%; margin-top: .5rem; }

.alert { color: #a01c1c; }
.muted-link { font-size: .85rem; margin-top: 1rem; }
.muted-link a { color: var(--muted); }
