/* Shared stylesheet for random.bigteeshirtco.com.
   Every app links this so the header, spacing and controls stay identical
   across the whole site instead of drifting per page. Link it with:
     <link rel="stylesheet" href="/styles.css">
   and wrap your page in <div class="wrap"> ... </div>. */

:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #8f8f8f;
  --line: #262626;
  --card: #131313;
  --card-hover: #191919;
  --pink: #ec1e79;
  --pink-dark: #c4155f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* Every page uses the same width and gutters — do not override per app. */
.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

/* ---- Shared header ------------------------------------------------- */

.site-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.wordmark {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark .dot {
  color: var(--pink);
}

.wordmark a {
  color: inherit;
  text-decoration: none;
}

.tagline {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Back link that app pages put directly above the header. */
.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.back:hover {
  color: var(--pink);
}

/* ---- App grid on the splash page ----------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--pink);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.card-date {
  margin-top: auto;
  padding-top: 0.6rem;
  color: #5c5c5c;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Generic controls apps can reuse -------------------------------- */

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

button.btn {
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--pink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

button.btn:hover {
  background: var(--pink-dark);
}

input.field,
select.field {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #0d0d0d;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
}

input.field:focus,
select.field:focus {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
}
