/* =================================================================
   BASE — shared structure, layout, and component shapes
   ================================================================= */

@font-face {
  font-family: 'ChicagoKare';
  src: url('/fonts/ChicagoKare-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1rem 4rem;
}

/* ---- Theme switcher ---- */
.theme-bar {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  display: flex;
  gap: 0.35rem;
  z-index: 100;
}
.theme-btn {
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}
.theme-folder {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.folder-icon {
  width: 1rem;
  height: 0.8rem;
  display: inline-block;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.8;
}
.folder-label {
  display: inline-block;
  line-height: 1;
}

/* ---- Header ---- */
header { text-align: center; margin-bottom: 3rem; }

/* ---- Grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 900px;
}

/* ---- Card shell ---- */
.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Titlebar hidden by default (dark mode) */
.card-titlebar { display: none; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem 1.6rem 1.4rem;
  flex: 1;
}
.card-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.15rem; }
.card-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.card-desc { font-size: 0.83rem; line-height: 1.5; }
.card-tag { margin-top: auto; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }

/* System 7 menubar — hidden by default */
.s7-menubar { display: none; }

footer { margin-top: 3.5rem; font-size: 0.78rem; text-align: center; }
