/* ---------------------------------------------------------
   LooksAboutRight — shared stylesheet
   Palette: light, warm, a bit scrappy — a personal-blog
   feel rather than a polished product site. System fonts
   only, no external font hosts.
--------------------------------------------------------- */

:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --border: #333333;
  --text: #f0f0f0;
  --text-dim: #a8a29a;
  --accent: #ffcc00;
  --accent-dim: #cc9f00;
  --link: #1e90ff;
  --link-visited: #b28cff;

  --tag-wip: #d98a2b;
  --tag-paused: #8a8375;
  --tag-done: #4c8c5b;
  --tag-shelved: #9c4a4a;

  --font-body: Verdana, Geneva, "Trebuchet MS", sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Code", "Roboto Mono", "Liberation Mono", Menlo, monospace;

  --content-width: 46rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--text);
  line-height: 1.65;
  padding: 0 1.25rem 3rem;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

a:hover,
a:focus-visible {
  color: var(--accent-dim);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- site header ---------- */

.site-header {
  max-width: var(--content-width);
  margin: 1.5rem auto 0;
  background-color: var(--surface);
  color: var(--text);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.site-header .home-link {
  color: var(--accent);
  text-decoration: none;
}

.site-header h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
}

.site-header .tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 1.5rem auto 0;
  max-width: var(--content-width);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent-dim);
}

/* ---------- main content column ---------- */

main {
  max-width: var(--content-width);
  margin: 1.5rem auto 0;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

main>p {
  max-width: 40rem;
  margin-bottom: 1.1rem;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h2 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px dotted var(--border);
}

h3 {
  font-size: 1.15rem;
}

/* ---------- status tag ---------- */

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  background-color: var(--tag-paused);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.tag.wip {
  background-color: var(--tag-wip);
}

.tag.paused {
  background-color: var(--tag-paused);
}

.tag.done {
  background-color: var(--tag-done);
}

.tag.shelved {
  background-color: var(--tag-shelved);
}

/* ---------- project list (index page) ---------- */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.project-row:hover,
.project-row:focus-visible {
  border-color: var(--accent);
}


.project-row .thumb {
  flex: 0 0 9.5rem;
  height: 7rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
  background-color: #262626;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}

.project-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}


.project-row .info h3 {
  margin-bottom: 0.3rem;
  text-decoration: underline;
}

.project-row .info p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

@media (max-width: 32rem) {
  .project-row {
    flex-direction: column;
    align-items: stretch;
  }

  .project-row .thumb {
    flex-basis: auto;
    height: 8rem;
    width: 100%;
  }
}

/* ---------- downloads list ---------- */

.downloads {
  list-style: none;
}

.downloads li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.6rem;
  background-color: var(--bg);
}

.downloads li:hover {
  border-color: var(--accent);
}

.downloads a {
  font-weight: bold;
}

.downloads .meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  white-space: nowrap;
}

.downloads .filetype {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.downloads .dl-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 5.5rem;
  text-align: right;
}

/* ---------- license note ---------- */

.license-note {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.license-note strong {
  color: var(--text);
}

/* ---------- video grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- empty state ---------- */

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  color: var(--text-dim);
  background-color: var(--bg);
}

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--content-width);
  margin: 1.5rem auto 0;
  padding: 1rem 1.75rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: center;
}

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